convertCoordinates {animl}R Documentation

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)

Arguments

results

list of bounding boxes for each image

Value

A dataframe with one entry for each bounding box

Examples

## Not run: 
 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)

## End(Not run)

[Package animl version 1.1.0 Index]