how can i convert image to text by using matlab code

回答(2 个)

Use fileread() to read the image file. uint8() that. Now you can use base64 to convert the numeric values to text.
https://www.mathworks.com/help/matlab/ref/matlab.net.base64encode.html

1 个评论

How is this a solution to the question that @rediet adebabay asked? You should have told him to use the ocr function in the Computer Vision Toolbox.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

产品

版本

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by