jetsonhacksnano / buildopencv Goto Github PK
View Code? Open in Web Editor NEWScripts for build OpenCV on the NVIDIA Jetson Nano Developer Kit
License: MIT License
Scripts for build OpenCV on the NVIDIA Jetson Nano Developer Kit
License: MIT License
hi, is there any update for jetpack 4.4 yet with the latest OpenCV? for some reason my copencv does not support cuda ..
jetson@jetson-agx:~/jetsonUtilities$ ./jetsonInfo.py
NVIDIA Jetson AGX Xavier [16GB]
L4T 32.4.3 [ JetPack 4.4 ]
Ubuntu 18.04.5 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.2.89
CUDA Architecture: 7.2
OpenCV version: 4.1.1
OpenCV Cuda: NO
CUDNN: 8.0.0.180
TensorRT: 7.1.3.0
Vision Works: 1.6.0.501
VPI: 0.3.7
Should be:
$ gcc -std=c++11 $(pkg-config --cflags opencv) $(pkg-config --libs opencv) gstreamer_view.cpp -o gstreamer_view -lstdc++ -lopencv_core -lopencv_highgui -lopencv_videoio
Describe the issue
When I am trying to build gstreamer_view.cpp using the given command I received the following error:
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing opencv.pc' to the PKG_CONFIG_PATH environment variable No package 'opencv' found Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing
opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
gstreamer_view.cpp:7:10: fatal error: opencv.hpp: No such file or directory
#include <opencv.hpp>
^~~~~~~~~~~~
What version of L4T/JetPack
L4T/JetPack 4.6
What version of OpenCV
OpenCV version:
Python Version
Python version if applicable:
To Reproduce
Steps to reproduce the behavior:
For example, what command line did you run?
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
like your youtube blog for the jetson nano,
so i thought i post the link i found to another script.
may you want to cross-check if there is something clever to steal?
๐
https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.0.0_Nano.sh
๐
regards,tozett
HI.
How to build/compile Opencv master branch instead of specific version e.g 4.0, 4.1.1.?
Note:
platform: jetson nano latest image.
Hello- long time listener, first time caller.
I am using your build script on my Jetson Nano with a raspberry Pi 2 camera, and have noticed about 500 ms of lag between real life and the camera feed. I have seen others discussing the issue, but have not seen solutions posted thus far so I figured I'd open this as an issue.
Any suggestions on what to tweak in order to bring the camera lag back down to what is was previously (which was the default opencv 4 that came with the Jeston Nano)? The default imshow window viewer seems to be different between the two versions, this could be one possible reason for the lag?
Thank you for your help
So I'm one of those folks trying to use the packaged installer with the magic flag turned on, e.g:
https://stackoverflow.com/questions/60081474/install-opencv-from-deb-file-in-docker
What I did:
FROM nvcr.io/nvidia/l4t-base:r32.3.1 as base
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /usr/src
RUN apt-get update && apt-get install -y --no-install-recommends make g++
COPY ./deviceQuery ./deviceQuery/
RUN make -C ./deviceQuery
FROM nvcr.io/nvidia/l4t-base:r32.3.1 as develop
COPY --from=base /usr/src/deviceQuery/deviceQuery /usr/src/deviceQuery
COPY ./torch-1.4.0-cp36-cp36m-linux_aarch64.whl /usr/src/.
COPY ./torch-1.4.0-cp36-cp36m-linux_aarch64.whl /tmp/
COPY ./OpenCV-4.1.1-dirty-aarch64.sh /tmp/
WORKDIR /usr/src
RUN apt-get update && \
apt-get --yes install python3 python3-pip python3-wheel python3-numpy python3-scipy python3-dev \
libopenblas-base mlocate && \
sudo updatedb && \
python3 -m pip install -U pip && \
python3 -m pip install cython numpy /tmp/torch-1.4.0-cp36-cp36m-linux_aarch64.whl && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
/tmp/OpenCV-4.1.1-dirty-aarch64.sh --prefix=/usr/local/ --skip-license && \
rm *.whl
CMD ['tail -f /dev/null']
where I've copied in the installer OpenCV-4.1.1-dirty-aarch64.sh
after saving it from a build with the same l4t image in a different container.
running /tmp/OpenCV-4.1.1-dirty-aarch64.sh --prefix=/usr/local/ --skip-license
either in bash or during the build for the Dockerfile would move the binaries and lib files into its respective places in /usr/
or /usr/local
- I've tried both
Finally I ran sudo ldconfig
to update the python bindings
What I would expect
4) Running import cv2
in python3 would be successful, instead I get the dreaded segmentation fault error.
Python Version
3.6.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.