Dog Counter for RPI5+H-8

Hi, I’m wondering if anyone has any experience coding a unique object counter? For instance, I’d like to count the number of unique dogs that cross a particular scene.

How would I go about doing that on an RPI5+H-8?

Thanks,

Andy

Hey @andy.froncioni,

Welcome to the Hailo Community!

Your project sounds fascinating! I’ll check if we have any ready-made solutions or similar projects available. Meanwhile, here’s a summary of the steps you need to follow:

  1. Develop or Obtain a Dog Detection Model: Create or acquire a model that can detect dogs, then convert it to HEF format.
  2. Set Up Video Input on Raspberry Pi: Configure your Raspberry Pi to receive video input, either through a directly connected camera module or via a network stream.
  3. Implement Object Tracking: Use an object tracking algorithm to monitor each detected dog. You can refer to this example for guidance: Detection with Tracker Example
  4. Counting Logic: Develop logic to count each unique dog detected by the system. Assign a unique identifier to each dog upon first detection and ensure it persists as long as the dog remains in the scene.

Let me know if you need any further assistance!
Best Regards

Thanks for breaking that down for me.

So now I guess my question is specifically targetted to #4. How do I assign a unique identifier? I have some ideas, but is there a reference that people use as standard procedure?

We wanted (and we will :slight_smile: ) give this project a nicer venu, but since you’ve asked… you can take a look at what our freinds at Edge Impulse put together

3 Likes