21.2  Class Overview
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

21.1  Class Name 
21.2  Class Overview 
21.3  Link to Class 
21.4 AVI Selection 
21.5 Video to Images 
21.6 Testing 

 

[Home][21 Video Input][21.2 Class Overview]

 

21.2   Class Library Overview

This Class Library will break a *.avi video into images by an algorithm like this:

        For ( I = start; I <= end; I += step )

        {

                get Frame I from the video;

            save the image to image_I.jpg;

        }

To enter a video *.avi file, use these functions:

        void setVideoFile (String s);

        string getVideoFile ();

        bool getVideoFileStatus();

The converted images are saved to a folder, called �Video To Image� directory. To set the �Video To Image� directory, use these functions:

        void setVideoToImagesDir (String s);

        string getVideoToImagesDir ();

        bool getVideoToImagesDirStatus();

The breaking algorithm requires the starting frame number, the ending frame number, and the skip steps. The following functions are for this purpose:

        int getFrameNumberStart ();

            void setFrameNumberStart (int i );

            int getFrameNumberEnd ();

            void setFrameNumberEnd (int i );

            int getFrameNumberStep ();

            void setFrameNumberStep (int i );

To get the number of frames from the video file, use: 

        int getNumberOfFrames();

To get a particular frame, use:

            Bitmap getBitmap (int i);

To convert *.avi video to images, use:

        bool videoToImages ();

Before calling videoToImages(), you should set the:

  •    �Video To Image� Directory;
  •    Starting Frame Number;
  •    Ending Frame Number; and the
  •    Skip Steps.

 

[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