1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

samples(python): fix argparse boolean flag for --try_cuda

This commit is contained in:
Karnav Shah
2025-12-15 15:53:04 +05:30
parent 912d27a7b7
commit 1eb1157490
+1 -3
View File
@@ -95,10 +95,8 @@ parser.add_argument(
)
parser.add_argument(
'--try_cuda',
action='store',
default=False,
action='store_true',
help="Try to use CUDA. The default value is no. All default values are for CPU mode.",
type=bool, dest='try_cuda'
)
parser.add_argument(
'--work_megapix', action='store', default=0.6,