ESP32-Camera QR code reader

Aleksandar
Posts: 3
Joined: Sun Feb 25, 2024 2:14 pm

ESP32-Camera QR code reader

Postby Aleksandar » Sun Feb 25, 2024 2:18 pm

Hello guys, I'm new to this, especially working with ESP modules. I bought an ESP32 with a camera, my wish is to make a QR code reader that, after reading the QR code, will send the data to the server where it will be compared with the database, whether to let the user enter the room or not. Can you help me how to start developing this project and do you have any example?
Thanks in advance.

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-Camera QR code reader

Postby lbernstone » Mon Feb 26, 2024 4:33 am


06userit
Posts: 5
Joined: Tue Jan 19, 2021 6:02 am

Re: ESP32-Camera QR code reader

Postby 06userit » Mon Feb 26, 2024 12:15 pm

Hello,
This code worked for me
https://github.com/alvarowolfx/ESP32QRCodeReader
Hope this helps

Configuration
ESP32-S3
Arduino IDE 1.8.19
arduino-esp32 core 2.0.14

Aleksandar
Posts: 3
Joined: Sun Feb 25, 2024 2:14 pm

Re: ESP32-Camera QR code reader

Postby Aleksandar » Mon Feb 26, 2024 6:04 pm

Thank you very much for your reply, but I would send the data to the server and based on the boolean response I would decide whether to free the user or not. I also want to send in my POST method JWT in the header and my device ID and data with my QR/NFC handler in the body of my message.

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

Re: ESP32-Camera QR code reader

Postby ESP_Minatel » Thu Feb 29, 2024 7:22 pm

Also you can take a look at this repo: https://github.com/espressif/qrcode-demo

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-Camera QR code reader

Postby lbernstone » Thu Feb 29, 2024 7:55 pm

Once the QR code is scanned, it is turned into a text string, with which you can do whatever you wish. The HTTPClient library has some examples that show how to do some basic POST responses, but you will need to customize it to fit your needs.

Aleksandar
Posts: 3
Joined: Sun Feb 25, 2024 2:14 pm

Re: ESP32-Camera QR code reader

Postby Aleksandar » Sat Mar 02, 2024 3:51 pm

Thank you very much friends, you have helped me a lot

Who is online

Users browsing this forum: No registered users and 74 guests