-
Notifications
You must be signed in to change notification settings - Fork 162
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
One source and multiple processors on same device ? #63
Comments
Hi @kpoman, There is a pair of example PUB/SUB programs in the You can have as many programs as you wish running as Receiver(SUB) on the same RPi. All of them must specify the same localhost (127.0.0.1) address and the same port number. As a test, I started 3 terminal windows on a RPi that had a working camera module attached. I activated the same virtual environment in each terminal window. In the first terminal window, I ran So, to start your experiments, try to repeat what I did and run the example programs in 3 terminal windows on the same RPi as I did. Let me know if that works for you. You could then create your own programs for receiving and processing images using the PUB/SUB example programs as a model. |
Awesome Jeff, exactly what I was imagining. I am trying to build a simple access control using license plate, face and fingerprint recognition with multiple cams on a single RPi3. The device is not very powerful but being able to do as much as possible on it (and with the help of a video stream broadcasted locally) + some computer vision processors on different cores, then, at the end, every detected event submitted via some messaging like RabbitMQ to ensure at least the delivery of the detected event (the crucial information). |
Oh and btw, the cam able to do facial recognition should also be able to detect qrcodes and eventually (if the cam resolution is enough) read the fingerprint. I think I should do some tagging as soon as possible in order for the post-processors (finger, face landmarks, qrcode reader, etc.) to evaluate/trigger only interesting images. Maybe put some opencv on the pub side and add some tag as the message ? I mean, if I broadcast images + tags, any subscriber will have to retrieve the full stuff and use Pi ressources (even if I discard the image on processors not concerned by a specific tag) ? |
Hello,
I am curious on a simple setup where an RPi captures from a device and publishes to local processors (each would do a specific, independent task, say P1 detect face, P2 detect QRCode, etc.). As PUB/SUB uses a broadcast on a specified port, this wouldnt be the case as all processors are python processes running on the same host (each on their own cpu core for example). How can this be accomplished here ?
Thank you for any tip !
The text was updated successfully, but these errors were encountered: