473,671 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Font recognition using PHP

Hi All,

I have been assigned a project to develop a "font recognition
application" using PHP.
It goes something like this:-

The user uploads an image file containing some text. The application
is required to identify the text and the font used there.

Below are links to 2 great applications which I would like to derive
from:-

http://www.myfonts.com/WhatTheFont/
http://www.imagaro.com/m2.html

So far what I understand is, I'll need to have the font names along
with their features to be stored in a database, then I'll need to
analyze the image, pick up the characters from it, identify their
typographical features and run a match on the database to get the top
matching fonts.

However right now I haven't got a clue as to how I go about the
implementation of the above logic or whether there's some other
approach. Need to start right from a scratch, any inputs/suggestions
are greatly appreciated.

Thanks in advance.
Nov 3 '08 #1
6 2978
eureka wrote:
However right now I haven't got a clue as to how I go about the
implementation of the above logic or whether there's some other
approach.
The only valid approach is to use pattern recognition algorithms. Are you
good at maths and statistics?

--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

Proudly running Debian Linux with 2.6.26-1-amd64 kernel, KDE 3.5.9, and PHP
5.2.6-5 generating this signature.
Uptime: 21:02:54 up 74 days, 9:58, 4 users, load average: 0.46, 0.51,
0.53

Nov 3 '08 #2
Hi Ivan,

Well, honestly, Maths was never one of my strongest subjects at school
or college, but with some efforts I would always manage.

=============== =============== =============== =============== =============== =============== ===========

On Nov 4, 1:03*am, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
eureka wrote:
However right now I haven't got a clue as to how I go about the
implementation of the above logic or whether there's some other
approach.

The only valid approach is to use pattern recognition algorithms. Are you
good at maths and statistics?

--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

Proudly running Debian Linux with 2.6.26-1-amd64 kernel, KDE 3.5.9, and PHP
5.2.6-5 generating this signature.
Uptime: 21:02:54 up 74 days, *9:58, *4 users, *load average: 0.46, 0.51,
0.53
Nov 4 '08 #3
eureka <va********@gma il.comwrote:
>
I have been assigned a project to develop a "font recognition
application" using PHP.
It goes something like this:-

The user uploads an image file containing some text. The application
is required to identify the text and the font used there.

Below are links to 2 great applications which I would like to derive
from:-

http://www.myfonts.com/WhatTheFont/
http://www.imagaro.com/m2.html

So far what I understand is, I'll need to have the font names along
with their features to be stored in a database, then I'll need to
analyze the image, pick up the characters from it, identify their
typographica l features and run a match on the database to get the top
matching fonts.
At the risk of annoying the population of this group, this is not a task
that I would handle in PHP. You're talking about some pretty heavy-duty
image analysis here, and that kind of thing tends to be better handled in a
compiled language, where you have more direct control over buffers, bits,
and bytes.

My solution would involve a PHP front-end with a compiled (C/C++) back-end.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 6 '08 #4
Hi everyone,

Thank you for your responses. I'm still clueless about what approach I
should adopt. Tim and Michael suggested using compiled languages,
would Java by the way offer some options here?

Thanks,
Sib
Nov 6 '08 #5
On Nov 6, 11:57*pm, Michael Vilain <vil...@NOspamc op.netwrote:
In article
<9dc6afdd-9f2a-4cdc-aeec-b1628701a...@d4 2g2000prb.googl egroups.com>,

*eureka <value.t...@gma il.comwrote:
Hi everyone,
Thank you for your responses. I'm still clueless about what approach I
should adopt. Tim and Michael suggested using compiled languages,
would Java by the way offer some options here?
Thanks,
Sib

Since you're "clueless" about an approach, why are you wibbling about
what language to use? *It's like you're looking at the blueprints for
how to build an Interrositer and are deciding on what screwdriver you
should select. *You've got a _long_ ways to go before you can even think
about starting to code. *I'd start reading up on image recognition,
first on web articles, then on hardcopy text. *To me, this is the same
sort of thing that OCR software does. *It's CPU intensive and uses lots
of math.

Good luck. *You'll need it.

--
DeeDee, don't press that button! *DeeDee! *NO! *Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]

Hi Michael,

Thanks for replying. Pardon my wibbling, but when I asked about what
approach I should use I was kinda hoping that someone would point me
to some sort of a direction, maybe some helpful links or some book
which would help me.. something like that.. maybe I sounded a little
too helpless I guess. I apologise.

As for the language, I just wanted to know if there are relative API's
available in any language which would help me in my purpose, in that
case I would have gone through them.

I did do a small project in the past where I had to do some simple
pattern recognition. I had used gd library and my program had lots of
nested conditions. Probably wasn't the best algorithm but did manage
to achieve what I needed in the end.

Anyway, many thanks.
Nov 7 '08 #6
On Nov 7, 11:01*pm, A.Reader <anonymou...@ex ample.comwrote:
In article
<9dc6afdd-9f2a-4cdc-aeec-b1628701a...@d4 2g2000prb.googl egroups.com>,

*eureka <value.t...@gma il.comwrote:
Hi everyone,
Thank you for your responses. I'm still clueless about what approach I
should adopt. Tim and Michael suggested using compiled languages,
would Java by the way offer some options here?
Thanks,
Sib

Unless this is a toy project that only requires you to identify a
few *grossly* different fonts, I would advise you to turn it down
if you can.

The reason being that the advent of computer-based type has made
font recognition a nearly impossible activity even for trained
humans. * I can speak with authority on this because 40+ years
ago I earned my living as a commercial artist and was the local
"walking encyclopedia" for font recognition. *I was *very* good
at identifying fonts.

Today? *Forget it. *Someone can like (say) Gudrun Zapf von
Hesse's Ariadne but want some subtle differences. *Solution? *Get
out the font editor, modify and rename the font, *and voilá. *A
not-quite-Ariadne. *

As a test, just go through a few catalogs and look at the number
of variants on Rudolf Koch's punch-cut Neuland face. *People
*love* that font, and have been relentlessly ringing changes on
it. *If seeing how many variations on just that one face doesn't
convince you to choose some easier problem, like long-term
weather prediction or unbounded natural language understanding,
then I can't imagine what would.

Run away! *Run away FAST!
Hi,

Thanks for responding. Well the thing is, the client will be providing
the database and only those fonts stored in there will be searched
for. As time passes new font types will be added and the program will
have to be developed accordingly, but that's a thing of the future.

In my first post I have provided links to 2 very good applications
which almost always manage to accurately identify a wide range of
fonts which are already fed in the database. I need to think on those
lines. Difficult? Yes, but not impossible.

Thanks again.
Nov 7 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6190
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Here is what I have tried so far: - Regular html page: charset is properly recognised - PHP page which just prints out the html: charset is not properly recognised (ISO charset is...
300
18290
by: Ståle Sæbøe | last post by:
I am a bit curious about this. The graphic design people I work with say it is their preferred font for web pages. The reason being that it is "kinder" to the eye both in terms of shape and size. The HTML "hardcore elititst" profess that it is a useless font because it is too big compared to other fonts. Personally I do not care one way or the other, but I generally trust
2
2988
by: gau.tai | last post by:
Is there an existing package for python that will perform simple letter recognition from image files? I'm specifically looking for a way to read from a png file, but that can be changed.
0
1137
by: himoundary | last post by:
hi all i am using microsoft speech sdk (sapi 5.1). i have the following requirements: 1) i need to compare current input sound (through mic) with recorded sound file (say .wav). based of this, i need a measure of similarity or correlation between the two sounds (live input from mic and recorded ..wav sound). a score indicating the degree of similarity would be perfect, but even a boolean response (match / no match) would do.
1
2452
by: Junior | last post by:
Hi guys. I want to incorporate voice recognition in a new .NET application I'm developing. I would like to recognize among a group of 30-40 words. But I would also like to avoid using 3dr party libraries... There is this nice solution, this time for the cf, that fits exactly what I'm looking for, but the source code is not available (http://www.brains-n-brawn.com/default.aspx?vDir=noreco). Does any of you guys have a hint, specially...
1
9613
by: Meena | last post by:
In our company we are trying to add speech recognition to our products. I downloaded the Speech Recognition engine. Now there is a component called Microsoft Direct Speech Recognition in VB.Net It would be really helpful if someone can get me the link where the help would be available for this component. In case someone know any other ways of adding speech recognition to the products, please send the link. It would be helpful too.
12
1547
by: lovecreatesbea... | last post by:
K&R say in the preface of their 2nd edition, "We used Bjarne Stroustrup's C++ translator extensively for local testing of our programs". I don't know where they used the C++ in projects or only this book source. But is it a message of the compromise and recognition to the new C++?
4
5860
by: Ian Dickinson | last post by:
Hi My name is Ian Dickinson and I am a professional software developer working in the UK and reasonably familiar with Python. However a friend of mine who is a special educational needs teacher was asking me if I could write some handwriting recognition software for her, which would allow here pupils to write their input directly on a graphics tablet and then have this input converted to a text sting for further processing. The handwriting...
0
627
by: eureka | last post by:
Hi All, I have been assigned a project to develop a "font recognition application" using PHP. It goes something like this:- The user uploads an image file containing some text. The application is required to identify the text and the font used there. Below are links to 2 great applications which I would like to derive
0
8476
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8914
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8820
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6223
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4224
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.