【发布时间】:2017-12-27 15:37:48
【问题描述】:
您好,我是 AI 和 MATLAB 的新手。我想找到另一种处理图像文件的方法。这样做的目的是将数字“4”与其他数字区分开来。下面的代码是处理图像的一种方式(一种基本方式)。它获取图像,将其转换为矩阵并忽略边缘周围的黑色像素,因此它只关注具有变化的像素(白色像素)。
% 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”的方法。
谢谢
【问题讨论】:
-
这是另一个可能相关的函数:mathworks.com/help/vision/ref/ocr.html 和另一个基于深度学习的数字分类方法示例:mathworks.com/help/nnet/examples/…
标签: matlab image-processing artificial-intelligence