Skip to content

Commit a92fae1

Browse files
chore: Document isMirrored property logic in VisionModule
Add comment explaining isMirrored property handling in VisionModule.
1 parent 456cd83 commit a92fae1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/react-native-executorch/src/modules/computer_vision

packages/react-native-executorch/src/modules/computer_vision/VisionModule.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ export abstract class VisionModule<TOutput> extends BaseModule {
7676
let nativeBuffer: { pointer: bigint; release(): void } | null = null;
7777
try {
7878
nativeBuffer = frame.getNativeBuffer();
79+
/**
80+
Currently isMirrored is nevert set to true in VisionCamera.
81+
That's why we need to use our own property to determine if we need
82+
to mirror the results
83+
**/
7984
const frameData = {
8085
nativeBuffer: nativeBuffer.pointer,
8186
orientation: frame.orientation,

0 commit comments

Comments
 (0)