Error unindent does not match any outer indentation level | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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(......

9th Jun 2017, 9:47 PM
mohannad
mohannad - avatar
2 Answers
+ 5
You have to indent the code block under the "while True:" line. So that it constitutes a block :)
9th Jun 2017, 9:53 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
oh thx now it's works :)
9th Jun 2017, 9:57 PM
mohannad
mohannad - avatar