resolveLabels(encodedImage) {
    let imageBytes = this._getBinary(encodedImage);

    const params = {
      Image: {
        Bytes: imageBytes,
      },
      MaxLabels: 10,
      MinConfidence: 50,
    };

    return new Promise((resolve, reject) => {
      recognition.detectLabels(params, (err, data) => {
        if (err) {
          return reject(new Error(err));
        }
        console.log('Analysis labels:', data.Labels);
        return resolve(data.Labels);
      });
    });
  }
/**
   * Resolve image labels via Rekognition Service
   * @param {string} encodedImage 
   */
Resolve image labels via Rekognition Service
@param {string} encodedImage
Resolve image labels via Rekognition Service @param { string } encodedImage
resolveLabels(encodedImage) {
    let imageBytes = this._getBinary(encodedImage);
    const params = {
      Image: {
        Bytes: imageBytes,
      },
      MaxLabels: 10,
      MinConfidence: 50,
    };
    return new Promise((resolve, reject) => {
      recognition.detectLabels(params, (err, data) => {
        if (err) {
          return reject(new Error(err));
        }
        console.log('Analysis labels:', data.Labels);
        return resolve(data.Labels);
      });
    });
  }
resolveLabels ( encodedImage ) { let imageBytes = this . _getBinary ( encodedImage ) ; const params = { Image : { Bytes : imageBytes , } , MaxLabels : 10 , MinConfidence : 50 , } ; return new Promise ( ( resolve , reject ) => { recognition . detectLabels ( params , ( err , data ) => { if ( err ) { return reject ( new Error ( err ) ) ; } console . log ( 'Analysis labels:' , data . Labels ) ; return resolve ( data . Labels ) ; } ) ; } ) ; }
Resolve image labels via Rekognition Service
 @param {string} encodedImage
Resolve image labels via Rekognition Service @param { string } encodedImage