Giter VIP home page Giter VIP logo

esp32_camera_qr's People

Contributors

donny681 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  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

esp32_camera_qr's Issues

Hard Reset?

Hey guys, I'm attempting to interface the OV2640 Camera Module with the ESP32-Pico-Kit V4, and after adjusting the pin assignments and the other necessary ports, I flash the board and it ends with this message. Has anyone else run into this issue or know what might be the problem? Thanks in advance for any help offered!
cameraissue

Tip on reducing the IO pins usage.

Given that QR codes are high contrast images, you might be able to get away using just 4bit images, or what is the same, use only 4 wires for the color bus. (I am hoping here the 8bit bus is only used for reading data, so I might be saying nonsenses :) )

Ai-Thinker CAM board pinout

Very good boards, but could be improved by breaking out the following pins;

  • pin 33 is connected to onboard signal led, I've repurposed this to connect an ldr as light sensor, but it would be easier if this was broken out
  • EN pin should be broken out to enable auto flashing from USB and for external reset button, as onboard reset button is very fiddly. I repurposed vcc pin for this.

Error 0x20001 with TTGO T-Camera ESP32

I am trying to get QR Code scan working with the TTGO T-Camera ESP32, which is a dev board with embedded OV2640.

I couldn't find a way to make it work with this repository, it always gives me the 0x20001 error, meaning that there is no communication at all.

The board works fine, for example I tested it with the standard Arduino example (File->Examples->ESP32->Camera->CameraWebServer) and after just setting up the right pinout I can run it with no issues. The same does not happen with ESP IDF, I believe it has something to do with the reset line or the powerdown line, but I also tried to initialize them as GPIO outputs and fix them respectively to high (RST) and low (PWDN), it did not help. Powerdown is not even handled by the camera.h driver attached to this repository (it should be pin 26).

Here is the config I am using into the sdkconfig file:
CONFIG_D0=5
CONFIG_D1=14
CONFIG_D2=4
CONFIG_D3=15
CONFIG_D4=18
CONFIG_D5=23
CONFIG_D6=36
CONFIG_D7=39
CONFIG_XCLK=32
CONFIG_PCLK=19
CONFIG_VSYNC=27
CONFIG_HREF=25
CONFIG_SDA=13
CONFIG_SCL=12
CONFIG_RESET=2
CONFIG_QR_RECOGNIZE=y

And this is the board schematic diagram: https://github.com/Xinyuan-LilyGO/esp32-camera-bme280/blob/master/schematic/OV2640_V05.pdf

Do you have any hint about this issue? I2C lines are pulled up by schematic, I cannot check with multimeter but they should be populated (and the Arduino sketch runs). I also tried to pull them up via internal pull ups, but nothing changes.

Ov2640 module not working!!

Hi i am using this module for testing https://www.aliexpress.com/item/OV2640-camera-module-Module-2-million-pixel-electronic-integrated-with-jpeg-compression-new-big-promotion/32915971973.html . It doesnt have XCLK pin on header as it says it already has an integrated 12mhz crystal. I have already succeeded with esp32-cam board (small camera one) with this firmware. But this ov2640 camera module not working. Its showing "Camera probe failed with error 0x20001". I think this code refers to connection issue. I have changed the wiring and pin configuration but still no change. My pin configuration is:

vsync-25
href-33
reset-23
d1-32
d3-12
d5-13
d7-21

scl-26
sda-27
d0-35
d2-34
d4-5
d6-18
plck-19
pwdn-gnd

Thanks. Waiting for replies.

Errors after make flash

Hi Im using OV7725 and ESP32-WROOM-32
fairly new with this board
how can I correct this error?

cc1.exe: some warnings being treated as errors
make[1]: *** [/home/zamorapia/esp/esp-idf/make/component_wrapper.mk:290: app_main.o] Error 1
make: *** [C:/msys32/home/zamorapia/esp/esp-idf/make/project.mk:551: component-main-build] Error 2

Guru Meditation Error

When I introduce the "make monitor" after the "make flash", the mysis32 take loop message, and inside of the loop, there is an error that says " Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled."

Its the only error in the loop, and the i have proved the camera example, and it works and take image in the ip...

Anybody have ever seen this? Anybody knows solve the problem?
thanks

I don't use Eclipse. How do I compile this?

All the Makefiles seem to be pretty much meaningless auto-generated stuff. I don't see any basic toolchain here. What are the steps to compiling this using standard Unix tools?

ov2640 image issue

i use the master repo of the project and the code is running success. but i can not get the correct from the http web server , the image and video is messy color block.
i will give debug log and image screenshot later.

Hi, I fellowed you instruction but it show "destination host unreachable"

Hi, I have fellowed your instruction to make and flash my project. Everything seems ok, no error information. And when I use make monitor to print the mesaage from ESP32-CAM. It is fine:
I (345) boot: Loaded app from partition at offset 0x10000 I (345) boot: Disabling RNG early entropy source... I (345) cpu_start: Pro cpu up. I (349) cpu_start: Starting app cpu, entry point is 0x40081234 I (0) cpu_start: App cpu up. I (359) heap_init: Initializing. RAM available for dynamic allocation: I (366) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (372) heap_init: At 3FFB8DB0 len 00027250 (156 KiB): DRAM I (379) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (385) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (391) heap_init: At 40090890 len 0000F770 (61 KiB): IRAM I (398) cpu_start: Pro cpu start user code I (192) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (253) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8 I (253) I2S: PLL_D2: Req RATE: 78125, real rate: 78125.000, BITS: 16, CLKM: 8, B CK: 8, MCLK: 20000000.000, SCLK: 2500000.000000, diva: 64, divb: 0 I (263) camera_xclk: PIN_CTRL before:3ff,78125 I (263) camera_xclk: PIN_CTRL after:7fff I (4333) camera_demo: Detected OV2640 camera, using JPEG format I (4553) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (4553) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (4643) phy: phy_version: 4008, 544f89f, Jan 24 2019, 14:54:06, 0, 0 I (4653) camera_demo: Connecting to "XSS_Guest" I (7553) event: sta ip: 192.168.0.110, mask: 255.255.255.0, gw: 192.168.0.1 I (7553) camera_demo: Connected I (7553) camera_demo: Open http://192.168.0.110/jpg for single image/jpg image I (7563) camera_demo: Open http://192.168.0.110/jpg_stream for multipart/x-mixed -replace stream of JPEGs I (7573) camera_demo: Free heap: 173576 I (7573) camera_demo: Camera demo ready

But when I open a brower and try to open "http://192.168.0.110/jpg"
it show "destination host unreachable".
I can ping gateway, but when I ping 192.168.0.110, it shows "destination host unreachable" also.

If It is a issue or a config problem?

OV2640 pixels are not aligned properly

Hi team , the code is running successfully , i am setting the image quality in UXGA mode but there seems to be a offset in the blue stream in the captured images . Please have a look below, this is with 2X zoom, you can see that the blue stream seems to be shifted to the right .

pokedon

Missing CMakeLists.txt file

Hi, I'm unable to build this project or access menuconfig because there is no CMakeLists.txt file in the folder. I've cloned this project into my esp-idf folder (so the current project directory is esp-idf/ESP32_CAMERA_QR). I'm not sure if I'm supposed to generate a CMakeLists.txt file from the project directory, or if I'm supposed to use the CMakeLists.txt from the esp-idf directory.

Any help would be appreciated, thanks

Bin files

Are they any .bin files of this code available?

http_server component conflict on build *workaround*

Hi, on the latest IDF I saw a lot of errors trying to compile, all related to the http server.

I assume that it is a conflict with the espressif http server component with the custom http server of your code.

Just for someone else experimenting this issue, my unelegant workaround was to exclude the Espressif libraries in the Makefile:

EXCLUDE_COMPONENTS := esp_http_server protocomm

