Face Mask Detection

免费增值
Verified
通过 PresentID | 已更新 2 months ago | Machine Learning

Face Mask Detection 概览

关注者:43
资源:
产品网站
API 创建者:
avatar
PresentID
PresentID
给 API 打分:
登录并给 API 打分

README

PresentID Face mask detection API can detect whether a person is wearing a mask. This service can recognize all the faces in the image and say whether people have masks or not!

Input:

  • Image file
  • Image URL link
  • Base64 image

Output:

  • Masked: 0 or 1

Features

  • Recall rate on FDDB:70.6, Classification Accuracy: 93.7.
  • Less than 300 milliseconds processing time.
  • Detect all small and large faces.
  • High-precision detection of size; pitch, roll, yaw, and 14-point key landmarks.
  • Low resource and impressive high performance.
  • Robust detection of faces with rotation, glasses, etc.
  • Region of interest detection.
  • Support IOS, Android, Windows, and Mac devices.
  • Easy integration with your app.

Use Cases:

  • Building access control

Rules & Restrictions:

  • Send data via base64 or an image URL or an image file.
  • Image size should not exceed 8 MB.
  • Also, the images should not be larger than 5000 pixels and smaller than 50 pixels.

Python Quick Start

import requests

url = "https://face-mask-detection.p.rapidapi.com/FaceMaskDetection"

payload = "linkFile=%3CREQUIRED%3E"
headers = {
    'content-type': "application/x-www-form-urlencoded",
    'x-rapidapi-key': "f485496ab8msh2ea068a0bbe333cp179f86jsn2b4afe8962dd",
    'x-rapidapi-host': "face-mask-detection.p.rapidapi.com"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
打分:3.7 - 投票:3