27.9 DOS 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

27.1  Why ImageHunt? 
27.2  Design 
27.3 Web Server 
27.4 Install 
27.5 Web Project 
27.6 Step 1 
27.7 Step 2 
27.8 Step 3 
27.9 DOS Class 
27.10 Step 4 
[Home][27 ImageHunt ][27.9 DOS Class]

 

27.9   Dos Class

We will briefly review the Dos70 library introduced in the last chapter. We will use the “Attrasoft.Transapplet70.Dos70” library; please read the last chapter to become familiar with this library.

The main class in this library will be:

            Attrasoft.TransApplet70.Dos70.Dos70.

The interface, which is implemented by Dos70, is:

            public interface I_Dos70

            {

            //Parameters

         string getFilePath ();

              void setFilePath (string s);

            

            // Command

              bool save (int i);

              bool open (int i );

              bool load ();

              bool run();

              bool ImageFinderForDos (int i);

            }

To set the batch file, use:

         string getFilePath ();

             void setFilePath (string s).

There is only one command:

            bool ImageFinderForDos (int x).

which is the same as:

        bool open (int i );

            bool run();

The parameter, x, can have the following values: 1, 2, 3, 4, 5.

  •    Value 1 corresponds to the ImageFinder command: “Batch/Open” + “Batch/Run”;
  •    Value 2 corresponds to the ImageFinder command: “Batch/Open 2” + “Batch/Run”; … 

To include the class library in the project,

  •    In the Solution Explorer, right click References and select Add Reference;
  •    Browse to find “Dos70.dll” in “c:\transapplet70\”;
  •    Highlight it and click the “OK” button.

To declare an object, add:

        Attrasoft.TransApplet70.Dos70.Dos70 d70

        = new Attrasoft.TransApplet70.Dos70.Dos70 ();

 

[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