You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `-w`, `--workers`: Number of parallel workers for processing. By default, the script will use all available CPU cores. Setting this to 1 will use sequential processing. (Optional, type: int)
55
55
56
-
- `--width`: The output image's width in pixels. If not specified, the width will be the same as the input video. (Optional, type: int)
56
+
- `--width`: For horizontal barcodes, sets both (1) the number of sampled frames and (2) the output image width in pixels. If not specified, defaults to the input video width. For circular barcodes, this flag is ignored (see notes). (Optional, type: int)
57
57
58
58
- `--height`: The output image's height in pixels. If not specified, the height will be the same as the input video. (Optional, type: int)
59
59
60
60
- `-n`, `--output_name`: Custom name for the output barcode image. If not provided, a name will be automatically generated. (Optional, type: str)
61
61
62
-
- `-a`, `--all_methods`: If set to True, all methods for color extraction will be employed, overriding the --method argument. Default is False. (Optional, type: bool)
62
+
- `-a`, `--all_methods`: If set, all extraction methods will be run. This overrides `--method` and produces one image per method. Default is False. (Optional, type: bool)
63
+
64
+
Notes:
65
+
- Circular barcode sizing: circular barcode diameter uses the input video width by default. `--width`/`--height` do not apply to circular barcodes.
66
+
- Destination paths:
67
+
- If a relative path is provided, it is resolved relative to the project root.
68
+
- If only a filename (basename) is provided, it is saved in the project root.
69
+
- Parent directories are created automatically when saving the image.
0 commit comments