5/30/2023 0 Comments Jetson tk1 startx![]() ![]() # Install dependencies for gstreamer stuffs $ sudo apt-get install libdc1394-22-dev libxine2-dev \ Libswscale-dev libv4l-dev libeigen3-dev \ # Install dependencies based on the Jetson Installing OpenCV Guide $ sudo apt-get install build-essential make cmake cmake-curses-gui \ # Update gcc apt package to the latest version (highly recommended) $ sudo apt-get install -only-upgrade g -5 cpp-5 gcc-5 # Upgrade all installed apt packages to the latest versions (optional) $ sudo apt-get update # Remove other unused apt packages $ sudo apt autoremove # Remove all old opencv stuffs installed by JetPack (or OpenCV4Tegra) $ sudo apt-get purge libopencv * # I prefer using newer version of numpy (installed with pip), so # I'd remove this python-numpy apt package as well $ sudo apt-get purge python-numpy Regarding the python matplotlibrc modifications below, refer to this StackOverflow thread for more details. I’d start by cleaning up older opencv packages and installing necessary dependencies for building opencv. Resolved: Matplotlib figures not showing up or displaying.Complete installation of JetPack-3.3 (or JetPack-3.2.1 or JetPack-3.1) on the target Jetson TX2.I was kind of reluctant to remove OpenCV4Tegra and re-build OpenCV by myself. After some research, I found the recommended solution to this problem was to re-compile OpenCV. It appeared that the pre-installed OpenCV4Tegra (2.4.13.1) only provided bindings for python2.7. When I started programming with python3 on Jetson TX2, I found that import cv2 did not work. update: I added installation steps for python2, as well as the resulting cmake configuration on my Jetson TX2. Install python3/python2 ‘matplotlib’ before building opencv (this is recommended by opencv’s official documentation). ![]() Using Qt/OpenGL backend instead of GTK (this resolves the ‘protobuf double free’ issue for caffe: reference) 4. Added more apt package clean-up steps at the beginning 3. update: Verified opencv-3.4.2 built and run OK under JetPack-3.3. If you are installing OpenCV on a Jetson Nano, or on a Jetson TX2 / AGX Xavier with JetPack-4.2, do check out the new post. update: Added the Installing OpenCV 3.4.6 on Jetson Nano post. How to Install OpenCV (3.4.0) on Jetson TX2 ![]()
0 Comments
Leave a Reply. |