I'm -simply- setting a text value in Python's cv2 like this:
cv2.putText(image, landmark['type'], (x, x), cv2.FONT_HERSHEY_PLAIN, 1, (0,255,0), 1)
However, I have a third value: z
. How can I rotate the text according to the z
value?
Example of values:
'position': {
'y': 404.0564,
'x': 1122.9471,
'z': 1.4555236
}
or
'position': {
'y': 404.0564,
'x': 1122.9471,
'z': -12.8743
}