EasyCV  0.9.36
Easy! Computer Vision
Functions
easy.labelme Namespace Reference

Functions

def parsePolygon
 
def parseLabeledObjects
 
def parseFolder
 
def downloadImages
 

Detailed Description

A very basic client for LabelMe servers,
for now just for local file system access to the annotations
and image references.

Usage:
Collect and parse all XML files in this directory:
lmAnnotations = '/some/folder/to/LabelMe/Annotations'
lmFolder = 'example_folder'
labels = labelme.parseFolder( lmAnnotations, lmFolder )
print 'found a total of ' + str(len(labels)) + ' labels'

Function Documentation

def easy.labelme.downloadImages (   lmImages,
  lmFolder,
  CVAC_DataDir,
  toLocalDir 
)
def easy.labelme.parseFolder (   localDir,
  lmAnnotations,
  lmImages,
  lmFolder,
  CVAC_DataDir 
)
Parse all XML files in the specified folder and
return all found labels.
(this currently only works locally on the file system)
lmAnnotations is equivalent to HOMEANNOTATIONS in the Matlab LabelMeToolbox:
it is the path to the Annotation root folder on the file system, 
or the LabelMe server's Annotation folder http address.
lmFolder is the equivalent to HOMEIMAGESin the Matlab LabelMeToolbox.
Both lmAnnotations and lmFolder are assumed to be in localDir
def easy.labelme.parseLabeledObjects (   root,
  substrate 
)
for each labeled object in the annotation tree
that does not have the <deleted> tag set,
collect the name, attributes and the polygon and create the
equivalent cvac.Silhouette from it
def easy.labelme.parsePolygon (   etelem)