- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi everyone,
I am trying to do some processing on video being streamed from an Edi-Cam server (https://github.com/drejkim/edi-cam GitHub - drejkim/edi-cam: Video streaming on Intel Edison ) which is written in nodejs.
Is it possible for me to capture video stream from Edi-Cam Server using C++ in openCV?
The C++ coding that i wrote as follow:
# include
# include
# include
# include
# include
using namespace std;
using namespace cv;
int main()
{
Mat frame;
namedWindow("video", 1);
VideoCapture cap(" http://192.168.8.102:8080/video.mjpg");
if(!cap.isOpened())
{
cout<<"Camera not found"<<endl;
getchar();
return -1;
}
while ( cap.isOpened() )
{
cap >> frame;
if(frame.empty()) break;
imshow("video", frame);
if(waitKey(30) >= 0) break;
}
return 0;
}
When running the C++, it does not show me the video and show me "Camera not found".
However, in Intel Edison terminal, it shows:
"GET /video.mjpg 206 87.816 ms - 1248"
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Yeong,
We realized that this case is a duplicate of this other thread https://communities.intel.com/thread/106958 https://communities.intel.com/thread/106958. We are going to close this case and help you in the other thread.
Have a nice day!
Regards,
-Leonardo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hello Yeong,
I'm moving this thread from Wireless to the Edison support community.
Kind regards,
Carlos A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Yeong,
We realized that this case is a duplicate of this other thread https://communities.intel.com/thread/106958 https://communities.intel.com/thread/106958. We are going to close this case and help you in the other thread.
Have a nice day!
Regards,
-Leonardo

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page