We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In python, using:
cv2.putText(frame, text, org, font_face, font_scale, color, lineType=cv2.LINE_AA)
doesn't produce antialiased text when frame is of type np.float32.
frame
np.float32
Changing it to:
frame = (frame*255).astype(np.uint8) cv2.putText(frame, text, org, font_face, font_scale, color, lineType=cv2.LINE_AA)
and using
color=(255, 255, 255) instead of color=(1, 1, 1)
color=(255, 255, 255)
color=(1, 1, 1)
then nicely antialiases the text...
This is with opencv-python-headless=4.4.0.42
opencv-python-headless=4.4.0.42
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In python, using:
doesn't produce antialiased text when
frame
is of typenp.float32
.Changing it to:
and using
color=(255, 255, 255)
instead ofcolor=(1, 1, 1)
then nicely antialiases the text...
This is with
opencv-python-headless=4.4.0.42
The text was updated successfully, but these errors were encountered: