|
2 | 2 |
|
3 | 3 | """ |
4 | 4 |
|
5 | | - Copyright (c) 2023 Aspose.BarCode for Cloud |
| 5 | + Copyright (c) 2024 Aspose.BarCode for Cloud |
6 | 6 |
|
7 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy |
8 | 8 | of this software and associated documentation files (the "Software"), to deal |
@@ -410,6 +410,7 @@ def get_barcode_recognize( |
410 | 410 | self, |
411 | 411 | name, |
412 | 412 | type=None, |
| 413 | + types=None, |
413 | 414 | checksum_validation=None, |
414 | 415 | detect_encoding=None, |
415 | 416 | preset=None, |
@@ -458,6 +459,7 @@ def get_barcode_recognize( |
458 | 459 |
|
459 | 460 | :param str name: The image file name. # noqa: E501 |
460 | 461 | :param str type: The type of barcode to read. # noqa: E501 |
| 462 | + :param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501 |
461 | 463 | :param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501 |
462 | 464 | :param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501 |
463 | 465 | :param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501 |
@@ -504,6 +506,7 @@ def get_barcode_recognize( |
504 | 506 | return self.get_barcode_recognize_with_http_info( |
505 | 507 | name, |
506 | 508 | type=type, |
| 509 | + types=types, |
507 | 510 | checksum_validation=checksum_validation, |
508 | 511 | detect_encoding=detect_encoding, |
509 | 512 | preset=preset, |
@@ -546,6 +549,7 @@ def get_barcode_recognize( |
546 | 549 | (data) = self.get_barcode_recognize_with_http_info( |
547 | 550 | name, |
548 | 551 | type=type, |
| 552 | + types=types, |
549 | 553 | checksum_validation=checksum_validation, |
550 | 554 | detect_encoding=detect_encoding, |
551 | 555 | preset=preset, |
@@ -603,6 +607,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs): |
603 | 607 | all_params = { |
604 | 608 | "name", |
605 | 609 | "type", |
| 610 | + "types", |
606 | 611 | "checksum_validation", |
607 | 612 | "detect_encoding", |
608 | 613 | "preset", |
@@ -667,6 +672,9 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs): |
667 | 672 | query_params = [] |
668 | 673 | if "type" in params: |
669 | 674 | query_params.append(("Type", params["type"])) |
| 675 | + if "types" in params: |
| 676 | + query_params.append(("Types", params["types"])) |
| 677 | + collection_formats["Types"] = "multi" |
670 | 678 | if "checksum_validation" in params: |
671 | 679 | query_params.append(("ChecksumValidation", params["checksum_validation"])) |
672 | 680 | if "detect_encoding" in params: |
@@ -779,6 +787,7 @@ def get_barcode_recognize_with_http_info(self, name, **kwargs): |
779 | 787 | def post_barcode_recognize_from_url_or_content( |
780 | 788 | self, |
781 | 789 | type=None, |
| 790 | + types=None, |
782 | 791 | checksum_validation=None, |
783 | 792 | detect_encoding=None, |
784 | 793 | preset=None, |
@@ -826,6 +835,7 @@ def post_barcode_recognize_from_url_or_content( |
826 | 835 | >>> result = thread.get() |
827 | 836 |
|
828 | 837 | :param str type: The type of barcode to read. # noqa: E501 |
| 838 | + :param list[DecodeBarcodeType] types: Multiple barcode types to read. # noqa: E501 |
829 | 839 | :param str checksum_validation: Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies # noqa: E501 |
830 | 840 | :param bool detect_encoding: A flag which force engine to detect codetext encoding for Unicode. # noqa: E501 |
831 | 841 | :param str preset: Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality. # noqa: E501 |
@@ -871,6 +881,7 @@ def post_barcode_recognize_from_url_or_content( |
871 | 881 | if async_req: |
872 | 882 | return self.post_barcode_recognize_from_url_or_content_with_http_info( |
873 | 883 | type=type, |
| 884 | + types=types, |
874 | 885 | checksum_validation=checksum_validation, |
875 | 886 | detect_encoding=detect_encoding, |
876 | 887 | preset=preset, |
@@ -912,6 +923,7 @@ def post_barcode_recognize_from_url_or_content( |
912 | 923 | else: |
913 | 924 | (data) = self.post_barcode_recognize_from_url_or_content_with_http_info( |
914 | 925 | type=type, |
| 926 | + types=types, |
915 | 927 | checksum_validation=checksum_validation, |
916 | 928 | detect_encoding=detect_encoding, |
917 | 929 | preset=preset, |
@@ -967,6 +979,7 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs): |
967 | 979 |
|
968 | 980 | all_params = { |
969 | 981 | "type", |
| 982 | + "types", |
970 | 983 | "checksum_validation", |
971 | 984 | "detect_encoding", |
972 | 985 | "preset", |
@@ -1029,6 +1042,9 @@ def post_barcode_recognize_from_url_or_content_with_http_info(self, **kwargs): |
1029 | 1042 | query_params = [] |
1030 | 1043 | if "type" in params: |
1031 | 1044 | query_params.append(("Type", params["type"])) |
| 1045 | + if "types" in params: |
| 1046 | + query_params.append(("Types", params["types"])) |
| 1047 | + collection_formats["Types"] = "multi" |
1032 | 1048 | if "checksum_validation" in params: |
1033 | 1049 | query_params.append(("ChecksumValidation", params["checksum_validation"])) |
1034 | 1050 | if "detect_encoding" in params: |
|
0 commit comments