COMMUNITY ACTIVITIES

Happy Lunar New Year! SpaceChain is gearing up for our blockchain workshop and GSTC 2020 conference next week, more information in this week’s report. The technical team is taking a two-week break in…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




A small example of Python work with Dlib for face detection

A friend of mine once suggested me to participate in his project and integrate a face recognition library into his backend code.

He needed just a simple answer — how many faces are on the picture?

I wrote a small script on Python, showing an example of work with it.

After that, closer to code. The script has one input parameter — image url. Our task consists of two steps: firstly we should download the image, then process it with dlib. The script exit code is number of faces on the image. If any error occurred, the exit code is 255.

Originally all code in the article was written in 2018

Add a comment

Related posts:

Two essential steps to prepare yourself for an interview

Do you expect to receive interview requests from all the potential employers you’ve sent a resume to? According to Forbes, only 20% of applicants get to this stage. This means that 4 out of 5 resumes…

Now or Never

You get up early to earn a living. You come out of your comfort zone to accomplish your task. You don't hesitate to give up on your family time or face time with your friends. But at the end of the…

Kamu Boleh Salah Jurusan Asal Tidak Salah Belajar

Buat yang mengalami salah jurusan waktu kuliah, jangan khawatir. Di dunia ini bukan hanya kamu yang mengalami. Beberapa orang yang berhasil rata-rata adalah mereka yang pernah salah jurusan. Lebih…