Skip to content

Add OCR.space client and result wrapper - #15

Merged
zewelor merged 1 commit into
mainfrom
add_ocrspace_client
Mar 21, 2026
Merged

Add OCR.space client and result wrapper#15
zewelor merged 1 commit into
mainfrom
add_ocrspace_client

Conversation

@zewelor

@zewelor zewelor commented Mar 21, 2026

Copy link
Copy Markdown
Contributor
  • Add R3x::Client::Ocr: Faraday client that uploads images as base64
  • Require explicit filetype for IO; auto-detect MIME from paths
  • Add R3x::Client::Ocr::Result: enumerable pages, text and helpers
  • Add comprehensive tests in test/lib/r3x/client/ocr_test.rb (covers success, partial, API/HTTP errors, params and page error details)
  • Remove obsolete workflow test test/workflows/summerhouse_monitoring_test.rb

- Add `R3x::Client::Ocr`: Faraday client that uploads images as base64
- Require explicit filetype for IO; auto-detect MIME from paths
- Add `R3x::Client::Ocr::Result`: enumerable pages, text and helpers
- Add comprehensive tests in `test/lib/r3x/client/ocr_test.rb` (covers
  success, partial, API/HTTP errors, params and page error details)
- Remove obsolete workflow test `test/workflows/summerhouse_monitoring_test.rb`
@zewelor
zewelor merged commit d0b156b into main Mar 21, 2026
4 checks passed
@zewelor
zewelor deleted the add_ocrspace_client branch March 21, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant