google-coral

How to save an image read via camera.capture_continuous (format rgb) and save it to a file

How to save an image read via camera.capture_continuous (format rgb) and save it to a file Question: I read the raspi camera via camera.capture_continuous(stream,format=’rgb’, use_video_port=True, resize=(width, height) to feed it to the Coral Edge USB Accelerator. This works perfectly. But now I want to save certain images (depending on the analysis) to the harddrive. I’m …

Total answers: 2

How to quantize inputs and outputs of optimized tflite model

How to quantize inputs and outputs of optimized tflite model Question: I use the following code to generate a quantized tflite model import tensorflow as tf def representative_dataset_gen(): for _ in range(num_calibration_steps): # Get sample input data as a numpy array in a method of your choosing. yield [input] converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) converter.optimizations = [tf.lite.Optimize.DEFAULT] …

Total answers: 3