Please note that opencv4.0 is not NVIDIA release, so it should have nothing to do with jetpack version.
Hi
I succesfully installed OpenCV with this script.
But now I’m not able to run cv2.Videocapture anymore…
I got an error like this:
[ WARN:0] global /home/ivanflurina/JEP/script/opencv-4.1.1/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Don’t know whats’s wrong with gstreamer now… It worked fine with OpenCV 3.1.0 from Jetpack 4.2…
I have a similar problem. What can be the solutions?
Or maybe you know a possibility to add the opencv-contrib modules to the installed openCV version 3.3.1 from jetpack 4.2?
Please try to use these script.
I tried installing opencv on Jetson TX2 using quoted script.
I have encountered below errors.
Scanning dependencies of target pch_Generate_opencv_xfeatures2d
[ 74%] Generating precomp.hpp
[ 74%] Generating precomp.hpp.gch/opencv_xfeatures2d_Release.gch
[ 74%] Built target pch_Generate_opencv_xfeatures2d
[ 74%] Processing OpenCL kernels (xfeatures2d)
[ 74%] Building NVCC (Device) object modules/xfeatures2d/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_surf.cu.o
...
/opencv_contrib-4.1.1/modules/xfeatures2d/src/boostdesc.cpp:654:20: fatal error: boostdesc_bgm.i: No such file or directory
#include "boostdesc_bgm.i"
^~~~~~~~~~~~~~~~~
compilation terminated.
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:98: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/boostdesc.cpp.o] Error 1
CMakeFiles/Makefile2:7531: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Jetson TX2 OS ubuntu 18.04
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Any leads to resolve above errors?
or Alternate way to install opencv (version: 4.0+) on Jetson TX2 will be great?
Thank you.
.
.
.