element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Save The Bees Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Save The Bees Design Challenge
  • More
  • Cancel
Save The Bees Design Challenge
Blog Honey Bee Safe: Identifying Bees and Hornets “In The Wild”
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Save The Bees Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ntewinkel
  • Date Created: 28 Apr 2023 6:40 AM Date Created
  • Views 450 views
  • Likes 7 likes
  • Comments 0 comments
  • save the bees
  • savethebeesch
  • Honey Bee Safe
  • nicla vision
  • openmv
  • edge impulse
  • arduino
Related
Recommended

Honey Bee Safe: Identifying Bees and Hornets “In The Wild”

ntewinkel
ntewinkel
28 Apr 2023
Honey Bee Safe: Identifying Bees and Hornets “In The Wild”

Having successfully built and tested all of the pieces of this project while connected to my computer, it is now time to try running it stand-alone.

We can actually run anywhere where we can plug it in and connect to WiFi, but for ease of testing I decided to just keep things nearby.

To start with, I thought I'd just make sure the Nicla Vision with the Honey-Bee-Safe firmware on it would work by itself, so I plugged the USB cable into a little charger, instead of into my computer, and pointed the camera at the bee.

image

It didn't take long for the UI to show that a bee was spotted - Success!

image

As you can see in the picture, the UI shows that the bee count is now 1.

This might not look like much, but we just had a number of successes to get to that point:

Firstly, the tiny Nicla Vision board:

1. successfully connected to WiFi

2. successfully took pictures with the camera

3. successfully identified a bee in a picture

and,

4. it successfully sent an MQTT message to Mosquitto on my Raspberry Pi server to report the bee that was spotted

On the Raspberry Pi Server:

1. The MQTT message was successfully received by Mosquitto

2. Node-Red successfully received the MQTT message from Mosquitto

3. Node-Red successfully interpreted the message, interpreted the results, did some math

and then,

4. Node-Red created the webpage UI

Then on my phone, we successfully displayed the results in the browser.
That's a lot of things that went right Sweat smile

I don't know about you, but I'm pretty impressed at what that little Nicla Vision board is capable of!
I'm also still quite impressed at what that little Raspberry Pi can do too :)

There's a certain magic to all this.

Let's see that again, in video to add more excitement...

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Having confirmed that things are working well, I moved over to the other side of my office to the blossomy tree for showtime!

image

Not all the tests went well, I'm not sure if maybe I didn't always have the bee and hornet in the right place or at the right angle, but sometimes it was just being stubborn. I did design the firmware to only check once every 10 seconds, to avoid multiple counts of one bee, so it might be that I just had the bee in the wrong spot at the critical times.

Most of the time it actually worked very well, often to my happy surprise Smiley

This following test went very well, with the bee being detected very quickly.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

This next test was quick too, but it mistakenly also thought a hornet was spotted. You can see the hornet count go up. This would be a false positive, and a good reason for it to store the images for review.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

The stored picture shows the two different coloured circles, on the bee:

imageimage

For some reason in this next picture it thought the little bee (green) was being attacked by TWO hornets in this image!

image

The pictures stored on the Nicla Vision drive also showed me that I wasn't always flying the bee and hornet in the correct place!
But, even though only the bottom of the stunt-double hornet was visible, it was properly identified and recorded:

image

In this picture I must've been moving the stunt hornet just as a picture was being taken, but even though it was blurry it was identified correctly.

image

Here is the video of the hornet being detected:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

And here is a video of a bee, and a hornet being detected. The hornet detection took a while. I almost gave up :D

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

It's difficult making movies with animal actors Wink

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube