| Reply | « Previous Thread | Next Thread » |
|
Hello everybody ,
You have surely missed it ![]() Nokia has finally released the NCVLib for PyS60 ![]() features : - Vector operations : transpose , product - Matrix operations - image operations : Rotation , resize, warp , theshold , edge detection , corner detection - RGB to YUV,HSV pixel conversion and many more ![]() But also you a very useful and more complete library for camera than official (py_camera) and pyMELIB (Motion Estimation LIBrary) More info,doc and examples on http://research.nokia.com/research/p.../download.html LAST MINUTE ! Updated on the 07-01-08 ! I found a workaround for the annoying -46 error I have changed caps with excellent ensymble tool ![]() ncvlib self-signed (5 caps ) pyncvlib self-signed Happy pythoning Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/
Last edited by cyke64 : 2008-07-01 at 12:02.
Reason: UPDATED by Nokia Research on the first July 2008 !
|
|
Cool this Library will really help in OCR projects.
But how to download this file? No click button or auto download thing here? IDEAS is all they need but still they think only Genius can give them that.
Last edited by shubhendra : 2008-06-27 at 07:24.
|
| shubhendra |
| View Public Profile |
| Find all posts by shubhendra |
|
Quote:
![]() Cyke : Did you have success in running the scripts? Best Regards, Croozeus |
|
Quote:
![]() http://research.nokia.com/files/NcvLib-1.0.zip http://research.nokia.com/files/PyNcvLib-1.0.zip I have listed the two main links for you ![]() BR Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Quote:
![]() But scripts with pycamera are working perfectly ![]() Code:
import e32
import pycamera
import sysinfo
print "Constructing camera object 0"
cam = pycamera.Camera(0)
print "Reserving camera"
cam.Reserve()
print "Powering on"
cam.PowerOn()
print "Preparing to capture"
cam.SetResolution((640, 480))
cam.SetFormat(pycamera.EFormatExif)
cam.PrepareForCapture()
lock = e32.Ao_lock()
photo = None
def photo_callback(arg):
global photo
print "photo received!"
print type(arg)
photo = arg
lock.signal()
cam.SetPhotoCallback(photo_callback)
def viewfinder_callback(arg):
print "viewfinder frame!"
cam.SetViewfinderCallback(viewfinder_callback)
print "Starting viewfinder"
cam.StartViewfinder()
e32.ao_sleep(1)
K = 1
import appuifw
for i in range(K):
print "Taking photo", i
print "Free memory: ", sysinfo.free_ram()
cam.TakePhoto()
lock.wait()
canvas = appuifw.Canvas(event_callback = lambda ev: None,
redraw_callback = lambda ev: None)
oldBody = appuifw.app.body
appuifw.app.body = canvas
im = pycamera.DecodeJpeg(photo)
canvas.blit(im)
e32.ao_sleep(1)
appuifw.app.body = oldBody
print "Stopping viewfinder"
cam.StopViewfinder()
print "Powering off"
cam.PowerOff()
print "Releasing"
cam.Release()
print "Deleting camera object"
del cam
Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Quote:
![]() The problem was only 3 caps instead of 5 in ncvlib and pyncvlibSo I have altered caps in sis files thanks to excellent ensymble tool with 5 caps and now examples are running ! New temporary links are in the top post of this thread ! BR Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
I sent an e-mail to xingen yiong (Nokia research Palo Alto) author of PyNCVlib.
Hello , I'm happy that you have released the pyncvlib library for PyS60 :-) But I meet (and many other people in Forum Nokia) many problems ! I change caps(5 instead of 3) in pyncvlib and ncvlib to avoid -46 error but many errors remain ... 1) pyncvlib , pymelib have not enough capabilities : we need self-signed caps (5) : LocalServices+NetworkServices+ReadUserData+UserEnvironment+WriteUserData but you give only 3 : ReadUserData+UserEnvironment+WriteUserData 2) Why do you place _pymelib.dll in pymelib.sis file ? You call in pymelib.py the inexisting _pymelib.pyd !!! 3) melib.dll has no capabilities ! why ? 4) demo_melib.py show following error after launching : PyMelib = PyNcvLib.PyCMelib(); attributeError:'module' object has no attribute 'PyCMelib' import e32 if e32.s60_version_info>=(3,0): import imp _PyNcvLib=imp.load_dynamic('_PyMeLib', 'c:\\sys\\bin\\_PyMeLib.pyd') else: import _PyMeLib Is it possible to release also the source code for pycamera ? It's a very interesting module which extend possibilities of standard camera module ! Thanks in advance Cyke64 (Forum Nokia Champion) I hope that bugs will be fixed soon ![]() BR Cyke64 pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
pys60 1.4.5,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 ! pys60 extension modules on http://cyke64.googlepages.com/ |
|
Thanks to Cyke also for following up with the errors to the author !
Best Regards, Croozeus |
|
This NCVLIB stuff sucks as almost all PyS60 things
Download/Installation OK, but KErrorPermissionDenied while running one of their glorious samples. I don't know what they are doing there, but they don't do it well But probably it's me again... |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Signing issue? Try signing with all capabilites before installing.
|
|
http://research.nokia.com/research/p.../download.html
I found an (obvioulsly) signed SIS in the SIS folder of PyNCVLib-1.0.zip and tried this. -> -46. After that I tried to opensign the unsigned SIS from there and got an error from symbiansigned: "The UID does not belong the the bunch of UIDs available for your IMEI" or so... bla bla... PyS60 is exactly behaving like Delphi: Not even ONE simple installation of someone's other packages passes through w/o problems... |
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Quote:
Quote:
However, I suppose its only getting simpler with the newer versions. //Croozeus |
|
Don't have working devcert anymore. Too bad, but thanks for your help. Will stop here.
|
| neil.young |
| View Public Profile |
| Find all posts by neil.young |
|
Hi,
I am quite new to PyS60 and to pyncvlib and I am quite confuse... My questions relate to installation of pyncvlib on my mobile and sdk. I cannot install the pyncvlib in my phone because apparently the certificate is outdated... I still do not understand what are these certificates... Who creates them? Can I create a new one with the info provided in the rest of the package? Most of all, why do I need a certificate and is it possible to install the package without a certificate? I also tried to use the self signed version provided by cyke64 in a previous post and everything went smoothly, but when I tried to run the python_examples files on my phone there was an ImportError complaining that there was no PyNcvLib module... I transferred the examples directly to the python folder in my phone memory card. This is the correct procedure right?. Furthermore, I still do not understand how should I install the library in the emulator... What should I do with the cpp files? This part I really do not understand ![]() I am using 3rd Edition FP1 SDK and my phone is a nokia 6210 navigator running the equivalent os version. I am trying to transfer some code I developed in python using PIL and scipy (I still do not want to thing about this part) to my mobile phone. I would really appreciate your help! |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Python S60 Emulator | NAYSAMBO | Python | 25 | 2009-04-08 11:22 |
| Nokia N-Series Complete Model Line-Up | Dopod | General Discussion | 6 | 2008-07-22 21:16 |