background preloader

Face detection in pure PHP (without OpenCV) / Blog de Maurice Svay

Face detection in pure PHP (without OpenCV) / Blog de Maurice Svay
Une résumé en français est disponible en fin d’article. Lately, I’ve been looking for ways to detect faces in photos with PHP. Nowadays, face detection is built in many consumer products (camera obviously, but also Google and iPhoto), and seems to be a pretty common job. So I expected to find many solutions for doing it with PHP. Learning about face detection So I started to think about implementing it myself. Always look at what others are doing Then I looked for existing implementations in other languages. The code Update: the code has moved to Once the code converted to PHP, here’s the result: And you simply use the class this way: $detector = new Face_Detector('detection.dat'); $detector->face_detect('maurice_svay_150.jpg'); $detector->toJpeg(); Which gives the following result: The code requires GD and is a bit slow but should work on most PHP servers. Résumé en français

Facebook : bientôt une reconnaissance faciale automatique ? Le réseau social a annoncé sa volonté de collecter les photos de profil de ses membres pour sa base de données biométriques. Une technique qui suscite de nombreuses interrogations... L'annonce a été glissée mine de rien. Depuis quelques jours, Facebook a changé ses conditions d'exploitation des photos de profil de ses utilisateurs. Facebook avait aussi lancé cet outil de reconnaissance facial en Europe en 2011 mais la CNIL (Commission nationale de l'informatique et des libertés) avait tout de suite émis des réserves qui avaient poussé le géant à retirer ce processus. Malgré une transparence qui se veut totale du côté du réseau social, la question est bien plus sensible qu'il n'y parait.

Free Programming Books Here is an uncategorized list of online programming books available for free download. The books cover all major programming languages: Ada, Assembly, Basic, C, C#, C++, CGI, JavaScript, Perl, Delphi, Pascal, Haskell, Java, Lisp, PHP, Prolog, Python, Ruby, as well as some other languages, game programming, and software engineering. The books are in various formats for online reading or downloading. This list will be updated daily. Scroll downn, or use the shortcuts below.

Motion Detection Algorithms - The Code Project - Multimedia Introduction There are many approaches for motion detection in a continuous video stream. All of them are based on comparing of the current video frame with one from the previous frames or with something that we'll call background. In this article, I'll try to describe some of the most common approaches. In description of these algorithms I'll use the AForge.NET framework, which is described in some other articles on Code Project: [1], [2]. The demo application supports the following types of video sources: AVI files (using Video for Windows, interop library is included); updating JPEG from internet cameras; MJPEG (motion JPEG) streams from different internet cameras; local capture device (USB cameras or other capture devices, DirectShow interop library is included). Algorithms One of the most common approaches is to compare the current frame with the previous one. But most cameras produce a noisy image, so we'll get motion in such places, where there is no motion at all. Motion Alarm

Automatic Face Detection in Photos with PHP – Corpocrat Blog I have always wondered how to detect faces automatically with php script. I have seen in many photo sharing and social network sites automatically detect a face and tag a name after being uploaded. In this article, i will explain how possible this task can be achieved with simplicity with OpenCV and PHP Facedetect extension. Both are free to download and opensource. Goal To auto detect faces in a photo and draw pink box around the faces with a php script running a linux centos server. Requirements - Linux server running Centos with SSH access - PHP/Apache - GD Library - OpenCV [Download] - PHP Facedetect extension [Download] PHP facedetect extension is very simple. Installation We install opencv and then we compile the php facedetect extension with php. How to Install OpenCV If you are running centos then one single line will install opencv. yum install opencv OpenCV may also need the following depencies to work properly and you will need to install them as well. How to test run OpenCV . run . then

70 Tutorials Using Photoshop To Design A Website This article features a huge amount of Photoshop web design tutorials, which will teach you simple effects which can be combined together in order to create a great website design. Theses tutorials are perfect for first time Photoshop users because there short and sweet. I hope you enjoy the article and feel free to leave a comment below. 1) Carbon Fiber Layout you’ll learn how to make this sleek layout with a carbon fiber background that would look great as a landing page for a website. 2) Design Studio Layout In this tutorial you will learn how to make a layout for your design studio website. 3) Create a web 2.0 layout in photoshop In this tutorial, you’ll learn how to create a very fancy “Web 2.0″ website layout in Adobe Photoshop using beginners skills. 4) Watercolored design studio blog layout In this tutorial you will learn how to make a clean and simple watercolor design studio layout for a blog. 5) Corporate Business Layout 6) How to create a worn paper layout 7) Arhitecture layout

Lambda Labs Face Recognition API βeta Everything You Need to Know About Image Compression - Noupe Design Blog Feb 03 2010 Proper use of image compression can make a huge difference in the appearance and size of your website image files. But compression is an often-misunderstood topic, partly because there’s a real lack of understanding on what the different types of compression are good for. If you don’t understand which type of compression to use for different types of images, you’ll likely end up with one of two results: either images that don’t look as good as they could, or image file sizes that are way larger than they need to be. Below is everything you need to know about image compression in relation to web design. We’ve covered the differences between lossless and “lossy” compression, the different file types and the compression techniques they use, and guidelines for which file formats work best for different kinds of images. 1. Many people feel that they should only use image formats that use lossless compression. Lossless Compression Lossy Compression 2. 3. Images with gradients.Photos.

W3Schools Online Web Tutorials 10 Puzzle Websites to Sharpen Your Programming Skills Solving programming puzzles is a fun way to develop your logical and problem solving abilities. Also, when you’re familiarizing yourself with a new programming language, solving puzzles for that language can help speed up the learning process. Here are the top 10 popular programming puzzle sites that will help test your thinking and improve your programming, problem solving, and logical thinking skills. 1. Programming Praxis Programming Praxis is a blog that includes a range of interesting problems with solutions usually available in several different programming languages. 2. CodeKata is a blog of programming puzzles written by Dave Thomas, who’s most famous for the groundbreaking book, Pragmatic Programmer. 3. TopCoder is an active programming community of developers who love to solve puzzles. 4. 5. Facebook has a collection of very challenging programming puzzles that–should you manage to solve them–could result in you getting a job at Facebook! 6. 7. 8. 9. 10. 99 Prolog Problems

The Tao Of Programming Translated by Geoffrey James Transcribed by Duke Hillard Transmitted by Anupam Trivedi, Sajitha Tampi, and Meghshyam Jagannath Re-html-ized and edited by Kragen Sittler Last modified 1996-04-10 or earlier Table of Contents Book 1 - The Silent Void Thus spake the master programmer: ``When you have learned to snatch the error code from the trap frame, it will be time for you to leave.'' Something mysterious is formed, born in the silent void. If the Tao is great, then the operating system is great. The Tao of Programming flows far away and returns on the wind of morning. The Tao gave birth to machine language. The assembler gave birth to the compiler. Each language has its purpose, however humble. But do not program in COBOL if you can avoid it. In the beginning was the Tao. Programmers that do not comprehend the Tao are always running out of time and space for their programs. How could it be otherwise? The wise programmer is told about Tao and follows it. The highest sounds are hardest to hear.

Related: