background preloader

Face detection in pure PHP (without OpenCV) - Maurice Bloggue

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. 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 J’ai récemment cherché une solution pour faire de la détection de visage en PHP.

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.

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

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

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. 1. Many people feel that they should only use image formats that use lossless compression. Lossless Compression There are a few different methods for lossless compression. DEFLATE is another lossless data compression method used for PNG images. Lempel-Ziv-Welch (LZW) compression is a lossless compression algorithm that performs a limited analysis of data. Lossy Compression 2. 3.

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 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 * Bonus: Mind Cipher

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.

PHP techniques I use all the time Back in February, I was writing CSS every day and I decided to share some of the CSS techniques that I always use. Lately I've been writing more PHP than anything else and I've found myself using some very useful techniques all the time. Now I know that PHP isn't very "cool" these days; it's probably the most misunderstood web language because all the script kiddies use it to include files on their webpages and put up forms that get hacked hours later. But I think PHP deserves a whole lot more credit than it gets; it's fast, it integrates very nicely with Apache, it got all the right features in version 5, and even if you don't like using it, there's always a chance you might have to write some anyway. So, maybe these tips can help you out: Use heredoc syntax for strings: If there's one thing I got tired of fast, it was building long strings like this: If I am going to make a string with more than one line, and even sometimes when I'm not, then I use heredoc.

Articles and Tutorials - Socket Programming With PHP Doing A Deal If you've been working with PHP for a while, you're probably used to thinking about it only in the context of a Web page or a Web server. While this is not unusual - PHP is, after all, a scripting language that's most commonly used to dynamically generate Web pages - it can stifle your creativity; as you'll see in this article, there's a lot more you can do with PHP than just connect to a database, retrieve records and insert them into an HTML template. One of PHP's better-guarded secrets - and one that I discovered quite by accident - is a very comprehensive set of network programming functions. Over the course of this article, I'll be taking a close look at the more important functions in this API, using code listings and explanations to put them in context. It should be noted at the outset itself that this is an introductory article, primarily meant for Web developers interested in expanding their PHP knowledge into the somewhat-arcane area of network programming.

PHP Thumbnailer | Gen X Design ictlibrary - ICT Library Catalog Welcome to the ICT Library Shop catalog! The pages linked from here show what things are available in the ICT Shop at the ICT Library in Second Life. One cannot download or buy the scripts/tools shown here (although some may be linked to external sites where it is possible). The catalog is simply a reference point for those who do not have time or the necessary skills to discover what is in the SL-based shop. To see the results of a survey I conducted regarding use of these scripts/tools, see the SLED TOOLS SURVEY page. The Freeware Centre Vendors all distribut scripts and tools that are absolutely free to the user. Commercial Vendors sell scripted tools as created by a selected number of persons who create/script in Second Life. The "On Display Only" page lists and shows tools that are displayed at the ICT Library.

Related: