Skip to content

Commit 5dcaf4a

Browse files
committed
update comments
1 parent 39ddc50 commit 5dcaf4a

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

ocr/hocr_sample.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* output. The program parses the HOCR response and extracts word-level information
55
* including bounding boxes and confidence scores.
66
*
7+
* This example uses https://github.com/unidoc/ocrserver as the OCR service.
8+
* However, UniPDF's OCR API is designed to support other OCR services that accept
9+
* image uploads via HTTP and return text or HOCR formatted results.
10+
*
711
* Run as: go run hocr_sample.go input.jpg
812
*/
913
package main

ocr/ocr_batch.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* The program processes multiple image files concurrently and displays the extracted
55
* text results along with a summary of successful and failed operations.
66
*
7+
* This example uses https://github.com/unidoc/ocrserver as the OCR service.
8+
* However, UniPDF's OCR API is designed to support other OCR services that accept
9+
* image uploads via HTTP and return text or HOCR formatted results.
10+
*
711
* Run as: go run ocr_batch.go image1.jpg image2.png [image3.jpg ...]
812
*/
913
package main

ocr/ocr_sample.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* to perform OCR on an image using an HTTP OCR service. The program sends an image
44
* to the configured OCR endpoint and displays the extracted text.
55
*
6+
* This example uses https://github.com/unidoc/ocrserver as the OCR service.
7+
* However, UniPDF's OCR API is designed to support other OCR services that accept
8+
* image uploads via HTTP and return text or HOCR formatted results.
9+
*
610
* Run as: go run ocr_sample.go input.jpg
711
*/
812
package main

ocr/reconstruct_pdf_from_hocr.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* to extract text from within images in a PDF using an OCR service that returns
44
* HOCR formatted output then writes the reconstructed text to a new PDF.
55
*
6+
* This example uses https://github.com/unidoc/ocrserver as the OCR service.
7+
* However, UniPDF's OCR API is designed to support other OCR services that accept
8+
* image uploads via HTTP and return text or HOCR formatted results.
9+
*
610
* Run as: go run reconstruct_pdf_from_hocr.go input.pdf
711
*/
812
package main

0 commit comments

Comments
 (0)