An R interface for the Brown Dog which allows researchers to leverage Brown Dog Services that provides modules to identify the conversion options for a file, to convert file to appropriate format, or to extract data from a file. See < http://browndog.ncsa.illinois.edu/> for more information.
library(devtools) install_github("NCSABrownDog/bd.r") library(BrownDog)
A set of example files for test can be found here :
Index method creates .index.tsv file with file name and correspondingg tags and content descriptors obtained from Brown Dog service. An example .index.tsv file content is shown below:
dollar_bill.jpg ["Human Face Automatically Detected"] ["Person Automatically Detected"] [[0.2035,0.2141,0.5724,0.0101,0,0,0,0],[0.2509,0.2266,0.5225,0,0,0,0,0],[0.1939,0.2189,0.5707,0.0165,0,0,0,0]]
person.jpg ["Mid Close Up Automatically Detected"] ["Human Face Automatically Detected"] ["Person Automatically Detected"] ["Human Eyes Automatically Detected"] ["Human Profile Automatically Detected"] [[0.1969,0.393,0.4079,0.0022,0,0,0,0],[0.1983,0.6102,0.1912,0.0004,0,0,0,0],[0.177,0.5175,0.3048,0.0007,0,0,0,0]]
Find method allows to find similar images in a folder for a given query image using the .index.tsv file. An example output looks like:
 "Distance of each file to the query file" containing 5 key-value pair(s). airplane.jpg : 0.2321195 brontosaurus.jpg : 1.797693e+308 cougar.jpg : 0.5819163 dollar_bill.jpg : 0 person.jpg : 0