We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc5e9ff commit 1967945Copy full SHA for 1967945
1 file changed
examples/official/camera_file/file.py
@@ -33,13 +33,15 @@
33
if not os.path.exists(image_path):
34
print("The image path does not exist.")
35
continue
36
+
37
+ cv_image = cv2.imread(image_path)
38
result = cvr_instance.capture(
- image_path, EnumPresetTemplate.PT_READ_BARCODES.value)
39
+ cv_image, EnumPresetTemplate.PT_READ_BARCODES.value)
40
if result.get_error_code() != EnumErrorCode.EC_OK:
41
print("Error:", result.get_error_code(),
42
result.get_error_string())
43
else:
- cv_image = cv2.imread(image_path)
44
45
46
items = result.get_items()
47
print('Found {} barcodes.'.format(len(items)))
0 commit comments