Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiprocessing engine #188

Closed
wants to merge 10 commits into from
Closed

Conversation

MateoLostanlen
Copy link
Member

@MateoLostanlen MateoLostanlen commented Apr 19, 2024

I propose to use multiprocessing to analyze our images. The code isn't very well thought out at the moment. We have a 30s window, so we allow 30/nb_cameras seconds per camera. This is more than enough time for capture and analysis, but not enough for sending images. This is particularly true when 5 images need to be sent at the same time for a new alert.
I therefore suggest capturing and analyzing images from each camera using multiprocessing to save time, then using all the remaining time to send potential alerts.
In this way, we can analyze more cams with a single pi, which will be relevant for the use of cam 360, but we should also no longer have any media created in the api without an associated image, due to failed sending.

@MateoLostanlen MateoLostanlen requested a review from a team April 22, 2024 10:10
@MateoLostanlen MateoLostanlen self-assigned this Apr 22, 2024
@MateoLostanlen MateoLostanlen added the type: enhancement New feature or request label Apr 22, 2024
@MateoLostanlen MateoLostanlen deleted the multiprocessing_engine branch June 12, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant