Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User gmkumar2005's Avatar
    Join Date
    Nov 2008
    Posts
    11
    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

  2. #2
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,636
    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!
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    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

  4. #4
    Registered User gmkumar2005's Avatar
    Join Date
    Nov 2008
    Posts
    11
    Thanx jouni
    Kumar

Similar Threads

  1. OMA DRM media transfer using PC to Phone using USB
    By venky123 in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2008-08-13, 03:02
  2. not click options with active object???
    By Tanya in forum Symbian C++
    Replies: 3
    Last Post: 2007-09-24, 10:36
  3. Send Protected object (eg sis ,sisx) using bluetooth between s60 phone using CSendUi
    By kstang in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-02-24, 12:51
  4. which interface or object is exactly suitable for which phone model
    By tomran in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2003-08-28, 15:11
  5. Replies: 1
    Last Post: 2002-08-28, 09:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved