Measuring Height of an Object using Accelerometer and Camera in ios and Android Devices

Similar documents
A MODEL FOR COMPARATIVE ANALYSIS OF THE SIMILARITY BETWEEN ANDROID AND IOS OPERATING SYSTEMS

Building Construction Management System Using Android Application

What is software? Software is any type of program. Programs have step-by-step logical instructions which tell the computer. What to do How to do it

Mobile Computing Meets Research Data

Activity Recognition Using Cell Phone Accelerometers

Triangle Trigonometry

Bomgar Connect Support Apple ios Devices

DAY 1 - GEOMETRY FLASHBACK

Toy animal ball poppers provide a great way to use projectile motion in the classroom. We used

Advanced Spam Detection Methodology by the Neural Network Classifier

ISSN (PRINT): , (ONLINE): , VOLUME-4, ISSUE-11,

Data Store and Multi-Keyword Search on Encrypted Cloud Data

Manual for Smart-Phone and Tablet Clients

You ll use the six trigonometric functions of an angle to do this. In some cases, you will be able to use properties of the = 46

5B.4 ~ Calculating Sine, Cosine, Tangent, Cosecant, Secant and Cotangent WB: Pgs :1-10 Pgs : 1-7

Comodo Device Manager Software Version 4.0

You ll use the six trigonometric functions of an angle to do this. In some cases, you will be able to use properties of the = 46

Summer Review for Students Entering Pre-Calculus with Trigonometry. TI-84 Plus Graphing Calculator is required for this course.

OCR Maths M2. Topic Questions from Papers. Projectiles

AWM 11 UNIT 4 TRIGONOMETRY OF RIGHT TRIANGLES

The MCS shade evaluation procedure. Part 2 How to record shade onto the chart

Arduinodroid Controlled Car

Developing Applications for ios

Aashijit Mukhopadhyay 2 Department of Computer Science St. Xavier s College(Autonomous) Kolkata, West Bengal India

Cumulative Review: SOHCAHTOA and Angles of Elevation and Depression

i OS iphone and ipad Part 1

Implementation of Color based Android Shuffling Pattern Lock

Secure Token Based Storage System to Preserve the Sensitive Data Using Proxy Re-Encryption Technique

AGRICULTURE BASED ANDROID APPLICATION

Inverse Trigonometric Functions:

Mobile Application User Guide

Android. Lesson 1. Introduction. Android Developer Fundamentals. Android Developer Fundamentals. to Android 1

Ubi Quick Start Guide

AES and DES Using Secure and Dynamic Data Storage in Cloud

Packet Unit 5 Trigonometry Honors Math 2 17

Vector Addition and Subtraction: Analytical Methods

Lesson Title 2: Problem TK Solving with Trigonometric Ratios

CLEP Pre-Calculus. Section 1: Time 30 Minutes 50 Questions. 1. According to the tables for f(x) and g(x) below, what is the value of [f + g]( 1)?

Year 10 Term 2 Homework

HCI FOR IPHONE. Veronika Irvine PhD Student, VisID lab University of Victoria

A Survey on k-means Clustering Algorithm Using Different Ranking Methods in Data Mining

Image Based Measurement of Length and Distance of an Inaccessible Object

Building Apps with the ArcGIS Runtime SDK for ios

A STUDY OF ANDROID OPERATING SYSTEM WITH RESPECT WITH USERS SATISFACTION

Mobile Access Guide SuccessMaker 9

Tablet Secure Frame Assembly and Use Guide For the Apple ipad

Pre-calculus Chapter 4 Part 1 NAME: P.

Intro Right Triangle Trig

User Guide. Campus Connect

architecture, physics... you name it, they probably use it.

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK M.E III SEM CSE MOBILE APPLICATION DEVELOPMENT UNIT -I INTRODUCTION

Acute Angles and Right Triangles. Copyright 2017, 2013, 2009 Pearson Education, Inc.

Overview. Profile 2/27/2018. CE 371 Surveying PROFILE LEVELING & Trigonometric LEVELING

Bluetooth Communications App Using App Inventor

Chapter Nine Notes SN P U1C9

Mobile Devices and Smartphones

Virtual mouse with. Color Detection Using Computer Vision I. INTRODUCTION. Pravin Pabale. Dr. Maithili Arjunwadkar. A. Mouse Control Algorithm

Design av brukergrensesnitt på mobile enheter

A Review on Cloud Service Broker Policies

International Journal of Computer Sciences and Engineering. Research Paper Volume-6, Issue-2 E-ISSN:

Realization of Automatic Keystone Correction for Smart mini Projector Projection Screen

Solmetric isv iphone Application. User Manual

