You Are Here:

Community: Developer Discussion Boards

#1 Old Thumbs up Calculate distance between the phone and object - 2009-03-10, 11:31

Join Date: Nov 2008
Posts: 11
gmkumar2005
Offline
Registered User
Hi all
Is it possible to calculate distance between the mobile and object in the viewfinder.
I guess it should be possible by using auto focus feature of the camera. Has any one tried ?

Thanks
Kumar
Reply With Quote

#2 Old Re: Calculate distance between the phone and object - 2009-03-10, 13:16

Join Date: May 2007
Posts: 2,737
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by gmkumar2005 View Post
Hi all
Is it possible to calculate distance between the mobile and object in the viewfinder.
I guess it should be possible by using auto focus feature of the camera. Has any one tried ?

Thanks
Kumar
There was such an example in the FN Wiki Python section, but we had tested it and it was not working!
Reply With Quote

#3 Old Re: Calculate distance between the phone and object - 2009-03-10, 23:16

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by gmkumar2005 View Post
Is it possible to calculate distance between the mobile and object in the viewfinder. I guess it should be possible by using auto focus feature of the camera.
Well,

... don't know anything about auto focus, but there could be a simple way: calibrate your system beforehands. The "calibrate" means that your object is e.g. 100 pixels wide at distance of 1 meter. Then measure what the width is at 2 meters and create a generic distance calculating algorithm. Most likely it wouldn't be linear, so better check more points...

Please note: you do need to have some fixed element(s). You cannot estimate distance to arbitrary sized/positioned object. As an example: how would you estimate distance to a real car vs. toy car, if you have nothing to tell whether the object is real one or a toy?

Maybe that would work,

--jouni with lots of toy cars around
Reply With Quote

#4 Old Re: Calculate distance between the phone and object - 2009-03-12, 09:06

Join Date: Nov 2008
Posts: 11
gmkumar2005
Offline
Registered User
Thanx jouni
Kumar
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
OMA DRM media transfer using PC to Phone using USB venky123 Digital Rights Management & Content Downloading 1 2008-08-13 04:02
not click options with active object??? Tanya General Symbian C++ 3 2007-09-24 11:36
Send Protected object (eg sis ,sisx) using bluetooth between s60 phone using CSendUi kstang Symbian Networking & Messaging 3 2007-02-24 13:51
which interface or object is exactly suitable for which phone model tomran PC Suite API and PC Connectivity SDK 2 2003-08-28 16:11
helpthe problem of active object in Dial program--- "E32user-CBase" 49 jianwending2000 General Symbian C++ 1 2002-08-28 10:12

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