You are here

S60 Python Success - Got Sample code to work, Nokia camera.py doesn't work

Submitted by Roland on Sat, 2007-10-20 20:24

Yay! Go my hello world program to work and finally got the OS X Bluetooth console to work. The trick is to:

ls -l /dev

and use the last tty for the screen command

e.g. if the last modified tty is tty.bt_console6

then you have to do screen /dev/tty.bt_console6

Now on to to create a program to create video in ego blogging mode (i.e. with screen facing you) using the high res camera.

I can't get the following code to work:

import appuifw

import camera
import e32
from camera import *
   
def cb(im):
  try:
    canvas.blit(im)
    #appuifw.app.body.blit(im)
  except:
    appuifw.note(u'cb')

def cb2(im):
  try:
    appuifw.app.body.blit(im)
  except:
    appuifw.note(u'cb2')

import graphics

canvas = appuifw.Canvas()
appuifw.app.body = canvas

start_finder(cb)

start_record('E:\\Python\whatever.mp4', cb2 )
#stop_record()

and I can't get the Nokia camera.py from Nokia's python sample code wiki page to work, help!

Comments

In my opinion the python programming language has been the most efficient so far; there has been implementations for iPhone, Nokia N800 and Symbian. If you ask me python is the most powerfull weapon Nokia has against all the "big players" in the market. I just hope something as simple & powerfull as Python wins...

but the signing issue, the fact that certain APIs like the video recording one don't work on video phones like the N93 and the fact that python is not built in means it's not ready for prime time. just a great prototyping environment, not much else

In choosing the right counselor you will need to think about what you want and what is required by your insurance company (if you are using one) so that you get the highest education and most information. counselingeducation

Dedication is required of any journalist, but it takes a special kind of reporter to film and photograph war zones as they rage uncontrollably. I'm not speaking heroically; my intuition tells me these men and women are driven ormistoneducation

It's easy to see art in purely idealistic or aesthetic terms. Art as beauty, as truth, as a purveyor of a crucial message, as a fundamental mirror of society are all familiar ideas, popular throughout the centuries and still able to find a home in today's world. businessinarts

Do you know that small businesses in the United States of America employ 75% of all the people employed in America? It is true and sometimes that number floats even higher. In fact, if it weren't for the small businesses in America the United States would not have much of an economy at all. unitedsmallbusiness

Today's homes are not only messy, they are simply out of control. Dirty, smelly, covered in toys and pet hair, many people have lost the battle against the tide of daily living. This article shows you how to recognize the signs of an out of control home -- and what to do about it. thehomestop

Home repair is often expensive and inconvenient, and it's possible that one of the most problematic is home foundation repair. If you are faced with this problem you mustn't ignore it. You must make the repair as soon as possible with the help of a residential structural engineer. repair-home

For people who want to get the most out of the home entertainment systems, be sure to know the different important aspects and factors affecting home theater design. By doing so, they can enjoy numerous benefits like super clear pictures and amazing sounds. superior home services1

it helps to reach wider audiences and perhaps maximize client base in the process. A very famous entrepreneur Robert Kiyosaki once stated that the rich get where they are because they understand the value of creating strong networks capitalbusinessnetwork

Honda has been the center of attention for the last few decades mainly due to the innovative models it has been producing. There is a long list of models to the name of Honda but the recent model that has caused the Honda enthusiasts to go wild is the Honda Mugen Civic model which is expected to be released by mid-October 2008. civicsports

Online sport betting is a game of skill. For that reason online sport betting is big business the world over. Sport betting is a popular past-time all over the world; in fact it is deeply rooted in the culture of almost all civilizations. sportzup

You may have not intended to do so, but I think you have managed to express the state of mind that a lot of people are in. The sense of wanting to help, but not knowing how or where, is something a lot of us are going through.daftar harga hp samsung

Add new comment