AT That s Free. By Andrew Leibs. Accessibility Built Into Microsoft Windows & Office

TA101 : Engineering Graphics Review of Lines. Dr. Ashish Dutta Professor Dept. of Mechanical Engineering IIT Kanpur Kanpur, INDIA

Video Intercom for all your mobile devices iphone, ipad, ipod Touch and all Android phones and tablets!

A Comparative Study of Mobile Operating Systems

DEVELOPING APPS FOR. Note: This ebook relies on and uses information from the Google Glass Developers site.

Youngstown State University Trigonometry Final Exam Review (Math 1511)

Introduction to Trigonometry

Remote Area Monitoring Robot

Find the value of x. Then find the value of sin θ, cos θ, and tan θ for the triangle. 1.

Solving Trigonometric Equations

AQR General Specific Math Skills

Chapter 3: Right Triangle Trigonometry

Operating System Concepts Rab Nawaz Khan Jadoon

ArtecRobo Bluetooth Controller User Guide. Published 2015/04/01 Revised 2017/01/16

Mobile Application with Optical Character Recognition Using Neural Network

An Android Application for Library Access System

The Andersen Company s Mobile Application User Guide

Assignment Guide: Chapter 8 Geometry (L3)

Graphing Trigonometric Functions: Day 1

Intro Right Triangle Trig

AN APPROACH FOR SCANNING BASIC BUSINESS CARD IN ANDROID DEVICE

NATIONAL RADIO ASTRONOMY OBSERVATORY VLA ANTENNA MEMORANDUM NO. 1. April 3, 1968 THE RELATIONSHIP BETWEEN ANTENNA SITES ON THE ARMS OF THE WYE

What s New? By George Harding

Intelligent Hands Free Speech based SMS System on Android

Android Application Based Bluetooth Controlled Robotic Car

Improving and Understandability of Programming using RAPTOR

Offline Location Based Services Using Android OS Implemented In Smartphone and Beagleboard Xm

USER MANUAL. AXIS Camera Companion Mobile Viewing App

I. Model Problems II. Practice III. Challenge Problems IV. Answer Key. Sine, Cosine Tangent

Chapter 4: Trigonometry

Human Arm Simulation Using Kinect

Solving Right Triangles. SECURITY A security light is being

Image from Google Images tabtimes.com. CS87 Barbee Kiker

Getting Started for Moderators Quick Reference Guide

REAL TIME PUBLIC TRANSPORT INFORMATION SERVICE

REAL TIME BUS TRANSIT SYSTEM (BTS) LOCATOR AND INTELLIGANT TRANSPORT SYSTEM ANDROID APPLICATION WITH GPS

Checkpoint 1 Define Trig Functions Solve each right triangle by finding all missing sides and angles, round to four decimal places

Implementation of Neural Network Methods in Measurement of the Orientation Variables of Spherical Joints

Transcription:

Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology IJCSMC, Vol. 3, Issue. 6, June 2014, pg.380 387 RESEARCH ARTICLE ISSN 2320 088X Measuring Height of an Object using Accelerometer and Camera in ios and Android Devices Anmole Dewan 1, Abhijeet Sharma 2, Tanupriya Choudhary 3, Vasudha Vashisht 4 1,2 Undergraduate in Computer Science and Engineering from Lingaya s University, India 3,4 Assistant Professor in School of Computer Science from Lingaya s University, India 1 anmoldew@gmail.com; 2 abhijeetshm@gmail.com; 3 tanupriya86@gmail.com; 4 ervasudha@gmail.com Abstract The height of object can be determined by using inch tapes, angles of elevation and basic trigonometry. Everything listed can be replaced by using standard smart phones having accelerometer, GPS receiver, network connectivity and camera. The research deals with calculation of height of an object by converting data received from the sensors. Keywords ios, Android, accelerometer, height of object, geometry I. INTRODUCTION Google's Android and Apple's ios are operating systems used primarily in mobile technology, such as smart phones and tablets. Android, which is Linux-based and partly open source, is more PC-like than ios, in that its interface and basic features are generally more customizable from top to bottom. However, ios' uniform design elements are sometimes seen as being more user-friendly. TABLE I DIFFERENCE BETWEEN ANDROID AND IOS DEVICES [1] Android ios Company/Developer Google Apple Inc OS family Linux OS X, UNIX Initial release September 23, 2008 July 29, 2007 2014, IJCSMC All Rights Reserved 380

