background preloader

Computer-vision

Facebook Twitter

Uiuc

Eyetracking. Face detection in pure PHP (without OpenCV) - Maurice Bloggue. 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. Surprisingly, the only one I could find is OpenCV, an opensource lib that was originally developed by Intel. OpenCV seems to perform well but you need to be able to install it on your server.

In my case, I wanted to have a pure PHP solution, so it can work with most hosts. 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: Which gives the following result: Faculty - Thomas S. Huang - ECE ILLINOIS - U of I. Dr. Ariel Shamir Home Page. 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. FACEANALYZER.