[Python] How to handle Japanese characters with openCV

I check it every time I use it I will leave it as a memorandum.

python


image = cv2.puttext(image,"Hello World", (0, 0), '<Font path>', 10, (0, 0, 0),2,False)

argument Image, character string, coordinates to draw, font path, character size, character color, character thickness, position of origin of image (True is lower left False is upper left)

The reason why Japanese cannot be displayed as it is is CV2 does not support multibyte characters by default.

In other words, you can draw Japanese on the image by specifying the Japanese font.

Recommended Posts

[Python] How to handle Japanese characters with openCV
How to handle Japanese in Python
How to display python Japanese with lolipop
How to crop an image with Python + OpenCV
How to get started with Python
How to use FTP with Python
How to calculate date with python
How to work with BigQuery in Python
How to use Japanese with NLTK plot
Trying to handle SQLite3 with Python [Note]
[Python] How to deal with module errors
How to install python3 with docker centos
How to not escape Japanese when dealing with json in python
How to make a surveillance camera (Security Camera) with Opencv and Python
[Python] Try to recognize characters from images with OpenCV and pyocr
How to upload with Heroku, Flask, Python, Git (4)
How to enjoy programming with Minecraft (Ruby, Python)
[REAPER] How to play with Reascript in Python
How to do multi-core parallel processing with python
How to install Python
How to crop the lower right part of the image with Python OpenCV
Binarization with OpenCV / Python
Handle Excel with python
[Introduction to Python] How to handle JSON format data
Introduction to OpenCV (python)-(2)
The easiest way to use OpenCV with python
Handle rabbimq with python
Create an image with characters in python (Japanese)
Segfault Python with 33 characters
How to measure execution time with Python Part 1
How to use tkinter with python in pyenv
How to handle datetime type in python sqlite3
How to make Linux compatible with Japanese keyboard
[Python] How to compare datetime with timezone added
Try to detect fish with python + OpenCV2.4 (unfinished)
How to measure execution time with Python Part 2
How to convert / restore a string with [] in python
How to scrape image data from flickr with python
How to do hash calculation with salt in Python
[Introduction to Python] How to iterate with the range function?
I want to handle optimization with python and cplex
How to upload with Heroku, Flask, Python, Git (Part 3)
How to do zero-padding in one line with OpenCV
How to run tests in bulk with Python unittest
[Python] How to specify the download location with youtube-dl
How to measure mp3 file playback time with python
How to use python interactive mode with git bash
It's too troublesome to display Japanese with Vim's python3.
Make a function to describe Japanese fonts with OpenCV
How to upload with Heroku, Flask, Python, Git (Part 1)
[Python] How to deal with pandas read_html read error
How to loop and play gif video with openCV
How to upload with Heroku, Flask, Python, Git (Part 2)
How to get mouse wheel verdict with Python curses
[Python] How to rewrite the table style with python-pptx [python-pptx]
[Python] How to create a 2D histogram with Matplotlib
How to switch to smartphone mode with Python + Selenium + Chrome
How to operate Discord API with Python (bot registration)
[Python] How to draw a scatter plot with Matplotlib
How to handle JSON in Ruby, Python, JavaScript, PHP
Connect to BigQuery with Python