承接 junker/php-mtcnn 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

junker/php-mtcnn

Composer 安装命令:

composer require junker/php-mtcnn

包简介

Implementation of the MTCNN face detector for PHP

README 文档

README

License Minimum PHP Version

PHP-MTCNN - Implementation of the MTCNN face detector for PHP

Requirements

Installation

The best way to install PHP-MTCNN is to use a Composer:

php composer.phar require junker/php-mtcnn

Usage

use \Junker\MTCNN\MTCNN;

$mtcnn = new MTCNN();

$factor = 0.709;
$threshold = [0.7, 0.6, 0.6];
$minSize = 12;

$image = \CV\imread($image_path, 1);
$faces = $mtcnn->detect($image, $minSize, $threshold, $factor);

foreach ($faces as $face)
{
	$x = (int) $face->bbox->xmin;
	$y = (int) $face->bbox->ymin;
	$x2 = (int) $face->bbox->xmax;
	$y2 = (int) $face->bbox->ymax;
	$score = $face->bbox->score;

	\CV\rectangle($image, $x, $y, $x2, $y2, new \CV\Scalar(255, 0, 0), 2);

	print_r($face);
}

\CV\imshow("image", $image);
\CV\waitKey(0);

Based on https://github.com/imistyrain/MTCNN

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固