Integrating ESP32 Camera with Android for Enhanced Object Detection

Good morning,I have a project in which I am using Android application for object detection Currently my phone camera opens when I open the application and it starts detecting the objects But I want to integrate the esp32 cam with android so that esp32 video stream come to android and should be shown at phone's screen Basically it uses phone camera for object detection now it should use esp32 cam Can anyone help?
Solution:
You can run a Webserver on a ESP32 CAM Module. And access it from Android App which can be made by using simple MIT App Inventor. So that the Mobile App will access a video stream over HTTP as a client. Also, you can add additional capabilities like the object detection algorithm running on ESP32 to acces camera stream connected to it.
Jump to solution
12 Replies
Solution
Umesh Lokhande
Umesh Lokhande3mo ago
You can run a Webserver on a ESP32 CAM Module. And access it from Android App which can be made by using simple MIT App Inventor. So that the Mobile App will access a video stream over HTTP as a client. Also, you can add additional capabilities like the object detection algorithm running on ESP32 to acces camera stream connected to it.
aymen ammari
aymen ammari3mo ago
Wich app you are using, it mabe has a sitting to change cam source and his choosing phone cam us default
Ben
Ben3mo ago
I haven't worked with Android applications before, but I tried connecting the ESP32-CAM. I used the example called 'CameraWebServer,' which gave me an address. I put this address into my Python script, and it worked. I'm not sure if I answered your question correctly.
Ben
Ben3mo ago
@wafa_athmani Have you tried calibrating the ESP32-CAM? I ask because I need its parameters for my project. I've already tried, but the results aren't accurate.
wafa_athmani
wafa_athmani3mo ago
Actually i tried your solution by using flask library and then used kodular WebViewer، i completely changed the app but works very nicely and smoothly thank you for the idea
Ben
Ben3mo ago
The ESP32-CAM can only capture frames, it does not support functionalities such as opencv
Umesh Lokhande
Umesh Lokhande3mo ago
To use OpenCV and runing inference (ML). I suggest using RPi with HQ Camera module
wafa_athmani
wafa_athmani3mo ago
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
Ben
Ben3mo ago
RPi is too expensive compared to the ESP32CAM. Can I still use it for capturing frames? I plan to process the data on my laptop and then send it to the ESP32 via WiFi
Ben
Ben3mo ago
And my system doesn't necessarily need to be real-time strict
Ben
Ben3mo ago
I've already tried to calibrate the camera. I need the parameters you obtained to compare them with mine.
Umesh Lokhande
Umesh Lokhande3mo ago
Yes, most of my experience is with RPi and its camera modules. But I'm not sure about ESP32 CAM and its limitations at this moment especially, with capturing frames.
Want results from more Discord servers?
Add your server
More Posts
Which family of chips i should look into for lightweight and custom application?need help guys - so yst i had my hackathon in which i presented a electronic based model were i usedShould I use a resistor voltage divider or dedicated voltage IC?Using a resistor voltage divider network or a dedicated regulator IC to power a Chip, which one is bSTM32U0: The latest generation of entry level ultra-low power MCUshttps://www.st.com/en/microcontrollers-microprocessors/stm32u0-series.htmlCatSniffer - Open-Source Compact Hacker's Tool**CatSniffer** is a compact USB stick for IoT security, featuring TI CC1352, Semtech SX1262, and eitBlynk IoT Cloud now Support MQTT Protocol!Blynk now expanding supported protocol range to add secure two-way communication via MQTT. You can nAnalyze pricing differences among various cloud vendors.Analyze pricing differences among various cloud vendors. The base infrastructure cost is important, Ask a Developer: Understanding MQTT Topic StructuresMQTT is one of the most popular IoT communications protocols for wireless sensor networks. Its publiAutonomous powerline recharging revolutionizes drone operationsResearchers at the **University of Southern Denmark** have created an autonomous drone system for prJob opening Embedded Developer! - Pune, INDIA🚀 Are you a passionate Embedded Developer/Maker seeking an exciting opportunity? Join ElectronicWinUnmatched Controlled impedence signalWhat happens to a controlled impedence signal (e.g 50 ohms) running through a PCB, that is not match