Welcome to Raspbot repository
6.Drawing text picture
Function: cv2.putText(img, str, origin, font, size,color,thickness)
The parameters are: picture, need add text, upper left corner coordinates (integer), font, size of font, color, thickness of font.
Code path:
/home/pi/Yahboom_Project/Raspbot/1.OpenCV_course/03IP_Draw_text_line_segments/ 06_Drawing text picture.ipynb
|
|
After running the following program, a picture will be displayed in the jupyterLab control interface, as shown below.