CIB image toolbox technical manual

7. Image information

InfoGetBoundaries
InfoGetExif

InfoGetBoundaries

This operation allows detection of boundaries of the main object in the image. Please find further information in CIB aiModule.

Parameters of this function:

Property name

Description

Default value

InfoGetBoundaries/Algorithm

Which algorithm to use for border detection: New, Original, OriginalReduced, Ai. Ai requires the Ai module.

New

InfoGetBoundaries/ModelFilename

Filename of the model for the Ai based algorithm

-

InfoGetBoundaries/ConfidenceIncluded

Set “0” for correct boundary detection

 

 

Output properties: Boundaries, and Edges.

Boundaries: 8 numbers separated with semicolons (’;’) that all together represent the 4 corners of the bounding box.

Edges: Each edge consist of 4 numbers split with semicolons (‘;’). These numbers represent a line defined from border to border of the image in the format X0;Y0;X1;Y1.

 

Example

<job>
<steps> 
<step command="ipl">    
 <properties>      
  <property name="OperationName">InfoGetBoundaries</property>     
  <property name="Profile:InfoGetBoundaries/Algorithm">Ai</property>    
  <property name="Profile:InfoGetBoundaries/ModelFilename">document_v1.pb</property>    
  <property name="InputFilename">D:\PixelOne.jpg</property>    
  <property mode="out" name="InfoGetBoundaries/Boundaries"/>     
  <property mode="out" name="InfoGetBoundaries/Edges"/>   
 </properties> 
 </step>
</steps>
</job>             

 

Example (edges)

Request:

<property name="OperationName">InfoGetBoundaries</property> 

<property mode="out" name="Profile:InfoGetBoundaries/Edges"/>

Output:

<property name="InfoGetBoundaries/Edges">
  2550;0;2832;4048;2407;0;3048;4048;2263;0;3124;4048;2108;0;3191;4048;…
</property>


InfoGetExif

This operations extracts the Exif information from the input image.

There are no input parameters.

Output property: Exif.