bytedeco/javacv

Capture problem of some camera issue

Open

#1.310 geöffnet am 4. Okt. 2019

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (1.583 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (6.985 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I have a problem with some network camera (Panasonic wv-spn531). There is no problem for others camera like Dahua DH-SD22404T-GN-W-S2

One issue, when I initialize those with

FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(rtspUrl); and get frames with grabber.grabImage() I get content. But after several minutes grabber is blocking

Other issue, when I use the Interface FrameGrabber for also accessing web cam (or for hdmi input) there is no grabber.grabImage() so I use grabber.grab() like this:

FrameGrabber grapper; if (isRtsp) grabber = new FFmpegFrameGrabber(rtspUrl); else grabber = new OpenCVFrameGrabber(camId);

capturedFrame = grabber.grab()

Now I get IllegalArgumentException: Image dimensions must be positive (w,h > 0) for converting

Image image = jconverter.convert(capturedFrame); This also occurs only with Panasonic an I also get wrong frame rate of 15 instant of 30 fps. Dahua works without any problems.

Contributor Guide