20.1  Access Class
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.1 Access Class]

 

20.1   Basic Access Class

The Class Library is:

            Attrasoft.TransApplet70.InputDBMS70,

The class in this library will be:

            Attrasoft.TransApplet70. InputDBMS70. InputDBMS70.

The interface, which will be used by InputDBMS70, is:

        public interface I_InputDBMS

            {

                bool setDBMS (string dbms, string query);

                bool setDBMSSegment (string dbms, string query);

         

                string getDBMS ();

                string getQuery ();

         

                bool isDBMSFile ( string s);

                bool getStatus();

         

                int getN();

                string [] getID ( );

                string [] getName ( );

                string [] getPath ( );

                string [] getAbsolutePath ( );

                string [] getX ();

                string [] getY ();

                string [] getW ();

                string [] getH ();

         

                string getMessage();

            }

This Database Input Class will have a constructor that will take a RichTextBox:

            public InputDBMS70( RichTextBox r1)

                {

                }

To declare an object, write:

        public Attrasoft.TransApplet70.InputDBMS70.InputDBMS70 indb70 ;

To create an object, write:

        indb70 = new

        Attrasoft.TransApplet70.InputDBMS70.InputDBMS70 (richTextBox1 );

The Input parameters to this class are:

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

The Output of this class is a string list of images. The first thing you will do is to enter information to this class:

        indb70.setDBMS (sDBMS, sQuery);

At this point, you can proceed to get data:

        int getN();

                string [] getID ( );

                string [] getName ( );

                string [] getPath ( );

                string [] getAbsolutePath ( );

                string [] getX ();

                string [] getY ();

                string [] getW ();

                string [] getH ();

The status function will tell you whether the database computation is successful:

        indb70.getInputDBMSStatus ()

If it is successful, the retrieved image list can be obtained:

        if ( ! indb70.getInputDBMSStatus ()  )

                {

                    appendText ( "Database input Fail!\n" );

                    return;

                }

            filelist = indb70. getAbsolutePath ( );

 

[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