Documentation ¶
Index ¶
- func CreatePhotoThumbnail(db *gorm.DB, photo *entity.Photo)
- func CreateVideoThumbnail(db *gorm.DB, photo *entity.Photo)
- func GarbageCollector()
- func LabelPhoto()
- func RunFaceDetect()
- func RunPhotoWorkflow(db *gorm.DB, photo *entity.Photo)
- func UpdatePhotoWithReadableLocation(db *gorm.DB, photo *entity.Photo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePhotoThumbnail ¶
CreatePhotoThumbnail takes a photo, creates a 200x200 thumbnail and saves it to the photo_storage/thumbnails/ directory. It also rotates the thumbnail as needed
func CreateVideoThumbnail ¶
CreateVideoThumbnail takes a video, and creates a 200x200 thumbnail and saves it to the photo_storage/thumbnails/ directory. It also rotates the thumbnail as needed
func GarbageCollector ¶
func GarbageCollector()
GarbageCollector waits for all tasks associated with a photo to be completed before removing the TEMP file
func LabelPhoto ¶
func LabelPhoto()
LabelPhoto takes a photo and runs it through the tensorflow object detection module. Updates database entry appropriately with labels
func RunFaceDetect ¶
func RunFaceDetect()
RunFaceDetect takes a photo, and finds all faces in the image. It creates a new "Box" for each found face
func RunPhotoWorkflow ¶
RunPhotoWorkflow runs the workflows sequentially
Types ¶
This section is empty.