22.1  Class Name
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

22.1  Class Name 
22.2  Link to Class 
22.3 Input 
22.4 Initialization 
22.5 Video Image Design 
22.6 Display Image 
22.7 Live Video to Images 
[Home][22 Live Video Input][22.1 Class Name]

 

22.1   Class Library Name

The class library is:

            Attrasoft.TransApplet70.LiveVideoInput70,

The class in this library will be:

            Attrasoft.TransApplet70.LiveVideoInput70.LiveVideoInput70.

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

        public  interface I_LiveVideoInput70

            {

                //1. parameters

                bool getCaptureStatus();

         

                bool getVideoToImagesDirStatus();

                void setVideoToImagesDirStatus( bool b );

         

                string getVideoToImagesDir();

                void setVideoToImagesDir( string s);

         

                // 2. action

                bool initialization ();

         

                bool attach ();

                bool detach ();

         

                string getMessage();

            

                string getInfomation();

                string toString();

            }

The class, �LiveVideoInput70�, will have a constructor that will take a Picture Box and Panel:

        public LiveVideoInput70( PictureBox pictureBox1a, Panel panel1a)

                {

                    pictureBox1 = pictureBox1a;

                    panel1 = panel1a;

                }

The Live Video will be displayed in the Panel and the Picture Box. You can obtain a live image at anytime via the Picture Box.

To declare an object, write:

        internal Attrasoft.TransApplet70.LiveVideoInput70.LiveVideoInput70 lv70;

To create an object, write:

        lv70 = new

        Attrasoft.TransApplet70.LiveVideoInput70.LiveVideoInput70 (pictureBox2, panel1) ;

Make sure the Picture Box and Panel objects are created first. The first thing you will do is to initialize the LiveVideoInput70 object:

        lv70.initialization ();

This will bring the live video to the Panel.  To get images, we will need to bring the live image to the Picture Box. The following two commands will display and stop displaying live images to the Picture Box:

        bool attach ();

        bool detach ();

To make the Picture Box show live images, use the attach function. To stop the Picture Box from showing live images, use the detach function.

 

[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