20.4 Parameter Input
About1 Introduction2 Image Recognition3 TransApplet4 API5 Interface6 Input7 Image Display8 Preprocessing9 Processing10 Normalization11 Parameter Class12 Image Signatures13 Unsupervised Filters14 BioFilters15 NeuralFilters16 Dynamic Library17 NeuralNet Filter18 Parameters19 Input Options20 Database Input21 Video Input22  Live Video Input23  Counting & Tracking24  Counting 25  Batch Job26 ImageFinder for DOS27 ImageHunt 28 Support Packages

20.1  Access Class 
20.2  Input Class 
20.3 Input Selection 
20.4 Parameter Input 
20.5 Input Implementation 
20.6 Testing 
[Home][20 Database Input][20.4 Parameter Input]

 

20.4   Database Parameter Input

The database input requires:

  •    Database File;
  •    SQL statement, which specifies how the data is obtained from the database.

The first variable is used to build the connection string for a database:

        "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + database

The second SQL statement will get data. Examples are:

        Select image from imagetable1.

        Select path, name from imagetable2.

If the query selects multiple fields, this library will build the image path by path+name.

The chapter project will obtain both input parameters in a single click of the �Source� button. Now the project will accommodate 8 different types of input; you must select an input type when the program runs:

  •    When the program starts, select Input source;
  •    After the program has started, click the �Mode� button to select the Input source.

When the program starts, Figure 19.1 will be displayed, which allows the user to make a selection. After the project starts, the Input source can be changed via the �Mode� button in the Figure 19.2. Click the �Source� button to select Microsoft Access file; the program will also prompt you to enter the SQL statement with the second Dialog box:

 

Figure 20.1  SQL Statement.

Users will enter the SQL statement in Figure 20.1.

 

[Home][About][1 Introduction][2 Image Recognition][3 TransApplet][4 API][5 Interface][6 Input][7 Image Display][8 Preprocessing][9 Processing][10 Normalization][11 Parameter Class][12 Image Signatures][13 Unsupervised Filters][14 BioFilters][15 NeuralFilters][16 Dynamic Library][17 NeuralNet Filter][18 Parameters][19 Input Options][20 Database Input][21 Video Input][22 Live Video Input][23 Counting & Tracking][24 Counting ][25 Batch Job][26 ImageFinder for DOS][27 ImageHunt ][28 Support Packages]

Copyright (c) 2006 - 2007 Attrasoft. All rights reserved.

gina@attrasoft.com