-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: gzip all JSON OCRs when saving OCR file on disk (#8320)
To save space, all OCR files were gzipped, but new generated files are still saved as plain text JSON files. Also add a created_at field in the OCR JSON file containing the timestamp of generation of the OCR file. This is useful to know if we should generate again old OCR files.
- Loading branch information
1 parent
9983382
commit 45df380
Showing
10 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,3 +217,4 @@ weigher | |
weighers | ||
www | ||
xml | ||
gzipped |
3 changes: 0 additions & 3 deletions
3
tests/integration/expected_test_results/run_cloud_vision_ocr/ocr_data.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
tests/unit/expected_test_results/send_image_to_cloud_vision/ocr_data.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/unit/expected_test_results/send_image_to_cloud_vision/ocr_data_2.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/unit/expected_test_results/send_image_to_cloud_vision/ocr_data_3.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters