|
|
|
|
|
[Home][21 Video Input][21.2 Class Overview]
|
21.2 Class Library OverviewThis 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:
[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. |