Hi all, I'm looking at adding OCR (Optical Character Recognition) into an application I'm currently developing. I need the following functionality: 1) Handle AVI file format (possibly other movie formats in the future) 2) Allow me to specify where each text field is on the movie frame (a max of 20 text locations need to be handled) So far from searching on the internet I've been unable to find any OCR tools that handle movies so it would seem I'd need to convert every frame to a tif (or other format) and then pass it into the software. And for the second requirement they OCR tools only appear to process the entire image (so like a scanned in text document) rather than certain parts (best way I can think of describing it is like trying to capture the date/time off each frame, so always in the same position). So does anyone have any ideas on how to do this and of any appropriate tools? many thanks, Andy
mcsherry
Posts
-
OCR software -
Weird Debugging problemHi all, thanks for al of your replies. I tried all of them with no success and then finally found the answer on the MS Support site http://support.microsoft.com/?id=328784[^] This has fixed my problem and I think the problem crept into my program when I integrated some code that someone I work with wrote in a text editor (he switches between Linux and Windows) so this seems the likely culprit. Thanks all again, Andy
-
Weird Debugging problemIn a program I've been working on for a while now I've started to have a weird debugging problem. When I hit a breakpoint and start stepping into other methods the debugger will take me to the middle of other methods instead (looking at the call stack the way I've reached the breakpoints is also incorrect, i.e. button click events been called randomly instead of when the user clicks the button). Has anyone came across this before? I've done the usual of doing a clean rebuild, shutting the machine down, swinging round on my chair whilst counting backwards from 100..... :mad: I'm working within Studio 2003. TIA
-
Flickering Problemwell sort of the answer, further to my above post, I've got rid of the group boxes and changed the style of the CEdit controls to have the Border, Modal Frame and Static Edge set to TRUE. Although this border is thicker than I wanted it is better to look at than a flickering screen! Any suggestions on how to make this border thinner would be great :) Andy,
-
Flickering ProblemHi Thanks for your reply. I've delved further into this now and have found that the flickering is due (or at least appears to be due) to the fact that I have controls on top of each other, an example is that I will have a Group Box with a CEdit control inside of it, when they are seperate they don't flicker when combined they do. I'm using the Group box to provide a border effect to the CEdit control as none of the built in border styles are suitable, so if I can get an identicle border in another way then my problem may be sorted! Do you have any ideas on how to do this? cheers, Andy
-
Flickering ProblemI a CDialog based application which has approx 30 CBitmapButtons and 30 CStatic text boxes. I'm receiving data at about 20hz which is causing the screen to flicker badly when these are getting repopulated. I've looked at the usual ways of stopping/reducing the flicker (overloading OnEraseBkgnd, using InvalidateRect ( rect, FALSE ), Invalidate (FALSE), etc...) with no luck. Does anyone have any ideas how I can overcome this? One idea I've had is buffering the entire dialog before painting it, however I can only find examples on how to do this with bitmap controls rather than an entire dialog with controls. TIA, Andy
-
Dragging windowsHi thanks for your reply, I've got the solution now, all I had to do was re-read the article I linked to in my orignal post and implement the OnLButtonDown, OnLButtonUp and OnMouseMove methods instead of the other one and do my region check in the OnMouseMove method. Andy
-
How to update main window from a child dialog??one way is to use SendMessage to send the updated values
-
Dragging windowsok, found my first mistake, was looking at the x part of the CPoint instead of the y! :-O I think I've figured the problem, the OnNcHitTest only seems to be called when I've released the left mouse button, so during my drag it doesn't get called. Is there anyway around this?
-
Dragging windowsI've got a full screen dialog application in which i want the user to be able to drag any dialogs which pop up to any position they want on the screen but also to limit them from certain areas of the screen. I've used the following article http://www.codeproject.com/dialog/dragwindows.asp?df=100&forumid=4307&exp=0&select=1749703[^] for the dragging of the dialog (using the OnNcHitTest method). However I can't figure out how to limit where they can drag the dialog. I've though it would be a simple matter of converting the CPoint position for the mouse into screen co-ordinates and checking if it is in a forbidden region and then setting it to be outside of this region. Any suggestions? cheers, Andy
-
BeepI'm currently using the Beep method to make, well a beep ;P, sound when an action occurs. This works well on my development machine (a laptop) in the fact that it plays the beep through the sound card to my headphones/speakers. However on the machine the program will run on the beep comes out of the system speaker (the one that makes beeps on startup). Does anyone know if there is a similar method that will allow me to always direct the output through the sound card? I don't want to start playing sound files as all I need is to play a beep at a set frequency for a set period of time, so something very basic :-D cheers,
-
CDialog and Mouse clickscheers, I implemented it as I described but also used SetCapture and ReleaseCapture and it worked a treat :D
-
CDialog and Mouse clicksWhat is the best way to detect if a user presses the L button down and releases it within a specified region on a dialog? The way I'm considering doing it is to use the OnLButtonDown and OnLButtonUp methods and set a bool flag when the user presses down whilst within this region and when they release the mouse to check this flag and then check if they are still in the region. Is this the best/recommended way of doing it or is there better more effient ways? TIA,
-
Buttonsthanks again for your help (used every word for the search apart from 'deriving'! :sigh:)
-
ButtonsHi, thanks for your reply, I'm having a bad start to the day so could you post a link to an article (or explain) how I can overload the CButton class? cheers,
-
ButtonsFor the buttons on my dialog based application I need to have an implementation of the OnLButtonDown and OLButtonUp methods so that I know when the mouse is in different 'click' states. Looking at the available control events these aren't availble (only available for the actual dialog). Is there a way to do this? TIA, Andy
-
VectorHi (again), I've just looked into the list container more and have figured out the following: myList.splice(myList.end(),myList, myList.begin()); This seems to do what I was, is this the correct way to do it (and is it safe!)? thanks,
-
VectorHi, thanks for your reply, the dynamic memory allocation can not happen in any code I write but it is allowed to happen in legacy or other code (i.e. STL, MFC, etc...). What happens at present is: 1) Start of program allocate enough space to the vector 2) Set the current position variable to 0 (i.e. we actually have no elements) ... x) read in a record (again this is into an already defined variable) x1) if not at the end of the vector copy the record into the next free position of the vector and increment the current position x2) clear the contents of the read in variable (so its empty next time it gets a record) The more I look at this code/mechanism the more clunky and bad it looks but I haven't got any other ideas how to do this, so if you have any suggestions that would be great. Regarding using a list what methods would allow me to get the behaviour of moving the first element to the end? cheers, Andy
-
VectorHi, I currently use a vector to store a set of records. However there is now a limit to the number of elements the vector contains and once it is filled we have to remove the first element and insert the new one at the back. But as an added complication we aren't allowed any dynamic memory allocation so what needs to be done is: 1) Remove first element from list but do not free it's memory 2) overwrite the removed elements data with the new data 3) insert the updated element to the end of the vector What is the best way to do this? I am not limited to only storing the data in a vector so if any other containers are more suitable then let me know! TIA,
-
OnLButtonDown and Upcheers Mark, worked a treat