You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CSK_Module_MultiImageEdgeMatcher/pages/pages/CSK_Module_MultiImageEdgeMatcher/CSK_Module_MultiImageEdgeMatcher.html
<desc>Please fill in information regarding: What is the idea of this module and its features? +
10
-
How to use this module in general.... like: +
11
-
{empty} +
12
-
Typically the features of this module are used like this (check also main script of this module): +
13
-
{empty} +
14
-
**1) Setup** +
15
-
ToDo +
16
-
{empty} +
17
-
**2) Something else....** +
18
-
</desc>
9
+
<desc>Module to provide EdgeMatcher functionality. Multiple instances can be created and will run in multiple threads on the device. +
10
+
This module provides a UI for all relevant features. +
11
+
{empty} +
12
+
Typically to configure this module to work with other modules you should do this: +
13
+
{empty} +
14
+
1) If multiple instances are needed, these can be added via addInstance() (not needed if you only use 1 single instace). +
15
+
2) Select the instance you want to configur via setInstance(). +
16
+
3) Set the event providing the images to be processed e.g. via setRegisterEvent('CSK_ImagePlayer.OnNewImage'). +
17
+
4) Optionally edit EdgeMatcher parameters via 'setEdgeThreshold', 'setMaximumMatches', 'setDownsampleFactor'. +
18
+
5) Press the "Teach Mode" button within the UI. It will provide a ROI editor to select a an object and show its teached edges. Press the button again to confirm the teached structure.+
19
+
6) Define the minimum valid score via 'setMinScore'. +
20
+
7) The module will align the image in relation to the first found object. Other modules can register on the 'CSK_MultiImageEdgeMatcher.OnNewAlignedImage[NUM]' event to receive the aligned image for further processing or on 'OnNewStatusFoundMatchesNUM' / 'OnNewStatusMatchScoreResultNUM' to receive the processing result values. +
21
+
{empty} +</desc>
19
22
<serves>
20
23
<eventname="OnNewStatusLoadParameterOnReboot">
21
24
<desc>Notify status if parameters should be loaded on app/device boot up.</desc>
@@ -43,12 +46,6 @@ ToDo +
43
46
<eventname="OnDataLoadedOnReboot">
44
47
<desc>Event to call if module tried to load parameters and should be ready.</desc>
45
48
</event>
46
-
<eventname="OnNewResultNUM">
47
-
<desc>Example of dynamically created event to provide result of instance. +
48
-
NUM will be replaced by the number of instance (e.g. "OnNewResult1"). +
49
-
INFO: Other modules can check via "Script.isServedAsEvent" if event of sepecific instance exists.</desc>
<returndesc="Processing result (optional)."multiplicity="?"name="result"type="bool"/>
128
180
</function>
129
181
<functionname="addInstance">
@@ -133,6 +185,33 @@ Needs then to be called via "Script.callFunction".</desc>
133
185
<desc>Function to reset instances to one single instance. +
134
186
IMPORTANT: As instances start their own threads, the module needs to be restarted if new instances are needed... (see AppEngine docu for "Script.startScript").</desc>
135
187
</function>
188
+
<functionname="setTeachMode">
189
+
<desc>Set status of teach mode for edge matcher. +
190
+
If TRUE, the viewer in the UI will install an editor for the ROI. +
191
+
If FALSE it will update the masks accordingly.</desc>
Copy file name to clipboardExpand all lines: CSK_Module_MultiImageEdgeMatcher/scripts/CSK_Module_MultiImageEdgeMatcher.lua
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
-- If app property "LuaLoadAllEngineAPI" is FALSE, use this to load and check for required APIs
32
32
-- This can improve performance of garbage collection
33
33
34
-
--_G.availableAPIs = require('ImageProcessing/MultiImageEdgeMatcher/helper/checkAPIs') -- can be used to adjust function scope of the module related on available APIs of the device
34
+
_G.availableAPIs=require('ImageProcessing/MultiImageEdgeMatcher/helper/checkAPIs') -- can be used to adjust function scope of the module related on available APIs of the device
0 commit comments