-1
嗨,我是AI和MATLAB的新手。我想找到另一種處理圖像文件的方式。這樣做的目的是區分數字「4」與其他數字。下面的代碼是處理圖像的一種方式(一種基本方式)。它將圖像轉換爲矩陣並忽略邊緣周圍的黑色像素,使其僅聚焦在具有變化的像素(白色像素)上。Matlab - 如何處理圖像以識別數字?
% 3. convert the images into a 2D matrix
train_params = reshape(train_images, size(train_images, 1) * size(train_images, 2), size(train_images, 3));
% 4. measure the variance of the different pixels and discard those which
% are zero
train_stds = std(train_params');
tokeep = find(train_stds>0);
train_params = train_params(tokeep,:);
Here是正被處理的圖像:
我想找到處理這些圖像來識別號的另一個(更集中的)方式「4」。
謝謝
閱讀此:https://www.mathworks.com/help/vision/examples/digit-classification-using-hog-features.html –
下面是另一個可能相關的函數:https://www.mathworks。 com/help/vision/ref/ocr.html以及另一個基於深度學習的數字分類方法示例:https://www.mathworks.com/help/nnet/examples/create-simple-deep-learning-network-換classification.html – akamath