# How to use opencv\_traincascade with CUDA

**URL:** <https://forum.opencv.org/t/how-to-use-opencv-traincascade-with-cuda/1433>\
**Category:** Python\
**Tags:** opencv\_traincascade, cuda, gpu\
**Created:** [February 9, 2021, 2:55am UTC](https://forum.opencv.org/t/how-to-use-opencv-traincascade-with-cuda/1433 "2021-02-09T02:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aki](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/aki/32/171_2.png) [@Aki](https://forum.opencv.org/u/Aki)\
**Post date:** [February 9, 2021, 2:55am UTC](https://forum.opencv.org/t/how-to-use-opencv-traincascade-with-cuda/1433/1 "2021-02-09T02:55:43Z")

</div>

Hello everyone, I’m new here.  
I am developing an application for face recognition using RPi.

I would like to train cascade to recognize masked faces using “opencv\_traincascade” on Ubuntu 18.04 with GPU.

**Is it possible to accelerate “opencv\_traincascade” by using GPU?**  
If it is possible, how can I do it?
