https://github.com/ernanej/segment7-esp32cam-rpi
Project to integrate an ESP32-CAM with a Raspberry Pi for reading and interpreting a 7-segment digital display with the possibility of monitoring and notifications.
https://github.com/ernanej/segment7-esp32cam-rpi
cloud esp32 esp32-cam iot pdi raspberrypi
Last synced: about 1 year ago
JSON representation
Project to integrate an ESP32-CAM with a Raspberry Pi for reading and interpreting a 7-segment digital display with the possibility of monitoring and notifications.
- Host: GitHub
- URL: https://github.com/ernanej/segment7-esp32cam-rpi
- Owner: ErnaneJ
- License: mit
- Created: 2024-07-17T00:43:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T17:18:56.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T20:12:46.890Z (about 1 year ago)
- Topics: cloud, esp32, esp32-cam, iot, pdi, raspberrypi
- Language: C++
- Homepage: https://github.com/ErnaneJ/segment7-esp32cam-rpi/blob/main/doc/report.pdf
- Size: 50.3 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IOT system for monitoring and notifying data from segment displays using image processing techniques πΈπ’π
This project integrates an ESP32-CAM with a Raspberry Pi to read and interpret digital displays from a multimeter, enhancing visibility and publishing data to a feed.
| Multimeter | Device |
|:-:|:-:|
|||
## Overview π
The ESP32-CAM captures images of a multimeter's 7-segment display, serving them over HTTP using its IP address. The Raspberry Pi then processes these images:
1. **Image Capture**: ESP32-CAM captures images of the multimeter's display.
2. **Image Processing**: Raspberry Pi receives images, enhances them for readability, and performs OCR using Tesseract to extract digits.
3. **Data Interpretation**: Recognized digits are processed, interpreted, and published to a feed at regular intervals.
## Execution π
| Input | Perspective | Threshold |Corrected Orientation |
|:-:|:-:|:-:|:-:|
|||||
| Flood Fill | Corrected And Clean Orientation Image | Morphology |
|:-:|:-:|:-:|
||||
```bash
cd raspberrypi/build
cmake ..
make && ./main
[100%] Built target main
Starting image processing...
Image saved to: ../assets/input.jpg
Image loaded successfully.
Applying thresholding...
Correcting image orientation...
Applying morphological operations...
Morphological processing complete.
Performing OCR...
Tesseract initialized.
Image set for OCR.
OCR output: 8035
OCR complete.
Exiting...
```
## Feed and Dashboard
| Dashboard |
|:-:|
|[](https://io.adafruit.com/Ernane/dashboards/segment7-esp32cam-rpi)|
| Feed |
|:-:|
|[](https://io.adafruit.com/Ernane/feeds/segment7-esp32cam-rpi)|
## Report π
For a detailed explanation of the project, including methodologies and results, please refer to the [project report](doc/report.pdf).
## License π
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.