diacritics

How to send accented characters with diacritics in HTTP request-payload?

How to send accented characters with diacritics in HTTP request-payload? Question: I am requiring to send special characters like accented characters with diacritics, e.g. o-acute ó, via API This is my test code import string import http.client import datetime import json def apiSendFarmacia(idatencion,articulo,deviceid): ##API PAYLOAD now = datetime.datetime.now() conn = http.client.HTTPSConnection("apimocha.com") payload = json.dumps({ "idatencion": …

Total answers: 1

cv2.imread file with accent (unicode)

cv2.imread file with accent (unicode) Question: I am trying to load the following file: ‘data/chapter_1/capd_yard_signs\Dueñas_2020.png’ But when I do so, cv2.imread returns an error: imread_(‘data/chapter_1/capd_yard_signsDue├▒as_2020.png’): can’t open/read file: check file path/integrity load file When I specified the file name with os.path.join, I tried encoding and decoding the file f = os.path.join("data/chapter_1/capd_yard_signs", filename.encode().decode()) But that didn’t …

Total answers: 2

Tesseract OCR accents problems, image enhancement not enough

Tesseract OCR accents problems, image enhancement not enough Question: I really need your help with Tesseract. I’m using Tesseract and pdf2image to extract informations from a scanned PDF file. My problem is that Tesseract messes with the accents é, è et ê (i’m french) and with the lowercase "i" and upcase "I". I tried processing …

Total answers: 1

What is the best way to remove accents (normalize) in a Python unicode string?

What is the best way to remove accents (normalize) in a Python unicode string? Question: I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found on the web an elegant way to do this (in Java): convert the Unicode string to its long normalized form (with …

Total answers: 13