mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-20 04:25:42 +08:00
python3 compatible
This commit is contained in:
@@ -231,7 +231,7 @@ if __name__ == '__main__':
|
|||||||
state = load_json(args.state)
|
state = load_json(args.state)
|
||||||
|
|
||||||
algorithm_list = parse_sequence(args.algorithms)
|
algorithm_list = parse_sequence(args.algorithms)
|
||||||
img_range = map(int, parse_sequence(args.range))
|
img_range = list(map(int, parse_sequence(args.range)))
|
||||||
if len(img_range)!=2:
|
if len(img_range)!=2:
|
||||||
print("Error: Please specify the -r parameter in form <first_image_index>,<last_image_index>")
|
print("Error: Please specify the -r parameter in form <first_image_index>,<last_image_index>")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user