It builds now.

Thanks for your work!

Sometimes I get a black square

Hello,

Just got the Ai Thinker ESP32-CAM.

What I know

  • With PSRAM active, I got it working with QVGA.
  • Higher then QVGA or QQVGA gives a black square even with PSRAM.

image

What I tried

By default PSRAM was disabled so I enabled by adding to sdkconfig:

CONFIG_SPIRAM_SUPPORT=y

#
# SPI RAM config
#
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_USE_MEMMAP=
CONFIG_SPIRAM_USE_CAPS_ALLOC=
CONFIG_SPIRAM_USE_MALLOC=y
CONFIG_SPIRAM_TYPE_ESPPSRAM32=y
CONFIG_SPIRAM_SIZE=4194304
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST=y
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=

In the boot screen, I could see that SPI SRAM was active:

image

With VGA resolution and PSRAM enabled, I verified that DMA buffer was allocated correctly:

image

The HTTP server seems fine, even though it responds a square:

image

missing

ESP32_CAMERA_QR" does not appear to contain CMakeLists.txt

ov7670

hi
how work with ov7670 without fifo
ov7670-camera-module-arduino-littlecraft-1704-24-littlecraft@11

not possible execute binary file

make flash
/home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: /home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: not posible execute binary file
expr: syntax error: unexpected argument «5.2.0»
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp32-2019r1
WARNING: Compiler version is not supported:
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
Python requirements from C:/msys32/home/frmer/esp/esp-idf/requirements.txt are satisfied.
/home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: /home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: not posible execute binary file
expr: syntax error: unexpected argument «5.2.0»
WARNING: Compiler version is not supported:
Expected to see version(s): 8.2.0
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
/home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: /home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: not posible execute binary file
expr: syntax error: unexpected argument «5.2.0»
CC build/bootloader/bootloader_support/src/bootloader_random.o
/home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: /home/frmer/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc: not posible execute binary file
make[2]: *** [/home/frmer/esp/esp-idf/make/component_wrapper.mk:292: src/bootloader_random.o] Error 126
make[1]: *** [/home/frmer/esp/esp-idf/make/project.mk:609: component-bootloader_support-build] Error 2
make: *** [/home/frmer/esp/esp-idf/components/bootloader/Makefile.projbuild:41: /home/frmer/esp/ESP32_CAMERA_QR/build/bootloader/bootloader.bin] Error 2

ESP32 CAMERA Compatible

Hi!

Can this camera even be compatible with a 3D printer? Can Marlin be paired with a Big Tree Tech TFT display? If I guess it communicates on UART port as well? Because then the TFT display could even be used to monitor, say, a 3D printer. Wi-Fi could even remotely watch the printer so that everything is right with it. Possible?

Hello, AntoszHUN

ESPHome

Is anyone able to convert this config into YAML for ESPHome?

The image cannot be displayed, because it contains errors.

Following the guide here... https://github.com/donny681/ESP32_CAMERA_QR/wiki

Everything seems to work OK except I don't see an image in the browser. It looks like a bad jpg file is being created. Here's the terminal output:

I (30) boot: ESP-IDF v3.0.1 2nd stage bootloader
I (30) boot: compile time 23:20:25
I (30) boot: Enabling RNG early entropy source...
I (35) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (81) boot: End of partition table
I (85) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x13830 ( 79920) map
I (122) esp_image: segment 1: paddr=0x00023858 vaddr=0x3ffb0000 size=0x0316c ( 12652) load
I (127) esp_image: segment 2: paddr=0x000269cc vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _iram_start at C:/msys32/home/Dude/esp/esp-idf/components/freertos/xtensa_vectors.S:1685

I (129) esp_image: segment 3: paddr=0x00026dd4 vaddr=0x40080400 size=0x0923c ( 37436) load
I (153) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x62b68 (404328) map
0x400d0018: _stext at ??:?

