Git Product home page Git Product logo

esp32-qrdecode's Introduction

Realtime QR code decoding with ESP32

What is this?

I recently purchased ESP-EYE modules to check the capabilities of ESP32 for real time vision algorithms. ESP32 is suprisingly good in terms of transfering the JPEG encoded video stream to a web browser without doing any unpacking or processing on it. But again, this is due to the efficiency of the JPEG encoding of the camera and the network stack of ESP32.

QR code detection runs with almost 1FPS detection speed. I used https://github.com/dlbeer/quirc library for detection. It is not very optimised for embedded systems. Even though I gave rather large stack size for the detection task, system resets due to Stack overflow now and then. Also I changed double precision calculations to float inside the quirc library and tried to put almost all the library methods inside RAM with IRAM_ATTR to gain marginal speed increase. Also, getting the image in RGB space in JPEG format from the camera, unpacking it to raw databuffer, then converting that raw databuffer into raw grayscale image buffer is far from an optimal image pipeline. On the other hand, JPEG frame capture works the best in terms of frame rate in this system. Go figure.

My long term goal was to check whether I can run Apriltag decoder on this system like OpenMV (https://www.youtube.com/watch?v=keb0B11zj5g) but after seeing the QR decoding performance, I decided not to pursue Apriltag decoding. ESP32 may be useful for color based object tracking projects with a decent frame rate, but other than that I probably wont be spending any more time.

How?

Setup the wifi ssid pass information in the main.c file. After compiling and loading program, run the "udplisten.py" script to listen to the port number 12345 for learning the IP address of the ESP32 module. Then go to http://{ip_address}/live_stream address to run the demo.

Test Video

https://vimeo.com/406752608

Details

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.