Fetch Raspberry PI Camera in Qt Widget Desktop Application with Open CV
-
@SGaist I don't know exactly if streaming is the best approach.
The camera is this:
https://www.amazon.com/Raspberry-Pi-Camera-Module-Megapixel/dp/B01ER2SKFS
I want to connect the raspberry pi to a PC (with USB or LAN or ... ) and then fetch its camera data in an Qt Widget app and do some processing stuff on...
Is streaming a good way for doing this in real time?
Thank you so much! -
Why not have a camera directly connected to you computer ?
-
@SGaist AFAIK webcams have low resolution for our purpose.
So we decided to use Raspberry pi with its high res camera.
Also our first development was based on raspberry pi itself and we wrote a program to run on Raspbian.
But now we need an app on windows so that common people can easily work with. -
@Nima-Ghorab
Hi
Maybe this could be interesting
https://hackernoon.com/spy-your-pet-with-a-raspberry-pi-camera-server-e71bb74f79ea -
@mrjj Thank you so much it's very useful.
How can I get this data with Open CV and show inside Qt widget app?
Is it streaming ? -
Yes it is. It's explained in that article.
As for OpenCV, see this question in their forum.
-
@SGaist Thank you so much!
Just I have one more question.
If I want to control raspberry pi camera on my PC Qt widget app. how can I do that?
For example I want to modify raspberry pi camera ISO or brightness.
Should I write a C++ program on raspberry pi to listen to specific port so that I can send information from PC to it or is there much simpler and cleaner way for doing this?
Thank you so much! -
There are several possibilities, the network looks like one of the simpler to implement.
-
@SGaist Thank you so much!
So would you suggest me to write a client/server app to control raspberry camera from PC? -
What aspect do you want to control ?
-
@SGaist Control all aspect of raspberry pi camera including brightness, ISO, resolution, sharpness, contrast, saturation, video stabilization, exposure, shutter speed and etc...
-
Since you want to do remote control, then you can implement a REST API for that for example.