Problem in Reinstall OPENCV on AGX Orin Platform
Because the original opencv in JetPack 5.0.1 does not open Gstreamer function, I need to reinstall opencv by make install following the method on opencv.org. the new version opencv can affect python2 but the python3 still keeps the old opencv version. I try remove python3-opencv and remove libopencv and their dependences. It doesn’t work. “import cv2” still works well in python3! So how can i change the version for python3 in JetPack 5.01?
/////////////////////////////////////////////////////////////////////////////////
After intstalling the opencv, Export the opencv lib path like:
add path “export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.8/site-packages/cv2/python-3.8” in .bashrc. the problem above can be solved.
The new problem comes. Gstreamer cannot run correctly in python opencv, the videocapture path is:
I have tried this script. The result is the same: python2 is the new version opencv 4.6.0-dev and python3 is the old one opencv 4.6.0-dirty. Is there any other solution?