Qengineering / Face-Recognition-Raspberry-Pi-64-bits

Recognize 2000+ faces on your Raspberry Pi 4 with database auto-fill and anti-spoofing
https://qengineering.eu/deep-learning-examples-on-raspberry-32-64-os.html
BSD 3-Clause "New" or "Revised" License
69 stars 19 forks source link

Not working with bullsye #8

Closed rsingh2083 closed 2 years ago

rsingh2083 commented 2 years ago

Hi Sir, There are two problems 1.] Your 64bit_Rpi4 image isnt updating due to this error

E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable' 2.] After updating to bullseye, the face recog code doesnt work (brief snippet of error)

bnll.cpp:(.text+0xf0): undefined reference to `__expf_finite'
/usr/bin/ld: bnll.cpp:(.text+0xf8): undefined reference to `__logf_finite'
/usr/bin/ld: bnll.cpp:(.text+0x13c): undefined reference to `__expf_finite'
/usr/bin/ld: bnll.cpp:(.text+0x144): undefined reference to `__logf_finite'
/usr/bin/ld: /usr/local/lib/ncnn/libncnn.a(convolution.cpp.o): in function `ncnn::Convolution::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const [clone ._omp_fn.0]':
convolution.cpp:(.text+0x560): undefined reference to `__expf_finite'
/usr/bin/ld: convolution.cpp:(.text+0x57c): undefined reference to `__expf_finite'
/usr/bin/ld: convolution.cpp:(.text+0x5a4): undefined reference to `__logf_finite'

Can you please update the code to work with bullseye. And maybe fix the issue with Rpi4 image not getting updated/upgraded also

Qengineering commented 2 years ago

Dear @rsingh2083 [1] The RPi-image is been updated and upgraded to the latest Debian 10 Buster release. [2] Bullseye has a complete new and incompatible camera interface. You need to use additional software to get everything working. Perhaps, in the near future, I will make a Bullseye image.

rsingh2083 commented 2 years ago

Thanks Sir, I had to install ubuntu 21.04 and build opencv and ncnn.Now its working. Will try additional software on RPI and let you know