workflow

package
v0.0.0-...-8cdc3bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePhotoThumbnail

func CreatePhotoThumbnail(db *gorm.DB, photo *entity.Photo)

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

func CreateVideoThumbnail(db *gorm.DB, photo *entity.Photo)

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

func RunPhotoWorkflow(db *gorm.DB, photo *entity.Photo)

RunPhotoWorkflow runs the workflows sequentially

func UpdatePhotoWithReadableLocation

func UpdatePhotoWithReadableLocation(db *gorm.DB, photo *entity.Photo)

UpdatePhotoWithReadableLocation takes a photo, and uses the geo-coords to find a human readable address and updates the db entry appropriately

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL