# Real-time wild boar detection based on yolov5 with video preview

**URL:** <https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221>\
**Category:** Share Your Projects\
**Created:** [22 June 2022 02:42 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221 "2022-06-22T02:42:33Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangyouyou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/huangyouyou/32/63631_2.png) [@huangyouyou](https://discourse.nodered.org/u/huangyouyou)\
**Post date:** [22 June 2022 02:42 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/1 "2022-06-22T02:42:33Z")

</div>

![wildboar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a790bb42ea4c6fb7ae033bee9bdc6e7976aea40e.gif)

This is an open-source project. Hope you like the project and feel free to contribute to it!

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [22 June 2022 03:20 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/2 "2022-06-22T03:20:08Z")

</div>

Nice! Although when I first read the title I thought "wild boar" was some software api or product. But in fact it is a _wild boar_. 🤣 🤣 🤣

---

<div class="post-metadata">

**Author:** ![huangyouyou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/huangyouyou/32/63631_2.png) [@huangyouyou](https://discourse.nodered.org/u/huangyouyou)\
**Post date:** [22 June 2022 03:33 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/3 "2022-06-22T03:33:50Z")

</div>

hahaha, it is a wild boar 🐗

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [22 June 2022 04:13 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/4 "2022-06-22T04:13:42Z")

</div>

@huangyouyou ,  
Nice project!  
Do you have also a link to it (github repo, or something else...)?  
Bart

---

<div class="post-metadata">

**Author:** ![huangyouyou](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/huangyouyou/32/63631_2.png) [@huangyouyou](https://discourse.nodered.org/u/huangyouyou)\
**Post date:** [22 June 2022 05:44 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/5 "2022-06-22T05:44:51Z")

</div>

Thank you for your appreciation!! Feel free to contribute to it. 😃

[Seeed-Studio/node-red-contrib-ml: Get started with AI vision at the edge with no coding experience at all! (github.com)](https://github.com/Seeed-Studio/node-red-contrib-ml)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 June 2022 08:54 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/6 "2022-06-22T08:54:26Z")

</div>

Very nice project, well done.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 June 2022 09:02 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/7 "2022-06-22T09:02:22Z")

</div>

there's never a wild boar around when you want to test in UK !

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 June 2022 09:24 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/8 "2022-06-22T09:24:54Z")

</div>

We have badgers and foxes. To be honest, I would love to find out what is digging the big hole in our garden!

But given our recent battles with the local council about road changes, I'd be most interested in having a vehicle counter. 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [22 June 2022 10:42 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/9 "2022-06-22T10:42:23Z")

</div>

you don't think data or evidence are going to make the council change their minds about anything do you ?!? - Stick to counting badgers.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 June 2022 12:08 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/10 "2022-06-22T12:08:29Z")

</div>

Actually, if I could demonstrate badgers in the road, I'd probably get a better response 🤣

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [22 June 2022 13:26 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/11 "2022-06-22T13:26:45Z")

</div>

I would be lucky if I could use AI to detect parking enforcement officers 😉

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [22 June 2022 13:31 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/12 "2022-06-22T13:31:08Z")

</div>

...a set for training the model

[Watch out, here they come](https://www.google.com/search?q=parkeringsvakt&tbm=isch&ved=2ahUKEwjdjrSWlcH4AhWPjosKHTiDCT0Q2-cCegQIABAA&oq=parkeringsvakt&gs_lcp=CgNpbWcQAzIFCAAQgAQyBAgAEB4yBAgAEB4yBAgAEB4yBAgAEB4yBAgAEB4yBAgAEB4yBggAEB4QBTIECAAQGDIECAAQGDoECCMQJ1DTDFj7KGD5LGgAcAB4AIABb4gB7wqSAQQxMi4zmAEAoAEBqgELZ3dzLXdpei1pbWfAAQE&sclient=img&ei=KxmzYp3NEo-drgS4hqboAw&bih=851&biw=1905&hl=en)

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [26 June 2022 09:10 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/13 "2022-06-26T09:10:54Z")

</div>

Nice project, but when I read "Nvidia" and "Jetson" I read:  
Expensive in runtime because eats much energy over time.  
I use Yolo on pictures my cams upload ton an FTP and push it to Telegram by bot then.  
(My solution for the poor people 🙂 )

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 June 2022 10:47 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/14 "2022-06-26T10:47:03Z")

</div>

Interesting. What device do you run the classifier on?

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [26 June 2022 15:18 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/15 "2022-06-26T15:18:18Z")

</div>

I’m running my Jetson Nano in 5W mode, using YOLOv4. Is not that much energy consumption I think, not much more than a LED lamp

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [27 June 2022 08:07 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/16 "2022-06-27T08:07:35Z")

</div>

wow, 5W is less than I expected. - About how many cams are we talking ? (Jetson can Handle) and the how high is the system workload ?  
I upload just singe images only on movement recognition to a V-Server which costs about $7 per month. Then I use Yolo and parse the results (have written a small C# application for that). Works for 6 cams in my garden. The delay is about 30 sec. after upload. Only Telegram blocks sometimes because of to many uploads.... I ve not a good solution for it yet.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [27 June 2022 08:29 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/17 "2022-06-27T08:29:33Z")

</div>

I also upload only single images on movement recognition. All my cameras are connected to Motion software so movement is detected by Motion and then the image(s) are sent to My Jetson Nano via MQTT for analys by YOLO v4. The YOLO analyze is runned in a python script and takes typically 0.3 second with my images 640x480. I can send many images to the Jetson Nano, they are put into a large queu if needed and then handled one-by-one. If a desired object (person n my case) is found, I get a thumbnail with the detected person in a notification via Telegram, the first is more or less instant if a person is detected. This has now worked flawless since a couple of years, migrated from YOLO v3, and is really good in detecting "unwanted visitis". I have added some additionla checks during the years to minimize false alarms like accepted ratios (width/height) that is expected from a human body etc etc. So far, good enough

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [27 June 2022 08:37 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/18 "2022-06-27T08:37:22Z")

</div>

PS If you are looking for real time streaming and analyze of video, the Jetson Nano is not enough, you need a much more powerful graphic card fro NVIDIA or similar, then the power consumption will also be something totally different and much higher

---

<div class="post-metadata">

**Author:** ![MTrabado](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MTrabado](https://discourse.nodered.org/u/MTrabado)\
**Post date:** [19 July 2022 11:56 UTC](https://discourse.nodered.org/t/real-time-wild-boar-detection-based-on-yolov5-with-video-preview/64221/19 "2022-07-19T11:56:13Z")

</div>

Very nice.

Where did you get the dataset for training the Wild Boar detector?
