Skip to content

Commit

Permalink
Add onGoogleVisionBarcodesDetected explanation (react-native-camera…
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas authored and sibelius committed Sep 24, 2018
1 parent 9615668 commit 9f65f52
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/RNCamera.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class BadInstagramCloneApp extends Component {
flashMode={RNCamera.Constants.FlashMode.on}
permissionDialogTitle={'Permission to use camera'}
permissionDialogMessage={'We need your permission to use your camera phone'}
onGoogleVisionBarcodesDetected={({ barcodes }) => {
console.log(barcodes)
}}
/>
<View style={{flex: 0, flexDirection: 'row', justifyContent: 'center',}}>
<TouchableOpacity
Expand Down Expand Up @@ -297,11 +300,16 @@ The following barcode types can be recognised:

The barcode type is provided in the `data` object.


#### `barCodeTypes`

An array of barcode types to search for. Defaults to all types listed above. No effect if `onBarCodeRead` is undefined.
Example: `<RNCamera barCodeTypes={[RNCamera.Constants.BarCodeType.qr]} />`

#### `Android` `onGoogleVisionBarcodesDetected`

Like `onBarCodeRead`, but we will use Google Play Service Vision to scan barcodes, which is pretty fast on Android. Note: If you already set `onBarCodeRead`, this will be invalid.

### Face Detection Related props

RNCamera uses the Google Mobile Vision frameworks for Face Detection, you can read more info about it [here](https://developers.google.com/android/reference/com/google/android/gms/vision/face/FaceDetector).
Expand Down

0 comments on commit 9f65f52

Please sign in to comment.