Comments (6)
I'm not sure why the arch meta is wrong on Docker Hub. It's built on a Tegra device I use for the purpose. I think the issue is with the base image of JetPack 4.3. I would guess the same cause you did (qemu-user-static etc...). The 4.4 meta is correct, so it appears Nvidia fixed it. If for some reason mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0
doesn't run on Tegra, feel free to re-open this.
from nano_build_opencv.
I'm trying to find a docker image/build that details a build that runs with opencv
I've tried yours and got the dreaded segmentation fault (core dumped) error sigh
Steps to reproduce:
docker run -it mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0 /bin/bash
python3
import cv2
I'm trying to run it on a nano with r32.3.1 and the reason why I'm doing it in docker containers is because I got a docker-compose microservices approach going.
I've actually been dancing around this issue for some time and its quite vexing. Do you have a personal email/contact I could use? I've read your code and seen a lot of your solutions on the devtalk forums and would like to engage you on a professional basis (or at least contribute something) for some deploy ops, but haven't found a point of contact. I can be contacted on my @gmail.com
from nano_build_opencv.
That can happen when you don't specify --runtime nvidia
when you docker run
.
Example run:
(sudo) docker run --user $(id -u):$(cut -d: -f3 < <(getent group video)) --runtime nvidia -it --rm mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0
Depending on the compose version, you may not be able to use runtime
. I think 2.x supports it while 3.x does not. In 3.x you can specify gpus as resources (only with swarm), but this is not available for the tegra nvidia runtime yet.
note: The --user
flag is just so you don't run as root (the default in Docker).
from nano_build_opencv.
@lackdaz Re: contact: [email protected]
from nano_build_opencv.
Ok, I hang my head in shame because I've made this error before. I probably should get the solution tattooed
I'll be contacting you
from nano_build_opencv.
Ok, I hang my head in shame because I've made this error before.
@lackdaz
No worries. It happens to me all the time. You're not the first to have that error. I put the example run in the readme, but I think a lot of people skip it. I should probably add an entrypoint that checks for the gpu device and throws a descriptive error if it's not mounted.
from nano_build_opencv.
Related Issues (20)
- /tmp/build_opencv/opencv_contrib/ is not available in docker image HOT 10
- boostdesc_bgm.i: No such file or directory HOT 2
- I want to Install opencv dnn module to python3 but when i run script it automatically got installed to python2.7 HOT 3
- this is support opencv in c++? HOT 1
- Build OpenCV with CUDA on Jetson AGX Xavier HOT 4
- Orin (Ubuntu 20.04) Missing v4l2ucp HOT 1
- Building OpenCV for Orin System HOT 2
- Script not working with Python 3.7.5 HOT 1
- Undefined reference to glXGetProcAddressARB() HOT 1
- Logging is preventing multiple jobs HOT 2
- Not an Issue but you saved my life. Thank you. Drop a star all. HOT 1
- In jtop still cuda support No HOT 3
- Unsupported gpu architecture 'compute_87' HOT 1
- Cannot generate make file - "Configuration Incomplete" HOT 2
- jetson nano errors to install it HOT 5
- Can not install it in docker HOT 1
- After install, opencv version displayed by 'jtop' and python script by 'cv2.getBuildInformation()' doesn't match. HOT 1
- fatal: unable to access 'https://github.com/opencv/opencv.git/': Failed to connect to github.com port 443: θΏζ₯θΆ ζΆ HOT 1
- Makefile:162: recipe for target 'all' failed
- Failed to build : Package 'libavresample-dev' has no installation candidate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano_build_opencv.