![]() |
Java, OpenCV, & an Axis Camera
I grabbed the latest copy of the JDK, OpenCV, and Eclipse and I want to simply read in the live video stream from an Axis M1013 camera and display it.
I've spent a few hours at it and found plenty of other posts with code they used to connect to the camera but it appears to be no luck for me. Here's what I have: Code:
import org.opencv.core.Core;Code:
Welcome to OpenCV 2.4.10.0I can use that url in VLC to view the live stream, so I am of the belief that the camera is correctly configured and the network is properly set up. Suggestions greatly appreciated. |
Re: Java, OpenCV, & an Axis Camera
Try waiting a few seconds between calling capture.open(); and checking to see if it's open. This sort of process can take a few seconds to finish up.
|
Re: Java, OpenCV, & an Axis Camera
I polled the isOpened() command for a while, and added a delay after the open, same result.
The open() command returns false, is that normal? I also set up a test in python, with the same results. |
Re: Java, OpenCV, & an Axis Camera
As an update, I found this chunk of code, and it showed the video feed:
http://www.chiefdelphi.com/forums/sh...96&postcount=3 Although that snippet is in python, that's one step closer to solving the mystery here. I still want to know how to use the opencv VideoCapture class so that I can program in Java, suggestions very much appreciated. |
Re: Java, OpenCV, & an Axis Camera
The solution for python was on:
https://stackoverflow.com/questions/...11998#24211998 But I still need a java solution.... Any help would be appreciated. |
Re: Java, OpenCV, & an Axis Camera
I finally have it working in Java and python. I simply copied opencv/sources/3rdparty/ffmgeg/opencv_ffmpeg_64.dll to c:\windows\system32\opencv_ffmpeg2410_64.dll
and ran the java application and it worked as expected~! |
| All times are GMT -5. The time now is 22:39. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi