I am working on setMouseCallback() event in a program for mouse as a paint brush. In the attachment, there is code on right side and Python Shell on Left side. When I run the code there is Syntax error.

How can i fix this error ?

enter image description here

1 Answer 1


You are missing a (, try:

img = np.zeros((512, 512, 3), np.uint8)

Your Answer

