Detects coins from a given image and outputs their summed value