Programmed in C, C++, java C, C++, Objective-C Source model Open source Closed, with open source components Latest stable release (May 2014) Android 4.4 Kitkat (October, 2013) 7.1 (March 10, 2014) A. ios ios, previously iphone OS is a mobile operating system developed by Apple Inc. and distributed exclusively for Apple hardware. powering iphone, ipad, ipod Touch, and Apple TV. It s UI is based on the concept of direct manipulation, using multi-touch gestures such as swipe tap, pinch and reverse pinch. It is a closed source software and is only available in select apple devices.[2] B. Android Android is an Operating System which is based on Linux kernel. It s UI is based on direct manipulation using touch inputs like pinching, swiping and tapping. Applications are able to send notifications to the user to inform them about relevant information, such as emails and text messages. Android's source code is available under open source licenses. In terms of security and privacy applications in android run in a sandbox, which is an isolated area of the system that does not have access to the rest of the system's resources. Permissions are explicitly granted by the user when an application is installed. While installing an application, Play Store displays all permissions required by application to work. The sandboxing and permissions system reduces the impact of vulnerabilities and bugs present in applications, but developer confusion and limited documentation has resulted in applications routinely requesting unnecessary permissions, reducing its effectiveness. [3] C. Accelerometer The accelerometer measures acceleration i.e. acceleration due to movement and acceleration due to gravity. When the device is stable, the accelerometer returns just accelerometer due to gravity. Accelerometers in different kinds of smart phones return different values. For example in iphone, it returns g values, 1 g means 1*9.81 m/s 2 and in android phones, it returns values with SI units m/s 2. D. iphone Each acceleration event includes simultaneous acceleration readings along the three axes of the device, as shown in Figure 1. Referenced from [4],[5] Fig. 1 Orientation of the iphone device axes 2014, IJCSMC All Rights Reserved 381

The device accelerometer reports values for each axis in units of g-force, where a value of 1.0 represents acceleration of about +1 g along a given axis. When a device is laying still with its back on a horizontal surface, each acceleration event has approximately the following values: E. Android Phones The axes are as same as iphone accelerometer axes Fig. 2 Orientation of the Android device axes Sensor.TYPE_ACCELEROMETER:[6] All values are in SI units (m/s^2) The sensor measures resultant acceleration (A) which is acceleration due to gravity and acceleration due to movement. Conceptually, it does so by measuring forces applied to the sensor itself (Fs) using the relation: A = -g - F / mass When the device is kept on a table the accelerometer reads a magnitude of g = 9.81 m/s^2. Referenced from [6],[7][8] F. Camera Camera is used to pin point the foot and the top of the object, the foot being at the ground level. A small cross is placed at the centre of the screen with respect to the camera such that it is relationally at the centre of the camera. It is done so that the angle of view of camera is 0 degrees. so that the line of sight is perpendicular to Z axis of mobile device. In photography, angle of view describes the angular range that is imaged by a camera. It is used interchangeably with "field of view". x: 0 y: 0 z: -1 Fig. 3 A camera's angle of view can be measured horizontally, vertically, or diagonally.[9] 2014, IJCSMC All Rights Reserved 382

II. PROPOSED SOLUTION The phone is always kept in portrait mode. For android phones the accelerometer readings has to be divided by 9.81 for angle calculations. Unit of angle used in calculation is degrees A. Finding height H of device Height is entered as height of user and then, H is calculated by subtracting 4 to 5 inches as this is the height of device a normal user hold the device. B. Finding distance between device and the object. H=Height entered - 4 inches...(1) 1) Device Alignment: Through the camera, the user aligns the device's angle to the point at which the object touches the ground level. Note: The ground level is the level at which the user is standing. The accelerometer gives the values which is converted into angles for further calculations. 2) Calculations: θ= sin -1 (value of accelerometer w.r.t. Y axis)... (2) φ=90 -θ= sin -1 (value of accelerometer w.r.t. Z axis)... (3) H/D=tan φ Therefore, D=H cot φ... (4) Fig. 4 Calculating distance from the device 2014, IJCSMC All Rights Reserved 383

TABLE II DESCRIPTION OF SYMBOLS USED ABOVE S.no. Symbol Description 1. D Distance of user(mobile device) from the object which is being calculated by using H and φ. 2. H Height of user s device which is 4 inches less than the height of user. 3. θ Angle of bent which is calculated using accelerometer of the device. 4. φ Angle of depression which is calculated by taking complementary from angle of bent. C. Finding height of object Aim at the top of the object by looking in from the camera There are 2 cases out of which 1 may arise 1) Case : When object's height is less than height at which device is held Distance D has been calculated θ 1 =sin -1 (value of accelerometer w.r.t. Y axis)... (5) φ 1 = 90 -θ 1 =sin -1 (value of accelerometer w.r.t. Z axis)...(6) h 1 /D=tan φ 1... (7) h 1 =D tan φ 1... (8) Therefore h 2 =H - h 1... (9) Fig. 5 Calculating height of object when it is less than that of device 2014, IJCSMC All Rights Reserved 384

