Ask Your Question
0

I would like to stream VDO from IP camera app by using Java code

asked 2017-01-23 20:07:32 -0600

Now I can stream my VDO via IP camera app via android phone to my laptop by using the web browser or VLC program to watch live VDO from Http. Then I would like to stream it to my program. Anyone, please suggest me how to make it?
Note: Each frame of streaming VDO will be used for camera calibration and Draw Region of Interest (ROI).

Sorry for my English as well.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-24 03:31:18 -0600

pi-null-mezon gravatar image

In opencv, you can simply try to open VideoCapture instance with the stream URL. For the instance if we have ip cam that stream with URL tcp://192.168.1.1:8080 do:

...
cv::VideoCapture _videocapture("tcp://192.168.1.1:8080");
if(_videocapture.open()) {
  //Your processing code
} else {
    std::cerr << "Can not open video stream!"
}
...
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-23 20:07:32 -0600

Seen: 358 times

Last updated: Jan 24 '17