Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in demo_showcandidates.py? #31

Open
askerlee opened this issue Aug 24, 2017 · 0 comments
Open

bug in demo_showcandidates.py? #31

askerlee opened this issue Aug 24, 2017 · 0 comments

Comments

@askerlee
Copy link

When demo_showcandidates.py shows all the proposed bounding boxes, it calls:
55: painter.drawRect(x0, y0, x1, y1)
I guess here x1, y1 are the coordinate of the right-upper corner of the box?

But according to the document of QPainter.drawRect:
http://pyqt.sourceforge.net/Docs/PyQt4/qpainter.html#drawRect-2
QPainter.drawRect (self, int x, int y, int w, int h)
The last two parameters are width and height of the box.

So I guess the correct call should be
painter.drawRect(x0, y0, x1-x0, y1-y0)

Am I right? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant