Ask Your Question
0

Opencv Doxygen for python

asked 2020-06-27 02:51:35 -0600

mauzil gravatar image

updated 2020-06-27 07:56:41 -0600

supra56 gravatar image

Hi all. My name's Mauro. There is a documentation tree for Python APIs like the C++ version?

i.e.. I nee to use:

cv::rectangle (InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)

But I need the pyhton version cv.rectangle

Best regards, MZ

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2020-06-27 04:49:20 -0600

supra56 gravatar image

Convert this:

cv::rectangle (InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)

to python 3

pt1 = (5, 5)
pt2 = (220, 220)
thickness = 2
cv.rectangle(img, pt1, pt2, (0,255,0), thickness)
edit flag offensive delete link more

Comments

Noticed the pt1 and pt2, colour and thickness to change values to suit your need

supra56 gravatar imagesupra56 ( 2020-06-27 04:51:45 -0600 )edit
0

answered 2020-06-27 03:13:45 -0600

berak gravatar image

why don't you look at the online docs , they have python signatures as well

also, a quick check in the repl ('help' is your friend ;):

>>>  help(cv.rectangle)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-06-27 02:51:35 -0600

Seen: 215 times

Last updated: Jun 27 '20