{"id":20348610,"url":"https://github.com/alejoduarte23/image_exif_sorter","last_synced_at":"2026-05-15T13:34:37.816Z","repository":{"id":230910822,"uuid":"777933799","full_name":"AlejoDuarte23/Image_EXIF_Sorter","owner":"AlejoDuarte23","description":"Organize high payloads of images into folders based on the EXIF metadata.","archived":false,"fork":false,"pushed_at":"2024-07-26T17:43:28.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-02T02:47:16.600Z","etag":null,"topics":["os","pandas","pillow","shutil-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlejoDuarte23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-26T19:19:40.000Z","updated_at":"2024-07-26T17:43:31.000Z","dependencies_parsed_at":"2024-11-14T22:21:37.612Z","dependency_job_id":"1e7fe21e-a823-4de1-9383-c8c58a9cfc69","html_url":"https://github.com/AlejoDuarte23/Image_EXIF_Sorter","commit_stats":null,"previous_names":["alejoduarte23/image_sorter_context_cam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlejoDuarte23/Image_EXIF_Sorter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FImage_EXIF_Sorter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FImage_EXIF_Sorter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FImage_EXIF_Sorter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FImage_EXIF_Sorter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlejoDuarte23","download_url":"https://codeload.github.com/AlejoDuarte23/Image_EXIF_Sorter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoDuarte23%2FImage_EXIF_Sorter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["os","pandas","pillow","shutil-python"],"created_at":"2024-11-14T22:21:18.797Z","updated_at":"2026-05-15T13:34:37.795Z","avatar_url":"https://github.com/AlejoDuarte23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Sorter\n\nThis project processes images that have EXIF metadata, sorts them into folders, and exports the information to JSON and Excel formats.\n\n## Instructions\n\n1. **Download and extract the STR11.zip file**:\n   - Download the file from the following link: [STR11.zip](https://drive.google.com/file/d/1yMk2RoYU1pK2jOYphvsUKoS_Z1X3TN1q/view?usp=drive_link)\n   - Extract the contents of the ZIP file.\n\n2. **Place the STR11 folder**:\n   - Place the extracted STR11 folder in the same directory as this repository.\n   - If the extracted data is not in the same foler type the complete path in the functions.\n\n3. **Create a new file called `example.py`**:\n   - Create a new file named `example.py` in the same directory as this repository.\n\n4. **Add the following code to `example.py`**:\n\n   1. **Import necessary functions**:\n      ```python\n      from create_images_folders import (\n          main_complete_walk_root,\n          save_image_info_to_json,\n          move_images_to_folders,\n          sort_by_defect,\n          create_info_dict,\n          dict_to_excel\n      )\n      ```\n\n   2. **Process the STR11 dataset and generate the initial JSON file**:\n      ```python\n      # Process the STR11 dataset and generate necessary files\n      info_dict = main_complete_walk_root('STR11')\n      save_image_info_to_json(image_info=info_dict, json_file_path=\"STR11_info_dict.json\")\n      ```\n\n   3. **Move images to folders based on the initial sort**:\n      ```python\n      move_images_to_folders(image_info = info_dict, base_folder = 'First_Sort')\n      ```\n\n   4. **Sort images by defect type**:\n      ```python\n      sort_by_defect(source = 'First_Sort', destination = 'STR11_sorted_defects')\n      ```\n\n   5. **Manually copy the corrosion folder from `STR11_sorted_defects` to `Corrosion`**:\n      - Perform this step manually after running the above code.\n\n   6. **Create an information dictionary for the corrosion images**:\n      ```python\n      sorted_dict_corrosion = create_info_dict(base_path = r\"Corrosion\")\n      ```\n\n   7. **Save the corrosion information to a JSON file**:\n      ```python\n      save_image_info_to_json(image_info=sorted_dict_corrosion, json_file_path=\"STR11_Corrosion.json\")\n      ```\n\n   8. **Export the corrosion information to an Excel file**:\n      ```python\n      dict_to_excel(deteriorated_data = sorted_dict_corrosion, excel_path = 'Corrosion.xlsx')\n      ```\n\n\n## Notes\n\n- Ensure you have the `create_images_folders` module available in the same directory as your script.\n- After running the script, manually copy the `corrosion` folder from `STR11_sorted_defects` to `Corrosion` before running the final processing steps.\n\n## Requirements\n\n- Python 3.x\n- Pip install requirements.txt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoduarte23%2Fimage_exif_sorter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejoduarte23%2Fimage_exif_sorter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoduarte23%2Fimage_exif_sorter/lists"}