|
|
|
|
[Home][20 Database Input][20.5 Input Implementation]
|
|
20.5 Database Input ImplementationThe database input is implemented by the following codes: internal string dbmsSQL ="NA"; internal void setSQL (string s) { dbmsSQL = s; } internal string getSQL () { return dbmsSQL ; }
private bool searachSource4 () { try{
//Step 1. Database file if ( f.openFileDialog1.ShowDialog () != DialogResult.OK ) return false; string sDBMS = f.openFileDialog1.FileName ; f.textBox2.Text = sDBMS ;
// Step 2. SQL Statement string sQuery =""; Parameter_DbmsInput pd = new Parameter_DbmsInput (this, 0); pd.ShowDialog (); sQuery = getSQL (); f.richTextBox1.AppendText ( "Database: " +sDBMS +"\n" ); f.richTextBox1.AppendText ( "Query: " + sQuery +"\n" );
//Step 3. Database Input this.imageAbsoultePath = script.input.getAccessList (sDBMS, sQuery); if ( imageAbsoultePath == null ) {
f.richTextBox1.AppendText ( "Data Source fails!\n"); return false; } } catch (Exception e ) { f.richTextBox1.AppendText ( e.ToString () +"\n" ); return false;
} … return true; }
private bool searachSource5 () { … } Now we briefly explain the code:
The implementation, searchSource5 (), for the Access Segment is similar.
[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. |