[GH-ISSUE #842] [OCR] 无法识别含有标签字样(如 <html>、<think>)的图片中的文本 #696

Closed
opened 2026-10-26 21:25:36 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @RainyDreams on GitHub (May 16, 2026).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/842

问题描述
当图片中出现的文本包含类似 HTML/XML 标签的内容(例如 <html>、<think>、<div> 等)时,与是否闭合无关,OCR 模块无法正确识别其中的文本,识别结果为空或出现异常中断。

复现步骤

  1. 准备一张图片,图片中包含如下文本:
    示例:<html> 标签内容 <think> 思考过程 </think>
  2. 粘贴或上传到到网页端对话框。
  3. 观察是否识别成功。

附件/示例图片
下图可以正常识别:
Image
下图无法识别:
Image

Originally created by @RainyDreams on GitHub (May 16, 2026). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/842 **问题描述** 当图片中出现的文本包含类似 HTML/XML 标签的内容(例如 `<html>`、`<think>`、`<div>` 等)时,**与是否闭合无关**,OCR 模块无法正确识别其中的文本,识别结果为空或出现异常中断。 **复现步骤** 1. 准备一张图片,图片中包含如下文本: `示例:<html> 标签内容 <think> 思考过程 </think>` 2. 粘贴或上传到到网页端对话框。 3. 观察是否识别成功。 **附件/示例图片** 下图可以正常识别: <img width="1445" height="581" alt="Image" src="https://github.com/user-attachments/assets/514ee4d1-3055-4c98-9c8f-9df4238af876" /> 下图无法识别: <img width="1912" height="927" alt="Image" src="https://github.com/user-attachments/assets/3e17e6f0-8095-4bd4-9de9-08f9d5a0eb78" />
bsakaguchi 2026-10-26 21:25:36 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 16, 2026):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!

<!-- gh-comment-id:4713807738 --> @github-actions[bot] commented on GitHub (Jun 16, 2026): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
Author
Owner

@github-actions[bot] commented on GitHub (Jul 1, 2026):

false

<!-- gh-comment-id:4849149460 --> @github-actions[bot] commented on GitHub (Jul 1, 2026): false
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-R1#696
No description provided.