Count pixels value in image

Hi, I'm relatively new to Arduino and I'm now working on a project to count coins value(coin acceptor but with a camera) , I heard that Arduino don't actually have any image processing libraries, so I'm wondering if it is even possible to do something like that with Arduino.

Basically my idea is: because of the camera being fixed in one place above the surface where coins will be dropped,(one by one) then goes to the sorter, even the background will be the same every time so I want to count the sum of the pixels value in two diagonals(the pixels of the background will always have the same value the only different will be with the pixels of the coin) and compare the results with the ones I have with a small tolerance to recognize which coin is dropped, do anyone knows how can this be done.
Something like this:
(D3 and D4 are optional for greater precision)
Thanks,

penny.jpg

Does your camera have its own frame buffer?

To be honest, I don't know, I got this camera from ebay here it is, how can I check this?

Hussein_01:
To be honest, I don't know, I got this camera from ebay here it is, how can I check this?

Ask the people you bought it from.

Ok I will, here is the camera anyway

Hussein_01:
Ok I will, here is the camera anyway

I tried to find a picture of me not being impressed, but I couldn't really be bothered.