Validate if a person in an image is wearing a vest using TensorFlow Lite
npm install @alextfernandes/checkvestValidate if a person in an image is wearing a vest using TensorFlow Lite
``bash`
npm install checkvest
npx cap sync
* echo(...)
* checkHasVest(...)
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
Simple echo test.
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
checkHasVest(options: { imageBase64: string; showLogs?: boolean; }) => Promise<{ hasVest: boolean; }>
Runs vest detection on a Base64 image.
| Param | Type |
| ------------- | --------------------------------------------------------- |
| options` | { imageBase64: string; showLogs?: boolean; } |
Returns: Promise<{ hasVest: boolean; }>
--------------------