上QQ阅读APP看书,第一时间看更新
Analyze an image using the Computer Vision API
The Computer Vision API allows us to process an image and retrieve information about it. It relies on advanced algorithms to analyze the content of the image in different ways, based on our needs.
Throughout this section, we will learn how to take advantage of this API. We will look at the different ways to analyze an image through standalone examples. Some of the features we will cover will also be incorporated into our end-to-end application in a later chapter.
Calling any of the APIs will return one of the following response codes:
Code Description200
Information of the extracted features in JSON format.400
Typically, this means bad request. It may be an invalid image URL, an image that is too small or too large, an invalid image format, or any other errors to do with the request body.415
Unsupported media type.500
Possible errors may include a failure to process the image, image processing timing out, or an internal server error.