A Python Haar Facial Detector to Create HTML Image-Map
A Python 3.6.9 script uses a Haar frontal facial detector to create an HTML image-map.
(Sung to the tune of "How Much is that Doggie in the Window")
Who is that person in the picture?
The one with the light brown hair.
Who is that person in the picture?
I do hope that someone would share.
Introduction
Often times when a group gets together, for whatever reason, there will be a group picture at the end to commemorate the good times had by all. If this "sea of faces" gets published, in hard or soft copy, there may be a one or two line caption giving the name of the group and perhaps where and when the image was created. Six months or a year later, the image has only marginal value to the people who were there, and almost no value to those who were not there, because it is just a sea of faces.
We are interested in finding a low cost (very little human time) method of providing a way to add value to the soft copy of the image, so the image will have greater value later. We have developed a Python script that uses a Haar facial detection cascade to create a clickable HTML image map. The image map can be incorporated into other HTML pages to support a dynamic and valuable web experience.
The Python code and the frontal face XML files are needed to replicate the actions described in this video.
The Python code:
https://gist.github.com/ChuckCartledge/4e152f618d2e2174c4f2e3590f659fc6
Haar frontal face XML file is here:
https://github.com/opencv/opencv/blob/master/data/haarcascades/haarcascade_frontalface_default.xml
Other Haar XML files:
https://github.com/opencv/opencv/tree/master/data
The face detection example from the video:
https://www.cs.odu.edu/~ccartled/FacialDetection/Scripts/demo.html
A web page with three face detected images:
https://www.cs.odu.edu/~ccartled/FacialDetection/Scripts/
A complete write-up about the program:
http://www.clc-ent.com/TBDE/Docs/faces.pdf
A short write-up about the program:
https://ws-dl.blogspot.com/2020/06/2020-06-08-who-is-that-person-in.html
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «A Python Haar Facial Detector to Create HTML Image-Map», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.