# Aruco module GPU-accelerated with CUDA

**URL:** <https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565>\
**Category:** Python\
**Created:** [December 28, 2020, 4:07pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565 "2020-12-28T16:07:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOBish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/gobish/32/378_2.png) [@GOBish](https://forum.opencv.org/u/GOBish)\
**Post date:** [December 28, 2020, 4:07pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/1 "2020-12-28T16:07:25Z")

</div>

Hello,  
I am trying to use the OpenCV ArUco module and accelerate using CUDA on the Jetson Xavier NX, in Python.  
I have the module working well but I am showing no GPU usage.  
Could anyone help me with this?  
Thanks!

Edit: I know NVIDIA has done accelerated april tags using the ISAAC SDK, but I don’t have a machine now to run ISAAC so I can’t use that yet.

---

<div class="post-metadata">

**Author:** ![Clinton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/clinton/32/320_2.png) [@Clinton](https://forum.opencv.org/u/Clinton)\
**Post date:** [December 29, 2020, 11:43am UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/2 "2020-12-29T11:43:10Z")

</div>

> [@GOBish](#):
>
> Jetson Xavier NX

I assume you have built the opencv project with CUDA sdk (11.1 is the latest) and additional modules in the opencv contrib?

---

<div class="post-metadata">

**Author:** ![der\_luftmensch](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@der\_luftmensch](https://forum.opencv.org/u/der_luftmensch)\
**Post date:** [December 29, 2020, 1:52pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/3 "2020-12-29T13:52:47Z")

</div>

Can you point to the documentation that makes you expect the GPU to be exercised via CUDA for ArUco marker detection? Have you looked at the source code? Are you not instead hoping for OpenCL support under the hood?

---

<div class="post-metadata">

**Author:** ![GOBish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/gobish/32/378_2.png) [@GOBish](https://forum.opencv.org/u/GOBish)\
**Post date:** [December 29, 2020, 2:47pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/4 "2020-12-29T14:47:58Z")

</div>

Hi Clinton, yes, I have built with CUDA.

---

<div class="post-metadata">

**Author:** ![GOBish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/gobish/32/378_2.png) [@GOBish](https://forum.opencv.org/u/GOBish)\
**Post date:** [December 29, 2020, 2:48pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/5 "2020-12-29T14:48:53Z")

</div>

@der_luftmensch thanks for the reply – it’s not that I am expecting the GPU to be utilized, but trying to figure out if it can be used and if anyone has experience implementing it for this application.

---

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [December 29, 2020, 2:58pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/6 "2020-12-29T14:58:10Z")

</div>

I am almost 100% sure that the ArUco does not have a CUDA implementation. If it does it should be accessible under the `cv::cuda` namespace. To confirm you should look at the source and see how [OutputArray](https://docs.opencv.org/master/d9/d6a/group__aruco.html#ga254ed245e10c5b3e2259d5d9b8ea8e2f) is dealt with internally.

---

<div class="post-metadata">

**Author:** ![GOBish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/gobish/32/378_2.png) [@GOBish](https://forum.opencv.org/u/GOBish)\
**Post date:** [December 29, 2020, 4:27pm UTC](https://forum.opencv.org/t/aruco-module-gpu-accelerated-with-cuda/565/7 "2020-12-29T16:27:51Z")

</div>

thanks @cudawarped , appreciate the advice
