ChatSam / Weapons_detection_immich

Weapons detection feature based on the immich self-hosted photo and video hosting platform.
https://immich.app
MIT License
2 stars 2 forks source link

Change Weapon Detection Response Object #30

Closed thelastmattstanding closed 5 months ago

thelastmattstanding commented 5 months ago

Currently images are sent as base-64 images. Additionally, with a desire to send videos to the front-end for rendering, it may be wise to use a different method to return images and videos for consumption.

Proposal:

  1. Mount a shared volume between ML and backend server.
  2. Store predicted results (image or video) from ML model to shared volume and pass file paths to image and video in response.
thelastmattstanding commented 5 months ago

closed with 8badd161cf70a56ddb0a6a2bd897d9f51ea29c0a and 1c68f5a97dc1a3085fcb8c9c1f0f41526e589663.