The Face Mask Detection API enables JSON responses containing photo predictions with probability percentage. The API is capable of adding bounding boxes of detected face masks, and returning multiple predictions for a single photo. If the face mask is put on correctly then the boundingBox contour color is GREEN, if the face mask is put on just partially then the boundingBox contour color is YELLOW, otherwise the person does not wear a face mask and the boundingBox contour color is RED. Only predictions with a probability of 50% or more are returned. The API supports unobstructed JPEG photos at full HD resolution (1920x1080). This interface can be used to check private entrances in restaurants, malls, closed spaces, and airports. The Face Mask Detection API implements HTTP Basic Authentication.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.