Up | Configuration | ActiveX Interface | Python Interface | Test Container

 

  

 
Test Container

The ImageX Test Container is an application that to

  • demonstrate
  • develope scripts
  • verify image processing

ImageX and VisionX applications before embedded them into a host application.

ImageX and Vision X is designed to be contained in any developement environment that supports ActiveX plugins. Typical containers are applications developed Borland Delphi, Borland C++, MS Visual Basic, Microsoft C++ or .Net.

Scorpion Vision Software can be a container for ImageX.

More on Scorpion VisionX

Description

The ImageX configuration consists primarily of a spbxml configuration file. In this file settings and scripts stored and activated when given to the ActiveX. The Test Container application accepts the following cmd-line

  • ImageXTestContainer <spbxmlfile>

When no argument is specified the default configuration file TDVImageX.spb is loaded. In the example below tt.spb is specified as cmdline parameter. The spbxml file is implicitly saved when the Test Container terminates.

  • Snapshot - captures on image
  • Live Video - activates live video mode
  • Activate ImageX tabs
    • Image - displays the live image
    • Scripts - presents the system events script in addition to the user defined methods
    • Camera - camera setup
    • Misc - different setups

More on configuration

  • Config File - Open - load a new configuration file

Command

  • Command / Parameters - Press Execute to send a command to the ImageX component

Events

  • Contains the list of ImageX events
  • Clear - clears the event list

Script Example: # draw '*' when user pressed Shift MouseDown

The example uses the python Draw API and you need to add code in the following events.

#OnInit

x = 0
y = 0

#OnImage

DrawText('', x, y, '*', 'red', 12, 'Arial')

#MouseDown

def OnMouseDown(Image,Shift,X,Y):

print 'OnMouseDown - ',Shift
if Shift == 9:
  global x,y
  x = X
  y = Y
  print x,y
  DrawText('', X, Y, '*', 'red', 12, 'Arial')

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.