Sony Ip camera opencv Java -


i trying take images ip cam (sony snc p1) motion detection using opencv java. stream in mjpeg format , using opencv's videocapture try retrieve image. can grab image video file using videocapture when try open camera doesn't work. can view stream on vlc ip address doesn't work on opencv. code use:

while (true){   videocapture camera1=newvideocapture("http://192.168.0.101/mjpeg");                       if (!camera1.isopened())                      system.out.println("cannot open file"); } 

what version using? in opencv 2.4 known bug. (fixed in later versions)

you can olso try adding dummy param, @ end, camera1.open("http://192.168.0.101/?dummy=video.mjpg"); because opencv videocapture expects extension @ end of file name.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -