matiasdelellis / facerecognition

Nextcloud app that implement a basic facial recognition system.
GNU Affero General Public License v3.0
500 stars 45 forks source link

Offer to help: aarch64 Ubuntu 20.04 packages od dlib and pdlib #408

Open elpraga opened 3 years ago

elpraga commented 3 years ago

I've successfully compiled dlib and pdlib on RPi4 running Ubuntu 20.04.

I've created corresponding .deb files using checkinstall.

Would you be interested in expanding your Ubuntu 20.04 repo to include aarch64 packages?

I'm not experienced using checkinstall, though, I'd need some help to guide me how to prepare the packages correctly and to standard.

matiasdelellis commented 3 years ago

Hi @elpraga I don't have a raspberry pi to do the packages, and the cross compilation is quite annoying .. :sweat_smile: I build the packages with pbuilder but If you can do something functional I have no problem publishing your packages, even if they are not official.. :wink:

elpraga commented 3 years ago

Ok, I'll try to do so then.

Could you tell me if there are some dependencies I should add into them packages? As I compiled them, all dependencies are installed already, so I have no clue if something is missing other systems.

I looked at pbuilder, I think I'll stick with checinstall 😄😄

elpraga commented 3 years ago

Also, do you know how to add

[pdlib]
extension="pdlib.so"

to php.ini automatically when installing the package?

nilsacht commented 3 years ago

So you have a working instance of face recognition on your pi running? Can you post an instruction on how to run it?

benjaminaigner commented 3 years ago

@nilsacht I brought it "to life" on a RockPi4 (RK3399, aarch64). It's an Armbian System without GUI.

In priniciple, follow the Hard Way installation. There was a compile error, dlib complaining there is no GUI available:

  1. open the file ~/dlib/dlib/config.h.in
  2. comment out #cmakedefine DLIB_NO_GUI_SUPPORT
  3. Restart compilation

All the other steps worked as expected (@matiasdelellis A big THX!). I changed PHP module inclusion a little bit (more Debian style):

elpraga commented 3 years ago

Hello @nilsacht ! I'm sorry for such a late response about my RPi setup. I've been rather busy lately, and I forgot.

I actually did not have to make any changes whatsoever to nake it work on my RPi4. Following the hard way walked me through without a glitch.(I didn't have to edit anyconfig.h.in files.

I hope it helps!