diff --git a/README.md b/README.md index b2c5eb89c..d07158ccf 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,11 @@ if backed gets suck or no camera are recognized after a crash do: ``` sudo pkill -9 python3 ``` - +#### compiling: +in order to compile the program for runtime run: +``` +python3 -m nuitka --follow-imports Main.py +``` #### for the frontend 1. sudo apt-get install nodejs npm 2. cd chameleon-client diff --git a/backend/app/handlers/VisionHandler.py b/backend/app/handlers/VisionHandler.py index 579dcb005..620995e2a 100644 --- a/backend/app/handlers/VisionHandler.py +++ b/backend/app/handlers/VisionHandler.py @@ -19,7 +19,7 @@ class VisionHandler(): def find_contours(self, binary_img: numpy.ndarray): - contours, _ = cv2.findContours(binary_img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_L1) + _,contours, _ = cv2.findContours(binary_img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_L1) return contours class Filter_Contours: