Error detecting numbers

73 vaatamist
Liigu esimese lugemata sõnumi juurde

Valerio Brunori

lugemata,
10. aug 2022, 12:28:0210.08.22
kuni cloud-vision-discuss
Hello everybody!
I'm a problem with the TEXT_DOCUMENTS for detecting number.
For istance in this image, where it should simply detect 3 numbers "08 01 1929" that is a born date in format day-month-year, it seems to rotate the image of 180° and so understand "616r ro 80". How can I suggest to the algorithm that some images are supposed to be numbers, and that it doesn't have to rotate the image?
 Thank you in advance!
Valerio
Immagine 2022-08-10 182312.png

Eduardo Ortiz Caraveo

lugemata,
10. aug 2022, 19:10:1310.08.22
kuni cloud-vision-discuss
You could be able to achieve this by making use of OCR.

Valerio Brunori

lugemata,
11. aug 2022, 03:03:2911.08.22
kuni Eduardo Ortiz Caraveo,cloud-vision-discuss
Yes, I make use of OCR Tool Vision but maybe I'm wrong in something
The very simple PHP code I use is like this:

require "/var/www/vendor/autoload.php";
use Google\Cloud\Vision\VisionClient;
$vision=new VisionClient(['keyFile'=>json_decode(file_get_contents("*******.json"),true)]);
$image = fopen($imageName,'r');
$processedImage=$vision->image($image,['DOCUMENT_TEXT_DETECTION']);
$result=$vision->annotate($ processedImage);

I achieve the same result than the "Try it!" demo page. And I don't know in this code how to hint the algorithm that I'm finding numbers and to not rotate the image.
It's seems very strange. With alphabetical words it works quite well, with number not.

    

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Vision Discussion Google Group (cloud-visi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Vision community and the Google Cloud Vision Team.
---
You received this message because you are subscribed to a topic in the Google Groups "cloud-vision-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cloud-vision-discuss/j2CNQTc9xs8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cloud-vision-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-vision-discuss/9e8db402-5d67-41a6-89ed-9b35036dc7fcn%40googlegroups.com.

Eduardo Ortiz Caraveo

lugemata,
11. aug 2022, 19:58:3811.08.22
kuni cloud-vision-discuss
You might want to see what is different from the PHP code you are using, since it seems that the issue is due to the code you are running.

Valerio Brunori

lugemata,
12. aug 2022, 02:39:4012.08.22
kuni Eduardo Ortiz Caraveo,cloud-vision-discuss
No, the problem is that my PHP code achieve the same result than the "Try it!" demo page, but they both don't manage to achieve the real sequence of number that is "08 01 1929", both rotate the image of 180 degrees, and they both see "616r ro 80" that is something similar to the image rotated. 9 becomes 6, etc...

You received this message because you are subscribed to the Google Groups "cloud-vision-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-vision-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-vision-discuss/36bd781a-93c3-4ec6-b0ff-beaaba4bb4c5n%40googlegroups.com.

Jose Gutierrez Paliza

lugemata,
19. aug 2022, 13:30:3419.08.22
kuni cloud-vision-discuss

You can use a Block Text Detection only for the Numbers as mentioned in this post.


Also there are sometimes that TEXT_DETECTION is not always the best when detecting Numbers sometimes is better to create your own TensorFlow Model so you can check this post that explains a system setup to detect number plates(A specific number format).


Also check that Vision API supports libraries such as enum for the FeatureType enumeration.
Vasta kõigile
Vasta autorile
Saada edasi
0 uut sõnumit