# How to use opencv with amb82-mini

**URL:** <https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503>\
**Category:** Multimedia\
**Tags:** rtl8735b, evb-amb82\
**Created:** [December 6, 2023, 10:23am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503 "2023-12-06T10:23:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dallim30](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@dallim30](https://forum.amebaiot.com/u/dallim30)\
**Post date:** [December 6, 2023, 10:23am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/1 "2023-12-06T10:23:10Z")

</div>

Hi.

I want to use opencv with amb82-mini  
I would appreciate any hints or advices on how to accomplish this feat.

Thanks!

---

<div class="post-metadata">

**Author:** ![pcw0915](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pcw0915/32/1840_2.png) [@pcw0915](https://forum.amebaiot.com/u/pcw0915)\
**Post date:** [December 6, 2023, 2:46pm UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/2 "2023-12-06T14:46:51Z")

</div>

hey me too.  
I need opencv for text overlay on RTSP video

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [December 8, 2023, 2:44am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/3 "2023-12-08T02:44:01Z")

</div>

Hi @dallim30 @pcw0915,

For now, our board does not support OpenCV.

@pcw0915 We have an API called VideoStreamOverlay; you can use it to do text overlay on RTSP video.

You can refer to this API document for more information.  
[https://www.amebaiot.com/en/rtl8735b-arduino-api-video-videostreamoverlay/](https://www.amebaiot.com/en/rtl8735b-arduino-api-video-videostreamoverlay/)

---

<div class="post-metadata">

**Author:** ![pcw0915](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pcw0915/32/1840_2.png) [@pcw0915](https://forum.amebaiot.com/u/pcw0915)\
**Post date:** [December 9, 2023, 7:01am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/4 "2023-12-09T07:01:30Z")

</div>

I’ve already seen that post. Most of the links to github examples are not accessible.

---

<div class="post-metadata">

**Author:** ![Kelvin\_Huang](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kelvin_huang/32/2130_2.png) [@Kelvin\_Huang](https://forum.amebaiot.com/u/Kelvin_Huang)\
**Post date:** [December 9, 2023, 7:34am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/5 "2023-12-09T07:34:51Z")

</div>

Hi @pcw0915,

Please refer to the links:

> <https://github.com/ambiot/ambpro2_arduino/blob/main/Arduino_package/hardware/libraries/Multimedia/examples/MotionDetection/LoopPostProcessing/LoopPostProcessing.ino>

> <https://github.com/ambiot/ambpro2_arduino/blob/main/Arduino_package/hardware/libraries/NeuralNetwork/examples/RTSPFaceDetection/RTSPFaceDetection.ino>

We will fix the documentation soon.

Thank you.

---

<div class="post-metadata">

**Author:** ![pcw0915](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pcw0915/32/1840_2.png) [@pcw0915](https://forum.amebaiot.com/u/pcw0915)\
**Post date:** [December 10, 2023, 12:07pm UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/6 "2023-12-10T12:07:06Z")

</div>

We’ve already seen those examples. What I need is to overlay information such as the current time or current frame in text at the bottom of the RTSP.

---

<div class="post-metadata">

**Author:** ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)\
**Post date:** [December 11, 2023, 2:51am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/7 "2023-12-11T02:51:52Z")

</div>

Hi @pcw0915, please refer to this example here. I hope that it can help you at this moment. Recently, NTPClient Library is added into the Arduino SDK and will be released in our next release, 4.0.6 ([https://github.com/ambiot/ambpro2\_arduino/tree/dev/Arduino\_package/hardware/libraries/NTPClient](https://github.com/ambiot/ambpro2_arduino/tree/dev/Arduino_package/hardware/libraries/NTPClient)). I have tried to overlay the time on the video stream using StreamRTSP-\>VideoOnly example. Hope it helps! 🙂

[VideoOnly.zip](https://forum.amebaiot.com/uploads/short-url/4nNAuBOSLrhFXf2vK2I5C3o8IKl.zip) (1.3 KB)

---

<div class="post-metadata">

**Author:** ![pcw0915](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pcw0915/32/1840_2.png) [@pcw0915](https://forum.amebaiot.com/u/pcw0915)\
**Post date:** [December 11, 2023, 8:20am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/8 "2023-12-11T08:20:31Z")

</div>

> [@Pammy](#):
>
> > [@Pammy](#):
> >
> > example here. I hope that it can help you at this moment. Recently, NTPClient Library is added into the Arduino SDK and will be released in our next release, 4.0.6 ([https://github.com/ambiot/ambpro2\_arduino/tree/dev/Arduino\_package/hardware/libraries/NTPClient](https://github.com/ambiot/ambpro2_arduino/tree/dev/Arduino_package/hardware/libraries/NTPClient)). I have tried to overlay the time on the video stream using StreamRTSP-\>VideoOnly example. Hope it helps! 🙂
> > 
> > [VideoOnly.zip](https://forum.amebaiot.com/uploads/short-url/4nNAuBOSLrhFXf2vK2I5C3o8IKl.zip) (1.3 KB)
> 
> this example here. I hope that it can help you at this moment. Recently, NTPClient Library is added into the Arduino SDK and will be released in our next release, 4.0.6 ([https://github.com/ambiot/ambpro2\_arduino/tree/dev/Arduino\_package/hardware/libraries/NTPClient](https://github.com/ambiot/ambpro2_arduino/tree/dev/Arduino_package/hardware/libraries/NTPClient)). I have tried to overlay the time on the video stream using StreamRTSP-\>VideoOnly example. Hope it helps! 🙂
> 
> [VideoOnly.zip](https://forum.amebaiot.com/uploads/short-url/4nNAuBOSLrhFXf2vK2I5C3o8IKl.zip) (1.3 KB)

THX It works very good!

---

<div class="post-metadata">

**Author:** ![gkirill](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@gkirill](https://forum.amebaiot.com/u/gkirill)\
**Post date:** [January 23, 2024, 6:45am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/9 "2024-01-23T06:45:41Z")

</div>

Hello, @Pammy ! How to set the system time without using the RTSP module in standart SDK for working with osd?

---

<div class="post-metadata">

**Author:** ![sku](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@sku](https://forum.amebaiot.com/u/sku)\
**Post date:** [August 4, 2024, 6:23pm UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/10 "2024-08-04T18:23:13Z")

</div>

Thank you!  
I got OSD working with http continuous jpeg stream but it only displays a maximum of 19 characters. I don’t see anything in VideoStreamOverlay.h or osd\_api.h to change this number. Is there something I’ve overlooked?

---

<div class="post-metadata">

**Author:** ![M-ichae-l](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/m-ichae-l/32/33_2.png) [@M-ichae-l](https://forum.amebaiot.com/u/M-ichae-l)\
**Post date:** [January 21, 2025, 2:44am UTC](https://forum.amebaiot.com/t/how-to-use-opencv-with-amb82-mini/2503/11 "2025-01-21T02:44:19Z")

</div>

Indeed the max OSD characters is 19.
