2017 © Pedro Peláez
 

library screenpiece

image

eb/screenpiece

  • Wednesday, April 12, 2017
  • by EgorBanin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,346 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 12 % Grown

The README.md

Screenpiece

$googleScreen = new Screen(
    GDImg::fromPath(__DIR__.'/tests/data/googleSample.png'),
    ['Google logo' => new Piece([10, 10, 230, 100], [], 0)]
);
$screenshot = GDImg::fromPath(__DIR__.'/tests/data/googleScreenshot.png');
var_dump($googleScreen->equal($screenshot));
var_dump($googleScreen->piecePresent('Google logo', $screenshot));
$screenshot = GDImg::fromPath(__DIR__.'/data/google1.png');
$logo = GDImg::fromPath(__DIR__.'/data/googleLogo.png');
$pos = Utils::search($screenshot, $logo)();
var_dump($pos);

example.php, (*1)

docker-compose -f ./docker/docker-compose.yml run --rm php php app/example.php

тесты, (*2)

docker-compose -f ./docker/docker-compose.yml run --rm php bash app/vendor/bin/phpunit -c app/tests/phpunit.xml app/tests

The Versions

12/04 2017

dev-master

9999999-dev

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

12/04 2017

0.4

0.4.0.0

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

17/03 2017

0.3.1

0.3.1.0

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

17/03 2017

0.3.0

0.3.0.0

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

17/03 2017

dev-dev

dev-dev

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

13/03 2017

0.2.0

0.2.0.0

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot

21/12 2016

0.1.0

0.1.0.0

  Sources   Download

Unlicense

The Requires

  • ext-gd *

 

The Development Requires

search gd screeshot