tioga-tours/php-imgfing 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

tioga-tours/php-imgfing

最新稳定版本:0.3.0

Composer 安装命令:

composer require tioga-tours/php-imgfing

包简介

Check images on their unique fingerprint and compare them

README 文档

README

Create fingerprints of images to quickly find duplicates or very similar images. Uses GD or Imagick.

Options

bitSize     Bit size of the fingerprint, multiple of 3, defaults to 300. Means the number of characters
avgColor    Apply a correction based on the diff with the avg color, defaults to 5, the normal avg color is 127. With 5, the average can be adjusted between 122 and 132
adapters    Which adapters to use in this order. Defaults to ['Imagick', 'GD']

Usage

<?php
$imgFing = new ImgFing([]);
$f1 = $imgFing->identifyFile(__DIR__ . '/file.png');
$f2 = $imgFing->identifyString(file_get_contents($uri));

echo $imgFing->matchScore($f1, $f2);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2017-02-08