Open paleja opened 2 years ago
Hi Paleja, Sorry for the delay, I'm currently working on other projects. Glad this project can help! :)
Did you had any chance on this error?
The problem I had in the imgwarp.cpp file was that some tables (NNDeltaTab
, BilinearTab
, BicubicTab
and Lanczos4Tab
) were statically allocated and taking too much space on the DRAM (see this section.
The fix I found for it was to initialize them on the heap instead (see this commit). I think the opencv features I was using at the time weren't using those arrays, so this fix wasn't tested.
0x400f701d: operator new[](unsigned int) at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_opv.cc:32 0x40147eb2: cv::initInterTab2D(int, bool) at imgwarp.cpp:?
From the backtrace you sent, it seems that the error is in the new
operator, so most likely in the allocateTables()
method
Thank You for response. In the meantime I finished my project with esp-who library, but I hope I will come back to this soon.
Hi Joachim, Thank You very much for this clone. I have successfully compiled it including 'objdetect' module, I just needed to add
#pragma GCC optimize ("-O0")
fix beforevirtual void knnSearch
inflann/lsh_index.h
.I can compile and flash my project to Esp32-cam (Qr codes recognition), but I'm stuck at boot error. I see your comment in
imgwarp.cpp
,// Modif ESP32: allocate buffers on heap. FIXME: changed access from 2 or 3 dimensions to 1 dimension. Need to find usages of these tables to modify access
Can you please point me to right direction? This is the error: