Commit 9099f93
authored
feat: improve documentation and add tests for existing features (#44)
This PR verifies and improves the implementation of three quick-win features
that were already implemented in the recent refactoring:
1. Image Watermark Support (Issue #11)
- Already supports FileInput (str, Path, bytes, file-like, URL)
- Improved docstring with comprehensive examples
- Added unit tests for bytes and Path inputs
2. Multi-Language OCR Support (Issue #10)
- Already supports List[OcrLanguage] for multiple languages
- Improved docstring with multi-language examples
- Added unit tests for three languages and ISO codes
3. Selective Annotation Flattening (Issue #12)
- Already supports annotation_ids parameter (str or int)
- Improved docstring with examples for string, int, and mixed IDs
- Added comprehensive unit tests for all ID types
All features maintain backward compatibility.
257 unit tests passing.1 parent 96e4e57 commit 9099f93
2 files changed
+404
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
451 | | - | |
| 452 | + | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
455 | 472 | | |
456 | 473 | | |
457 | 474 | | |
| |||
531 | 548 | | |
532 | 549 | | |
533 | 550 | | |
534 | | - | |
| 551 | + | |
| 552 | + | |
535 | 553 | | |
536 | 554 | | |
537 | 555 | | |
538 | 556 | | |
539 | 557 | | |
540 | 558 | | |
| 559 | + | |
541 | 560 | | |
542 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
543 | 565 | | |
544 | 566 | | |
545 | 567 | | |
| |||
952 | 974 | | |
953 | 975 | | |
954 | 976 | | |
955 | | - | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
956 | 980 | | |
957 | 981 | | |
958 | 982 | | |
| |||
962 | 986 | | |
963 | 987 | | |
964 | 988 | | |
965 | | - | |
| 989 | + | |
966 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
967 | 997 | | |
968 | 998 | | |
969 | 999 | | |
| |||
0 commit comments