Skip to content

Update ppocrv5.cpp#6350

Merged
nihui merged 1 commit intoTencent:masterfrom
sxj731533730:patch-1
Oct 11, 2025
Merged

Update ppocrv5.cpp#6350
nihui merged 1 commit intoTencent:masterfrom
sxj731533730:patch-1

Conversation

@sxj731533730
Copy link
Copy Markdown
Contributor

英文识别モデルにはスペース分割の問題がない

@tencent-adm
Copy link
Copy Markdown
Member

tencent-adm commented Oct 10, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown

The binary size change of libncnn.so (bytes)

architecture base size pr size difference
x86_64 15159560 15159560 0 😘
armhf 6182416 6182416 0 😘
aarch64 9454784 9454784 0 😘

@nihui nihui requested a review from Copilot October 10, 2025 15:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses space separation issues in English recognition models by adding logic to insert spaces when encountering characters with IDs outside the valid dictionary range.

  • Adds space insertion logic for characters with invalid dictionary IDs
  • Ensures proper word separation in text recognition output
  • Prevents duplicate spaces by checking if the last character is already a space

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread examples/ppocrv5.cpp
@nihui nihui merged commit 15427dd into Tencent:master Oct 11, 2025
19 of 23 checks passed
@nihui
Copy link
Copy Markdown
Member

nihui commented Oct 11, 2025

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants