![]() ![]() Draw image instead of text (something like: img(roi_rect).setTo(text_img, /*mask=*/ text_img_mask) (C++)). If you need static text message, then you can prepare image with its content (sprite). Or use something from Python world to draw on numpy array. Consider using alternative API via 3rdparty libraries (QT or freetype from opencv_contrib). org: It is the coordinates of the bottom-left corner of the text string in the image. cv2.putText() method is used to draw a text string on any image. putText support Chinese output?python opencv, OpenCV-Python is a library of Python bindings designed to solve computer vision problems. ![]() # Use cv2.FONT_HERSHEY_XXX to write English. import numpy as npįrom PIL import ImageFont, ImageDraw, Image Try to use PIL to draw NO-ASCII(such Chinese) on the image. The cv2.putText don't support no-ascii char in my knowledge. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |