You Are Here:

Community: Developer Discussion Boards

#1 Old Thumbs up [announce] Nokia Computer Vision pylib ! - 2008-06-26, 22:05

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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 !
Reply With Quote

#2 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-27, 07:18

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
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.
Reply With Quote

#3 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-27, 07:30

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by shubhendra View Post
Cool this Library will really help in OCR projects.
But how to download this file? No click button or auto download thing here?
Quote:
Originally Posted by cyke64 View Post

Tommorrow I try to recompile all this stuff
Cool !

Cyke : Did you have success in running the scripts?

Best Regards,
Croozeus
Reply With Quote

#4 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-27, 15:47

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by shubhendra View Post
Cool this Library will really help in OCR projects.
But how to download this file? No click button or auto download thing here?
There's no click button because each zip file in the page can be downloaded directly by clicking on it

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/
Reply With Quote

#5 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-27, 15:51

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by croozeus View Post
Cool !

Cyke : Did you have success in running the scripts?

Best Regards,
Croozeus
No , error -46

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
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/
Reply With Quote

#6 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-28, 23:30

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by croozeus View Post
Cool !

Cyke : Did you have success in running the scripts?

Best Regards,
Croozeus
Now YES YES
The problem was only 3 caps instead of 5 in ncvlib and pyncvlib
So 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/
Reply With Quote

#7 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-06-29, 01:55

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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/
Reply With Quote

#8 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-07-01, 12:04

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Updated today !

download them again

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/
Reply With Quote

#9 Old Re: [announce] Nokia Computer Vision pylib ! - 2008-07-01, 12:15

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Thanks to Cyke also for following up with the errors to the author !

Best Regards,
Croozeus
Reply With Quote

#10 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-03-25, 12:14

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
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...
Reply With Quote

#11 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-03-25, 12:49

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by neil.young View Post
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...
Signing issue? Try signing with all capabilites before installing.
Reply With Quote

#12 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-03-25, 12:56

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
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...
Reply With Quote

#13 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-03-25, 13:01

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Online
Forum Nokia Champion
Quote:
Originally Posted by neil.young View Post
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...
Sign with the devcert!

Quote:
Originally Posted by neil.young View Post
PyS60 is exactly behaving like Delphi: Not even ONE simple installation of someone's other packages passes through w/o problems...
Well, extension do behave in a peculiar way but its not different for all! Infact, if one gets to understand the deployment/installation procedure once - it is not so difficult next time.

However, I suppose its only getting simpler with the newer versions.

//Croozeus
Reply With Quote

#14 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-03-25, 14:10

Join Date: Nov 2006
Posts: 501
neil.young
Offline
Super Contributor
Don't have working devcert anymore. Too bad, but thanks for your help. Will stop here.
Reply With Quote

#15 Old Re: [announce] Nokia Computer Vision pylib ! - 2009-07-07, 17:37

Join Date: Jul 2009
Posts: 11
treta34
Offline
Registered User
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 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
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

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