Giter Site home page Giter Site logo

alanesq / esp32cam-demo Goto Github PK

View Code? Open in Web Editor NEW
103.0 7.0 18.0 2.03 MB

esp32cam module demo / shows how you can easily use the esp32cam including reading raw rgb data, streaming, displaying the image etc.(ArduinoIDE or PlatformIO)

License: GNU General Public License v3.0

C++ 94.20% Processing 1.02% C 4.79%
arduino esp32cam

esp32cam-demo's People

Contributors

alanesq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32cam-demo's Issues

the output of RGB888 data

Hi, thank you for your codes and explanation. It really helps for me to understand how to control ESP32-CAM.
Currently, I want to get raw data of 240*320 or little higher resolution images(preventing psram issue) for image processing.
So I tested with your code to get RGB888 data and sucess to get the rgb file.
But,

  1. I couldn't open the file because it looks like broken. Could you give me idea to handle this file?
  2. Is there any method to get the real raw data file from camera sensor(OV2640) with ESP32-CAM?
    Thank you in advance for your help.

Error: failed to capture image

When I try to capture a jpeg or a stream, I get this error message Error: failed to capture image

I'm using an AI-Thinker board (the chip has the Espressif logo); Arduino 1.8.19 with ESP32 core 2.0.13

I tried with another OV2640 lens with the same result. If I removed the lens, I can runs the example sketches in Arduino, like WifiScan, Test LittleFS, Deepsleep, GpioInterrupt, etc.

