Thetruemank / pytextsniper

MIT License
0 stars 0 forks source link

Improve text extraction for complex backgrounds #3

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR aims to improve the text extraction process for complex backgrounds, such as images or gradients, where the current method struggles to accurately extract the text. The proposed changes involve preprocessing the image before feeding it to pytesseract for OCR.

Summary

These changes aim to enhance the accuracy of text extraction when the text is overlaid on a busy background. By preprocessing the image to make the text stand out more against the background, we can improve the OCR results and ensure that the extracted text is more reliable.

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/improve-text-extraction

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can: