fn recognize_celebrities(
        &self,
        input: RecognizeCelebritiesRequest,
    ) -> RusotoFuture<RecognizeCelebritiesResponse, RecognizeCelebritiesError> {
        let mut request = SignedRequest::new("POST", "rekognition", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "RekognitionService.RecognizeCelebrities");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let mut body = response.body;

                    if body.is_empty() || body == b"null" {
                        body = b"{}".to_vec();
                    }

                    serde_json::from_str::<RecognizeCelebritiesResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(RecognizeCelebritiesError::from_response(response))
                    }),
                )
            }
        })
    }
/// <p>Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide. </p> <p> <code>RecognizeCelebrities</code> returns the 100 largest faces in the image. It lists recognized celebrities in the <code>CelebrityFaces</code> array and unrecognized faces in the <code>UnrecognizedFaces</code> array. <code>RecognizeCelebrities</code> doesn't return celebrities whose faces are not amongst the largest 100 faces in the image.</p> <p>For each celebrity recognized, the <code>RecognizeCelebrities</code> returns a <code>Celebrity</code> object. The <code>Celebrity</code> object contains the celebrity name, ID, URL links to additional information, match confidence, and a <code>ComparedFace</code> object that you can use to locate the celebrity's face on the image.</p> <p>Rekognition does not retain information about which images a celebrity has been recognized in. Your application must store this information and use the <code>Celebrity</code> ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by <code>RecognizeCelebrities</code>, you will need the ID to identify the celebrity in a call to the operation.</p> <p>You pass the imput image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file. </p> <p>For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.</p> <p>This operation requires permissions to perform the <code>rekognition:RecognizeCelebrities</code> operation.</p>
Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.   RecognizeCelebrities returns the 100 largest faces in the image. It lists recognized celebrities in the CelebrityFaces array and unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces are not amongst the largest 100 faces in the image. For each celebrity recognized, the RecognizeCelebrities returns a Celebrity object. The Celebrity object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace object that you can use to locate the celebrity's face on the image. Rekognition does not retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities, you will need the ID to identify the celebrity in a call to the operation. You pass the imput image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.  For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide. This operation requires permissions to perform the rekognition:RecognizeCelebrities operation.
Returns an array of celebrities recognized in the input image . For more information see Recognizing Celebrities in the Amazon Rekognition Developer Guide . RecognizeCelebrities returns the 100 largest faces in the image . It lists recognized celebrities in the CelebrityFaces array and unrecognized faces in the UnrecognizedFaces array . RecognizeCelebrities doesn ' t return celebrities whose faces are not amongst the largest 100 faces in the image . For each celebrity recognized the RecognizeCelebrities returns a Celebrity object . The Celebrity object contains the celebrity name ID URL links to additional information match confidence and a ComparedFace object that you can use to locate the celebrity ' s face on the image . Rekognition does not retain information about which images a celebrity has been recognized in . Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity . If you don ' t store the celebrity name or additional information URLs returned by RecognizeCelebrities you will need the ID to identify the celebrity in a call to the operation . You pass the imput image either as base64 - encoded image bytes or as a reference to an image in an Amazon S3 bucket . If you use the Amazon CLI to call Amazon Rekognition operations passing image bytes is not supported . The image must be either a PNG or JPEG formatted file . For an example see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide . This operation requires permissions to perform the rekognition : RecognizeCelebrities operation .
fn recognize_celebrities(
        &self,
        input: RecognizeCelebritiesRequest,
    ) -> RusotoFuture<RecognizeCelebritiesResponse, RecognizeCelebritiesError> {
        let mut request = SignedRequest::new("POST", "rekognition", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "RekognitionService.RecognizeCelebrities");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().map(|response| {
                    let mut body = response.body;
                    if body.is_empty() || body == b"null" {
                        body = b"{}".to_vec();
                    }
                    serde_json::from_str::<RecognizeCelebritiesResponse>(
                        String::from_utf8_lossy(body.as_ref()).as_ref(),
                    )
                    .unwrap()
                }))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(RecognizeCelebritiesError::from_response(response))
                    }),
                )
            }
        })
    }
fn recognize_celebrities ( & self , input : RecognizeCelebritiesRequest , ) -> RusotoFuture < RecognizeCelebritiesResponse , RecognizeCelebritiesError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded . into_bytes ( ) ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . map ( | response | { let mut body = response . body ; if body . is_empty ( ) || body == b" " { body = b" " . to_vec ( ) ; } serde_json :: from_str :: < RecognizeCelebritiesResponse > ( String :: from_utf8_lossy ( body . as_ref ( ) ) . as_ref ( ) , ) . unwrap ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( RecognizeCelebritiesError :: from_response ( response ) ) } ) , ) } } ) }
<p>Returns an array of celebrities recognized in the input image.
<p > Returns an array of celebrities recognized in the input image .
&self
input
RecognizeCelebritiesRequest
&self
input
RecognizeCelebritiesRequest