feat(ocr): add image preprocessing pipeline to improve transcription quality on aged documents #255
@@ -77,6 +77,12 @@ describe('translateOcrProgress', () => {
|
||||
expect(result.totalPages).toBe(10);
|
||||
});
|
||||
|
||||
it('PREPROCESSING_PAGE with no colon parts gracefully falls back to zero', () => {
|
||||
const result = translateOcrProgress('PREPROCESSING_PAGE');
|
||||
expect(result.currentPage).toBe(0);
|
||||
expect(result.totalPages).toBe(0);
|
||||
});
|
||||
|
||||
it('translates ERROR', () => {
|
||||
expect(translateOcrProgress('ERROR').message).toBe('OCR fehlgeschlagen');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user