|
Mai31Written by:Martin 31.05.2009 10:45 
If you’re a regular SwyxIt! user, you probably know F11, the global hotkey to dial a number from any application. Select a number, press F11 and SwyxIt! will dial it. This works very well with applications where you have the number in textual form such as Word, Excel, Outlook, Notepad, etc. But what if the phone number you want to dial is not available as text, e.g. in a scanned document or a fax you received with SwyxFax. Wouldn’t it be great to be able to dial numbers in arbitrary images? That’s much easier than I thought. Office 2007 has a component called “Microsoft Office Document Imaging”, which includes an optical character recognition (OCR) module with a documented API. I’ve written a small prototype to demonstrate dialing from images. You need: - SwyxIt! v6.25
(I do not use any specific SwyxIt! v6.25 function, but that’s the version installed on my system) - Microsoft Office 2007
(I’m not sure if all editions have the OCR functionality. Furthermore, it’s an optional component. The sample program’s setup tells you if it is not installed. - The attached sample program
Download the MSI file attached to this blog entry, install it, make sure that SwyxIt! is runnning and start the program. You get this window:
Minimize the window and you’re ready to go. Press Shift-F11, the screen is dimmed and the mouse cursor changes to a cross. Draw a rectangle around a number you want SwyxIt! to dial.
As soon as you release the mouse, the selected screen portion is fed to the Office OCR module and via SwyxIt! API the detected number is dialed. If you have a mouse with some additional buttons you can configure, try assigning OCRDialSample.exe to such a button and specify command-line parameter –d. Now you can just press that mouse button to start selection. What do you think? Is this useful? Should SwyxIt support it out-of-the-box? Leave a comment with your thoughts. Tags: 9 comment(s) so far...
Re: Dial from really any application Hi Martin. Yes, this is useful. If it is possible to implement it as a standard SwyxIt! feature, it is well worth the effort. Why? Well, I have seen lately that some webpages and even email signatures are using pictures to present contact information. Probably because bots should not be able to sniff the data. Probably it would help dialing from DOS based applications. By morten.rokosz on
31.05.2009 23:15
|
Re: Dial from really any application It would probably be easy to implement this in SwyxIt!. The graphics stuff is nothing special, just using GDI+, which is available for native languages like C++, too. The Office OCR component is a COM object, which can easily be used from C++ as well.
Dialing from DOS-based application might work. It depends on the quality of the OCR component and on the font you're using in the DOS box.
While playing with the sample I found the OCR works better when you have some pixels margin around the text. When you just select the text, OCR does not work very well. The sample does not add such a margin yet and just feeds the selected portion of the screen to the OCR component. By Martin on
01.06.2009 19:06
|
Re: Dial from really any application When I try to install this tool, on a Win XP Service Pack 3, I get a msg: “ Windows Installer: The installation package cannot be installed by the Windows Installer Service. You must install a Windows Service Pack that contains a newer version of the Windows installer Service”. What can I do to solve this issue? Many thanks for your advice. Cheers - Mirjam
By mirjam.baumberger on
22.11.2009 19:19
|
Re: Dial from really any application The Windows installer package requires Windows Installer 4.5. I can't remember why the msi package is built that way. I doubt that the setup uses any 4.5 specific features. Download msi 4.5 from www.microsoft.com/downloads/details.aspx?familyid=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en
By Martin on
22.11.2009 19:59
|
Re: Dial from really any application Great thanks, applictaion is running now :-) By mirjam.baumberger on
23.11.2009 10:58
|
Re: Dial from really any application It captures the primary screen only. It's probably not difficult to extend the tool. I'll have a look. By Martin on
23.11.2009 22:12
|
Re: Dial from really any application Hi again,Got it all working. Although I run in to another issue. When working with dual screen, one can only capture from the left screen. Can this be changed ? or the capture size enlarged to both screens?Thanks Mirjam By mirjam.baumberger on
24.11.2009 03:37
|
Re: Dial from really any application Please download the msi again. I've added multiple monitor support. Please let me know if it works. By Martin on
24.11.2009 21:14
|
Re: Dial from really any application Fast service! I tried it on Windows7 dual screen and Windows XP dual screen : -) Thanks. By mirjam.baumberger on
25.11.2009 05:46
|
|
|