Skip to content

Classifies raw photos and videos from cameras and smartphones to simplify naming and uploading for search.

License

Notifications You must be signed in to change notification settings

AlexanderMakarov/classify_camera_files

Repository files navigation

classify_camera_files

Classifies raw photos and videos from cameras and smartphones to simplify naming and uploading for search.

How To Use in GUI

Execute classify_camera_files.exe on Windows or classify_camera_files on Unix. Should appear GUI (with Russian or English locale).

Note that to choose folder via "Browse" buttong it is necessarily go into it and only next press "OK".

How To Work in console

  • (first time) python3 -m venv venv in root folder of repo.
  • (after restart) . venv/bin/acitvate on Unix/Mac and venv\Scripts\activate.bat on Windows.
  • (first time or after pull) pip3 install -r requirements.txt
  • For Debian sudo apt-get install python3-tk, for Windows Tkinter is packed into Python installer.
  • python3 classify_camera_files.py -h
  • Next see what is better way to use it.

How To Build Executable file (both Windows and Unix)

  • https://www.python.org/downloads/ and https://docs.python.org/3.8/library/venv.html
  • Clone/copy repo on target OS.
  • python3 -m venv venv in root folder of repo.
  • . venv/bin/acitvate on Unix/Mac and venv\Scripts\activate.bat on Windows.
  • pip3 install -r requirements.txt.
  • pyinstaller --clean --onefile classify_camera_files.py (without '--clean' if first time).
  • Open "classify_camera_files.spec" and in "exe = EXE(..." line (last) change "console=False". Save file.
  • pyinstaller classify_camera_files.spec
  • Resulting executable file will be placed in "dist" folder.
  • Try execute from not "dist" folder! Important to ensure that all paths are relative.

Roadmap/Issues

  • Simple classification strategy by time + files number
    • MVP
    • Localization
    • UI to choose folders
    • git repo
    • UI with progress
    • UI with actions
    • Bug: Xterm confusing
    • Bug: UI freezes during copying
    • Need progress bar
    • Need ETA for copying in UI
    • Enable copy-into-clipboard from log widget
    • Need alarm/signal that job finish
    • Bug: buttons functions are unclear (https://stackoverflow.com/a/56749167/1535127)
    • Bug: ! Video creation time is wrong (equal job start time)
    • UI with fine tuning (really need?)
    • Faster parsing (really need?)
    • Explain actions in console
  • Parse tags from video
  • Classify with ML like https://www.pyimagesearch.com/2017/03/20/imagenet-vggnet-resnet-inception-xception-keras/

About

Classifies raw photos and videos from cameras and smartphones to simplify naming and uploading for search.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages