Skip to content

aiventures/tools_cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command Line Tools

This repo mainly contains usages of the modules that were created in the tools repo for personal usage and image metadata processing.

Usage: python <file>, if arguments are supported, program is listed as python <file> (--h)

[100] Templates

  1. argparse_template.py (--h)
    Boilerplate template for argparse arguments.

  2. _paths_template.py
    Template to store paths used in scripts

  3. _paths_import_template.py
    Template to access paths from _paths_template

  4. _paths_display.py
    Read out path definitions from _paths_template.py

[200] Image Processing

[201] Prerequisite

  • EXIFTOOL.exe used for reading camera specific metadata, needs to be found in Windows path (EXIFTOOL)
  • IMAGEMAGICK.exe used for resizing images, needs to be found in Windows path (IMAGEMAGICK)
  • Some parts for reading EXIF might require Pillow (Installation) NOTE It might be necessary to define complete path ("c:/.../") to executables in in paths template.

[220] Image Processing Preparation

  1. img_meta_copy_meta_files.py
    copies metadata files for image processing

  2. img_metadata_rename_files.py
    renames copied metadata files in umo folder to be used for processing

  3. img_move_img_manual.py
    If image metadata doesn't contain lens information, it will be considered a manual lens and be moved to a separate folder

[240] Image Processing Tools

  1. img_file_rename.py (--h) (uses img_file_info_xls.py)
    Renames Image files based on EXIF data (supports jpg and images from panoramic cameras).

  2. img_rename_original_filenames.py (replaced by img_file_rename.py)
    Utility to rename original filenames (signature three letters and five digits).

  3. img_rename_original_filenames_pano.py (replaced by img_file_rename.py)
    Utility to rename original filenames:
    PANORAMA FILES
    (signature IMG_YYYYMMDD_HHMMSS_00_###_*.(filetype) )
    STANDARD OUT OF CAM FILES
    WWWDDDDD.(filetype) (three letters five digits)

  4. img_copy_pano_metadata.py
    copying metadata from insp panorama files to exported image files (for example taken screenshots do not contain metadata)

  5. img_metadata_copy_from_img.py
    copies image metadata from one source file to other files belonging to a file group

  6. img_metadata_process_cwd.py
    complete image metadata processing workflow

  7. img_file_info_resize_v2.py (--h) (uses img_file_info_xls.py)

  • Resizes Images using IMAGEMAGICK
  • Can additionally be used to create file containing Image descriptions based on EXIF data
  1. img_change_metadata.py
    If image metadata doesn't contain lens information, it will be considered a manual lens and lens image metadata (like focal length and lens model) will be added into metadata.

[260] Image Collateral File Post Processing / Clean Up

  1. img_collateral_file_cleanup.py
    Utility to delete collateral files in 1st level subfolders of a directory

  2. img_file_info_delete_metadata.py
    deleting metadata folder

  3. img_delete_subfolders.py
    Deleting subfolders

  4. img_delete_pano_files.py
    Utility to delete panorama files in a directory: check if there is a single dng file present
    (assuming the jpg or other file were deleted) gets directory from clipboard

[280] Image Reporting Tools

  1. img_file_info_process.py
    saves subfolder information as json and xls

  2. img_file_info_xls_exiftool.py
    Utility to read out important exif metadata using exiftool

[3] File Processing

[310] Prerequisite

  • Reading out Windows shortcuts needs win32com module (pip install -U pypiwin32)

[320] File Processing Tools

  1. file_info.py (--h)
    ** Reads all files in given path. In case content can be read, it will be output to console (can be usefiul in combination with grep command to search for text in files). Uses file_module.py

  2. files_delete_from_stem.py
    Utility to delete files that are not part of a reference snippet file name list Snippet will consider only part of a filename (the first compare_len characters)
    Use Case: Files with same prefix but different file name endings can be deleted as well, even different subfolders, based on a reference list of files.

[400] Other Tools

  1. video_series_rename_v2.py (uses video_rename_v2.py)
    Renames downloaded video files from public german tv channels downloaded with the https://mediathekview.de tool.
    Parses both text files and file names to check out for rename of files into series and episodes. Also generates json sidecars containing the additional data contained in the text files

  2. gpx_rename.py
    rename gpx files according to their first occurence of track name.place this file inside directory with the gpx file (tbd)\

  3. health_data.py
    Util file that helps to transform data from my health app into a single data frame (to be used for insert into my XLS file)

About

the tools features brought into work

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages