# OpenCV on python with Orin AGX

**URL:** <https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177>\
**Category:** Jetson AGX Orin\
**Tags:** opencv\
**Created:** [October 25, 2024, 7:00pm UTC](https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177 "2024-10-25T19:00:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![woods.little](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@woods.little](https://forums.developer.nvidia.com/u/woods.little)\
**Post date:** [October 25, 2024, 7:00pm UTC](https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177/1 "2024-10-25T19:00:37Z")

</div>

Hey I’m trying to use Open CV version 4.9.0 on my Jetson Orin AGX dev kit. Using the JTOP command I’m able to see that the Jetson is saying that OpenCV version 4.9.0 is compiled with CUDA support. I then try and use python command v2.cuda.getCudaEnabledDeviceCount() but python and opencv are not able to find a cuda enabled gpu. Is there any fix for this?

---

<div class="post-metadata">

**Author:** ![carolyuu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/carolyuu/32/14043_2.png) [@carolyuu](https://forums.developer.nvidia.com/u/carolyuu)\
**Post date:** [October 25, 2024, 7:30pm UTC](https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177/2 "2024-10-25T19:30:11Z")

</div>

Hi,  
Here are some suggestions for the common issues:

#### 1. Performance

Please run the below command before benchmarking deep learning use case:

```auto
$ sudo nvpmodel -m 0
$ sudo jetson_clocks

```

#### 2. Installation

Installation guide of deep learning frameworks on Jetson:

- TensorFlow: [Installing TensorFlow for Jetson Platform - NVIDIA Docs](https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html)
- PyTorch: [Installing PyTorch for Jetson Platform - NVIDIA Docs](https://docs.nvidia.com/deeplearning/frameworks/install-pytorch-jetson-platform/index.html)  
We also have containers that have frameworks preinstalled:  
[GPU-optimized AI, Machine Learning, & HPC Software | NVIDIA NGC](https://catalog.ngc.nvidia.com/containers?filters=&orderBy=scoreDESC&query=l4t)

#### 3. Tutorial

Startup deep learning tutorial:

- Jetson-inference: [Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson](https://github.com/dusty-nv/jetson-inference)
- TensorRT sample: [Making sure you're not a bot!](https://elinux.org/Jetson/L4T/TRT_Customized_Example#TensorRT_Python)

#### 4. Report issue

If these suggestions don’t help and you want to report an issue to us, please attach the model, command/step, and the customized app (if any) with us to reproduce locally.

Thanks!

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [October 28, 2024, 2:19am UTC](https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177/4 "2024-10-28T02:19:55Z")

</div>

Hi,

Could you share the jtop information so we can know about your issue?

The default OpenCV in JetPack doesn’t build with CUDA support.  
But you can install it manually by running the script below:

> <https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.9.0_Jetpack6.sh>

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 20, 2024, 5:08am UTC](https://forums.developer.nvidia.com/t/opencv-on-python-with-orin-agx/311177/6 "2024-11-20T05:08:15Z")

</div>

Closed on November 20, 2024, 5:08am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
