Refactor Aspose.OCR#220
Merged
Merged
Conversation
Collaborator
|
@claude review this |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the Aspose.OCR example by simplifying its architecture and improving documentation. The changes modernize the project structure and remove unnecessary abstraction layers while making the example more accessible.
- Replaced project references with NuGet package references for Ivy framework
- Simplified OCR implementation by removing service layer abstractions and implementing OCR directly in the UI component
- Enhanced documentation with comprehensive setup instructions, deployment guide, and licensing information
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crm-vc/Vc.csproj | Switched from local project reference to NuGet package reference for Ivy framework |
| aspose-ocr/README.md | Completely rewrote documentation with detailed setup, deployment, and licensing sections |
| aspose-ocr/Program.cs | Updated namespace and added custom header with GitHub Codespaces link |
| aspose-ocr/GlobalUsings.cs | Changed namespace from Ivy.Aspose.OCR.Examples to AsposeOcrExample |
| aspose-ocr/Connections/OCR/* | Removed OCR service abstraction layer (OCRConnection, IOCRService, AsposeOcrService) |
| aspose-ocr/AsposeOcrExample.sln | Updated project reference to match new project name |
| aspose-ocr/AsposeOcrExample.csproj | Updated root namespace and changed Ivy package version to wildcard |
| aspose-ocr/Apps/ImageToTextApp.cs | Refactored UI layout and moved OCR logic directly into the component |
| .devcontainer/aspose-ocr/devcontainer.json | Added GitHub Codespaces configuration for one-click development environment |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aspose.OCR Image-to-Text
Created Using Ivy
Web application created using Ivy-Framework.
Ivy - The ultimate framework for building internal tools with LLM code generation by unifying front-end and back-end into a single C# codebase. With Ivy, you can build robust internal tools and dashboards using C# and AI assistance based on your existing database.
Ivy is a web framework for building interactive web applications using C# and .NET.
Interactive Example For OCR (Image To Text)
This example showcases extracting text from images using Aspose.OCR with a simple two-panel UI: upload on the left, recognized text on the right.
What This Application Does:
Technical Implementation:
AsposeOcrwithOcrInput(InputType.SingleImage)source.Add(stream)and callsRecognizeRecognitionResult.RecognitionTextin aCodeInputApps/ImageToTextApp.cs) built with Ivy UI primitivesOne-Click Development Environment
Click the badge above to open Ivy Examples repository in GitHub Codespaces with:
How to Run
cd aspose-ocrhttp://localhost:5010)How to Deploy
Deploy this example to Ivy's hosting platform:
cd aspose-ocrThis will deploy your OCR application with a single command.
Licensing & Trial Limitations
Aspose.OCR for .NET is a commercial library that can be used in trial (evaluation) mode without a license.
Trial Mode Restrictions
When running without a license, the following limitations apply:
For more licensing options (metered, embedded resources, stream), see the official licensing documentation.
Learn More