I (295) esp_image: segment 5: paddr=0x00092b88 vaddr=0x4008963c size=0x0207c ( 8316) load
0x4008963c: esp_panic_wdt_start at C:/msys32/home/Dude/esp/esp-idf/components/esp32/panic.c:572

I (299) esp_image: segment 6: paddr=0x00094c0c vaddr=0x400c0000 size=0x00000 ( 0) load
I (309) boot: Loaded app from partition at offset 0x10000
I (309) boot: Disabling RNG early entropy source...
I (313) cpu_start: Pro cpu up.
I (317) cpu_start: Starting app cpu, entry point is 0x40080fa4
0x40080fa4: call_start_cpu1 at C:/msys32/home/Dude/esp/esp-idf/components/esp32/cpu_start.c:215

I (308) cpu_start: App cpu up.
I (328) heap_init: Initializing. RAM available for dynamic allocation:
I (334) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (340) heap_init: At 3FFB8EA8 len 00027158 (156 KiB): DRAM
I (347) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (353) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (359) heap_init: At 4008B6B8 len 00014948 (82 KiB): IRAM
I (366) cpu_start: Pro cpu start user code
I (160) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (204) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (204) I2S: PLL_D2: Req RATE: 78125, real rate: 78125.000, BITS: 16, CLKM: 8, BCK: 8, MCLK: 20000000.000, SCLK: 2500000.000000, diva: 64, divb: 0
I (214) camera_xclk: PIN_CTRL before:7fff
I (214) camera_xclk: PIN_CTRL after:7fff
I (4284) camera_demo: Detected OV2640 camera, using JPEG format
I (4504) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (4504) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (4574) phy: phy_version: 3662, 711a97c, May 9 2018, 14:29:06, 0, 0
I (4574) camera_demo: Connecting to "NSA"
I (7474) event: sta ip: 192.168.1.110, mask: 255.255.255.0, gw: 192.168.1.101
I (7474) camera_demo: Connected
I (7474) camera_demo: Open http://192.168.1.110/jpg for single image/jpg image
I (7484) camera_demo: Open http://192.168.1.110/jpg_stream for multipart/x-mixed-replace stream of JPEGs
I (7494) camera_demo: Free heap: 188472
I (7494) camera_demo: Camera demo ready
I (105744) camera: Frame 0 done in 117 ms
I (150844) camera: Frame 1 done in 149 ms

ESP32-cam (AI brand) to Arduino IDE connection issue via development board.

I ordered 10 esp32-cam modules of this brand. (as shown in the first image on the wiki page)

Unfortunately, none of them are working using a standard developer board while my other esp32-cam modules work with it perfectly fine.

I did order and try a USB to TTL converter but it didn't work for me as well.

Any idea how to fix that and if anyone else had a similar issue with this particular brand?

You can check the video below, the first board is of another brand name, and the second board is "AI" and as you will see it shows an error message after a while trying to connect and upload the code to this board.

esp32-cam.AI.issue.mp4

error: 'cif_regs'

Toolchain path: /Users/lesiyu/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: esp32-2019r1
Compiler version: 8.2.0
Python requirements from /Users/lesiyu/esp/esp-idf/requirements.txt are satisfied.

