[英]There is an issue with reading tif File format?
I have an image file, in *.tif
format, that looks like this:我有一个
*.tif
格式的图像文件,如下所示:
As you can see it contains an image along with a lot of text.如您所见,它包含一个图像和大量文本。 Is there any way to read my
.tif
image and extract the text content into a String ?有什么方法可以读取我的
.tif
图像并将文本内容提取到 String 中吗?
No, the text in the file is not stored as text, it's basically a photo of text.不,文件中的文本不是以文本形式存储的,它基本上是文本的照片。 You need to use OCR or some other machine learning method to extract the text from the picture.
您需要使用 OCR 或其他一些机器学习方法从图片中提取文本。
It's possible to embed text in a TIFF file using private metadata tags, but it's not usually done.可以使用私有元数据标签在 TIFF 文件中嵌入文本,但通常不会这样做。 Most likely the text in your image is present only as a picture/bitmap, and the only way to retrieve it is using OCR.
图像中的文本很可能仅作为图片/位图存在,而检索它的唯一方法是使用 OCR。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.