old mode 100644
new mode 100755
| | |
| | | elif isinstance(hash_size, int): |
| | | hash_size = [hash_size] |
| | | |
| | | num_cores = 15 |
| | | num_partitions = round(card_pool.shape[0]/100) |
| | | num_cores = 16 |
| | | num_partitions = round(card_pool.shape[0]/1000) |
| | | if num_partitions < min(num_cores, card_pool.shape[0]): |
| | | num_partitions = min(num_cores, card_pool.shape[0]) |
| | | pool = Pool(num_cores) |
| | |
| | | if test_ext in ['jpg', 'jpeg', 'bmp', 'png', 'tiff']: |
| | | # Test file is an image |
| | | img = cv2.imread(args.in_path) |
| | | if img is None: |
| | | print('Could not read', args.in_path) |
| | | detect_frame(img, card_pool, hash_size=args.hash_size, out_path=out_path, display=args.display, |
| | | debug=args.debug) |
| | | else: |