OpenCV with CUDA in Python on Jetson

OpenCV with CUDA in Python on Jetson

JetsonHacks

7 месяцев назад

11,757 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@samham3408
@samham3408 - 09.11.2023 05:37

Very excelent, learned 10 things in 8 minutes without reading a mile of wiki kak. More.... MORE!

Ответить
@MICKEYESS
@MICKEYESS - 08.01.2024 00:22

Hey Jim, great tutorial, I got it to build on Orin Nx 16gb took 1hr50. I went to try the opencv zoo demos and it looks like it's been updated to 4.9 about a week ago. I can't see the 4.8 version. Would you have a link to the 4.8 version? Thanks.

Ответить
@thanhndltt
@thanhndltt - 19.11.2023 06:34

Hi Do you know how to fix this?

It fails with the following output:

Change Dir: /tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_2b753/fast"
/usr/bin/make -f CMakeFiles/cmTC_2b753.dir/build.make CMakeFiles/cmTC_2b753.dir/build
make[1]: Entering directory '/tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2b753.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_2b753.dir/testCCompiler.c.o -c /tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp/testCCompiler.c
/tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp/testCCompiler.c: In function ‘main’:
/tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp/testCCompiler.c:11:1: internal compiler error: Segmentation fault
{ (void)argv; return argc-1;}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMakeFiles/cmTC_2b753.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2b753.dir/testCCompiler.c.o' failed
make[1]: * [CMakeFiles/cmTC_2b753.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory '/tmp/build_opencv/opencv/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_2b753/fast' failed
make: * [cmTC_2b753/fast] Error 2




CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:113 (enable_language)


-- Configuring incomplete, errors occurred!
See also "/tmp/build_opencv/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/build_opencv/opencv/build/CMakeFiles/CMakeError.log".
make: * No targets specified and no makefile found. Stop.
make: * No rule to make target 'install'. Stop.

Ответить
@alexanderriosariz-xc8bn
@alexanderriosariz-xc8bn - 14.11.2023 02:31

Tengo error nvcc fatal : Unsupported gpu architecture 'compute_87'en Jetson Nano P3450 de 4gb
al intentar instalar OpenCV con CUDA en Python en Jetson Nano P3450 de 4gb

Ответить
@sungminpark8803
@sungminpark8803 - 11.11.2023 09:19

I had cuda with opencv 4.5.4 but the demo says that i need to upgrade to the latest opencv version. Do i have to rebuild the whole process (which took you 7 hours) again with 4.8.0?😢

Ответить
@kiennguyenbao4231
@kiennguyenbao4231 - 08.11.2023 13:06

Can you make a video on how to install mediapipe on jetson nano

Ответить
@Key_Capz_
@Key_Capz_ - 08.11.2023 05:50

I'm using cuda 12.2, but for some reason it wants to use drivers from cuda 11.4. So I deleted cuda 10, 11, 12.0 and now I only have 12.2 with 12.2 drivers. I ran a code to check it, and it's still using 11.4 drivers even after deleting it.

Ответить
@louieearle
@louieearle - 08.11.2023 00:39

I struggled with this, and wound up copying over the python files into the stock Python3 path. I prefer that to environmental variables, but not sure why... maybe just so every future process doesn't have some tiny table in its memory showing that I installed python files in a weird place. I hide my shame like a Boy named Sue.

Ответить
@sy2532
@sy2532 - 07.11.2023 22:56

Thanks Jim, exactly when I need it. I am still not sure how to figure out how to speed up inference .4 seconds per frame however, my gpu's are maxed out only getting 1 or 2 fps. just using standard Tensor model but was trying to learn how to use a TensorRT model and train it.

Ответить
@viewer8221
@viewer8221 - 07.11.2023 20:37

I love the way you explain concepts great video to help me with my senior project!

Ответить
@antoniodourado
@antoniodourado - 07.11.2023 20:08

Great video and work, as usual!

Ответить
@jameswho5517
@jameswho5517 - 07.11.2023 18:47

Thanks for sharing!

Ответить
@KILLDOZE-
@KILLDOZE- - 07.11.2023 16:31

how can i install this on virtual environment python3.8.
It installed on python 2.7 instead of python3.8.
"-D BUILD_opencv_python3=ON" command doesn't seem to work.

Ответить
@AshokKumar-mg1wx
@AshokKumar-mg1wx - 07.11.2023 16:21

Nice work

Ответить