Learn R Programming

animl (version 1.1.0)

convertCoordinates: Convert bbox from Relative to Absolute Coordinates

Description

Each row is a MD bounding box, there can be multiple bounding boxes per image.

Usage

convertCoordinates(results)

Value

A dataframe with one entry for each bounding box

Arguments

results

list of bounding boxes for each image

Examples

Run this code
if (FALSE) {
 images<-read_exif(imagedir,tags=c("filename","directory","DateTimeOriginal","FileModifyDate"),
                   recursive = TRUE)
 colnames(images)[1]<-"FilePath"
 mdsession<-loadMDModel(mdmodel)
 mdres<-classifyImagesBatchMD(mdsession,images$FilePath,
                              resultsfile=resultsfile,checkpoint = 2500)
 mdresflat<-convertresults(mdres)
}

Run the code above in your browser using DataLab