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