10:24:28.980 -> -----------------------------------
10:24:28.980 -> Starting - ESP32Cam-demo - 25oct23
10:24:28.980 -> -----------------------------------
10:24:28.980 ->
10:24:28.980 -> Connecting to Reis
10:24:28.980 -> [ 495][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
10:24:29.108 -> [ 583][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
10:24:29.143 -> [ 641][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
10:24:29.178 -> [ 662][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
10:24:29.178 -> [ 662][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 192.168.1.90, MASK: 255.255.255.0, GW: 192.168.1.254
10:24:29.580 -> .
10:24:29.580 -> WiFi connected, IP address: 192.168.1.90
10:24:29.580 ->
10:24:29.580 -> Getting real time (NTP)
10:24:29.580 -> .......................now 1698747870
10:24:31.885 -> Tue 31-10-23 10:24:30
10:24:31.885 ->
10:24:31.885 ->
10:24:31.885 -> Initialising camera: Applying camera settings
10:24:32.119 -> OK
10:24:37.229 -> SPIFFS mounted successfully: total bytes: 896321 , used: 0
10:24:37.276 -> E (8728) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
10:24:37.276 -> E (8729) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
10:24:37.276 -> [ 8732][E][SD_MMC.cpp:138] begin(): Failed to initialize the card (0x107). Make sure SD card lines have pull-up resistors in place.
10:24:37.276 -> No SD Card detected
10:24:37.276 -> Brightness changed to 0
10:24:37.276 ->
10:24:37.276 -> Started...
10:24:40.276 -> Brightness changed to 64
10:24:40.510 -> Brightness changed to 0
10:24:40.510 -> [ 11954][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11955][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11966][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11966][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11977][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11978][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11990][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:40.510 -> [ 11990][I][WiFiClient.cpp:548] connected(): Unexpected: RES: 0, ERR: 88
10:24:52.262 -> .now 1698747891
10:24:52.394 -> Tue 31-10-23 10:24:51
10:24:52.394 ->
10:27:08.733 -> E (160247) gpio: gpio_install_isr_service(449): GPIO isr service already installed
10:27:08.935 -> Applying camera settings
10:27:08.981 -> Applying camera settings
10:27:09.473 -> cam_hal: EV-EOF-OVF
10:27:09.757 -> cam_hal: EV-EOF-OVF
10:27:09.957 -> cam_hal: EV-EOF-OVF
10:27:10.473 -> cam_hal: EV-EOF-OVF
10:27:10.791 -> cam_hal: EV-EOF-OVF
10:27:11.090 -> cam_hal: EV-EOF-OVF
10:27:11.288 -> cam_hal: EV-EOF-OVF
10:27:11.590 -> cam_hal: EV-EOF-OVF
10:27:12.021 -> cam_hal: EV-EOF-OVF
10:27:12.321 -> cam_hal: EV-EOF-OVF
10:27:12.552 -> cam_hal: EV-EOF-OVF
10:27:12.940 -> cam_hal: EV-EOF-OVF
10:27:13.222 -> cam_hal: EV-EOF-OVF
10:27:13.638 -> cam_hal: EV-EOF-OVF
10:27:14.073 -> cam_hal: EV-VSYNC-OVF
10:27:14.555 -> cam_hal: EV-EOF-OVF
10:27:14.790 -> cam_hal: EV-EOF-OVF
10:27:15.289 -> cam_hal: EV-EOF-OVF
10:27:15.505 -> cam_hal: EV-EOF-OVF
10:27:15.806 -> cam_hal: EV-EOF-OVF
10:27:16.124 -> cam_hal: EV-EOF-OVF
10:27:30.766 -> E (182259) gpio: gpio_install_isr_service(449): GPIO isr service already installed
10:27:30.984 -> Applying camera settings
10:27:31.394 -> [182895][E][WebServer.cpp:647] _handleRequest(): request handler not found
10:27:31.394 -> Invalid page requested.now 1698748112
10:28:33.746 -> Tue 31-10-23 10:28:32
10:28:33.746 ->
10:28:42.254 -> Error: failed to capture image
10:28:50.251 -> Error: failed to capture image
10:28:58.254 -> Error: failed to capture image
10:29:06.251 -> Error: failed to capture image
10:29:14.275 -> Error: failed to capture image

greyscale as data

photo_1_2023-10-31_10-59-53
photo_2_2023-10-31_10-59-53
photo_3_2023-10-31_10-59-53

License of the project

Hi, I would like to use your code as a start for my (open-source) project. Am I allowed to use the code and publish a modified version? I'm asking because I couldn't find any license information on the project page. Maybe you could add a MIT License or something comparable?

Thanks for answering,
Leon

Where is the function fmt2rgb888 located?

I want to capture the jpeg data and convert it to rgb. Then I will process the rgb data inside the esp32 without sending the data anywhere. So it appears that all I need to do is run the function fmt2rgb888. How do I include that function in my code?

steam in QVGA and record in VGA

Hi,

Is it possible to stream and record using different resolution? I want to save a high resolution video and stream at the same time but due to wifi latency, I cannot stream on high fps(more than 10). I figured if I could stream using QVGA resolution I will achieve that framerate. Any key pointers would be appreciated.

General question

Hallo,
I have the following "problem" when I take a picture, the save picture is not the newest one. It is the picture taken before. So it is every time 1 picture behind.
Is this a general problem?

Dataline SDCARD and FlashLED

Hallo,
the Data1 Line is directly connected to the mosfet driving the FlashLED, if I use SDCARD the FlashLED ist turned on a little bit. I must cut the trace and connect to another IO for the LED ?

i saw your post about gpio 33 pin of esp32 cam here i want reply but issue was closed so here i am replying.

Screenshot 2023-05-28 000823
Screenshot 2023-05-28 005206
Screenshot 2023-05-28 005416

here is your problem link that you post
https://forum.arduino.cc/t/is-there-an-adc-gpio-i-can-use-on-the-esp32-cam-to-read-and-ldr/691720
i just try that because i need adc pin for sending voice with with video so i got successfull result i just cut the led out and connect adc pin of max9814 and it work fine as the built-in red LED on the ESP32-CAM and connect GPIO33 to an external component such as an ADC (Analog-to-Digital Converter), you can repurpose the pin as an ADC input. The ESP32-CAM has a 12-bit SAR ADC.

Which file to upload for OTA?

Using

  • Sketch > Export Compiled Binary, and
  • Sketch > Show Sketch Folder

in v2.3.2 of the Arduino IDE, I created all these files in build/esp32.esp32.esp32cam/:

  • esp32cam-demo.ino.bin
  • esp32cam-demo.ino.bootloader.bin
  • esp32cam-demo.ino.elf
  • esp32cam-demo.ino.map
  • esp32cam-demo.ino.partitions.bin

I have #define ENABLE_OTA 1 in my wifiSettings.h, and a const String OTAPassword; login works. Which, if any, of the above files do I upload on the Update firmware page?

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.