Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

Change Email
OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work šŸ¤
Learn & Grow šŸ“š
Contribute Experience & Expertise šŸ”§
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design šŸ’”
Embedded Software šŸ’»
Edge Networking āš”
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

Best ML Model for Real-Time Egg Counting on Raspberry Pi

hello everyone!
Iā€™m working on a real-time egg-counting project using a Raspberry Pi and computer vision. Originally, I thought I could use OpenCV with contour detection for a quick, lightweight solution. The plan was to convert images to grayscale, reduce noise with blurring, and use edge detection to find contours representing eggs. But as I tested it, contour detection turned out to have several big limitations that made it unreliable for this project.

One of the main issues was “lighting sensitivity” even small changes in light, shadows, or reflections would throw off the detection completely, often causing the egg count to vary wildly. Another major problem was “overlapping eggs”ā€”if eggs were close together, contour detection often couldnā€™t separate them and would count multiple eggs as one. Lastly, “background interference” was a big challenge. The algorithm would sometimes pick up background textures or objects as ā€œeggs,ā€ adding false positives to the count.

Because of these issues, I decided to switch to training a model , which should handle these challenges better. Which specific ML model would you recommend for detecting and counting in real-time on a Raspberry Pi? I need something that can handle varying lighting conditions and overlapping objects while still being lightweight enough to run smoothly on the Pi.

  1. techielew#0000

    Which Pi?

  2. ZacckOsiemo#0000

    Can I ask, how does training a custom model fix this issues you found?

  3. wafa_ath#0000

    Raspberry pi 3

  4. wafa_ath#0000

    Because it can actually learn from examples rather than r fixed rules like contour detection does. training a model with lots of different images of eggs, it starts to recognize them in all sorts of conditions , different lighting, overlapping positions, and even with tricky backgrounds. . The model picks up on subtle patterns and features that make an egg an egg, and that why it may be a better solution for my project because it Real time detection

  5. techielew#0000

    Why did you choose a Pi 3?

  6. wafa_ath#0000

    Am doing a real time recognition and counting, it have a good processing power to handle computer vision task in real time

  7. techielew#0000
  8. ZacckOsiemo#0000

    yeah I would focus on this first, why don’t you work on training a couple of models then we can observe from that?

  9. wafa_ath#0000

    Yeah,i was thinking about using Yolov5 for the training first, i will try it and share the results

  10. wafa_ath#0000

    Can i ask , is it worth to invest in the AI kit since i have Pi 3 already.

  11. techielew#0000

    Are you doing this for fun? For research? Trying to commercialize? Whatā€™s your end goal?

  12. wafa_ath#0000

    No, hoping i can sell it to a production company

  13. melta101#0000

    I personally find a lot of companies in denial to associate with rpi at an industrial level. Had one client cancel the agreement as i showed the demo in a rpi

  14. wafa_ath#0000

    What do you suggest i work with !

  15. techielew#0000

    Was waiting to see what you said @melta101 but was going to ask @wafa_ath if the hope was to migrate to a pi compute module at some point or something else?

  16. techielew#0000

    Guessing he will say beagle-aiā€¦

  17. melta101#0000

    Have you discussed this with the company?

  18. melta101#0000

    what are the expecttions or so?

  19. melta101#0000

    was going to suggest coral TPU

  20. techielew#0000

    Have you worked with the Y-AI yet?

  21. melta101#0000

    no but actually
    I have used it for classification based problem statement and it had a good support for a lot of things

  22. melta101#0000

    not yet
    I was planning to get one in a few month
    I need to a few others devices to test drivers for K3 series

  23. melta101#0000

    @wafa_ath
    i had access to a laptop with a free mini PCle port

  24. melta101#0000
  25. melta101#0000

    but in all honestly,
    I would suggest to have a talk with the company and understand what is more important for them.

    Some company just wants it to work(like my current company)

  26. melta101#0000

    No need to waste unnecessary money if the result is the same

  27. wafa_ath#0000

    Not yet I want to build a working prototype first so I can show it around to companies and let them see it in action.

CONTRIBUTE TO THIS THREAD

Browse other questions tagged 

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @lifegochi
    250 XP
  • 5.
    Avatar
    @Youuce
    180 XP
  • 6.
    Avatar
    @hemalchevli
    170 XP