Friday, December 5, 2025

Counting Small Items Using Edge Impulse

efy tested

Object classification and counting are essential for factory automation and devices where different objects are sorted or counted during packaging. Factories producing buttons, chocolates, and similar items require accurate counting for efficient packaging, which is a time-consuming and costly process when done manually.

Implementing an automation system to detect, classify, sort, and count objects can significantly streamline the production process. This project aims to create a cost-effective device for implementing such a factory automation system.

Object classifications are easily achievable using Edge Impulse models. You can distinguish between a man and an animal, a bicycle and other types of vehicles, and so on.

- Advertisement -

In our previous article, we did the same

Similarly, you can accurately count one type of object among other types.

- Advertisement -

Initially designed for MCU-level implementation on devices like ESP32 and Arduino Nicla Vision, the project was intended for counting a small area of 120 pixels x 120 pixels, with a relatively small-sized button as the object of interest.

However, it became apparent that even for this small area, the MCUs were inadequate, as the model file itself is approximately 8MB long. Consequently, the project was eventually installed on a Raspberry Pi computer, where it operates seamlessly. Refer to Fig. 1 for an illustration of the author’s working prototype.

EFY Icon

Sorry! You cannot read this post further, as this is for EFY PRIME subscribers only.

EFY PRIME subscribers get access to our BEST content, in an AD-free environment for readers who value faster and clutter-free reading experience.

If you're already an EFY PRIME subscriber, please login below. Else, please make a small investment by
CLICKING HERE and upgrade your level to access this and many more of such content.

Somnath Bera
Somnath Bera
Somnath Bera combines industrial leadership in thermal power systems with expertise in electronics, IoT, AI, and embedded systems. Through his prolific contributions to EFY, plus public demos and tutorials, he empowers both hobbyists and professionals with practical, impactful projects. His work reflects a rare blend of deep technical knowledge and hands-on innovation aimed at solving real-world problems.

SHARE YOUR THOUGHTS & COMMENTS

EFY Prime

Unique DIY Projects

Truly Innovative Electronics

Electronics News

Latest DIY Videos

Electronics Components

Electronics Jobs

Calculators For Electronics

×