GCloud Vision - Bad results for node api compare to the Vision landing page demo

64 Views Asked by At

I'm using the gcloud Node SDK to detect text in small images. It works ok for most of the samples but then, there are a couple of rather obvious image samples that somehow GCloud fails to read.

However when i try the exact image on Vision landing page GCloud Vision it works just perfectly.

    const vision = require('@google-cloud/vision')
    vision.detectText('my-image.jpg').then((result) => {
       // result is empty
    });

Sample Image:

enter image description here

Gcloud Node SDK Result (EMPTY):

[[],{"responses":[{"faceAnnotations":[],"landmarkAnnotations":[],"logoAnnotations":[],"labelAnnotations":[],"textAnnotations":[],"fullTextAnnotation":null,"safeSearchAnnotation":null,"imagePropertiesAnnotation":null,"cropHintsAnnotation":null,"webDetection":null,"error":null}]}]

GCloud Vision Landing page demo result (CORRECT) :

enter image description here

0

There are 0 best solutions below