Convert a dlib 'rect' object to a plain tuple in (top, right, bottom, left) order :param rect: a dlib 'rect' object :return: a plain tuple representation of the rect in (top, right, bottom, left) order
(rect)
| 27 | |
| 28 | |
| 29 | def _rect_to_css(rect): |
| 30 | """ |
| 31 | Convert a dlib 'rect' object to a plain tuple in (top, right, bottom, left) order |
| 32 | |
| 33 | :param rect: a dlib 'rect' object |
| 34 | :return: a plain tuple representation of the rect in (top, right, bottom, left) order |
| 35 | """ |
| 36 | return rect.top(), rect.right(), rect.bottom(), rect.left() |
| 37 | |
| 38 | |
| 39 | def _css_to_rect(css): |
no outgoing calls
no test coverage detected