Detecting pills in trays
Alan from Chile  [1 posts]
5 year
We are trying to do a simple system that counts pills in trays with several holes.  We can not get it consistent.  Can someone give us a hand?  We tried the tutorials and they give us unreliable results

What is needed to do is count how many pills (there can be of different colors, sizes and shapes)  in each circle.

The Camera is a Logitec C920 USB webcam

We have used the Line_Counting but it is not consistent and it is very hard to detect the gel type pill.

Steven Gentner from United States  [273 posts] 5 year

This isn't something that we can just answer as there are a lot of details to this process. You would be better off finding someone that is familiar with this type of project and all the camera, lighting and background details that are needed to make this process reliable. From your images, it looks like you are just starting this project so it would be a good time to hire an imaging expert for several months to help with this project.

The one tip we can provide is to use a black background as you are unlikely to have a black pill which will make the lighter colored ones easier to detect. Then you have light, camera, vibration, integration, etc. etc. to think about. Good luck!


This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index