Classes
class MatchingTemplateList-
MatchingTemplateList (EbvListSection)
Class for handling Matching Templates.
Examples
# Load matching template pynebv.matching_template.load("/path/to/template.pmtmpl", "template") # add template template = pynebv.matching_template.add() # add figure template.add_figure_by_point((200,200)) template.add_figure_by_area((210,210,220,220)) # add measurement template.add_measurement((200,200), 30) # Clear all templates pynebv.matching_template.clear()Ancestors
Methods
def add()def clear()-
Delete all matching templates.
Returns
none- Always none.
def load(filePath, format)-
Create templates from file.
Args
filePath:str-
Specify file path.
format:str-
type detail: str: 'template' or 'recipe'
Specify file type.
Returns
none- Always none.
def save(filePath)-
Save templates.
Args
filePath:str-
Specify file path.
Returns
none- Always none.
def sort_by_column(column, sortAscending)-
Sort by column.
Args
column:int-
Specify an index number of column.
sortAscending:bool-
Specify whether to sort in ascending order.
Returns
none- Always none.
Inherited members
class MatchingTemplateMeasurementList-
MatchingTemplateMeasurementList (EbvListSection)
Class for handling measure points of Matching Templates.
Ancestors
Methods
def sort_by_column(column, sortAscending)-
Sort by column.
Args
column:int-
Specify an index number of column.
sortAscending:bool-
Specify whether to sort in ascending order.
Returns
none- Always none.
Inherited members
class MatchingTemplateFigureListItem-
MatchingTemplateFigureListItem (EbvItem)
Ancestors
Subclasses
Inherited members
class MatchingTemplateRoot-
MatchingTemplateRoot (MatchingTemplateFigureListItem)
Class representing Root of Matching Templates.
Ancestors
Instance variables
var name : str-
Name of item.
Inherited members
class MatchingTemplate-
MatchingTemplate (MatchingTemplateFigureListItem)
Class representing Matching Template.
Ancestors
Instance variables
var name : str-
Name of item.
Methods
def add_figure_by_area(area)-
Add figures by area.
Args
area:tuple[float, float, float, float]-
Specify area.
Returns
EbvItemList- Return added figure.
def add_figure_by_point(point)-
Add figures by point.
Args
point:tuple[float, float]-
Specify coordinate.
Returns
EbvItemList- Return added figure.
def add_measurement(point, angle)-
Add new measurement point.
Args
point:tuple[float, float]-
Specify coordinate.
angle:object-
type detail: object: float or str('Auto')
Specify angle.
Returns
EbvItem- Return new measurement point.
def clear()-
Delete all matching templates figures in the template.
Returns
none- Always none.
def delete()-
Delete an item.
Returns
none- Always none.
def pattern_match(area, /, dissimilarityThreshold=0.239)-
Execute pattern match.
Args
area:tuple[float, float, float, float]-
Specify area.
dissimilarityThreshold:float-
Specify dissimilarity threshold.
Returns
EbvItemList- Return items of pattern match results.
def relocate(destinationItem, /, insertAfter=True)-
Move position in list.
Args
destinationItem:EbvItem-
Specify destination item.
insertAfter:bool-
Specify whether to insert after destination.
Returns
none- Always none.
def set_current()-
Specify for the target template.
Returns
none- Always none.
Inherited members
class MatchingTemplateFigure-
MatchingTemplateFigure (MatchingTemplateFigureListItem)
Class representing Matching Template Figure.
Ancestors
Instance variables
var name : str-
Name of item.
Methods
def delete()-
Delete an item.
Returns
none- Always none.
def relocate(destinationItem, /, insertAfter=True)-
Move position in list.
Args
destinationItem:EbvItem-
Specify destination item.
insertAfter:bool-
Specify whether to insert after destination.
Returns
none- Always none.
Inherited members
class MatchingTemplateMeasureListItem-
MatchingTemplateMeasureListItem (EbvItem)
Ancestors
Subclasses
Inherited members
class MatchingMeasurementPoint-
MatchingMeasurementPoint (MatchingTemplateMeasureListItem)
Class representing Measurement Point in Matching Template.
Ancestors
Instance variables
var name : str-
Name of item.
Methods
def delete()-
Delete an item.
Returns
none- Always none.
def relocate(destinationItem, /, insertAfter=True)-
Move position in list.
Args
destinationItem:EbvItem-
Specify destination item.
insertAfter:bool-
Specify whether to insert after destination.
Returns
none- Always none.
Inherited members