Cartucho / OpenLabeling

Label images and video for Computer Vision applications
Apache License 2.0
926 stars 265 forks source link

TypeError: Scalar value for argument 'color' is not numeric #4

Closed MattKleinsmith closed 6 years ago

MattKleinsmith commented 6 years ago

Actions:

ipython run.py
Click anywhere

Error:

--> 245             cv2.rectangle(tmp_img, point_1, (mouse_x, mouse_y), color, 2)
TypeError: Scalar value for argument 'color' is not numeric

Workaround:

Pull request: https://github.com/Cartucho/yolo-boundingbox-labeler-GUI/pull/5/files

Description: Add .tolist() to color.

Environment:

Ubuntu 16.04, Python 3.6.3, Anaconda 5.0.1, OpenCV 3.4.0

Cartucho commented 6 years ago

Thanks! @MattKleinsmith