wafa_athmani
wafa_athmani
DIIDevHeads IoT Integration Server
Created by wafa_athmani on 3/28/2024 in #firmware-and-baremetal
Integrating ESP32 Camera with Android for Enhanced Object Detection
import time import esp32_camera # Replace with your ESP32-CAM library camera = esp32_camera.Camera() camera.set_resolution((320, 240)) # Adjust as needed camera.capture_frame() img_data = camera.frame format (assuming RGB format) img = Image.frombytes('RGB', camera.frame.shape[:2], img_data) img.save('f3.png', 'PNG') camera.deinit() print("Image captured and saved as f3.png!") This is the code i used to take a pic , i hope it would help you
14 replies