GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DatingVIP/Facial: Simple interface to OpenCV object detection

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
cascades
cascades
 
 
images
images
 
 
CREDITS
CREDITS
 
 
EXPERIMENTAL
EXPERIMENTAL
 
 
README.md
README.md
 
 
config.m4
config.m4
 
 
facial.c
facial.c
 
 
facial.php
facial.php
 
 
php_facial.h
php_facial.h
 
 

Repository files navigation

Facial

An API to OpenCV used to detect faces in images, more generally a bridge to OpenCV objdetect.

<?php
/**
* This is the entire API at present, more will be exposed as it becomes necessary
**/
namespace DatingVIP\Facial {
	class Image {
		public function __construct(string file);
		public function getWidth();
		public function getHeight();
	}
	
	class Cascade {
		public function __construct(string file);
	}
	
	class Detector {
		public function __construct(Cascade cascade [, array min = [0, 0]]);
		public function detect(Image image [, array max]);
	}
}

namespace {
	use DatingVIP\Facial\Image;
	use DatingVIP\Facial\Cascade;
	use DatingVIP\Facial\Detector;
	
	$cascade = new Cascade("cascades/default.xml");

	$detector = new Detector($cascade);

	$image = new Image("test.jpg");	

	var_dump($detector->detect($image));
}
?>

About

Simple interface to OpenCV object detection

Topics

facial-detectionopencv

Resources

Readme
Activity
Custom properties

Stars

6 stars

Watchers

6 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.