Description Usage Arguments Value Examples
This function does these things: (1) Create descriptions for Hashes (2) Get all combinations of hash size, resizing method, and hashing method (3) Create Hashes for each image using each configuration.
1 2 3 | hash_batch(IMAGE_PATH = "./", cfg_hashsize = c(4:6, 8:10),
cfg_hashmethod = c("average_hash", "dhash", "phash"),
cfg_hashresize = c("nearest", "bilinear"))
|
cfg_hashsize |
Numeric Vector. Defaults to c( 4:6,8:10 ). NOTE: hash size of 7 crashes R !!! |
cfg_hashmethod |
Vector of Character Vector. Defaults to c( 'average_hash', 'dhash', 'phash' ) |
cfg_hashresize |
Vector of Character Vector. Defaults to c( 'nearest', 'bilinear' ) |
Returns a list of hashes
1 2 3 | hashes <- hash_batch('/Users/Karl/Dropbox/Projects/Video-Captioning/pipelines/box2/')
hashes$names
hashes$values
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.