-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this repo to do OCR job. #5
Comments
Hi @zydjohnHotmail, thanks for your interest. Unfortunately, I've yet to port OCR code over. Currently it only does image captioning ( GenerateCaption(), GenerateDetailedCaption() and GenerateMoreDetailedCaption() ). I plan to eventually port this, but no estimated timeframe. |
Hi,
=> But when I tried to create a class library for this ONNX.Common, I want to use latest version of Nuget packages, so my .csproj file looks like this now:
=> The most tricky issue is, since I am using GA version for System.Numerics.Tensors; not preview version any more, since .net was released in November, so System.Numerics.Tensors went to GA version, which is good for building a class library, however, when I tried to build the class library, I found Visual Studio 2022 shows the project is skipped, not to build at all. |
@zydjohnHotmail Hmmm, I have not worked on this project in awhile ( Due to my studies ), so I do not have good insight on this. But I do not think you should create a class library for the OCR job. The FlorenceSharp library should be further developed to include this functionality, as it is tied to the underlying model. |
I hope I can get back to implementing this as soon as possible, but no ETA atm |
No, actually, I already have the code to do OCR via another repo, so I don't need to do this any more. |
Hi,

I am rather new for Florence2 language model, yesterday, I just received my PC with AMD 370hx CPU, I think this new PC is powerful enough to run some language model, so I want to use this repo to do some OCR job, I just want to scan the image file, let's say, I saved it as: "C:\Images\OCRTest.png".
But I can't find a good example C# code to do the OCR on this image.
Please show me some example code for this.
By the way, I am using Windows 11 with Visual Studio version: 17.12.3, I want to write one WinForms project target x64 CPU with .net 9.0.
Thanks,
The text was updated successfully, but these errors were encountered: