| Reply | « Previous Thread | Next Thread » |
|
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? :-) |
|
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |