Comments (6)
Hi! Thanks for this awesome code. Currently I'm using it to serve a raw mjpeg stream to which I can connect to via browser. It works great.
Is there any way to overlay text on the video with this as they are doing with the facial recognition code? I have been trying to figure it out but I'm stumped. I'm using an Ai Thinker esp32-cam
Thanks a lot.
Hey, I had the same problem and I coded an example. It works fine
https://github.com/flaviopuhl/ESP32-Cam-Text-overlay
from esp32-camera.
You can to some limitations. With face recognition we use small frame sizes, we turn the image into RGB888 so the recognition code can run on it, then we can draw on that RGB buffer and turn it back to JPEG to stream to the browser. That turning images to and from JPEG takes quite some time, so streaming will be slow and resolution will be limited.
from esp32-camera.
Great!
I suppose the recognition takes up most of the resources in the case you mentioned above.
In case I just want to display text which shows for example temperature which is updated regularly, that would not affect frame rate that much right?
Could you point me to some example code that would help me to figure it out myself please?
I couldn't work out how to extract it from the face recognition code.
from esp32-camera.
for 320x240 image, it takes about 300ms to convert to RGB888, draw text and convert back to JPEG. This means drop from 30 to 3 FPS for 320x240. Is that what you want? Higher resolutions take even more time. In the face-detect code, if face is not detected, the original JPEG is sent in order to save the time of converting back to JPEG. You could do things in the browser though... look into canvas :)
from esp32-camera.
You could do things in the browser though... look into canvas :)
Ooooh I haven't thought of that. That would mean that the image is left alone and the overlay happens in html. Good idea I will try it out.
Thank you.
from esp32-camera.
Great thank you. I will give it a go sometime.
from esp32-camera.
Related Issues (20)
- uint is not defined in ESP-IDF V5.2 HOT 1
- ESP-32 CAM webserver error: E (483) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND) Camera init failed with error 0x105 HOT 1
- cam_hal: insufficient queue_size in corner case. HOT 3
- Enable psram mode on ESP32S3 causes NO-SOI and then panic HOT 3
- how to handle multiple comonents calling install_gpio_isr_service/uninstall_gpio_isr_service/gpio_isr_handler_add HOT 12
- Reset button is hard to reach HOT 1
- The example code cannot run properly (LoadProhibited) HOT 13
- PowerFeather - pin configuration?
- Enable camera has big impact on networking HOT 22
- Hardcoded buffer size for JPEG is too small for low resolution settings (e.g., QQVGA) HOT 2
- Support for Higher Resolutions on gc2145 - $300 Reward HOT 1
- ESP32S3-EYE I accidentally set pin 13 (PCLK) & 14 to INPUT_PULLUP once, now my camera is not recognized anymore (0x105)
- Captured images are stale HOT 1
- cant verify HOT 1
- Incorrect frame width and height returned by esp_camera_fb_get() when using sensor->set_res_raw() HOT 1
- ESP32 camera module get very hot - high temperature HOT 7
- OV2640 standby support HOT 1
- Add sleep/standby function to the driver API
- ESP32-S3-MINI-N4R2 HOT 2
- set_aec2 seems inversed in ov2460 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-camera.