mapreader 1.6.1.post0.dev17__tar.gz → 1.6.1.post0.dev37__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/PKG-INFO +9 -8
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/README.md +8 -7
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/_version.py +3 -3
- mapreader-1.6.1.post0.dev37/mapreader/spot_text/dataclasses.py +30 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/deepsolo_runner.py +2 -2
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/dptext_detr_runner.py +7 -59
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/maptext_runner.py +2 -2
- mapreader-1.6.1.post0.dev37/mapreader/spot_text/runner_base.py +1125 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/PKG-INFO +9 -8
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/SOURCES.txt +1 -1
- mapreader-1.6.1.post0.dev17/mapreader/spot_text/rec_runner_base.py +0 -346
- mapreader-1.6.1.post0.dev17/mapreader/spot_text/runner_base.py +0 -534
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/LICENSE +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/__main__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/annotate/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/annotate/annotator.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/classify/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/classify/classifier.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/classify/custom_models.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/classify/datasets.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/classify/load_annotations.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/data_structures.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/downloader.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/downloader_utils.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/sheet_downloader.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/tile_loading.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/download/tile_merging.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/load/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/load/geo_utils.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/load/images.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/load/loader.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/process/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/process/context_post_process.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/process/occlusion_analysis.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/process/process.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/utils/__init__.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/utils/compute_and_save_stats.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/utils/load_frames.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/utils/slice_parallel.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/dependency_links.txt +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/entry_points.txt +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/not-zip-safe +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/requires.txt +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader.egg-info/top_level.txt +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/setup.cfg +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/setup.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/tests/test_geo_pipeline.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/tests/test_import.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/tests/test_utils_load_frames.py +0 -0
- {mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/versioneer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mapreader
|
|
3
|
-
Version: 1.6.1.post0.
|
|
3
|
+
Version: 1.6.1.post0.dev37
|
|
4
4
|
Summary: A computer vision pipeline for the semantic exploration of maps/images at scale
|
|
5
5
|
Home-page: https://github.com/Living-with-machines/MapReader
|
|
6
6
|
Download-URL: https://github.com/Living-with-machines/MapReader/archive/refs/heads/main.zip
|
|
@@ -187,16 +187,17 @@ Maps above reproduced with the permission of the National Library of Scotland ht
|
|
|
187
187
|
<table>
|
|
188
188
|
<tbody>
|
|
189
189
|
<tr>
|
|
190
|
-
<td align="center" valign="top" width="14.28%"><a href="https://www.turing.ac.uk/people/researchers/katherine-mcdonough"><img src="https://avatars.githubusercontent.com/u/20363927?v=4?s=100" width="100px;" alt="Katie McDonough"/><br /><sub><b>Katie McDonough</b></sub></a><br /><a href="#research-kmcdono2" title="Research">🔬</a> <a href="#ideas-kmcdono2" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/
|
|
191
|
-
<td align="center" valign="top" width="14.28%"><a href="http://danielwilson.info"><img src="https://avatars.githubusercontent.com/u/34318222?v=4?s=100" width="100px;" alt="Daniel C.S. Wilson"/><br /><sub><b>Daniel C.S. Wilson</b></sub></a><br /><a href="#research-dcsw2" title="Research">🔬</a> <a href="#ideas-dcsw2" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-dcsw2" title="Talks">📢</a> <a href="https://github.com/
|
|
192
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasra-hosseini"><img src="https://avatars.githubusercontent.com/u/1899856?v=4?s=100" width="100px;" alt="Kasra Hosseini"/><br /><sub><b>Kasra Hosseini</b></sub></a><br /><a href="https://github.com/
|
|
193
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rwood-97"><img src="https://avatars.githubusercontent.com/u/72076688?v=4?s=100" width="100px;" alt="Rosie Wood"/><br /><sub><b>Rosie Wood</b></sub></a><br /><a href="https://github.com/
|
|
194
|
-
<td align="center" valign="top" width="14.28%"><a href="http://www.westerling.nu"><img src="https://avatars.githubusercontent.com/u/7298727?v=4?s=100" width="100px;" alt="Kalle Westerling"/><br /><sub><b>Kalle Westerling</b></sub></a><br /><a href="https://github.com/
|
|
190
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.turing.ac.uk/people/researchers/katherine-mcdonough"><img src="https://avatars.githubusercontent.com/u/20363927?v=4?s=100" width="100px;" alt="Katie McDonough"/><br /><sub><b>Katie McDonough</b></sub></a><br /><a href="#research-kmcdono2" title="Research">🔬</a> <a href="#ideas-kmcdono2" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=kmcdono2" title="Documentation">📖</a> <a href="#projectManagement-kmcdono2" title="Project Management">📆</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akmcdono2" title="Reviewed Pull Requests">👀</a> <a href="#talk-kmcdono2" title="Talks">📢</a> <a href="#tutorial-kmcdono2" title="Tutorials">✅</a></td>
|
|
191
|
+
<td align="center" valign="top" width="14.28%"><a href="http://danielwilson.info"><img src="https://avatars.githubusercontent.com/u/34318222?v=4?s=100" width="100px;" alt="Daniel C.S. Wilson"/><br /><sub><b>Daniel C.S. Wilson</b></sub></a><br /><a href="#research-dcsw2" title="Research">🔬</a> <a href="#ideas-dcsw2" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-dcsw2" title="Talks">📢</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=dcsw2" title="Documentation">📖</a></td>
|
|
192
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasra-hosseini"><img src="https://avatars.githubusercontent.com/u/1899856?v=4?s=100" width="100px;" alt="Kasra Hosseini"/><br /><sub><b>Kasra Hosseini</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=kasra-hosseini" title="Code">💻</a> <a href="#ideas-kasra-hosseini" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-kasra-hosseini" title="Research">🔬</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akasra-hosseini" title="Reviewed Pull Requests">👀</a> <a href="#talk-kasra-hosseini" title="Talks">📢</a></td>
|
|
193
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rwood-97"><img src="https://avatars.githubusercontent.com/u/72076688?v=4?s=100" width="100px;" alt="Rosie Wood"/><br /><sub><b>Rosie Wood</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=rwood-97" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=rwood-97" title="Documentation">📖</a> <a href="#ideas-rwood-97" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-rwood-97" title="Talks">📢</a> <a href="#tutorial-rwood-97" title="Tutorials">✅</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Arwood-97" title="Reviewed Pull Requests">👀</a> <a href="#maintenance-rwood-97" title="Maintenance">🚧</a> <a href="#research-rwood-97" title="Research">🔬</a></td>
|
|
194
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.westerling.nu"><img src="https://avatars.githubusercontent.com/u/7298727?v=4?s=100" width="100px;" alt="Kalle Westerling"/><br /><sub><b>Kalle Westerling</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=kallewesterling" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=kallewesterling" title="Documentation">📖</a> <a href="#maintenance-kallewesterling" title="Maintenance">🚧</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akallewesterling" title="Reviewed Pull Requests">👀</a> <a href="#talk-kallewesterling" title="Talks">📢</a></td>
|
|
195
195
|
<td align="center" valign="top" width="14.28%"><a href="https://maps.nls.uk"><img src="https://avatars.githubusercontent.com/u/3666702?v=4?s=100" width="100px;" alt="Chris Fleet"/><br /><sub><b>Chris Fleet</b></sub></a><br /><a href="#data-ChrisFleet" title="Data">🔣</a></td>
|
|
196
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasparvonbeelen"><img src="https://avatars.githubusercontent.com/u/11618160?v=4?s=100" width="100px;" alt="Kaspar Beelen"/><br /><sub><b>Kaspar Beelen</b></sub></a><br /><a href="#ideas-kasparvonbeelen" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/
|
|
196
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasparvonbeelen"><img src="https://avatars.githubusercontent.com/u/11618160?v=4?s=100" width="100px;" alt="Kaspar Beelen"/><br /><sub><b>Kaspar Beelen</b></sub></a><br /><a href="#ideas-kasparvonbeelen" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akasparvonbeelen" title="Reviewed Pull Requests">👀</a> <a href="#research-kasparvonbeelen" title="Research">🔬</a></td>
|
|
197
197
|
</tr>
|
|
198
198
|
<tr>
|
|
199
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/andrewphilipsmith"><img src="https://avatars.githubusercontent.com/u/5346065?v=4?s=100" width="100px;" alt="Andy Smith"/><br /><sub><b>Andy Smith</b></sub></a><br /><a href="https://github.com/
|
|
199
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/andrewphilipsmith"><img src="https://avatars.githubusercontent.com/u/5346065?v=4?s=100" width="100px;" alt="Andy Smith"/><br /><sub><b>Andy Smith</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=andrewphilipsmith" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=andrewphilipsmith" title="Documentation">📖</a> <a href="#mentoring-andrewphilipsmith" title="Mentoring">🧑🏫</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Aandrewphilipsmith" title="Reviewed Pull Requests">👀</a></td>
|
|
200
|
+
<td align="center" valign="top" width="14.28%"><a href="http://mradamcox.github.io"><img src="https://avatars.githubusercontent.com/u/10427268?v=4?s=100" width="100px;" alt="Adam Cox"/><br /><sub><b>Adam Cox</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=mradamcox" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=mradamcox" title="Tests">⚠️</a></td>
|
|
200
201
|
</tr>
|
|
201
202
|
</tbody>
|
|
202
203
|
</table>
|
|
@@ -115,16 +115,17 @@ Maps above reproduced with the permission of the National Library of Scotland ht
|
|
|
115
115
|
<table>
|
|
116
116
|
<tbody>
|
|
117
117
|
<tr>
|
|
118
|
-
<td align="center" valign="top" width="14.28%"><a href="https://www.turing.ac.uk/people/researchers/katherine-mcdonough"><img src="https://avatars.githubusercontent.com/u/20363927?v=4?s=100" width="100px;" alt="Katie McDonough"/><br /><sub><b>Katie McDonough</b></sub></a><br /><a href="#research-kmcdono2" title="Research">🔬</a> <a href="#ideas-kmcdono2" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/
|
|
119
|
-
<td align="center" valign="top" width="14.28%"><a href="http://danielwilson.info"><img src="https://avatars.githubusercontent.com/u/34318222?v=4?s=100" width="100px;" alt="Daniel C.S. Wilson"/><br /><sub><b>Daniel C.S. Wilson</b></sub></a><br /><a href="#research-dcsw2" title="Research">🔬</a> <a href="#ideas-dcsw2" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-dcsw2" title="Talks">📢</a> <a href="https://github.com/
|
|
120
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasra-hosseini"><img src="https://avatars.githubusercontent.com/u/1899856?v=4?s=100" width="100px;" alt="Kasra Hosseini"/><br /><sub><b>Kasra Hosseini</b></sub></a><br /><a href="https://github.com/
|
|
121
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rwood-97"><img src="https://avatars.githubusercontent.com/u/72076688?v=4?s=100" width="100px;" alt="Rosie Wood"/><br /><sub><b>Rosie Wood</b></sub></a><br /><a href="https://github.com/
|
|
122
|
-
<td align="center" valign="top" width="14.28%"><a href="http://www.westerling.nu"><img src="https://avatars.githubusercontent.com/u/7298727?v=4?s=100" width="100px;" alt="Kalle Westerling"/><br /><sub><b>Kalle Westerling</b></sub></a><br /><a href="https://github.com/
|
|
118
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.turing.ac.uk/people/researchers/katherine-mcdonough"><img src="https://avatars.githubusercontent.com/u/20363927?v=4?s=100" width="100px;" alt="Katie McDonough"/><br /><sub><b>Katie McDonough</b></sub></a><br /><a href="#research-kmcdono2" title="Research">🔬</a> <a href="#ideas-kmcdono2" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=kmcdono2" title="Documentation">📖</a> <a href="#projectManagement-kmcdono2" title="Project Management">📆</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akmcdono2" title="Reviewed Pull Requests">👀</a> <a href="#talk-kmcdono2" title="Talks">📢</a> <a href="#tutorial-kmcdono2" title="Tutorials">✅</a></td>
|
|
119
|
+
<td align="center" valign="top" width="14.28%"><a href="http://danielwilson.info"><img src="https://avatars.githubusercontent.com/u/34318222?v=4?s=100" width="100px;" alt="Daniel C.S. Wilson"/><br /><sub><b>Daniel C.S. Wilson</b></sub></a><br /><a href="#research-dcsw2" title="Research">🔬</a> <a href="#ideas-dcsw2" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-dcsw2" title="Talks">📢</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=dcsw2" title="Documentation">📖</a></td>
|
|
120
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasra-hosseini"><img src="https://avatars.githubusercontent.com/u/1899856?v=4?s=100" width="100px;" alt="Kasra Hosseini"/><br /><sub><b>Kasra Hosseini</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=kasra-hosseini" title="Code">💻</a> <a href="#ideas-kasra-hosseini" title="Ideas, Planning, & Feedback">🤔</a> <a href="#research-kasra-hosseini" title="Research">🔬</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akasra-hosseini" title="Reviewed Pull Requests">👀</a> <a href="#talk-kasra-hosseini" title="Talks">📢</a></td>
|
|
121
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rwood-97"><img src="https://avatars.githubusercontent.com/u/72076688?v=4?s=100" width="100px;" alt="Rosie Wood"/><br /><sub><b>Rosie Wood</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=rwood-97" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=rwood-97" title="Documentation">📖</a> <a href="#ideas-rwood-97" title="Ideas, Planning, & Feedback">🤔</a> <a href="#talk-rwood-97" title="Talks">📢</a> <a href="#tutorial-rwood-97" title="Tutorials">✅</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Arwood-97" title="Reviewed Pull Requests">👀</a> <a href="#maintenance-rwood-97" title="Maintenance">🚧</a> <a href="#research-rwood-97" title="Research">🔬</a></td>
|
|
122
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.westerling.nu"><img src="https://avatars.githubusercontent.com/u/7298727?v=4?s=100" width="100px;" alt="Kalle Westerling"/><br /><sub><b>Kalle Westerling</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=kallewesterling" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=kallewesterling" title="Documentation">📖</a> <a href="#maintenance-kallewesterling" title="Maintenance">🚧</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akallewesterling" title="Reviewed Pull Requests">👀</a> <a href="#talk-kallewesterling" title="Talks">📢</a></td>
|
|
123
123
|
<td align="center" valign="top" width="14.28%"><a href="https://maps.nls.uk"><img src="https://avatars.githubusercontent.com/u/3666702?v=4?s=100" width="100px;" alt="Chris Fleet"/><br /><sub><b>Chris Fleet</b></sub></a><br /><a href="#data-ChrisFleet" title="Data">🔣</a></td>
|
|
124
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasparvonbeelen"><img src="https://avatars.githubusercontent.com/u/11618160?v=4?s=100" width="100px;" alt="Kaspar Beelen"/><br /><sub><b>Kaspar Beelen</b></sub></a><br /><a href="#ideas-kasparvonbeelen" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/
|
|
124
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kasparvonbeelen"><img src="https://avatars.githubusercontent.com/u/11618160?v=4?s=100" width="100px;" alt="Kaspar Beelen"/><br /><sub><b>Kaspar Beelen</b></sub></a><br /><a href="#ideas-kasparvonbeelen" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Akasparvonbeelen" title="Reviewed Pull Requests">👀</a> <a href="#research-kasparvonbeelen" title="Research">🔬</a></td>
|
|
125
125
|
</tr>
|
|
126
126
|
<tr>
|
|
127
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/andrewphilipsmith"><img src="https://avatars.githubusercontent.com/u/5346065?v=4?s=100" width="100px;" alt="Andy Smith"/><br /><sub><b>Andy Smith</b></sub></a><br /><a href="https://github.com/
|
|
127
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/andrewphilipsmith"><img src="https://avatars.githubusercontent.com/u/5346065?v=4?s=100" width="100px;" alt="Andy Smith"/><br /><sub><b>Andy Smith</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=andrewphilipsmith" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=andrewphilipsmith" title="Documentation">📖</a> <a href="#mentoring-andrewphilipsmith" title="Mentoring">🧑🏫</a> <a href="https://github.com/maps-as-data/MapReader/pulls?q=is%3Apr+reviewed-by%3Aandrewphilipsmith" title="Reviewed Pull Requests">👀</a></td>
|
|
128
|
+
<td align="center" valign="top" width="14.28%"><a href="http://mradamcox.github.io"><img src="https://avatars.githubusercontent.com/u/10427268?v=4?s=100" width="100px;" alt="Adam Cox"/><br /><sub><b>Adam Cox</b></sub></a><br /><a href="https://github.com/maps-as-data/MapReader/commits?author=mradamcox" title="Code">💻</a> <a href="https://github.com/maps-as-data/MapReader/commits?author=mradamcox" title="Tests">⚠️</a></td>
|
|
128
129
|
</tr>
|
|
129
130
|
</tbody>
|
|
130
131
|
</table>
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-12-
|
|
11
|
+
"date": "2024-12-19T16:32:25+0000",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "1.6.1.post0.
|
|
14
|
+
"full-revisionid": "914ab59309c4d45b12626ffc1c18e617d58b34ac",
|
|
15
|
+
"version": "1.6.1.post0.dev37"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
|
|
5
|
+
from shapely.geometry import Polygon
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dataclass(frozen=True)
|
|
9
|
+
class PatchPrediction:
|
|
10
|
+
pixel_geometry: Polygon
|
|
11
|
+
score: float
|
|
12
|
+
text: str = None
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True)
|
|
16
|
+
class ParentPrediction:
|
|
17
|
+
pixel_geometry: Polygon
|
|
18
|
+
score: float
|
|
19
|
+
patch_id: str
|
|
20
|
+
text: str = None
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@dataclass(frozen=True)
|
|
24
|
+
class GeoPrediction:
|
|
25
|
+
pixel_geometry: Polygon
|
|
26
|
+
score: float
|
|
27
|
+
patch_id: str
|
|
28
|
+
geometry: Polygon
|
|
29
|
+
crs: str
|
|
30
|
+
text: str = None
|
{mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/deepsolo_runner.py
RENAMED
|
@@ -20,10 +20,10 @@ import pandas as pd
|
|
|
20
20
|
import torch
|
|
21
21
|
from deepsolo.config import get_cfg
|
|
22
22
|
|
|
23
|
-
from .
|
|
23
|
+
from .runner_base import DetRecRunner
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class DeepSoloRunner(
|
|
26
|
+
class DeepSoloRunner(DetRecRunner):
|
|
27
27
|
def __init__(
|
|
28
28
|
self,
|
|
29
29
|
patch_df: pd.DataFrame | gpd.GeoDataFrame | str | pathlib.Path,
|
|
@@ -21,10 +21,11 @@ import torch
|
|
|
21
21
|
from dptext_detr.config import get_cfg
|
|
22
22
|
from shapely import MultiPolygon, Polygon
|
|
23
23
|
|
|
24
|
-
from .
|
|
24
|
+
from .dataclasses import PatchPrediction
|
|
25
|
+
from .runner_base import DetRunner
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
class DPTextDETRRunner(
|
|
28
|
+
class DPTextDETRRunner(DetRunner):
|
|
28
29
|
def __init__(
|
|
29
30
|
self,
|
|
30
31
|
patch_df: pd.DataFrame | gpd.GeoDataFrame | str | pathlib.Path,
|
|
@@ -71,7 +72,7 @@ class DPTextDETRRunner(Runner):
|
|
|
71
72
|
# setup the predictor
|
|
72
73
|
self.predictor = DefaultPredictor(cfg)
|
|
73
74
|
|
|
74
|
-
def
|
|
75
|
+
def _get_patch_predictions(
|
|
75
76
|
self,
|
|
76
77
|
outputs: dict,
|
|
77
78
|
return_dataframe: bool = False,
|
|
@@ -107,7 +108,7 @@ class DPTextDETRRunner(Runner):
|
|
|
107
108
|
self._deduplicate(image_id, min_ioa=min_ioa)
|
|
108
109
|
|
|
109
110
|
if return_dataframe:
|
|
110
|
-
return self._dict_to_dataframe(self.patch_predictions
|
|
111
|
+
return self._dict_to_dataframe(self.patch_predictions)
|
|
111
112
|
return self.patch_predictions
|
|
112
113
|
|
|
113
114
|
def _post_process(self, image_id, scores, pred_classes, bd_pnts):
|
|
@@ -122,59 +123,6 @@ class DPTextDETRRunner(Runner):
|
|
|
122
123
|
|
|
123
124
|
score = f"{score:.2f}"
|
|
124
125
|
|
|
125
|
-
self.patch_predictions[image_id].append(
|
|
126
|
-
|
|
127
|
-
@staticmethod
|
|
128
|
-
def _dict_to_dataframe(
|
|
129
|
-
preds: dict,
|
|
130
|
-
geo: bool = False,
|
|
131
|
-
parent: bool = False,
|
|
132
|
-
) -> pd.DataFrame:
|
|
133
|
-
"""Convert the predictions dictionary to a pandas DataFrame.
|
|
134
|
-
|
|
135
|
-
Parameters
|
|
136
|
-
----------
|
|
137
|
-
preds : dict
|
|
138
|
-
A dictionary of predictions.
|
|
139
|
-
geo : bool, optional
|
|
140
|
-
Whether the dictionary is georeferenced coords (or pixel bounds), by default True
|
|
141
|
-
parent : bool, optional
|
|
142
|
-
Whether the dictionary is at the parent level, by default False
|
|
143
|
-
|
|
144
|
-
Returns
|
|
145
|
-
-------
|
|
146
|
-
pd.DataFrame
|
|
147
|
-
A pandas DataFrame containing the predictions.
|
|
148
|
-
"""
|
|
149
|
-
if geo:
|
|
150
|
-
columns = ["geometry", "crs", "score"]
|
|
151
|
-
else:
|
|
152
|
-
columns = ["geometry", "score"]
|
|
153
|
-
|
|
154
|
-
if parent:
|
|
155
|
-
columns.append("patch_id")
|
|
156
|
-
|
|
157
|
-
preds_df = pd.concat(
|
|
158
|
-
pd.DataFrame(
|
|
159
|
-
preds[k],
|
|
160
|
-
index=np.full(len(preds[k]), k),
|
|
161
|
-
columns=columns,
|
|
126
|
+
self.patch_predictions[image_id].append(
|
|
127
|
+
PatchPrediction(pixel_geometry=polygon, score=score)
|
|
162
128
|
)
|
|
163
|
-
for k in preds.keys()
|
|
164
|
-
)
|
|
165
|
-
|
|
166
|
-
if geo:
|
|
167
|
-
# get the crs (should be the same for all)
|
|
168
|
-
if not preds_df["crs"].nunique() == 1:
|
|
169
|
-
raise ValueError("[ERROR] Multiple crs found in the predictions.")
|
|
170
|
-
crs = preds_df["crs"].unique()[0]
|
|
171
|
-
|
|
172
|
-
preds_df = gpd.GeoDataFrame(
|
|
173
|
-
preds_df,
|
|
174
|
-
geometry="geometry",
|
|
175
|
-
crs=crs,
|
|
176
|
-
)
|
|
177
|
-
|
|
178
|
-
preds_df.index.name = "image_id"
|
|
179
|
-
preds_df.reset_index(inplace=True)
|
|
180
|
-
return preds_df
|
{mapreader-1.6.1.post0.dev17 → mapreader-1.6.1.post0.dev37}/mapreader/spot_text/maptext_runner.py
RENAMED
|
@@ -20,10 +20,10 @@ import pandas as pd
|
|
|
20
20
|
import torch
|
|
21
21
|
from maptextpipeline.config import get_cfg
|
|
22
22
|
|
|
23
|
-
from .
|
|
23
|
+
from .runner_base import DetRecRunner
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class MapTextRunner(
|
|
26
|
+
class MapTextRunner(DetRecRunner):
|
|
27
27
|
def __init__(
|
|
28
28
|
self,
|
|
29
29
|
patch_df: pd.DataFrame | gpd.GeoDataFrame | str | pathlib.Path,
|