node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

Index outside of bounds array when using IP Camera url

Open PierrickLozach opened this issue 8 years ago • 2 comments

When using var camera = new cv.VideoCapture("http://172.18.178.91/video/mjpg.cgi");, I get the following error:

2017-04-26 12:50:23.185 node[33052:9194346] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'

What is the correct way of opening an IP camera stream?

FYI, the stream is correct and works in a browser. It does require basic authentication though but I do not think this is what is causing this issue.

PierrickLozach avatar Apr 26 '17 16:04 PierrickLozach

@PierrickI3 Hi, are u solved this problem? and how about rtsp stream?

pzxie avatar Jan 11 '18 09:01 pzxie

@peizhuang unfortunately, I have moved on and I no longer work on this

PierrickLozach avatar Jan 13 '18 03:01 PierrickLozach