App "esp32-cam-demo" version: 964ba57-dirty
CC build/camera/ov2640.o
/Users/lesiyu/esp/ESP32_CAMERA_QR/components/camera/ov2640.c:208:22: error: 'cif_regs' defined but not used [-Werror=unused-const-variable=]
static const uint8_t cif_regs[][2] = {
^~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [ov2640.o] Error 1
make: *** [component-camera-build] Error 2

Camera Size err

I got the lastest code today, used the CMakeLists.txt from jungu009 mentioned in #42
I've done this in app_main.c as mentioned in Readme under the QR Recognition section:
#define CAMERA_PIXEL_FORMAT CAMERA_PF_GRAYSCALE
#define CAMERA_FRAME_SIZE CAMERA_FS_QVGA

and I changed
static ip4_addr_t s_ip_addr;
to
static esp_ip4_addr_t s_ip_addr;
in app_main.c to make it compile

"Enable test pattern on camera output" is enabled.

When I run and capture a QR code by hitting http://xxx.xxx..xxx.xxx/pgm, I get camera size err as below. The captured photo size is not beyond VGA size limit.

I (5841) camera_demo: Free heap: 134560
I (5841) camera_demo: Camera demo ready
I (20571) camera: Frame 0 done in 88 ms
I (20781) camera_demo: Free heap: 128940
I (20781) QR: Camera Size err

Anyone know how to solve this? I am using OV2640 on AI thinker board.
Thank you in advance.

QR code recognition is too slow

It takes 2 seconds to identify, and the internal operation is basically floating-point operation,so How to improve performance

Other barcode types

Is it possible to implement recognition of other barcode types?

This would be extremely useful, the esp could become a very easily integrated scanner for projects that need it.

compilation error

hi, @donny681, I got compilation error after clone your code and install "idf.py", how to solve it?
Any help appreciated, thanks in advance.

/home/bo/ESP32_CAMERA_QR/main/app_main.c:54:8: error: unknown type name 'esp_ip4_addr_t'
static esp_ip4_addr_t s_ip_addr;
^~~~~~~~~~~~~~
In file included from /home/bo/projects/esp/esp-idf/components/lwip/lwip/src/include/lwip/ip_addr.h:43,
from /home/bo/projects/esp/esp-idf/components/tcpip_adapter/include/tcpip_adapter.h:24,
from /home/bo/projects/esp/esp-idf/components/esp_event/include/esp_event_legacy.h:22,
from /home/bo/projects/esp/esp-idf/components/esp_event/include/esp_event.h:26,
from /home/bo/projects/esp/esp-idf/components/esp_wifi/include/esp_wifi.h:64,
from /home/bo/ESP32_CAMERA_QR/main/app_main.c:27:
/home/bo/ESP32_CAMERA_QR/main/app_main.c: In function 'app_main':
/home/bo/projects/esp/esp-idf/components/lwip/lwip/src/include/lwip/ip4_addr.h:176:65: error: request for member 'addr' in something not a structure or union
#define ip4_addr_get_byte(ipaddr, idx) (((const u8_t*)(&(ipaddr)->addr))[idx])
^

IP获取

我想通过串口获取IP地址,需要ESP-IDF的哪些文件,大神能提示一下吗,^_^

I (12271) QR: quirc_resize err

Hi:
I run the QR task, it prints the error "QR: quirc_resize err", wired :( I didn't meet it before.
Can you tell me why ? and how to fix it , Thanks :D

[FR] Adding a way to save video to SD card

The camera module from Ai-thinker comes with a microSD card slot. Is there a way for camera input (video or photo) to be saved to the microSD card? Seems like a waste to have a microSD card slot and not use it.

ESP32 with OV2640 get 0x20001

I have the MAKERFACTORY M5Stack ESP32 Kamera mit OV2640 (2.0 MP)
(https://www.conrad.de/de/p/makerfactory-m5stack-esp32-kamera-mit-ov2640-2-0-mp-1888217.html)
with USB-C.

I can flash, everything is running and in the menuconfig i prepared it for OV2640 support.

But I get:
I (0) cpu_start: App cpu up.
I (446) heap_init: Initializing. RAM available for dynamic allocation:
I (452) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (458) heap_init: At 3FFB91D0 len 00026E30 (155 KiB): DRAM
I (465) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (471) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (477) heap_init: At 40095858 len 0000A7A8 (41 KiB): IRAM
I (484) cpu_start: Pro cpu start user code
I (502) spi_flash: detected chip: gd
I (502) spi_flash: flash io: dio
I (502) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (552) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (552) I2S: PLL_D2: Req RATE: 39062, real rate: 39062.000, BITS: 16, CLKM: 16, BCK: 8, MCLK: 10000000.000, SCLK: 1249984.000000, diva: 64, divb: 0
I (562) camera_xclk: PIN_CTRL before:3ff,39062
I (572) camera_xclk: PIN_CTRL after:7fff
E (4582) camera_demo: Camera probe failed with error 0x20001

Do yyou have any idea to get it to work with that USB integrated? Thanks!!!!

Use Project in Arduino Framework

Hi!
Im building a photogrammetric 3D-Scanner with 60+ Ai-Thinkers and am trying to find a neat way to configure each module. Your project seems to be a good fit. I'm really impressed with what you achieved here!

My hole project is currently being programmed on the Arduino platform. I tried to implement your repository but seem to lag some skill here.
Could you give me a hint how I implement your functionality for Arduino without a web server running?

What I've tried:


 void recognizeQR()
{
   camera_fb_t * fb = NULL;        
    while(true)
    {
      vTaskDelay(100);
      fb = esp_camera_fb_get();
      if (!fb)
        {
         ESP_LOGE(TAG, "Camera capture failed");
         continue;
        }
        qr_recognize(fb);
        esp_camera_fb_return(fb);
}

Results in : "undefined reference to `qr_recognize(void*)'"

Thanks for your Time
Marco

ov2640 not initializing with SXGA mode

I am trying to initialize camera with mode SXGA or UXGA and i am getting errors:

SCCB_Write [ff]=00 failed
SCCB_Write [e0]=04 failed
SCCB_Write [da]=18 failed
SCCB_Write [d7]=03 failed
SCCB_Write [e1]=77 failed
SCCB_Write [44]=0c failed
SCCB_Write [e0]=00 failed
SCCB_Write [ff]=00 failed
SCCB_Write [44]=63 failed

Connecting the Ai-Thinker CAM board to PC

How do I connect the Ai-Thinker CAM board to PC? The links in the quick start lead to ESP32 boards with a USB port.

I guess I need to connect the Ai-Thinker CAM board to the USB port of my PC somehow. I have one of these for ESP8266, can I use this for this purpose somehow?

Thanks.

picture out of focus

Hi,

are there other cameras that can be connected to the ESP32-CAM board? Maybe one for night vision and / or with an adjustable focus?

RP

LilyGO board. E (4263) camera_demo: Camera probe failed with error 0x20001

Hi
I have this board https://github.com/LilyGO/ESP32-Camera.
The board and the camera works with the original samples provided with the LilyGo.
I carefully set up pins to work with your code, and yet I have "Camera probe failed with error 0x20001"

See the log below. I have added few lines to print actual settigs of the camera right after the error:

`ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6288
ho 0 tail 12 room 4
load:0x40078000,len:10180
load:0x40080400,len:6712
entry 0x40080768
I (30) boot: ESP-IDF v3.2.2 2nd stage bootloader
I (30) boot: compile time 13:19:05
I (39) boot: Enabling RNG early entropy source...
I (39) boot: SPI Speed : 40MHz
I (39) boot: SPI Mode : DIO
I (43) boot: SPI Flash Size : 4MB
I (47) boot: Partition Table:
I (50) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (65) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (80) boot: End of partition table
I (84) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x191d0
I (129) esp_image: segment 1: paddr=0x000291f8 vaddr=0x3ffb0000 size=0x02e9
I (134) esp_image: segment 2: paddr=0x0002c090 vaddr=0x40080000 size=0x0040
0x40080000: _WindowOverflow4 at C:/msys32/home/Sergey_I/esp/esp-idf/compone
nsa_vectors.S:1779

I (136) esp_image: segment 3: paddr=0x0002c498 vaddr=0x40080400 size=0x03b7
I (151) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x6dc2
0x400d0018: _stext at ??:?

I (311) esp_image: segment 5: paddr=0x0009dc44 vaddr=0x40083f78 size=0x0c5d
0x40083f78: spi_flash_mmap_pages at C:/msys32/home/Sergey_I/esp/esp-idf/com
h/flash_mmap.c:319

I (342) boot: Loaded app from partition at offset 0x10000
I (342) boot: Disabling RNG early entropy source...
I (343) cpu_start: Pro cpu up.
I (346) cpu_start: Starting app cpu, entry point is 0x40081050
0x40081050: call_start_cpu1 at C:/msys32/home/Sergey_I/esp/esp-idf/componen
rt.c:246

I (0) cpu_start: App cpu up.
I (357) heap_init: Initializing. RAM available for dynamic allocation:
I (364) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (370) heap_init: At 3FFB8DB0 len 00027250 (156 KiB): DRAM
I (376) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (382) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (389) heap_init: At 40090554 len 0000FAAC (62 KiB): IRAM
I (395) cpu_start: Pro cpu start user code
I (189) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
E (4263) camera_demo: Camera probe failed with error 0x20001

I (4263) camera_demo: LEDC_CHANNEL_0 0
I (4263) camera_demo: LEDC_TIMER_0 0
I (4273) camera_demo: CONFIG_D0 17
I (4273) camera_demo: CONFIG_D1 35
I (4283) camera_demo: CONFIG_D2 34
I (4283) camera_demo: CONFIG_D3 5
I (4283) camera_demo: CONFIG_D4 39
I (4293) camera_demo: CONFIG_D5 18
I (4293) camera_demo: CONFIG_D6 36
I (4303) camera_demo: CONFIG_D7 19
I (4303) camera_demo: CONFIG_XCLK 27
I (4313) camera_demo: CONFIG_PCLK 21
I (4313) camera_demo: CONFIG_VSYNC 22
I (4313) camera_demo: CONFIG_HREF 26
I (4323) camera_demo: CONFIG_SDA 25
I (4323) camera_demo: CONFIG_SCL 23
I (4333) camera_demo: CONFIG_RESET 15
I (4333) camera_demo: CONFIG_XCLK_FREQ 20000000
`
The settings of the pin is double checked and the same settigs works with different sketch, so physical contact is not and issue here.

This is the schematic of the board https://github.com/LilyGO/ESP32-Camera/blob/master/ov2640_v1.3.pdf

What else can I try?

Help,how can i implement into esp32

Sorry,im new,may i ask how can i implement and upload this into esp32 with detail guide and explaination?the file in the main directory,i cant find the .ino file need to open it into the arduino and as the description stated that i need the esp idf library too.how can i do these?

QR code Not scanning

Hey. I am trying to scan the qr code but somehow its not recognizing the qr code. I have followed the steps as in the read me doc.

image
The above image is the change as suggested in read me doc for the definitions.

image
Here is image downloaded from the pgm url of single image.

The logs:
`
--- idf_monitor on COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7012
load:0x40078000,len:13072
load:0x40080400,len:3896
0x40080400: _init at ??:?

entry 0x40080688
I (28) boot: ESP-IDF v4.1-dirty 2nd stage bootloader
I (28) boot: compile time 22:22:34
I (29) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed : 40MHz
I (43) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (61) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (84) boot: 2 factory factory app 00 00 00010000 00100000
I (91) boot: End of partition table
I (95) boot_comm: chip revision: 1, min. application chip revision: 0
I (102) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1c9bc (117180) map
I (156) esp_image: segment 1: paddr=0x0002c9e4 vaddr=0x3ffb0000 size=0x03634 ( 13876) load
I (162) esp_image: segment 2: paddr=0x00030020 vaddr=0x400d0020 size=0x7e3a8 (517032) map
0x400d0020: _stext at ??:?

I (360) esp_image: segment 3: paddr=0x000ae3d0 vaddr=0x3ffb3634 size=0x002dc ( 732) load
I (360) esp_image: segment 4: paddr=0x000ae6b4 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at C:/Users/JalakamKiran/Desktop/esp-idf/components/freertos/xtensa_vectors.S:1778

I (367) esp_image: segment 5: paddr=0x000aeac0 vaddr=0x40080404 size=0x15838 ( 88120) load
I (425) boot: Loaded app from partition at offset 0x10000
I (425) boot: Disabling RNG early entropy source...
I (426) cpu_start: Pro cpu up.
I (429) cpu_start: Application information:
I (434) cpu_start: Project name: ESP32_CAMERA_QR
I (440) cpu_start: App version: v4.1-dirty
I (445) cpu_start: Compile time: Oct 21 2020 22:26:51
I (451) cpu_start: ELF file SHA256: ce53ae8fe3d22bd2...
I (457) cpu_start: ESP-IDF: v4.1-dirty
I (462) cpu_start: Starting app cpu, entry point is 0x40081324
0x40081324: call_start_cpu1 at C:/Users/JalakamKiran/Desktop/esp-idf/components/esp32/cpu_start.c:271

I (0) cpu_start: App cpu up.
I (473) heap_init: Initializing. RAM available for dynamic allocation:
I (479) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (486) heap_init: At 3FFB9260 len 00026DA0 (155 KiB): DRAM
I (492) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (498) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (505) heap_init: At 40095C3C len 0000A3C4 (40 KiB): IRAM
I (511) cpu_start: Pro cpu start user code
I (529) spi_flash: detected chip: generic
I (529) spi_flash: flash io: dio
I (530) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (581) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (581) I2S: PLL_D2: Req RATE: 78125, real rate: 78125.000, BITS: 16, CLKM: 8, BCK: 8, MCLK: 20000000.000, SCLK: 2500000.000000, diva: 64, divb: 0
I (591) camera_xclk: PIN_CTRL before:3ff,78125
I (601) camera_xclk: PIN_CTRL after:7fff
I (4661) camera_demo: Detected OV2640 camera, using JPEG format
I (4821) wifi:wifi driver task: 3ffd7fb8, prio:23, stack:6656, core=0
I (4821) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (4821) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (4841) wifi:wifi firmware version: 3ea4c76
I (4841) wifi:config NVS flash: enabled
I (4841) wifi:config nano formating: disabled
I (4851) wifi:Init dynamic tx buffer num: 32
I (4851) wifi:Init data frame dynamic rx buffer num: 32
I (4851) wifi:Init management frame dynamic rx buffer num: 32
I (4861) wifi:Init management short buffer num: 32
I (4861) wifi:Init static tx buffer num: 16
I (4871) wifi:Init static rx buffer size: 1600
I (4871) wifi:Init static rx buffer num: 10
I (4881) wifi:Init dynamic rx buffer num: 32
I (4971) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 0
I (4971) wifi:mode : sta (fc:f5:c4:2f:f7:bc)
I (4971) wifi:Set ps type: 0

I (4971) camera_demo: Let Connecting to "KFC"
I (5101) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5101) wifi:state: init -> auth (b0)
I (5101) wifi:state: auth -> assoc (0)
I (5111) wifi:state: assoc -> run (10)
I (5121) wifi:state: run -> init (3c0)
I (5121) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (5121) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (7301) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (7301) wifi:state: init -> auth (b0)
I (7301) wifi:state: auth -> assoc (0)
I (7311) wifi:state: assoc -> run (10)
I (7331) wifi:connected with KFC, aid = 2, channel 6, BW20, bssid = 7a:34:1a:48:0f:ed
I (7331) wifi:security: WPA2-PSK, phy: bgn, rssi: -41
I (7331) wifi:pm start, type: 0

I (7411) wifi:AP's beacon interval = 102400 us, DTIM period = 2
I (8301) esp_netif_handlers: sta ip: 192.168.43.97, mask: 255.255.255.0, gw: 192.168.43.1
I (8301) camera_demo: Connected
I (8301) camera_demo: Open http://192.168.43.97/pgm for a single image/x-portable-graymap image
I (8311) camera_demo: Free heap: 106924
I (8311) camera_demo: Camera demo ready`

Even after showing the image for more than a minute the module is not able to recognize it. Please help.
Thanks in advance,

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.