Image Processing #7 - OpenCV Text
You can download the source codes here( https://github.com/raspberry-pi-maker/OpenCV ) Basic text output using putText putText function Draws a text string. Python: cv2. putText ( img, text, org, fontFace, fontScale, color [ , thickness [ , lineType [ , bottomLeftOrigin ] ] ] ) → None Python: cv. PutText ( img, text, org, font, color ) → None Parameters: img – Image. text – Text string to be drawn. org – Bottom-left corner of the text string in the image. font – CvFont structure initialized using InitFont() . fontFace – Font type. One of FONT_HERSHEY_SIMPLEX , FONT_HERSHEY_PLAIN , FONT_HERSHEY_DUPLEX , FONT_HERSHEY_COMPLEX , FONT_HERSHEY_TRIPLEX , FONT_HERSHEY_COMPLEX_SMALL , FONT_HERSHEY_SCRIPT_SIMPLEX , or FONT_HERSHEY_SCRIPT_COMPLEX , where each of the font ID’s can be combined with FONT_ITALIC to get the slanted letters. fontScale – Font scale factor that is multiplied by the font-specific base size. color – Text color. thickness – Th...