Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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 ?
You are missing a (, try:
img = np.zeros((512, 512, 3), np.uint8)
Required, but never shown