0
Error unindent does not match any outer indentation level
Hi when i try to compile this code i got Error import cv2 import numpy as np cap = cv2.VideoCapture(0) while True: _,fram = cap.read() hsv = cv2.cvtColor(fram, cv2.COLOR_BGR2HSV) LOWER_RED = np.array([150,150,150]) UPPER_RED = np.array([180,255,180]) mask = cv2.inRange(hsv, LOWER_RED, UPPER_RED) RES = cv2.bitwise_and(fram, fram, mask = mask) cv2.imshow(......
2 Antworten
+ 5
You have to indent the code block under the "while True:" line. So that it constitutes a block :)
0
oh thx now it's works :)