takePicture = async () => {
if (this.camera) {
let photo = await this.camera.takePictureAsync({base64:true});
console.log("photo taken");
let tfimage = photo.base64;
console.log("<<<<<<");
console.log(photo);
console.log(tfimage);
console.log(">>>>>>>>");
//let tftensor = base64ImageToTensor(tfimage);
//console.log(tftensor);
}
}
I’m unable to log the output of the photo and tfimage. If I remove the base 64 option, I can log the photo object.
here’s a link to the snack - tfjs model - Snack