Description Usage Arguments Value Examples
View source: R/make_image_block.R
make_image_blocks_from_dirs
Creates and writes a TXT blocks of image names.
Notably, this function uses a list of lists of image files from
databases to construct an equally but randomly allocated list of images
from each in a series of equally sized blocks.
1 2 3 4 5 6 7 | make_image_blocks_from_dirs(
dbs_path,
validation_path,
output_path,
block_size,
breaks = 0
)
|
dbs_path |
The path relative to working directory of database lists of images. |
validation_path |
The path relative to working directory of validation image files. |
output_path |
The path relative to working directory of output block TXT files. |
block_size |
The number of images per block. |
breaks |
The number of breaks that should be inserted with image name "break.jpg". Breaks will be inserted evenly throughout a block after the block is created. Defaults to 0. |
List of image file names with prefix database identifiers.
1 2 3 4 | make_image_list_from_dirs("imgct/images/databases",
"imgct/images/validation",
"imgct/images/blocks",
300)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.