Need help: Camera-based counting

Hello everyone,

I want to build a simple app in MIT App Inventor for groundnut kernel analysis.

Requirement:

Point mobile camera to peanut kernels spread on a table
App should count the number of kernels visible automaticly
Any extension availabe ?

Thanks in advance for your help!