change cropping mechanism

video
Cole Deck 5 years ago
parent d7a2e2602b
commit be2357b9b0

@ -89,9 +89,8 @@ def detect(calibration_width, img_file, show, quick):
image = cv2.imread(img_file)
#image = img_file.copy()
#image = cv2.resize(image, (int(image.shape[1]*1), int(image.shape[0]*1)))
image = cv2.resize(image, (1000, int(
image.shape[0]/image.shape[1] * 1000)), interpolation=cv2.INTER_NEAREST)
image = cv2.resize(image, (floor(image.shape[1]*0.5), floor(image.shape[0]*0.5)))
#image = cv2.resize(image, (1000, int(image.shape[0]/image.shape[1] * 1000)), interpolation=cv2.INTER_NEAREST)
if show and not quick:
cv2.namedWindow("Item Sorter")

Loading…
Cancel
Save