You Are Here:

Community: Developer Discussion Boards

#1 Old Format of image object - 2007-05-28, 13:34

Join Date: May 2007
Posts: 1
hughboddy
Offline
Registered User
Hi all! Quick question:

I'm trying to write a program for my N73 that will perform numberplate recognition (mental? perhaps, but it keeps me busy). This is my first foray into Symbian so I thought I would make my life easier by using Python to script the interface, and a C extension to provide the grunt.

I've successfully compiled my basic python and C stuff, but I appear to have hit a major hurdle - I'm passing an image object from the python to C extension, but I have no idea what format it appears in! Is there a special argument I need to call PyArg_ParseTuple() with? Alternatively, has anyone had any success hacking it apart? I'd guess it's in some sort of (x,y,3) array with a header stuck on the front (or the back?!) but I can't make any sense of my data.

Any suggestions? :-)
Reply With Quote

#2 Old Re: Format of image object - 2007-05-28, 17:09

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
The Image object represents a native Symbian side object called a CFbsBitmap. You can extract a pointer to the CFbsBitmap from an Image object by calling the method ._bitmapapi(). That will return the CFbsBitmap * wrapped inside a CObject (see Python/C API docs for an explanation on what that is).

Currently if you want to hack on Image object internals efficiently from your C++ code you need to extract that CFbsBitmap and extract data from it using Symbian C++ methods.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Is MIDP2.0 over Symbian OS slow? epolitakis Mobile Java Games 7 2007-03-16 10:32
intercept/catch the image object Rx- Bluetooth Technology 0 2004-02-18 07:25
Reading from Image Object to a Byte Array Ghouse Mobile Java Media (Graphics & Sounds) 1 2003-06-13 19:02
Object Push format 6310/7650 Bluetooth Technology 0 2003-03-13 09:45
Get pixel data from an image object on Nokia phones? inopia Mobile Java General 1 2002-05-15 10:27

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia