Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open CV distributed with openpnp can't load image from a IP camera #90

Closed
gevant opened this issue Mar 13, 2023 · 1 comment
Closed

Comments

@gevant
Copy link

gevant commented Mar 13, 2023

Using: VideoCapture class and camera.open("udp://0.0.0.0:1111"), Videoio.CAP_FFMPEG);

Getting:
CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.6.0) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\videoio\src\cap.cpp:201: error: (-2:Unspecified error) could not open 'udp://xxxx' in function 'cv::VideoCapture::open'
]
at org.opencv.videoio.VideoCapture.open_0(Native Method)
at org.opencv.videoio.VideoCapture.open(VideoCapture.java:222)
....

On Windows 10

At the same time on a same machine, a manually copied original OpenCV jarfile and dll when used without maven and with "-Djava.library.path=xxx" connects to the ip camera without issues and receives video.

I validated openCV by trying to load png test image to the Mat with Opencv from file with no issues before getting exception trying open camera.

Same JDK 18 is used in both cases.

The only difference is
opencv_videoio_ffmpeg460_64.dll is missing in the jarfile
Is it possible to add it to the maven distribution, it is quite popular use case to get video feed

@vonnieda
Copy link
Member

Looks like this is because it is trying to use ffmpeg to capture video, and we do not currently ship ffmpeg.

I'll close this as a duplicate of #74. Please follow that issue for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants