Port of Line segmentation algorithm to GCP vision in C# language as .NET standard library
Nuget package: Inspirare.Google.Vision.API.LineSegmentation
Firstly use Google Vision API to get annotation results as such:
using LineSegmentationAlgorithmToGCPVision;
...
var result = client.Annotate(annotateImageRequest);
Where client
is ImageAnnotatorClient
and annotateImageRequest
is AnnotateImageRequest
Remember to include a Feature.Types.Type.DocumentTextDetection
feature in the AnnotateImageRequest
.
After that use this library to process the result as such:
var text = LineSegmentation.InitLineSegmentation(result);
This will return an IEnumerable<string>
with lines of connected text.
For more information about the algorithm itself please visit Original repository
File issues in the Issue
section
Any contributions are welcome in the form of a Pull Request
- Maintain the port
- Make the project into a nuget package - Improve and refactor algorithm with C# syntax to perform better
- Fix bugs
- Add CI