Giter Club home page Giter Club logo

Comments (6)

flaviopuhl avatar flaviopuhl commented on June 30, 2024 2

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.

me-no-dev avatar me-no-dev commented on June 30, 2024 1

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.

eben80 avatar eben80 commented on June 30, 2024

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.

me-no-dev avatar me-no-dev commented on June 30, 2024

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.

eben80 avatar eben80 commented on June 30, 2024

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.

eben80 avatar eben80 commented on June 30, 2024

Great thank you. I will give it a go sometime.

from esp32-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.