Fetch Raspberry PI Camera in Qt Widget Desktop Application with Open CV
-
Hello guys.
I want to design an app based on Qt Widget in Windows 10.
This app should read raspberry pi camera which is connected to the same PC that runs Qt Widget app.
I also want to use Open CV in Qt Widget on PC for doing some processing stuff on raspberry camera.
1_Can anyone suggest me what I need to do in Qt Widget app to read raspberry pi camera?
2_Which cable should I use for the connection between raspberry pi and PC?
3_Can I read raspberry pi camera with Open CV show it in a Qt Widget app?
Thank you so much! -
Hi,
Do you mean stream the camera from the Pi over to your PC ?
What camera is that ?
-
@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 -
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.
-
What aspect do you want to control ?
-
Since you want to do remote control, then you can implement a REST API for that for example.