|
Hi,
I want to make some simple OCR actions using C#.
All I want is a DLL. I'll give him an image, it will return a string.
Can you give me such dll please?
Thanks
|
|
|
|
|
OCR is not trivial. Atalasoft have a commercial library, I don't know of any others.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I know it's not trivial but in my case I need a simple OCR functionality - only recognize numbers.
I forgot to say - I want free DLL, not commercial.
Thanks
|
|
|
|
|
I guessed that. You're not very likely to find one, sorry.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This[^] company does a freeware product using the Tesseract engine[^] which is open source so it may be a good starting point?
Dave
|
|
|
|
|
Am developing An application in C# and picking data from the database.
I have a bit data type to act as a flag.In the datagridview it displays a checkbox(good for me) but then I have failed to handle the click events of each row clicked to flag off the row so that it is not displayed again.
Need some help or a good article handling this.
Give the world the best you have, And the best will come your Way
|
|
|
|
|
Following is my issue.
-------------------------------------------
I have a unmanaged application ( C++ , .exe ) which has a class CMyClass
with a public member fMyFunct(). You can assume this C++ application is built with /clr option.
I need to instantiate CMyClass in a different managed ( C# ) application and call fMyFunct().
Many thanks if any of you can send me a sample which demonstrate above things ( Remember I can't manipulate C++ application apart from project settings. But you can do anything in C# application )
----------------------------------------------------
|
|
|
|
|
If it's an application ( not a dll ) then if you can't change the app, you're basically screwed. Your best bet would be to abstract the class/method out into a dll, so your C# application can construct an instance and call it. I don't think you can add a reference to an exe in a .NET app.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
namespace JSearchBar_Jason<br />
{<br />
public partial class JSearchBar : UserControl<br />
{<br />
<br />
public delegate void JSearchEventHandler(object sender, JSearchEventArgs e);<br />
public event JSearchEventHandler SearchButtonClickHandle;<br />
<br />
public JSearchBar()<br />
{<br />
InitializeComponent();<br />
}<br />
<br />
private void JSearchBar_Load(object sender, EventArgs e)<br />
{<br />
JSearchLayout();<br />
}<br />
<br />
#region Layout<br />
<br />
private void JSearchLayout()<br />
{<br />
this.BackColor = Color.Transparent;<br />
<br />
this.toolStrip1.Dock = DockStyle.Fill;<br />
<br />
int w = this.Width - ButtonSearch.Width;<br />
this.TextSearch.Width = w;<br />
}<br />
<br />
private void JSearchBar_Resize(object sender, EventArgs e)<br />
{<br />
int w = this.Width - ButtonSearch.Width;<br />
this.TextSearch.Width = w;<br />
}<br />
<br />
#endregion<br />
<br />
private void ButtonSearch_ButtonClick(object sender, EventArgs e)<br />
{<br />
JSearchEventArgs jsearchEA = new JSearchEventArgs(this.TextSearch.Text, "web", "web");<br />
<br />
if (null != SearchButtonClickHandle)<br />
SearchButtonClickHandle(this, jsearchEA);<br />
}<br />
<br />
private void ButtonSearchFreeSite_Click(object sender, EventArgs e)<br />
{<br />
JSearchEventArgs jsearchEA = new JSearchEventArgs(this.TextSearch.Text, "web", "localweb");<br />
<br />
if (null != SearchButtonClickHandle)<br />
SearchButtonClickHandle(this, jsearchEA);<br />
}<br />
<br />
private void ButtonSearchDesktop_Click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show("???????");<br />
}<br />
<br />
}<br />
<br />
public class JSearchEventArgs : EventArgs<br />
{<br />
private string searchKeyWords = string.Empty;<br />
private string sourceType="web"; <br />
private string searchArea="web";<br />
<br />
public JSearchEventArgs(string keyWords, string type, string area)<br />
{<br />
searchArea = area;<br />
searchKeyWords = keyWords;<br />
sourceType = type;<br />
}<br />
<br />
public string SearchKeyWords<br />
{<br />
get{return searchKeyWords;}<br />
}<br />
public string SourceType<br />
{<br />
get{return sourceType;}<br />
}<br />
public string SearchArea<br />
{<br />
get{return searchArea;}<br />
}<br />
}<br />
<br />
}
"int w = this.Width - ButtonSearch.Width;
this.TextSearch.Width = w;
" of upwards code, it was not contributing.
who can tell me why?
Thanks.
|
|
|
|
|
Sorry, you posted way too much code for anyone to bother reading it all.
Did you try setting a break point here and on any other code that sets that width of your control ? Does the control have a minimum or maximum width set in it's properties ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have setted a point there. the code was executed and value of "w" is right.but seem "TextSearch.Width" was not set value with "w".
TextSearch is TextBox, not has a minimum or maximum width properties.
|
|
|
|
|
What if you set that same size in the designer ? And, have you made sure no other code sets the size to something else ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am sure, not set same size and no other code set it.
I create a UserControl, it contain a ToolStrip.
the TextBox and SplitButton are in ToolStrip.
The SplitButton's Width is fix.
I resizing TextBox when ToolStrip resize.
Is the reason about ToolStrip ?
|
|
|
|
|
I find out the reason.
TextBox's autosize property default value is true.
set it false then ok.
thank you help again.
|
|
|
|
|
Strange - I thought of that but checked in a winforms app and couldn't see an AutoSize property. At least we got there, that's great.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ToolStripTextBox has AutoSize
|
|
|
|
|
I am currently working on a project that requires me to do some frame by frame analysis on a video file. But most of the documentation video playback in c# seems outdated. Where would the best place to start be?
|
|
|
|
|
At the end of te day, you're going to use DirectX, so I'd buy a DirectX book, look up some C# DX wrappers and go at it from that angle.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Everyone,
I am planning to buy C# book. I am bit confused whether to go for C# 3.0 book or C# 3.5 book. Please suggest me some good books on both.
Is there any major difference between c# 3.0 and 3.5?
Thanks & Regards
Guhan
|
|
|
|
|
Guhanath wrote: I am bit confused whether to go for C# 3.0 book or C# 3.5 book
Go for the C# 3.0 book as C# 3.5 does not exist.
However, you may have your terminology confused. Did you mean .NET 3.5?
The table in this blog post[^] might help.
|
|
|
|
|
Sorry for the confusion. It is .Net 3.5.which should i go? .Net 3.0 or 3.5?
|
|
|
|
|
Guhanath wrote: It is .Net 3.5.which should i go? .Net 3.0 or 3.5?
If you are using Visual Studio 2008 you have the option of using 3.5 and it will gracefully degrade to 3.0 or 2.0 if you want.
If you are using Visual Studio 2005 you only have the option of using 2.0 or 3.0 (with the Visual Studio extensions)
.NET 3.0 is additive. In other words, it does not change what was already in .NET 2.0 it only adds more to the .NET Framework.
.NET 3.5 is again additive. It only adds to what was in .NET 3.0 without changing anything that was already there.
|
|
|
|
|
Hello friends i am developing an windows application in C#.NET i want to align label text at run time according to user need.
i am using this command..
label1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;
but its gives an error....
|
|
|
|
|
1 - when you tell us you got an error, tell us what it was
2 - when you get an error, read it and see if you can work out what it says
3 - when you want to do something, read the MSDN instead of making stuff up.
this.lblBright.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
that's a line of code from my app. As you can see, and as the error is telling you, and as intellisense would also be making clear, the alignment is not set using the enum that you're trying to assign to it.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for solution and suggestion.
it works
Regards
Dikshant
|
|
|
|