Label detection – constructing the request

Now, using Postman, we are going to construct a request and fire it to the Google Video Intelligence API. Click on New and then Request inside Postman. Name the request label detection. I have created a new collection named Video Intelligence API and placed this request inside that. You can import that collection into your Postman as well. This file is available in the Chapter 4APIPostman folder.

Update the new request as follows:

Field

Value

HTTP method

POST

URL

https://videointelligence.googleapis.com/v1/videos:annotate?key=API_KEY

Request body

// SNIPP SNIPP
{
"inputContent": "/9j/7QBEUGhvdG9zaG9...base64-encoded-video-content...fXNWzvDEeYxxxzj/Coa6Bax//Z",

"features": ["LABEL_DETECTION"]
}
// SNIPP SNIPP

 

In the previous fields, update the API Key and base64 encoded string, as applicable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.71.28