|
|
|
|
[Home][22 Live Video Input][22.6 Display Image]
|
|
22.6 Display Live Image in Picture BoxTo convert the live video to images, we have to activate the Picture Box via the “Live” button. The button is implemented as: private void button6_Click(object sender, System.EventArgs e) { gui. Button_Live (); } public bool Button_Live () { if (! canLiveStart ) { f.richTextBox1.Text = "Please set the mode to Live Video and click the source button!\n" + "The Mode button is right in front of the Live button.\n"; return false; } if (iMode != 7 ) { f.richTextBox1.Text = "Please set the mode to Live Video and click the source button!\n" + "The Mode button is right in front of the Live button.\n"; return false; } iLive = (iLive + 1 )% 2; if (iLive == 0 ) { f.button6.Text = "Live Stop"; f.mainMenuToAPI .lv63.attach (); f.richTextBox1.Text = "Live Start, click the same button to stop!"; } else if (iLive == 1 ) { f.button6.Text = "Live Start"; f.mainMenuToAPI .lv63.detach (); f.richTextBox1.Text = "Live Stop, click the same button to start!"; } return true; } If the LiveVideoInput70 object is not initialized, or the Input Source is not “Live Video”, the button will not do anything. This button will either show the live video in the Picture Box or stop showing the live video in the Picture Box. Once the live video is displayed in the Picture Box, the live images can be obtained by: PictureBox.Image.Save ( image_name, System.Drawing.Imaging.ImageFormat.Jpeg );
[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. |