Open VjspOMMER opened 5 years ago
Another option would be a method to capture an image from the camera stream?
Found something;
You can access e.object.lastVisionImage
;
Then create an ImageSource from it like this:
const bmp = e.object.lastVisionImage.getBitmap();
const source = new ImageSource();
source.setNativeSource(bmp);
This is working for me on android but not on IOS @wimva , you found something ?
I would like to save the picture (base64) once certain conditions are met on the detected face result. However, the image doesn't seem to be available as part of onFaceDetectionResult event.
How could I achieve that behavior? It would be great to have an optional parameter on the component to expose original image as part of results.
Thanks the awesome work!