diff --git a/crop_plates.py b/crop_plates.py index 30ae5a05..7cd4a412 100755 --- a/crop_plates.py +++ b/crop_plates.py @@ -160,7 +160,7 @@ def crop_rect(big_image, x,y,width,height): # cv2.imshow("test", crop) # cv2.waitKey(0) - out_crop_path = os.path.join(options.out_dir, yaml_without_ext + ".jpg") + out_crop_path = os.path.join(options.out_dir, yaml_file + ".jpg") cv2.imwrite(out_crop_path, crop ) print "%d Cropped images are located in %s" % (count-1, options.out_dir)