aarongrider / vision-camera-ocr

VisionCamera Frame Processor Plugin to detect text in real time using MLKit Text Detector (OCR)
MIT License
235 stars 86 forks source link

Is flash prop from react-native-vision-camera exposed? #23

Closed nriccar closed 1 year ago

nriccar commented 1 year ago

Hello there!

First of all, thanks for this contribution, its awesome! I'm actually trying to turn on flash, since text recognition with low light conditions is not 100% accurate.

Any insights on this? Thanks!

nriccar commented 1 year ago

Found it!

 <Camera
        style={[StyleSheet.absoluteFill]}
        frameProcessor={frameProcessor}
        device={device}
        isActive={true}
        frameProcessorFps={60}
        lowLightBoost={device.supportsLowLightBoost} 
        onError={handleCameraError}
        torch={device.hasTorch ? 'on' : 'off'}
        hdr={true}
      />