TABLE III DESCRIPTION OF SYMBOLS USED ABOVE S.no. Symbol Description 1. D Distance of user(mobile device) from the object which has been calculated 2. H Height of user s device which is 4 inches less than the height of user. 3. θ 1 Angle of bent which is calculated using accelerometer of the device. 4. φ 1 Angle of depression which is calculated by taking complementary from angle of bent. 5. h 1 Height calculated from the top of the object to the height of the mobile device using distance D and angle φ 1 6. h 2 Height of the object(required) calculated by subtracting h 1 from H 2) Case : When object's height is greater than height at which device is held Distance D has been calculated θ 3 =sin -1 (value of accelerometer w.r.t. Y axis)... (10) 90 +φ 3 =180 -θ 3 φ 3 =90 -θ 3= sin -1 (value of accelerometer w.r.t. Z axis)... (11) h 3 /D=tan φ 3... (12) h 3 =D tan φ 3... (13) Therefore h 4 =H + h 3... (14) Fig. 6 Calculating height of object when it is greater than that of device In both cases θ is calculated when phone is in portrait mode and θ is wrt Y axis and φ is wrt Z axis. 2014, IJCSMC All Rights Reserved 385

TABLE IV DESCRIPTION OF SYMBOLS USED ABOVE S.no. Symbol Description 1. D Distance of user(mobile device) from the object which has been calculated 2. H Height of user s device which is 4 inches less than the height of user. 3. θ 3 Angle of bent which is calculated using accelerometer of the device. 4. φ 3 Angle of elevation which is calculated by taking supplementary from angle of bent. 5. h 3 Height calculated from the height of device to the top of the object using distance D and angle φ 3 6. h 4 Height of the object(required) calculated by adding h 3 and H Explanation and reasoning to proposed solution. The phone is always kept in portrait mode for simplicity in the solution; the axis changes when the phone s mode is changed from portrait to landscape mode. For android phones the accelerometer readings has to be divided by 9.81 for angle calculations as android phones give readings in m/s 2 and the needed value should lie from -1 to 1 so as to take the sine inverse for angle calculations. Unit of angle used in calculation is degrees just for easier explanations. REFERENCES [1] http://www.diffen.com/difference/android_vs_ios [2] http://en.wikipedia.org/wiki/ios [3] http://en.wikipedia.org/wiki/android_(operating_system) [4] https://developer.apple.com/library/ios/documentation/coremotion/reference/cmmotionmanager_class/refe rence/reference.html [5] https://developer.apple.com/library/ios/documentation/uikit/reference/uiacceleration_class/reference/ui Acceleration.html [6] http://developer.android.com/guide/topics/sensors/sensors_overview.html [7] http://developer.android.com/reference/android/hardware/sensor.html#type_accelerometer [8] http://developer.android.com/reference/android/hardware/sensorevent.html [9] http://en.wikipedia.org/wiki/angle_of_view AUTHORS PROFILE Anmole Dewan is currently pursuing his Bachelor s degree in Computer Science from Lingaya s University, Haryana, India. He is Technical Lead at Google Developers Group, Lingaya s University and a Member of Computer Society of India. He is an ios Developer with live application on the AppStore. His areas of interests include Mobile Application Development, Cloud Computing, Operating System, Arduino, Augmented Reality. Abhijeet Sharma is currently pursuing his Bachelor's degree in Computer Science from Lingaya's University, Haryana, India. He is a Developer at Google Developers Group, Lingaya's University. His areas of interests include Mobile Application Development, Network Security and Operating System. 2014, IJCSMC All Rights Reserved 386

Tanupriya Choudhury received his bachelor s degree in CSE from West Bengal University of Technology, Kolkata, India, master s Degree in CSE from Dr. M.G.R University, Chennai, India and currently pursuing his Doctoral Degree. He has two year experience in teaching. Currently he is working as Asst. Professor in dept. of CSE at Lingaya s University, Faridabad, India. His areas of interests include Cloud Computing, Network Security, Data mining and Warehousing, Image processing etc. Vasudha Vashisht received her bachelor s and master s degree in Computer Science from M.D. University, Haryana, India. She has 6 years of experience in teaching. Currently, she is working as Assistant Professor in the Dept. of Computer Sc. & Engineering at Lingaya s University, Faridabad, Haryana, India. She has authored 10 papers and her areas of interests include artificial intelligence, Cognitive Science, Brain Computer Interface, Image & Signal Processing. Currently she is pursuing her doctoral degree in Computer Science & Engineering. She is a member of reputed bodies like IEEE, International Association of Engineers, International Neural Network Society, etc. 2014, IJCSMC All Rights Reserved 387