-1

everytime i try to run the code i get the following -->

    cap = cv2.VideoCapture(0)
      ^
IndentationError: expected an indented block

Thats the part where i keep getting the error from

I tried moving the "def hands():" and the error just keeps occurring

wjandrea
  • 28,235
  • 9
  • 60
  • 81
  • It's an Indentation Error!!!! hands() method has no function body. Select from line 6 to line 21 and hit the tab, that should resolve your issue. make sure that ```hands``` you are using many time compiler may get confuse use proper name convention – Shubhankar Nov 13 '22 at 16:36
  • Welcome to Stack Overflow! I've closed your question since there's an existing one that covers this topic. In the future, please start with your own research. Just googling the error message should get you useful results. For more tips, see [ask]. – wjandrea Nov 13 '22 at 16:37
  • And [please don't post pictures of text](https://meta.stackoverflow.com/q/285551/4518341). Instead, copy the text itself and use the formatting tools like [code formatting](/editing-help#code). – wjandrea Nov 13 '22 at 17:27

1 Answers1

0

You need to indent one time cap variable and all code that you what to be executed when calling hands.

ar_ma_cs
  • 11
  • 2