Description Usage Arguments Examples
Takes labels and moves associated files to folders for tensor training
1 | Label2Folder(database, image_path, image_ext = ".jpg", out_image_path)
|
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.