Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx

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

View File

@ -63,7 +63,7 @@ export function detectObject(frame: Frame): string {
}
```
You can also manipulate the buffer and return it (or a copy) by using the `Frame` class:
You can also manipulate the buffer and return it (or a copy of it) by using the [`Frame` class](https://github.com/cuvent/react-native-vision-camera/blob/main/ios/Frame%20Processor/Frame.h):
```objc
#import <VisionCamera/Frame.h>
@ -75,7 +75,7 @@ static inline id resize(Frame* frame, NSArray args) {
}
```
Which returns a `Frame` in JS:
Which returns a [`Frame`](https://github.com/cuvent/react-native-vision-camera/blob/main/src/Frame.ts) in JS:
```js
const frameProcessor = useFrameProcessor((frame) => {