How yyegor/vision_api works
This repository is a photo-cataloguing and enrichment application: a batch updater scans image folders, extracts file metadata, stores records, and adds visual labels and safety/location metadata. A separate, older Django polls app provides question, choice, voting, and frequent-label database functionality. The batch workflow is supported by the updater and connector excerpts; database and external-service details are shown where calls are visible. The polls app is a distinct branch, not shown as wired into the photo catalogue’s web interface.
Main entry points: files_updater.py Batch updater · glob.py Folder scanner · database_connector.py Catalogue connector · labeling.py Image analysis
Components 18
Photo ingestion
- Batch updater
files_updater.py - Folder scanner
glob.py - ExifTool wrapper
exiftool.py - Photo settings
config_t.py
Metadata enrichment
- Image analysis
labeling.py - GPS geocoding
geo_tags.py
Catalogue storage
- Catalogue connector
database_connector.py
Legacy web app
- Polls DB access
olddjango_project/my_project/polls/code/database_connector.py - Poll URL routing
olddjango_project/my_project/polls/urls.py - Poll views
olddjango_project/my_project/polls/views.py - Poll models
olddjango_project/my_project/polls/models.py - Poll templates
olddjango_project/my_project/polls/templates/polls
Other components
- Operator
- ExifTool process
- Google Vision
- Google Maps
- MySQL catalogue
- Web user
Connections 19
- Operator → Batch updater: starts batches
- Batch updater → Folder scanner: scans folders
files_updater.py - Folder scanner → ExifTool wrapper: reads RAW metadata
glob.py - ExifTool wrapper → ExifTool process: runs process
exiftool.py - Folder scanner → Photo settings: uses tag rules
glob.py - Batch updater → Catalogue connector: stores file data
files_updater.py - Batch updater → Image analysis: requests labels
files_updater.py - Batch updater → Folder scanner: reads folder tags
files_updater.py - Image analysis → Photo settings: uses image limits
labeling.py - Image analysis → Google Vision: sends images
labeling.py - Batch updater → Catalogue connector: stores labels
files_updater.py - Catalogue connector → MySQL catalogue: calls procedures
database_connector.py - Catalogue connector → GPS geocoding: geocodes GPS
database_connector.py - GPS geocoding → Google Maps: requests geocoding
geo_tags.py - Web user → Poll URL routing: requests pages
- Poll URL routing → Poll views: routes requests
olddjango_project/my_project/polls/urls.py - Poll views → Poll models: queries and updates
olddjango_project/my_project/polls/views.py - Poll views → Poll templates: renders pages
olddjango_project/my_project/polls/views.py - Polls DB access → MySQL catalogue: calls label procedure