Identifying different coin values from an image using MATLAB
问题 I'm trying to identify the number of matches and coins of each value in a picture using MATLAB. Here is the starting picture, with matches and 4 different coin values. (5 small silver, 2 small gold, 2 big silver, 4 big gold coins) The output: Here's the code: close all; img = (imread('C:\Users\Torstein\Jottacloud\Skole\Visu\Prosjekt\sample_images\sample2.jpg')); img_gray = rgb2gray(img); % Filter image for easier edge detection m = 12; n = 12; img_filter = imfilter(img_gray, fspecial('average