Download the PHP package mgrechanik/image-points-searcher without Composer
On this page you can find all versions of the php package mgrechanik/image-points-searcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mgrechanik/image-points-searcher
More information about mgrechanik/image-points-searcher
Files in mgrechanik/image-points-searcher
Package image-points-searcher
Short Description This library allows to find the coordinates of the points you are looking for on an image
License BSD-3-Clause
Informations about the package image-points-searcher
Searching for points on image
Русская версия
Table of contents
- Goal
- Demo
- Installing
- Search for points
- Display search result
Goal
This library allows to find the coordinates of the points you are looking for on an image ( format).
The point is the set of nearby pixels of choosen color.
For example, when you draw a graph on the image, we will find it's vertices.
Out of the box we have two strategies to determite our points.
-
- when the point is different from background color. Default behavior. See Demo, picture 1.
-
- when point is defined by it's exact color. See Demo, picture 2.
You can create your own strategy and use it.
Points could be of different size, so they could be easily seen, not just 1px size. We use parameter to determine all those pixels as one point.
The result of the search work is an array of points, represented by their X and Y coordinates.
We also give you , who creates the image of the search result:
- We can add labels to points we found
- The borders of the points we found could be shown to better understand search process
- We could draw a path between points
Demo
Determine points with strategy , Picture 1:
Determine points with strategy, Picture 2:
Installing
Installing through composer:
The preferred way to install this library is through composer.
Either run
or add
to the require section of your composer.json
.
Search for points
Search for points with strategy
The result will be like this: