×

Discussion Board

Results 1 to 13 of 13

Thread: OCR?

  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    OCR?

    I want to setup a simple OCR for LCD displays using phone camera. Any idea where to start from?

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: OCR?

    Hi Cassioli,
    I was also planning to start same project to recognize OCR, for visually challenged. If you have no problem i can work upon this.
    IDEAS is all they need but still they think only Genius can give them that.

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: OCR?

    And i think i got what you are thinking of doing first take the image, convert it into black and white, the LED have intensity so they come in white part and taking the pattern you recognise the Character? Am i Right?
    IDEAS is all they need but still they think only Genius can give them that.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    Quote Originally Posted by shubhendra View Post
    Hi Cassioli,
    I was also planning to start same project to recognize OCR, for visually challenged. If you have no problem i can work upon this.
    thanks, it would be cool.
    Actually I'm not working to such a complex project, I just need to recognize LCD figures to store them like text for further processing (for statistic purposes).
    But it looks like just examining 7 areas of the screen for dark pixels is not enough to determine which segments are on, due to different lightning conditions over various areas of the image....

  5. #5
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: OCR?

    Your Idea is really a start line for such a project.

    But it looks like just examining 7 areas of the screen for dark pixels is not enough to determine which segments are on, due to different lightning conditions over various areas of the image....
    I think, it would be better to look for 7 bright parts of image. I am sure that using White LED or somehing like Blue LED will have high intensity as when image taken (even when converted to black and white), and ya its 8 parts not seven, because 7 segment display also contains a Dot which is 8 part.
    IDEAS is all they need but still they think only Genius can give them that.

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    Quote Originally Posted by shubhendra View Post
    Your Idea is really a start line for such a project.



    I think, it would be better to look for 7 bright parts of image. I am sure that using White LED or somehing like Blue LED will have high intensity as when image taken (even when converted to black and white), and ya its 8 parts not seven, because 7 segment display also contains a Dot which is 8 part.
    I completely forgot the dot...

    Anyway I can't look for bright areas, as I am trying to decode a real LCD display, nota a LED LCD display: it's an indoor/outdoot thermometer.


    BTW, is there a method in python to automatically convert an image to b/w, rather than examining it pixel by pixel?

  7. #7
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: OCR?

    Ya changing an image to Gray Scale can be done by help of Open GL functions

    http://www.gamedev.net/community/for...opic_id=456541

    and i think PyS60 can bind to OpenGL.
    IDEAS is all they need but still they think only Genius can give them that.

  8. #8
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    Found a better method to save in b/n:
    img.save("nome",None,None,100,1)

    I attach the source I'm currently working on.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: OCR?

    Quote Originally Posted by cassioli View Post
    I want to setup a simple OCR for LCD displays using phone camera. Any idea where to start from?
    Hello Cassioli ,

    For taking photo use the new module pycamera
    And for image processing (OCR) try to use pyNCVlib (Python binding for the Nokia CV library )

    Good luck !

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  10. #10
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    Thanks for the big news!

    In the meantime I put my OCR project an googlecode, for anybody who wants to help...
    http://code.google.com/p/nokdat/source/list

    I'm working on 2 versions:
    - old one just examine 7 areas of screen, by summing up all pixels values and comparing sum to a user-defined threshold: if greater, than white, i.e. segment off.
    This version appears not to be working on different light conditions, so I'm now trying to examine surroundings of each segments: if surroundings are brighter than segment itself, segment is on, else off. This version also saves a (long) log file to examine the processing.

    Any help is appreciated:how could I muse new libraries to improve my project?

    My google code page:
    http://code.google.com/p/nokdat/source/list

  11. #11
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    looks like they're only for s60-3rd.
    bad luck. :-(

  12. #12
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: OCR?

    Quote Originally Posted by cassioli View Post
    looks like they're only for s60-3rd.
    bad luck. :-(
    Yes , they release only binaries for S60-3rd but you can try to compile for 2nd (source code is available

    I didn't try myself but you can !

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  13. #13
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: OCR?

    Quote Originally Posted by cyke64 View Post
    Yes , they release only binaries for S60-3rd but you can try to compile for 2nd (source code is available

    I didn't try myself but you can !

    BR
    Cyke64
    I didn't yet set up the SDK for s60: just thinking to the mess it will cause by conflicting with UIQ SDK and Eclipse totally discourages me....

Similar Threads

  1. OCR In Symbian
    By carmelo1966 in forum Symbian
    Replies: 6
    Last Post: 2011-02-09, 10:26
  2. How to make the OCR engine work ?
    By nanoteam in forum Symbian
    Replies: 1
    Last Post: 2008-03-30, 07:37
  3. OCR API problem on target device N95
    By mellervin in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 10
    Last Post: 2007-06-18, 09:58
  4. OCR for Series 60
    By ryanrst in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-03-22, 22:01
  5. Can I implement OCR in JAVA in NOKIA phone?
    By mmilorad in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-26, 10:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×