feat(ocr): full OCR pipeline with polygon annotations, training, and guided mode #232

Merged
marcel merged 40 commits from feat/issue-226-227-ocr-pipeline-polygon into main 2026-04-14 10:31:35 +02:00
Showing only changes of commit 2b355e748e - Show all commits

View File

@@ -114,7 +114,8 @@ public class FileService {
/**
* Generates a presigned URL for downloading an object from S3/MinIO.
* Valid for 15 minutes — enough for OCR processing on CPU.
* Valid for 1 hour — covers multi-page documents on CPU-only OCR hardware
* (a 100-page document at 10 s/page takes ~17 min; 1 h gives ample headroom).
*/
public String generatePresignedUrl(String s3Key) {
GetObjectRequest getObjectRequest = GetObjectRequest.builder()
@@ -123,7 +124,7 @@ public class FileService {
.build();
GetObjectPresignRequest presignRequest = GetObjectPresignRequest.builder()
.signatureDuration(Duration.ofMinutes(15))
.signatureDuration(Duration.ofHours(1))
.getObjectRequest(getObjectRequest)
.build();