| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Original HTTPS Page] |
Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.
You must be logged in to block users.
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abuseA camera based bee-hive monitoring that identifies and tracks bees. It also identifies bee characteristics with a neural network, such as pollen packages, wasps, varroa mite infestations or bees trying to cool the hive. Therefore, it utilizes tensorflow, opencv, filterpy and others.
Here is an example video! (YouTube.com)
This is the result of a private project to develop a camera based bee monitoring system. It was initially made to run on the JetsonNano, but it is not limited to it.
It can:
It monitors all bees and uses a neural network to detect the above mentioned characteristics, counts all findings and sends them to the ThingsNetwork using LoRaWAN. If you don't like to use LoRaWAN you can change that easily in the code.
Each frame provided by the camera (or video file) will be processed to identify the bees in the image. The found bee positions will then be used to reconstruct the bee movements and paths using kalman filters. The paths are then used to count the bees entering or leaving the hive. Where the hive entry is on the upper part of the filmed pane and the exit is on the bottom.
Each detected bee will then be cut from the image, rotated and forwarded to a neural network for classification.
A bee carrying a packet of pollen
A bee infested by varroa mites.
A bee that is coooling the hive. To do so, the bee stays stationary and moves its wings to move fresh air into the hive
A typical wasp that can be found stealing honey from the hive
The neural network performs simple classification tasks to identify bees with pollen, varroa mite infected bees, bees cooling the hive or wasp and counts them. The results can also be visualized. The neural network runs in a separate process and the results may be too late to visualize them, as the bee may have already left the filmed area. But that depends on the performance of the used system. On the JetsonNano, you will probably see that phenomena once in a while.
Below you can see that two bees were detected cooling the hive (green dots), one of them is even infected by varroa (red dot).
Look close, you can see the varroa mite.

Just check out this repository and install the dependencies:
git clone https://github.com/BeeAlarmed/BeeAlarmed.git cd BeeAlarmed git submodule init git submodule update pip3 install -r requirements.txt
Download the pre trained neural network and unzip it to ./SavedModel: SavedModel_20201121.zip
wget "https://raspbee.de/FH/Github/SavedModel_20201121.zip" -O SavedModel_20201121.zip unzip SavedModel_20201121.zip -d ./SavedModel
Note: I will publish the dataset and neural network once I finished working on them. The dataset is currently based on manually selected and annotated images (>6000).
Download the example video file: Sample Video (314 MB)
More videos can be found at YouTube: YouTube Channel: Raspbee - Videos
wget "https://raspbee.de/FH/Github/cooling_varroa_small.avi"
Now start the monitoring system by calling:
python3 main.py --video=./cooling_varroa_small.avi
This is what you should get:
Please note: The 'cooling_varroa_small.avi' video file was compressed and thus lost quality compared to the original camera output. The neural network is trained on the original data and may produce false detections with other data. I'll try to link an uncompressed file as well, but it will be large. Detection and tracking of the bees will not be affected by this.
On the JetsonNano you have to follow the steps above, but additionally you should install a more lightweight desktop environment. The default one consumes roughly 1.5GB of the available 4GB. I suggest to install the lubuntu-desktop or similar. Here is a guide on how to do it: https://www.zaferarican.com/post/how-to-save-1gb-memory-on-jetson-nano-by-installing-lubuntu-desktop
You can modify several parameters in the Config.py file.
Below you can find a rough explanation on how to build your own camera system. A more detailed description will follow in the beginning of the next year. I'm currently working on a more robust wooden solution.
The below shown camera-system is the first prototype made out of cardboard. But it worked quite well!
The schematic is shown below. The system is simple. A camera films the bees on a pane when they are entering or leving the hive.
The inside looks like this:
As you can see the filmed area is green and illumined by two LED-stripes in the front and back.
A camera based bee-hive monitoring that identifies and tracks bees. It also identifies bee characteristics with a neural network, such as pollen packages, wasps, varroa mite infestations or bees tr…
Tensorflow dataset containing images of bees for multilabel classification
Forked from 360manu/kettlerUSB2BLE
kettlerUSB2BLE working with zwift from windows (2023)
JavaScript 1
Integrate the Co2 readings from a Techno Line WL 1030 into ESPhome / Home Assistant
Forked from tensorflow/datasets
TFDS is a collection of datasets ready to use with TensorFlow, Jax, ...
Python
| Back | FazBrowse Home | New Git URL |