how to map the grabed iamges(video) to texture?

Login to reply to this topic.
Fri, 2008-05-23 02:52
Joined: 2007-12-16
Forum posts: 19

Hi,

i get the images(video)from in-build camera.
i use the function ViewFinderFrameReady to get the frame, and i
want to map the frame to texture. i know the format of the image
may be YUV or BGR, so i had to convert them to RGB used in opengl.

so my question is that:
1) how to convert YUV or BGR to RGB
2) how to map the converted iamge to texture?

Looking forward to fast replying.
Thank you

Mia


Fri, 2008-05-23 05:22
Joined: 2005-11-20
Forum posts: 1132
Re: how to map the grabed iamges(video) to texture?

Do you mean you want to grab a picture of e.g. a business card or a product label and then "read" the text that is written on it, i.e. convert the picture to text?

If yes, be aware that this is a *very* difficult task, especially given that pictures from phone cameras are often of rather poor resolution and the resulting picture might be at a certain angle instead of perfectly perpendicular to the text surface which complicates the matter further. Very challenging!

The magical word here is probably OCR: Optical character recognition. If you search for "ocr algorithms" with Google you will get basic information about this.

I am not aware of open-source or at least freeware OCR implementations ported already to Symbian, but there may be something for another platform that could be ported to Symbian with a reasonable amount of work (say, a few months of work). Starting an OCR implementation from scratch would of course be even harder.


René Brunner

Mon, 2008-05-26 08:32
Joined: 2007-12-16
Forum posts: 19
Re: how to map the grabed iamges(video) to texture?

no , i don't mean that.
i can get the frame size and rate,format from TCameraInfo. For example, when i get the format is RGB565, how can i mask out them by using bit shift?

Thank you
Mia

  • Login to reply to this topic.