Video
The video endpoints measure emotional expression on faces in JPEG images you upload or in video you stream as JPEG frames. For each face they detect, the endpoints return its bounding box. For the largest faces in each image, 2 by default, they also return two lists of scores: expressions, such as amusement, and descriptions of visible facial actions, such as smile.
Upload or realtime
Both endpoints measure the same expressions and descriptions. Upload takes a set of images in one request, and realtime takes video one frame at a time. To measure a recorded video file, send its frames as JPEG images. Streaming them to realtime, as the Python and Node.js quickstarts do, takes as long as the video plays. To measure a recorded video faster than it plays, upload its frames instead.