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)
- Support Ultra-Low Power Himax HM0360 HOT 1
- `cam_hal: NO-EOI` when trying to capture JPEG bigger than ~300KB HOT 6
- `cam_hal: EV_VSYNC_OVF` when trying to capture in RGB565 or YUV422, in 1024x768 or 1600x1200, while capturing in 1280x1024 is okay HOT 5
- cam_hal: Failed to get the frame on time HOT 1
- ESP32S3-OV5640 can't update sensor settings HOT 5
- 摄像头,电压正常,出图失真了。这个问题是什么原因造成的? HOT 1
- Support new I2C API in IDF 5.2 HOT 2
- Use the example code, error in the following, how to solve, thank you HOT 8
- Decrease Camera Capturing Time HOT 4
- 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 1
- HELP ME TO WHERE TO PUT ALL FILES
- Enable psram mode on ESP32S3 causes NO-SOI and then panic
- how to handle multiple comonents calling install_gpio_isr_service/uninstall_gpio_isr_service/gpio_isr_handler_add HOT 9
- Reset button is hard to reach
- The example code cannot run properly (LoadProhibited) HOT 12
- PowerFeather - pin configuration?
- Enable camera has big impact on networking HOT 15
- Hardcoded buffer size for JPEG is too small for low resolution settings (e.g., QQVGA) HOT 1
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.