Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx

This commit is contained in:
Marc Rousavy 2021-06-09 11:22:53 +02:00 committed by GitHub
parent db2d52c74c
commit b53b259790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
## Overview ## Overview
Frame Processor Plugins are **native functions** which can be directly called from a JS Frame Processor. (See [Frame Processors](frame-processors)) Frame Processor Plugins are **native functions** which can be directly called from a JS Frame Processor. (See ["Frame Processors"](frame-processors))
They **receive a frame from the Camera** as an input and can return any kind of output. For example, a `scanQRCodes` function returns an array of detected QR code strings in the frame: They **receive a frame from the Camera** as an input and can return any kind of output. For example, a `scanQRCodes` function returns an array of detected QR code strings in the frame:
@ -98,7 +98,7 @@ const frameProcessor = useFrameProcessor((frame) => {
}, []) }, [])
``` ```
Or with multiple parameters: Or with multiple ("variadic") parameters:
```ts ```ts
const frameProcessor = useFrameProcessor((frame) => { const frameProcessor = useFrameProcessor((frame) => {