COUNT OF COINS USING IMAGE PROCESSING TOOLBOX.
Diego Barragán (2020). COUNT OF COINS (https://www.mathworks.com/matlabcentral/fileexchange/22924-count-of-coins), MATLAB Central File Exchange. Retrieved .
When trying to find coins according to their area, you didnt take into consideration the distance between the camera and the coins . with that in mind, you program only works for that typical distance which your photo was taken at.
I did a program which takes into consideration ,COLOR and distance between the camera and coins . feel free to email me :)