image-location-scan


Nameimage-location-scan JSON
Version 0.2.8 PyPI version JSON
download
home_pageNone
SummaryA tool that uses exifdata to organise geolocated image files (e.g. drones images) into a geopackage file with associated metadata. Additional features, such as can also create a webpage with a leaflet map.
upload_time2024-09-11 23:35:26
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords exiftool drone geolocation photography photogrammetry metashape leaflet folium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Image Location Scan

**Image Location Scan** is a powerful tool designed to extract Exif metadata from images, monitor a specified directory for changes, and maintain a synchronized [geopackage file](https://www.geopackage.org/). This script is ideal for users who need to keep track of photo metadata and visualize it on a map, especially in dynamic environments where files are frequently added, removed, or modified. Requires [exiftool](https://exiftool.org/) to be installed and callable by subprocess. Optionally scans and matches Metashape psx and psz files.

### Features

- **Directory Monitoring**: Utilizes `watchdog` to monitor a specified directory for changes and keeps a GeoPackage map updated in real-time.
- **Exif Metadata Extraction**: Extracts Exif metadata from images using `ExifTool`, including GPS coordinates, camera make and model, and more.
- **GeoPackage Synchronization**: Maintains a GeoPackage file that is updated with the latest metadata from the monitored directory.
- **HTML Map Generation**: Generates an HTML map and table to visualize the metadata, with options to include additional map layers.
- **Configurable Logging**: Supports dual logging to both console and file, with customizable log levels.
- **Persistent Observer**: Optionally persists the observer state to resume monitoring after interruptions.
- **Integration with Kart**: Supports integration with Kart for version control and remote repository synchronization.
- **Additonal Metadata**: Manually add key/value metadata by saving `metadata.xlsx` files in the directory structure.

### Installation

To install the package, use the following command:

```bash
pip install image-location-scan
```

### Usage

The script can be run from the command line with various options to customize its behavior. Below is an example of how to use it:

```bash
py -m exifScan '\\file\Shared\SEESPhotoDatabase' --config .\config.json --watchDirectory
```

### Command Line Arguments

- `path`: The path to scan for Exif data (required).
- `--WorkDirectory`: The working directory (defaults to current working directory).
- `--MetashapeDirectory`: Directory to search for Metashape project files.
- `--KartRemote`: Kart remote repository URL for pushing updates.
- `--KartDirectory`: Directory for the Kart repository.
- `--GeopackageDirectory`: Directory to save the GeoPackage file (defaults to WorkDirectory).
- `--LogDirectory`: Directory to save log files (defaults to current directory).
- `--OutputGeopackage`: Name of the output GeoPackage file (defaults to `Photos.gpkg`).
- `--htmlFolder`: Directory to save the HTML map and table.
- `--mapFileName`: Name of the HTML map file (defaults to `map.html`).
- `--otherMapLayers`: List of paths to additional map layers.
- `--otherMapLayerNames`: List of names for additional map layers.
- `--ExifOutputFile`: Name of the Exif output file (defaults to `outdb`).
- `--readExifFromOutputFile`: Read Exif data from the output file instead of scanning.
- `--recursive`: Scan directories recursively.
- `--ignoreDirs`: List of directories to ignore during scanning.
- `--ignoreMetashape`: Ignore directories containing `.files` and `auto-project`.
- `--persistObserver`: Persist the observer state to resume monitoring after interruptions.
- `--dualLogging`: Enable logging to both console and file.
- `--groupByTags`: List of tags to group by. Always groups by folder, but can also split into the groups specified by this flag (defaults to `["Make", "Model"]`).
- `--xyTagNames`: List of tag names for x and y coordinates (defaults to `['GPSLongitude', 'GPSLatitude']`).
- `--zTagName`: Tag name for z coordinate (defaults to `GPSAltitude`).
- `--imageFileExtensions`: List of image file extensions to scan (defaults to `['JPG']`).
- `--metashapeCacheTime`: Time to keep Metashape data cached (in minutes, defaults to 120).
- `--pollingInterval`: Time (in seconds) between polling intervals.
- `--config`: Path to a JSON config file.
- `--watchDirectory`: Watch directory for changes after initial scan.
- `--logLevel`: Set the logging level (choices: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`). Only if dualLogging is disabled.

### Dependencies

- `argparse`
- `sys`
- `json`
- `logging`
- `os`
- `time`
- `datetime`
- `copy`
- `threading`
- `subprocess`
- `folium`
- `pandas`
- `geopandas`
- `ExifTool`
- `watchdog`

### Acknowledgments

Thanks to Phil Harvey and his excellent exiftool software.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "image-location-scan",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "exiftool, drone, geolocation, photography, photogrammetry, Metashape, leaflet, folium",
    "author": null,
    "author_email": "Jonathan Davidson <jrjdavidson@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b5/b6/3dbbf4aeb4932b330da99b00f2e390d1c302116f10aed081daadd0ac79c5/image_location_scan-0.2.8.tar.gz",
    "platform": null,
    "description": "## Image Location Scan\r\n\r\n**Image Location Scan** is a powerful tool designed to extract Exif metadata from images, monitor a specified directory for changes, and maintain a synchronized [geopackage file](https://www.geopackage.org/). This script is ideal for users who need to keep track of photo metadata and visualize it on a map, especially in dynamic environments where files are frequently added, removed, or modified. Requires [exiftool](https://exiftool.org/) to be installed and callable by subprocess. Optionally scans and matches Metashape psx and psz files.\r\n\r\n### Features\r\n\r\n- **Directory Monitoring**: Utilizes `watchdog` to monitor a specified directory for changes and keeps a GeoPackage map updated in real-time.\r\n- **Exif Metadata Extraction**: Extracts Exif metadata from images using `ExifTool`, including GPS coordinates, camera make and model, and more.\r\n- **GeoPackage Synchronization**: Maintains a GeoPackage file that is updated with the latest metadata from the monitored directory.\r\n- **HTML Map Generation**: Generates an HTML map and table to visualize the metadata, with options to include additional map layers.\r\n- **Configurable Logging**: Supports dual logging to both console and file, with customizable log levels.\r\n- **Persistent Observer**: Optionally persists the observer state to resume monitoring after interruptions.\r\n- **Integration with Kart**: Supports integration with Kart for version control and remote repository synchronization.\r\n- **Additonal Metadata**: Manually add key/value metadata by saving `metadata.xlsx` files in the directory structure.\r\n\r\n### Installation\r\n\r\nTo install the package, use the following command:\r\n\r\n```bash\r\npip install image-location-scan\r\n```\r\n\r\n### Usage\r\n\r\nThe script can be run from the command line with various options to customize its behavior. Below is an example of how to use it:\r\n\r\n```bash\r\npy -m exifScan '\\\\file\\Shared\\SEESPhotoDatabase' --config .\\config.json --watchDirectory\r\n```\r\n\r\n### Command Line Arguments\r\n\r\n- `path`: The path to scan for Exif data (required).\r\n- `--WorkDirectory`: The working directory (defaults to current working directory).\r\n- `--MetashapeDirectory`: Directory to search for Metashape project files.\r\n- `--KartRemote`: Kart remote repository URL for pushing updates.\r\n- `--KartDirectory`: Directory for the Kart repository.\r\n- `--GeopackageDirectory`: Directory to save the GeoPackage file (defaults to WorkDirectory).\r\n- `--LogDirectory`: Directory to save log files (defaults to current directory).\r\n- `--OutputGeopackage`: Name of the output GeoPackage file (defaults to `Photos.gpkg`).\r\n- `--htmlFolder`: Directory to save the HTML map and table.\r\n- `--mapFileName`: Name of the HTML map file (defaults to `map.html`).\r\n- `--otherMapLayers`: List of paths to additional map layers.\r\n- `--otherMapLayerNames`: List of names for additional map layers.\r\n- `--ExifOutputFile`: Name of the Exif output file (defaults to `outdb`).\r\n- `--readExifFromOutputFile`: Read Exif data from the output file instead of scanning.\r\n- `--recursive`: Scan directories recursively.\r\n- `--ignoreDirs`: List of directories to ignore during scanning.\r\n- `--ignoreMetashape`: Ignore directories containing `.files` and `auto-project`.\r\n- `--persistObserver`: Persist the observer state to resume monitoring after interruptions.\r\n- `--dualLogging`: Enable logging to both console and file.\r\n- `--groupByTags`: List of tags to group by. Always groups by folder, but can also split into the groups specified by this flag (defaults to `[\"Make\", \"Model\"]`).\r\n- `--xyTagNames`: List of tag names for x and y coordinates (defaults to `['GPSLongitude', 'GPSLatitude']`).\r\n- `--zTagName`: Tag name for z coordinate (defaults to `GPSAltitude`).\r\n- `--imageFileExtensions`: List of image file extensions to scan (defaults to `['JPG']`).\r\n- `--metashapeCacheTime`: Time to keep Metashape data cached (in minutes, defaults to 120).\r\n- `--pollingInterval`: Time (in seconds) between polling intervals.\r\n- `--config`: Path to a JSON config file.\r\n- `--watchDirectory`: Watch directory for changes after initial scan.\r\n- `--logLevel`: Set the logging level (choices: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`). Only if dualLogging is disabled.\r\n\r\n### Dependencies\r\n\r\n- `argparse`\r\n- `sys`\r\n- `json`\r\n- `logging`\r\n- `os`\r\n- `time`\r\n- `datetime`\r\n- `copy`\r\n- `threading`\r\n- `subprocess`\r\n- `folium`\r\n- `pandas`\r\n- `geopandas`\r\n- `ExifTool`\r\n- `watchdog`\r\n\r\n### Acknowledgments\r\n\r\nThanks to Phil Harvey and his excellent exiftool software.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A tool that uses exifdata to organise geolocated image files (e.g. drones images) into a geopackage file with associated metadata. Additional features, such as can also create a webpage with a leaflet map.",
    "version": "0.2.8",
    "project_urls": null,
    "split_keywords": [
        "exiftool",
        " drone",
        " geolocation",
        " photography",
        " photogrammetry",
        " metashape",
        " leaflet",
        " folium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b932095edc6e7a98737a27588f7d7db74c4c8b17f353ca879d4a70fef16a06d3",
                "md5": "74e35364b6adf748ffa0d886f10ba154",
                "sha256": "53c0997a4fb3084474946d22fffa72b1b09e205e959af82fef1a4832ab7bea7a"
            },
            "downloads": -1,
            "filename": "image_location_scan-0.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "74e35364b6adf748ffa0d886f10ba154",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 48863,
            "upload_time": "2024-09-11T23:35:21",
            "upload_time_iso_8601": "2024-09-11T23:35:21.635731Z",
            "url": "https://files.pythonhosted.org/packages/b9/32/095edc6e7a98737a27588f7d7db74c4c8b17f353ca879d4a70fef16a06d3/image_location_scan-0.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5b63dbbf4aeb4932b330da99b00f2e390d1c302116f10aed081daadd0ac79c5",
                "md5": "41533f2bf84bf4a5bc8686f22b5d42ea",
                "sha256": "40f61d6740ef3a1ca755e9be854ab1779fdd159ba2a560b11a225cdeaf1f91ed"
            },
            "downloads": -1,
            "filename": "image_location_scan-0.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "41533f2bf84bf4a5bc8686f22b5d42ea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 56247,
            "upload_time": "2024-09-11T23:35:26",
            "upload_time_iso_8601": "2024-09-11T23:35:26.023798Z",
            "url": "https://files.pythonhosted.org/packages/b5/b6/3dbbf4aeb4932b330da99b00f2e390d1c302116f10aed081daadd0ac79c5/image_location_scan-0.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 23:35:26",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "image-location-scan"
}
        
Elapsed time: 0.48684s