Code Monkey home page Code Monkey logo

buildopencv's People

Contributors

jetsonhacks avatar jetsonhacksnano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buildopencv's Issues

for jetpack 4.4

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

compiling master branch of OpenCV

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.

Using the build script OpenCV-4.1.1-dirty-aarch64.sh

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:

  1. Created a docker container with the following Dockerfile:
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.

  1. 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

  2. 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

Incorrect build command

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

500 ms camera lag

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

[BUG]

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.