mbeyeler / opencv-python-blueprints

M. Beyeler (2015). OpenCV with Python Blueprints: Design and develop advanced computer vision projects using OpenCV with Python, Packt Publishing Ltd., ISBN 978-178528269-0.
GNU General Public License v3.0
291 stars 184 forks source link

Classification label not drawn above bounding box #6

Closed mbeyeler closed 8 years ago

mbeyeler commented 8 years ago

Thanks to @G10DRAS:

I found another bug, which is related to putTextabove a detected face. x,y co-ordinate are missing in function.

chapter7.py
def _process_frame(self, frame):
........
                # draw label above bounding box
                cv2.putText(frame, str(label), (x, y - 20),
                            cv2.FONT_HERSHEY_COMPLEX, 1, (0, 255, 0), 2)
mbeyeler commented 8 years ago

Closed #6 via 92c92d0e71d09b54ca94e79bd9a69509cdf5e05a.