You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: