Label2Folder: Takes labels and moves associated files to folders for tensor...

Description Usage Arguments Examples

Description

Takes labels and moves associated files to folders for tensor training

Usage

1
Label2Folder(database, image_path, image_ext = ".jpg", out_image_path)

Arguments

database:

path and name of RDS or dta file as provided by IFPRI with images where labels will be stored

database_label:

column of database where labels are stored

database_image_col_name:

column of database where names, urls or paths to images are stored

image_path:

path of folder holding aoi images

image_ext:

extension type of image for example .jpg

out_image_path:

path of folder where images should be sorted for training

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
image_path = '/media/ssd/Lodging_Classifier/aoi/'
image_ext = '.jpg'
database = '/media/ssd/Lodging_Classifier/cropmonitor_merged.rds'
database_label = 'Lodging'
database_image_col_name = 'image'
out_image_path = '/media/ssd/Lodging_Classifier/sorted'
Label2Folder(database,image_path,image_ext='.jpg',out_image_path)

## End(Not run)

khufkens/cropmonitor documentation built on May 31, 2019, 8:29 a.m.