Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 10th, 2005, 07:54 AM
Registered User
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I extract text from a GIF image? Pls help!


I'm trying to code a testing application for my company's website which will try out all combinations of option buttons, list-box selections etc to make sure everything works out as expected.

Unfortunately I've hit a brick wall when faced with the GIF "random security code generator" image. Could someone please detail how to decrpyt the text in the gif? Any API functions or similar that can be used to assist in this goal?

The URL for the GIF pwd generator is available here (just temporarily until I can get past it with your help!):


Many thanks in advance everyone! I really appreciate any light you can shed on this!
Old March 10th, 2005, 01:23 PM
Friend of Wrox
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

I believe that to do this is virtually impossible.

You would need a means of locating straight lines in an image; such algorithms exist, but they are pretty complicated.

Having that in hand, you would need to recreate the image repeatedly, with every permutation of removing lines implemented (one without line_1, one without line_2, one without line_1 and without line_2, etc., up to the number of lines that were detected).

Then each of those images would need to be passed through Optical Character Recognition.

I think you’re going to need the help of the CIA, the FBI and MI6...
Old March 7th, 2018, 11:16 PM
Registered User
Join Date: Mar 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I extract text from a GIF image? Pls help!

I tried CnetSDK. Easily find a demo project for how to extract text from a GIF image. In addition to text extraction from GIF, other raster image file formats are available, such as extracting text from PNG, TIFF, BMP, GIF, and so on.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show gif image on mouseover event of button arshad mahmood ASP.NET 1.0 and 1.1 Basics 2 September 14th, 2006 12:15 AM
extract text and image content from .ppt file pratik28 C# 0 May 11th, 2006 06:20 AM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM
Can't use gif image Goalie35 Crystal Reports 2 April 21st, 2004 12:56 AM
How to create GIF image in VB ? vb_programmer VB How-To 0 September 5th, 2003 10:21 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.