-
March 18th, 2012, 04:47 PM
#1
C# Help
Hi,
I'm working on a project and was looking for help.
I have some code:
Code:
if (_video.Count > MinimizeFrames && _capturing == false)
{
string s = _dtw.Recognize(-video);
results.Text = "Recognize as: " +s;
if (!s.Contains("_UNKNOWN"))
{
_video = new ArrayList();
}
}
Within this code, I want to display the results of a class called Form1 if the string s = _dtw.Recognize(-video) is true.
How would I go about doing this?
Regards
Mattbuck
Last edited by Cimperiali; March 18th, 2012 at 06:32 PM.
Reason: added [code][/code] tags
-
March 18th, 2012, 06:41 PM
#2
Re: C# Help
First, you titled this C# help, thus I moved it from chit-chat board to a more proper forum.
Second, your question is at least for me, a bit obscure:
I want to display the results of a class called Form1 if the string s = _dtw.Recognize(-video) is true
the class named Form1 usually are forms and usually do not give results, unless you code them for it. what kind of result you might expect from form1?
And the string usually can be null, empty or with some string content. Did you meant you wanted to display something if the string is not NullOrEmpty? But then, that would pass the "_UNKNOWN" value it seems it could assume.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|