|
Definitely in the image. That can be anywhere in the image, in left side, in right right side in upper part or in lower part absolutely anywhere. Just imagine some text scrolling on the screen in any direction and I take a few screenshots one after another, obviously the location of same text will not be same in every image because it was scrolling on the screen. Now I want to find the location of same text in any of the image.
Hope I make sense.
|
|
|
|
|
Mohammad Gufran wrote: Hope I make sense
Even that isn't clear yet.
What is constant and what is changing? text font, text font size, text orientation, text color, other image content, zoom factor, panning, ...? Why don't you tell us what it is about and what it is for?
|
|
|
|
|
Member 8080537 wrote: Can anyone help me doing this ?
Solution 1.
1. Research OCR products, verify those with a programmable API.
2. Buy your choice.
3. Use your choice.
Solution 2.
1. VASTLY decrease the scope of your problem.
2. Implement a SIMPLE pattern matching scheme based on 1.
Solution 2 is of course based on the idea that you want a solution in less than say 5 years. Since that is probably how long it would take to become an expert in OCR and implement a solution comparable to the existing ones of Solution 1. That time might be reduced if you are already an expert in a number of fields (programming by itself is not one.)
|
|
|
|
|
That's smart advice. So much of social discussion success really does come down to old-fashioned good manners.
|
|
|
|
|
You might consider the EMGU package. This has tools like object recognition. A tutorial can using face detection can be found here[^].
The advantage is that it is very fast, but it might be difficult to implement, and a lot of work to learn it to recognize your text. Also, it its not garanteed that it will return the exact pixel of the beginning of the text (might be one of).
If speed of processing is not an issue, then I would write your own solution. Example if your tekst starts with the letter L (8 pixels down, 5 right):
if(pixel (0,0) is in textcolor)
if(pixels (0,1) to (0,7) are also in textcolor)
if(pixels (1,7) to (4,7) are also in textcolor)
there is a letter 'L' starting in location (0,0);
else
move to next pixel;
You will have to optimise this to get fast results. Look for the 'lockbits' method, which uses pointers to loop through your pixels very fast (easily increases the speed 10x).
|
|
|
|
|
How can i convert the word document to an image using .net code
|
|
|
|
|
|
Hi,
Planning a move from .Net 2.0 to .Net 4.0 in the near future. One of the items still lacking is how to set the security level on the .Net 4.0 exec on a remote server (Intranet). Caspol doesnt work and setting the version back to .Net 3.5 is a temporary solution at best.
Is there a straightforward easy (relatively speaking) method to set the security on a .Net 4.0 executable on a remote box (intranet)?
Thanks
Cegarman
document code? If it's not intuitive, you're in the wrong field
|
|
|
|
|
You don't need CasPol with .NET 4.0 anymore. Read this[^]...
|
|
|
|
|
Hi Dave,
Yep, been there read that !
Our server admins have no interest in doing that. Especially for QA or Dev executables ... Yes I know they could give us access but that would too easy.
Any other suggestions?
Regards,
Cegarman
document code? If it's not intuitive, you're in the wrong field
|
|
|
|
|
That page has your only options.
|
|
|
|
|
Hi Dave,
Ok, thanks.
I'll wander back through that page and see what there is that I can get to work.
More of "Adventures in Computers!!"
Cegarman
document code? If it's not intuitive, you're in the wrong field
|
|
|
|
|
I have a project that contains around 6 libraries at the moment and a business objects library and a data layer library.
My question is one of
Which is considered the better way to go forward
1. Common Business object library?
2. the relevant business objects in the library? i.e. in a client library have the client and client history business objects
Thanks
Simon
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
My opinion is that it's better to have a common objects library. Maintenance becomes easier, and it's much easier to toss objects back and forth when every library has the same classes to work with.
You'll thank yourself for sharing a common library because it's almost like your own Base Class Library.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Thanks Richard,
that is the approach I have at the moment but wasn't sure it was the best approach hence I asked for opinions.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
There are pros and cons to both these approaches.
Having a common library helps you with maintenance and sharing during development.
Individual libraries will help you if your app supports various editions, you need to ship only those libraries that are required for the edition to work.
|
|
|
|
|
That is the approach I have, but had one of the "is there a better approach" moments
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hi All,
I have an entity framework call where it is going in to infinite loop. Can anybody please help me in resolving it and making this call to execute only one.
The persist method is being called here for many times so at last it is throwing exception
Following is the code
using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required,
new TransactionOptions() { IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted }))
{
controllerContext.PersistEvents.Clear();
Persist(businessObject, context, controllerContext);
transactionScope.Complete();
}
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I don't see where this has anything to do with EF, other than what I presume is an ObjectContext. What does the Persist method do? Does it call here recursively?
No comment
|
|
|
|
|
By any chance, is the Persist method the same one that contains this code or is it higher up the stack trace and results in this routine being called?
|
|
|
|
|
Hey,
in my excel plugin , i have dynamically generated the OLEOBJECTS Textbox ..
when i click on them to write something . THEY opens up the
Private Sub cmdActionTxt0_Change()
End Sub
VBA editor
i do not want it to be opened and simply want to write over them.
How is that possible
|
|
|
|
|
Hi every
I have two questions
First whats the meaning of "reference" in .net ?
public partial class MyForm : Form
{
...
...
public MyForm getForm()
{
return this;
}
}
and second
When this method is called, a reference, this , is returned to the calling method. could you explain it for me?
thanks
|
|
|
|
|
Neither question has anything specifically to with .NET, they are more to do with the language structure. See here[^] for the definition of reference types; there is also a simpler description in Charles Petzold's excellent .NET Book Zero[^]. The this name is merely an alias for the current object.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
A reference could be though of as a pointer to a memory location.
this is a reference to the object itself.
|
|
|
|
|
Hello,
I am writing an application that perform image acquisition frome a camera.
The image aqcuisition is done by a DLL Supplied by the camera manufactorer.
Basicaly im initializing the DLL and then i start capture,in my application i defened a function that is called by the DLL every captured frame,this "OnFrameCapturedHandler" function gets the frame as the parameter.
Then i perform some calculation on the frame and i display it on the GUI.
But the problem is that the grabbing is faster then my calculation so what happens is that a new frame comes in while the previous is still processed.So what i need is some way to block or to make "OnFrameCapturedHandler" not to do anything while previos frame is Processed.
I tried to put boolean at the begining of "OnFrameCapturedHandler" and set it to false while still processing and at the end set it to true.
And before entering the "OnFrameCapturedHandler" check it.but it freezes my app.
???
Thnaks.
|
|
|
|