|
|
|
|
|
[Home][20 Database Input][20.3 Input Selection]
|
20.3 Input SelectionThe input options are: 0. Directory, 1. File, 2. Sub-Directory, 3. File Segment, 4. Access, 5. Access Segment, 6. *.avi file, and 7. Live Video. The selection is implemented by the “Mode” button in Figure 19.2:
Double click the “Mode” button and enter: private void button3_Click(object sender, System.EventArgs e) { gui.Button_Mode (); }
Here, mainMenuToAPI is an object, which will implement all functions. As we discussed earlier, the main form simply links menu items to functions in the mainMenuToAPI object. The implementation is: public void Button_Mode () { iMode = (iMode + 1 )% strMode.Length ; Button_Mode_consistent (); } where the third line is: public void Button_Mode_consistent () {
if (iMode == 0 ) f.button3.Text = strMode[0]; else if (iMode == 1 ) f.button3.Text = strMode[1]; else if (iMode == 2 ) f.button3.Text = strMode[2]; else if (iMode == 3 ) f.button3.Text = strMode[3]; else if (iMode == 4 ) f.button3.Text = strMode[4]; else if (iMode == 5 ) f.button3.Text = strMode[5]; else if (iMode == 6 ) f.button3.Text = strMode[6]; else if (iMode == 7 ) f.button3.Text = strMode[7]; else { iMode = 0; f.button3.Text = strMode[0]; }
f.richTextBox1.AppendText ( "Input source: " + f.button3.Text + "\n"); } The access options are: iMode = 4 (Access); iMode = 5 (Access Segment). The “Source” button specifies the input source based on the variable, iMode. Double click the “Source” button and enter: private void button2_Click(object sender, System.EventArgs e) { gui.Button_SearachSource ( gui.iMode ); } The implementation is: public void Button_SearachSource (int iMode) { canLiveStart = false;
if ( iMode == 0 ) searachSource0 (); else if ( iMode == 1 ) searachSource1 (); else if ( iMode == 2 ) searachSource2 (); else if ( iMode == 3 ) searachSource3 (); else if ( iMode == 4 ) searachSource4 (); else if ( iMode == 5 ) searachSource5 (); else if ( iMode == 6 ) searachSource6 (); else if ( iMode == 7 ) searachSource7 (); else searachSource0 (); } Therefore, the database implementation is given in the following functions: searachSource4 (); searachSource5 ().
[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. |