extractor | R Documentation |
This is a helper function to extract the game board images from an arbitrary photograph.
extractor(
image,
locations,
histogram_balancing = FALSE,
direction = "backward"
)
image |
The image, stored in "imager" format, to be processed. Supplied via the pre-processing code. |
locations |
Locations of the corners of the game boards in the image file. Supplied via the pre-processing code. |
histogram_balancing |
Should histogram balancing be used to correct grey-out images? This sometimes helps, but sometimes hurts, classification accuracy. This will cause token hue to shift as well, so hue thresholds will need to be revised if this is used. |
direction |
How image skew is corrected. The "forward" algorithm is fast but lower quality. The "backward" algorithm is slow but higher quality. See imwarp function in imager package for technical details. |
A square, cropped, and unskewed image.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.