File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 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 */
913package main
Original file line number Diff line number Diff line change 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 */
913package main
Original file line number Diff line number Diff line change 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 */
812package main
Original file line number Diff line number Diff line change 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 */
812package main
You can’t perform that action at this time.
0 commit comments