Skip to content

DetectProtectiveEquipment

Source: src/AWS/Rekognition/DetectProtectiveEquipment.ts

Runtime binding for rekognition:DetectProtectiveEquipment — detect personal protective equipment (face covers, hand covers, head covers) worn by persons in an image.

The binding takes no arguments and grants the function rekognition:DetectProtectiveEquipment on * (Rekognition data-plane resources such as collections, users, and jobs are routinely created at runtime, so their identifiers are unknown at deploy time). Provide the implementation with Effect.provide(AWS.Rekognition.DetectProtectiveEquipmentHttp).

// init
const detectProtectiveEquipment = yield* AWS.Rekognition.DetectProtectiveEquipment();
// runtime
const result = yield* detectProtectiveEquipment({
Image: { Bytes: imageBytes },
SummarizationAttributes: {
MinConfidence: 80,
RequiredEquipmentTypes: ["FACE_COVER"],
},
});