0

I've been attempting to use OpenCV on the Raspberry Pi to get blob detection working. I know very little about python itself, and so I've been using this code to get it working. However, after attempting to run it, I've encountered Syntax Error: invalid syntax at line 47:

cv.Circle(color_image, center point, 40, cv.CV_RGB(255, 255, 255), 1)

I'm having issues finding what the error is, does anyone have any ideas?

4
  • 1
    "center point" is not a valid name because of the space. Commented Mar 14, 2014 at 18:14
  • Fixed that, still getting the same error message. Commented Mar 14, 2014 at 18:25
  • Is the center point an x,y pair? It would help to see more code. Commented Mar 14, 2014 at 18:32
  • The code I'm using is in the link in the original post, the first instance of center_point is 'center_point = reduce(lambda a, b: ((a[0] + b[0]) / 2, (a[1] + b[1]) / 2), points)', right above the line with the error Commented Mar 14, 2014 at 18:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.