Fix syntax error in enhance_image function
Browse files51 unmodified lines5253545556575851 unmodified linesdef enhance_image(img, scale_factor):height, width = img.shape[:2]new_width = int(width * scale_factor)new_height = int(height * scale factor)resized = cv2.resize(img, (new_width, new_height), interpolation=cv2.INTER_LINEAR)sharpen_kernel = np.array([[-1, -1, -1], [-1, 9, -1], [-1, -1, -1]])51 unmodified lines5253545556575851 unmodified linesdef enhance_image(img, scale_factor):height, width = img.shape[:2]new_width = int(width * scale_factor)new_height = int(height * scale_factor) # แก้ไขจาก scale factor เป็น scale_factorresized = cv2.resize(img, (new_width, new_height), interpolation=cv2.INTER_LINEAR)sharpen_kernel = np.array([[-1, -1, -1], [-1, 9, -1], [-1, -1, -1]])
app.py+1-1