Open KShivum opened 5 months ago
@KShivum Sorry for the late reply.
Add image
feature to win-ocr-rs to implement Into
from image::DynamicImage
to windows::Graphics::Imaging::SoftwareBitmap
.
Then we would be able to perform OCR directly from image::DynamicImage
.
(note: The fn RecognizeAsync seems to take only IntoParam<SoftwareBitmap>
as an argument.)
If you could implement this I would welcome it!
Is your feature request related to a problem? Please describe. rsAutoGUI saves a screenshot as a dynamicimage so I need to save the screenshot to disk just to read it from the disk
Describe the solution you'd like Having a function that reads the image from a dynamic image type
Describe alternatives you've considered Saving image to disk and reading it. Doing this is fine, but it feels like a bit of a burden to drives if you need to do this multiple times a second. Converting the dynamic image to a SoftwareBitmap. Doesn't seem viable
Additional context Hi, thanks for a simple OCR library that doesn't require the end user to download a model which is also easy to use. Hope you can guide me on either working around the issue or adding the feature.