Я попытался использовать функцию обнаружения текста Google Vision API и веб-демонстрацию Google для распознавания текста в моем изображении. Два результата - это не одно и то же.
Во-первых, я попробовал это с демонстрацией по адресу: https://cloud.google.com/vision/docs/drag-and-drop. Наконец, я попробовал это с кодом API Google на языке Python. Два результата - это не одно и то же, и я не знаю почему. Не могли бы вы помочь мне с этой проблемой?
Мое изображение: http://dfp.crawl.kyanon.digital/crawled_images/m.vta/1931/m.vta-home-slidebanner-image/2/assets/100000_samsung-galaxy-m20.png а>
Мой результат api:
"SAMSUNG Galaxy M20Siêu Pin vô doi, sac nhanh tuc thiMoiSAMSUNG4.990.000dTrà gop 0%Mua ngay"
Результат моей веб-демонстрации: https://imge.to/i/q4gRw Большое спасибо
мой код Python здесь:
client = vision.ImageAnnotatorClient()
raw_byte = cv2.imencode('.jpg', image)[1].tostring()
post_image = types.Image(content=raw_byte)
image_context = vision.types.ImageContext()
response = client.text_detection(image=post_image, image_context=image_context)