You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes of course, you can write a server which get input and transmit to your browser using opencv for javascript.
You can also build a simple web video player and build server which should transmit video frame to the web application. I am working on it know.
I also see that you have check my code, thank. If it doesn't work for you, check your inputs. work
what are "206", "87.816 ms" and "1248" represent in ""GET /video.mjpg 206 87.816 ms - 1248""?
Thanks.
206 is the http status of what you ask.
In this case, video.mjpg did not exist. So, the browser is server is replying that because there is no such a source, it will be redirect to another address (Index.html) and giving a partial content.
the 1248 I think it is the amount of data it is partially showing.
Hi @drejkim
Thanks for sharing this project.
Can I write C++ code in openCV to view the video streaming instead of using web browser?
The C++ coding that i wrote as follow:
include <opencv/cv.h>
include <opencv2/highgui/highgui.hpp>
include <opencv2/imgproc/imgproc.hpp>
include
include <stdio.h>
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"
Can you give me some advice and idea? Thank you.
The text was updated successfully, but these errors were encountered: