|
Thanks again... As correctly mentioned by you that OCR-ing is not a perfect way of achieving the above mentioned task. Is there any other way out to extract the text from the PNG files. Buying a library seems to be the last resort for ur as the approval wfor the same would take a long time.
|
|
|
|
|
No, OCR is the only way. The text does not exist anymore, except as pixels that have no knowledge of their meaning to the human eye, so you need OCR to recognise them and pull them out.
Why would it take a long time ? Is this a commercial project ? If so, are your managers living in a fantasy ? OCR is a complex task, if they are being paid for this work, then a commercial library is the only choice that makes sense, unless you happen to get lucky with a free one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks once again. The text which needs to be captured from the image file is actaully the part of the image (the text is visible in the image). I need to capture that text.
|
|
|
|
|
Google has a free OCR library, Tesseract[^]. Does that suit your requirements?
|
|
|
|
|
hello
I have bought the matlab building for .net.
in Matlab there is a Polyfit function who does
linear fitiing
how can I do a polyfit function in Cs?
|
|
|
|
|
Hi,
I have a page that has a list of wineries. If a winery is selected, then it displays a list of wine for that winery. No I can go an choose which one of the wine I want to add to the order.
Beneath the winery dropdown and wine selection, I have a gridview that displays all the order items.
Here is my confusion, when I add the wine as an order item to the OrderItems table, it works fine, but the gridview still displays the orderitems up to the last inesert. It's as if it does not refresh the gridview. I have to press F5 to have the news items added to display in the grid view.
Is there a way of refreshing the grisview when the items are added, because it does make a round trip to the server to insert the order items.
Please can some help. If there is confusion, please ask and I will try to explain better.
Regards,
ma se
|
|
|
|
|
Hi,
I have created windows service in c#. I would like to schedule windows service manually or by coding .How can I do this.
Any help is appreciated .
Regards,
Rajesh
rajesh
|
|
|
|
|
Actually, I am looking for
My Service should start every day at 9’o clock in the morning and after some time My service should be stopped. As Microsoft has provided a Schedule Task in windows XP, where we can schedule any exe . In the same way how can I schedule any windows service to execute on specified time?
Regards,
Rajesh
|
|
|
|
|
Hi!
There's a ServiceController component you can use for this purpose.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hi,
i have a datagrid displaying a database,
i want to use certain cell values to for example make a sum, the result i want to display on a second datagrid in a specified cell for example column 2 row 3
im not sure how to do this
my first thought is to somehow copy the database showing on the first grid an use these to calculate.
any tips on how i shoud get this working?
thx
|
|
|
|
|
Are there any API's for interacting with Bluetooth devices using C#.NET 2.0 (Desktop).
Is there any guide/tutorial/book out there that deals with this subject?
Here's what I want to end up being able to do - I have a bluetooth USB device and I want to communicate with it using C# 2.0
Any sort of help would be greatly appreciated.
There is no patch for ignorance
|
|
|
|
|
Hi, How do I create a comma delimited text file and write data from SQL database in it using C#?
|
|
|
|
|
The System.IO.File class has all you need to create a file. Not sure if there are any APIs apart from reading your table and writing it out with commas added.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have an MDI in which on the left side is a tree view, and on the right side, i have forms. I open those forms upon selection of nodes from the tree. Now i have a form on the right-side in which i have some buttons. I want that when i click on a button, a relevant tree node can be selected and also the form related to that node can be opened on the right side.
Can anyone guide me how can i do that?
sAqIb
|
|
|
|
|
I have an MDI in which on the left side is a tree view, and on the right side, i have forms. I open those forms upon selection of nodes from the tree. Now i have a form on the right-side in which i have some buttons. I want that when i click on a button, a relevant tree node can be selected and also the form related to that node can be opened on the right side.
Can anyone tell me how can i do that?
sAqIb
|
|
|
|
|
Good morning, I would like to know if it is possible to use a streamwriter and write user input (string) to a specific cell in a worksheet in excel. If not a streamwriter, is there another class that might be able to do it ? Im not talking about writing comma delimeted files which you can open in excel, i want to write a string directly to an excel worksheet to a specific cell so that i can use the formulas created in it.
Any help will be appreciated.
Thank you.
|
|
|
|
|
You can control Excel via COM, and newer versions via a .NET library.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi every one,
i write one application in that application i used one xmlfile(path is "c:\doc\xmlfile.xml"),
now i send my exe to another system and also xmlfile.
now i will put my xmlfile where my exe is loaded in the system.
how can i access the exe path at runtime in c#.net
plz help me .
|
|
|
|
|
Hi,
Try using
Application.StartupPath . It gives you the path of the current application.
Hope it helps.
Do your best to be the best
|
|
|
|
|
Thanks,
i got the path os exe
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
Thanks,
i got the path the exe
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
Thanks,
i got the path of exe
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
be thankful is good , but not more than usual !!! ;)
|
|
|
|
|
Iv been trying to learn the A* pathfinding algorithm. I think I got it down but im having a problem with my implimitation. The problem is that the path is very sloppy. It will not make a diagonal move when it is supposed to and so on. The path looks like it was drawn by a 3 year old. I have beat my head against the wall on this and I am so sick of it, I just want it to work. I have done everything the way its supposed to be done, Iv even looked at some pathfinding articals here. Im using a heavily modified version of an algorithm I downlaoded from this site. Here is the code for the core of the algorithm for which I belive the problem exists.
using System;
using System.Collections.Generic;
namespace PathFinding
{
public class SimplePathFinder
{
Map nodeMap;
Node startNode;
Node endNode;
Queue<Node> finalPath = new Queue<Node>();
bool isPathFound;
public bool this[int x, int y]
{
get { return nodeMap[(ushort)x, (ushort)y]; }
set
{
nodeMap[(ushort)x, (ushort)y] = value;
isPathFound = false;
}
}
public Coordinate StartNodePositon
{
get { return new Coordinate(startNode.X, startNode.Y); }
set
{
startNode.X = (ushort)value.X;
startNode.Y = (ushort)value.Y;
isPathFound = false;
}
}
public Coordinate EndNodePositon
{
get { return new Coordinate(endNode.X, endNode.Y); }
set
{
endNode.X = (ushort)value.X;
endNode.Y = (ushort)value.Y;
isPathFound = false;
}
}
public Coordinate[] Path
{
get
{
if (!isPathFound)
FindPath();
if (finalPath.Count == 0)
throw new ApplicationException("Path not found, the start node or the end node is enclosed or do not exist.");
Stack<Coordinate> coordinateStack = new Stack<Coordinate>();
foreach (Node pathNode in finalPath)
{
coordinateStack.Push(new Coordinate(pathNode.X, pathNode.Y));
}
return coordinateStack.ToArray();
}
}
public SimplePathFinder(int width, int height, Coordinate startNodePos,
Coordinate endNodePos, Coordinate[] unwalkableNodes)
{
nodeMap = new Map((ushort)width, (ushort)height, unwalkableNodes);
endNode = new Node(null, null, nodeMap, endNodePos.X, endNodePos.Y);
startNode = new Node(null, endNode, nodeMap, startNodePos.X, startNodePos.Y);
}
void FindPath()
{
SortedNodeList Open = new SortedNodeList();
SortedNodeList Closed = new SortedNodeList();
if (startNode == null || endNode == null || nodeMap == null)
throw new ApplicationException("StartNodePosition, EndNodePosition, or the Map is not instantiated.");
Open.Push(startNode);
while (Open.Count > 0)
{
Node currentNode = Open.Pop();
if (currentNode.Equals(endNode))
{
endNode.ParentNode = currentNode.ParentNode;
break;
}
Node[] successors = currentNode.GetSuccessors();
foreach (Node successorNode in successors)
{
int oFound = Open.IndexOf(successorNode);
if(oFound > 0)
{
if (Open.NodeAt(oFound).CompareTo(currentNode) <= 0)
continue;
}
int cFound = Closed.IndexOf(successorNode);
if (cFound > 0)
{
if (Closed.NodeAt(cFound).CompareTo(currentNode) <= 0)
continue;
}
if (oFound >= 0)
Open.RemoveAt(oFound);
if (cFound >= 0)
Closed.RemoveAt(cFound);
Open.Push(successorNode);
}
Closed.Push(currentNode);
}
Node p = endNode;
while (p != null)
{
finalPath.Enqueue(p);
p = p.ParentNode;
}
if (finalPath.Count == 1)
finalPath.Clear();
isPathFound = true;
}
}
}
If you need the whole project let me know, I would greatly appreciate any help.
static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y;
|
|
|
|
|
I have a xml file organized like this:
BlackBox Version="1.0"
MainForm Name="frmMain" Value="WillnessLabs BlackBox"
Control Name="label1" Value="Test label"
Control Name="button1" Value="Test button"
Control Name="tabPage1" Value="Test tab1"
Control Name="tabPage2" Value="Test tab2"
MainForm>
MainForm Name="frmOptions" Value="My beloved options"
Control Name="label1" Value="Test label"
MainForm>
BlackBox
And I use this code below, to find the control on the form and to set the value to it...
string name, value;
nav = doc.CreateNavigator();
node = nav.Select("/BlackBox/MainForm[@Name='frmMain']");
while (node.MoveNext())
{
name = node.Current.GetAttribute("Name", "");
value = node.Current.GetAttribute("Value", "");
FindControl(form, name).Text = value;
}
It works like a charm if the xpath expression is "/BlackBox/MainForm/node()".
But if I want to run xpath expression like this "/BlackBox/MainForm[@Name='frmMain']" to load just nodes for the current form
the user is on, so I don't need to load those for options, I get an error.
Object not set to an instance of an object.
What Iam doing wrong? Is xpath expression good? What expression do I need to get this done?
|
|
|
|