Method, tool, and device for determining the coordinates of points on a surface by means of an accelerometer and a camera

-

A method, tool, and device for determining the coordinates or a plurality of points on a substantially plane surface by means of an accelerometer and a camera. The coordinates of each point are computed by determining a perpendicular projection of the camera onto the surface, identifying each point, measuring an inclination (the angle between the line of sight of the camera and gravity) using the accelerometer, and determining an azimuth (the angle of the line of sight of the camera around gravity).

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
BACKGROUND OF THE INVENTION

Terminology in this description is defined as follows:

Azimuth: The angle of the line of sight of the camera around gravity.

Inclination: The angle between the line of sight of the camera and gravity.

FIELD OF THE INVENTION

The present invention relates in general to the measurement of spatial coordinates using a device.

DESCRIPTION OF THE PRIOR ART

Over the last centuries, man has invented many techniques and devices for determining coordinates of points.

When surveying terrestrial points over large distances, the theodolite is the most widely used device. Theodolites are stationary devices, capable of rotating both horizontally and vertically, mounted on a tripod. Angles are measured by reading graduated circles around both axes through a magnifying glass. To be accurate, such devices must be leveled with great precision prior to use. While early theodolite embodiments relied essentially on optical and mechanical components, modern versions are capable of measuring distances electro-optically. Angle readouts are now performed by a rotary encoder, either absolutely using gray codes, or relatively using equidistant light and dark radial bands. Point coordinates are determined using triangulation, by measuring the azimuth and altitude of a target point from two observation points of known location and altitude.

When measuring dimensions indoors or on a smaller scale, the most widely used device is still the tape measure, which is a flexible form of ruler. The modern spring tape was patented by Connecticut resident Alvin J Fellow on 14 Jul. 1868.

Laser rangefinders are now widely used to determine the distance to an object. Such devices send a laser pulse in a narrow beam towards the object and measure the time taken by the pulse to be reflected off the target and returned to the device. The high speed of light makes this technique inadequate for high precision measurements, where triangulation is preferred.

3D laser scanners use a laser and a camera combined with triangulation to probe their environment. They emit a ray of light onto the target surface and look for the location of the laser dot using a camera. The laser appears in different locations depending on how far away the laser strikes the surface.

GPS (Global Positioning System) receivers are also capable of determining the latitude, longitude, and altitude of points on or near the surface of the earth. The GPS receiver must be placed precisely on the point to measure, and must have a clear line of sight to four or more satellites.

LIDAR (LIght Detection And Ranging) is an optical remote sensing technology capable of finding the range to a distant target by measuring properties of scattered light on its surface. LIDAR devices cast a narrow light beam of short wavelength that can interact with a wide range of surfaces with great precision.

SUMMARY OF THE INVENTION

In an aspect of the invention, there is provided a method of determining the coordinates of a plurality of points on a substantially plane surface S by means of a device comprising an accelerometer and a camera. In specific embodiments, the method may also require that the device comprise an input unit, a gyroscope, a compass, a processor, or a screen. For each point Pi, the method determines a perpendicular projection Ci of the location of the camera onto S, identifies the point Pi by means of the device, measures an inclination Ii by means of the accelerometer, determines an azimuth Ai, and finally computes the coordinates of the point Pi using the azimuth Ai, the inclination and the perpendicular projection Ci by means of the processor.

In another aspect of the invention, a device for determining the coordinates of a plurality of points on a substantially plane surface S is provided. The device comprises a camera for capturing a video stream, a screen for displaying the video stream, an accelerometer for measuring an inclination Ii for each point Pi, a point determination unit for identifying each point Pi,reading the inclination Ii from the accelerometer for each point Pi, and determining an azimuth Ai for each point Pi, and a coordinates computation unit for determining a perpendicular projection Ci of the location of the camera onto S and computing the coordinates of each point Pi using Ai, Ii, and Ci. In specific embodiments, the device may also comprise an input unit, a gyroscope or a compass.

In another aspect of the invention, a tool for determining the coordinates of a plurality of points on a substantially plane surface S, adapted to run on a device comprising an accelerometer and a camera, is provided. The tool comprises a point determination unit being adapted for receiving a video stream by means of the camera, reading the inclination Ii from the accelerometer for each point Pi, and determining an azimuth Ai for each point Pi, and a coordinates computation unit being adapted for computing the coordinates of each point Pi using Ai, Ii. In specific embodiments, the tool may also be adapted to run on a device comprising an input unit, a gyroscope or a compass.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an example of a simplified flow chart representing the various steps of the method.

FIG. 2 is an example of a simplified geometric representation of the spatial configuration of the camera Oi relatively to surface S, its projection Ci, its inclination Ii, its azimuth Ai, point Pi, and angle H between surface S and a horizontal plane.

FIG. 3 is an example of a simplified representation of the flow of information inside the device components, namely an accelerometer, a camera, a point determination unit, a coordinates computation unit, and, optionally, a gyroscope, a compass, an input unit, a calibration unit, and a screen.

FIG. 4 is an example of a simplified representation of the components of the tool, namely a point determination unit, a coordinates computation unit, and, optionally, an input unit and a calibration unit.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Reference is now made to FIG. 1, wherein there is shown an example of a simplified flow diagram describing the various steps of the method. It is understood that the steps can be performed in any order as long as identifying point Pi 4-9, reading the accelerometer 10, determining the azimuth 11-16, determining the angle between surface S and a horizontal plane 17-20, and determining the projection of the camera onto surface S 21-23 are all performed before computing the point coordinates 25.

According to one of the preferred embodiments of the invention, the user specifies the position of point Pi by aligning an augmented reality drawing with a continuous video stream coming from the camera 6. The augmented reality may represent points on surface S, boundaries of S, lines parallel or perpendicular to S, or any drawing that may help the user to determine the position of point Pi. The user may perform the alignment by inclining the device while the processor reads the accelerometer, by manually entering information by means of the input device, or by any other means of communicating information to the device.

According to another preferred embodiment of the invention, the user specifies the position of point Pi by aligning points or lines with edges or features present in a still image or a frame of a video stream of point Pi taken by the camera 7. The user may perform the alignment by inclining the device while the processor reads the accelerometer, by manually entering information by means of the input device, or by any other means of communicating information to the device.

According to another preferred embodiment of the invention, the processor determines the position of point Pi by analysing a still image or a frame of a video stream of point Pi taken by the camera 8. Such image analysis may include performing edge detection to extract contour lines, computing the location of vanishing points using edges, ranking edges according to their length, their proximity to the reticle, their relative angle, or using any feature present in the image to locate point Pi. Such image analysis can also be combined in any order with step 6 or 7 to help the user specify the position of Pi.

According to another preferred embodiment of the invention, the user identifies point Pi 5 by aligning an object of interest present in the video stream with a visual guide. The user then identifies the point by entering information by means of the input unit.

According to another preferred embodiment of the invention, the user identifies point Pi 9 by holding the device still for a certain period of time while aiming at Pi. Movements of the device are measured by means of accelerometers and/or gyroscopes. The device is considered to be still if values obtained by means of one or more sensors remain within a bound range for a predetermined period of time.

According to another preferred embodiment of the invention, the processor modifies the values read from the accelerometer 10 before computing the inclination I. Such modification may comprise smoothing the values over a period of time, computing the mean of multiple values, combining readings from multiple accelerometers in order to maintain precision in all directions, or performing any computation that would improve the quality of the values.

According to another preferred embodiment of the invention, the device is equipped with a gyroscope having at least one axis 16. The processor determines the angle of the device around gravity Ai by means of the vertical axis of the gyroscope. Additional axes can provide further precision by measuring the inclination of the device around horizontal axes as well, allowing measurements of the gyroscope to be combined with those of the accelerometer for increased stability and precision. It should be noted that a gyroscope only measures relative angles, so all azimuths are measured relatively to that of P0.

According to another preferred embodiment of the invention, the device is equipped with a compass 16. The processor determines the azimuth Ai using the magnetic field of the Earth by means of the compass. Absolute azimuths can be obtained based on the direction of the geographic or magnetic north.

According to another preferred embodiment of the invention, the processor determines azimuth Ai using positions and angles of prior points 12. Since angles Bi formed by points [Pi−2, Pi−1, Pi] are known for all points Pi, their azimuth can be deduced by knowing the distance between Pi and the camera projection Ci. A simple example is the case where all angles Bi are square. We then conveniently place P1 and P2 lie along the x axis. There must be a distance u that satisfies:


P2·x=P1·x+u


P2·y=P1·y  (i)

Knowing the distance between the camera and P2 and using the projection of the camera C2, we deduce distance r between P2 and the origin:


P1·x2+P2·y2=r2  (ii)

Combining (i) and (ii), we obtain a second order equation:


u2+(2×P1·x)u+(P1·x2P1·y2−r2)=0

Solving for u yields two solutions for azimuth P2.

Using P2, we then deduce A2:

if


P2·x!=0, A2=asin(P2·y/P2·x)×sign(y)

else


A2=PI/2×sign(P2·y)

In the more general case where angles Bi are known for all vertices Pi, we obtain the azimuth Ti of each segment [Pi, Pi+1] as follows:


T0=0


Ti+1=Ti+Bi

For each Pi, there exists a distance u such as:


Pi+1·x=Pi9·x+u×cos(Ti)


Pi+1·y=Pi·y+u×sin(Ti)  (iii)

Combining (ii) and (iii), we obtain an equation containing u. Solving for u yields the coordinates of Pi.

According to another preferred embodiment of the invention, the processor analyses a still image or a frame of a video of Pi to determine azimuth Ai 13. Such image analysis may comprise performing edge detection to extract contour lines, computing the location of vanishing points using edges, ranking edges according to their length, their proximity to the reticle, their relative angle, or using any feature present in the image to locate point Pi. Combining the information obtained by extracting these features with results of 12, 14, and/or 15, the processor determines azimuth Ai.

According to another preferred embodiment of the invention, the inclination of surface with respect to a horizontal plane is input by the user by means of an input unit or an accelerometer 19.

According to another preferred embodiment of the invention, the processor computes the inclination H of surface S with respect to a horizontal plane by means of an accelerometer, a gyroscope, and image analysis 18. Such image analysis may comprise performing edge detection to extract contour lines, computing the location of vanishing points using edges, ranking edges according to their length, their proximity to the reticle, their relative angle, or using any feature present in the image to determine H.

According to another preferred embodiment of the invention, the camera is moving along a known path or along a trajectory represented by a mathematical model 22. In such case, the projection Ci of the camera onto surface S can be obtained by modelling S using the generic equation of a plane:


ax+by+cz+d=0

The surface normal is represented by the following vector:

[a, b, c]

Ci is the perpendicular of Oi on surface S. Hence, there exists a k such as:


Oi=Ci+k×[a,b,c]

Isolating Ci:


Ci=Oi−k×[a,b,c]

Injecting Ci into the plane equation yields k:


k=(a×Oi·x+b×Oi·y+c×Oi·z)/(a2+b2+c2)

The projection of the camera Ci then becomes:


Ci=Oi−(a×Ci·x+b×Ci·y+c×Ci·z)/(a2+b2+c2[a,b,c]

According to another preferred embodiment of the invention, the movement of the camera is approximated using a biomechanical model of the user holding the device 19. Such computation may take into account the total height of the user, the height of his eyes, their focal distance, the length of his arms and forearms, and the angle of his shoulders and elbows.

According to another preferred embodiment of the invention, the position of the camera is determined using image analysis, azimuth Ai, and Inclination Ii 23. Such image analysis may comprise performing edge detection to extract contour lines, computing the location of vanishing points using edges, ranking edges according to their length, their proximity to the reticle, their relative angle, or using any feature present in the image to locate the camera projection Ci onto surface S using point Pi.

According to another preferred embodiment of the invention, the processor computes the coordinates of point Pi using inclination Ii and azimuth Ai 24. The distance d between Pi and the camera Oi is computed as follows:


d=Ci·z/tan(Ii)

Taking azimuth Ai into account, we obtain:


Pi·x=Oi·x+Ci·z/tan(Ii)×cos(Ai)


ti Pi·y=Oi·y+Ci·z/tan(Ii)×cos(Ai)

Reference is now made to FIG. 2, wherein there is shown an example of a simplified geometric representation of the spatial configuration of the camera Oi relatively to surface S, its projection Ci, its inclination Ii, its azimuth Ai, point Pi, and angle H between S and a horizontal plane.

According to one of the preferred embodiments of the invention, surface S can either be the floor, the wall or the ceiling of a room where the user is standing, in which case H would be set to 0 degrees, 90 degrees, or 180 degrees respectively.

According to another preferred embodiment of the invention, the point coordinates are used to create the floor plan of a building.

According to another preferred embodiment of the invention, the point coordinates are used to survey a terrain or a structure.

Reference is now made to FIG. 3, wherein there is shown an example of a simplified representation of the flow of information inside the device components, namely an accelerometer 301, a camera 302, a point determination unit 306, a coordinates computation unit 307, and, optionally, a gyroscope 303, a compass 304, an input unit 305, a calibration unit 308, and a screen 309.

According to one of the preferred embodiments of the invention, the input unit 305 comprises a touch screen allowing the user to input information using one finger, many fingers, or a stylus.

According to another preferred embodiment of the invention, the input unit 305 comprises a microphone coupled with a processor in order to perform voice analysis and command detection.

According to another preferred embodiment of the invention, the input unit 305 comprises a keyboard.

According to another preferred embodiment of the invention, the input unit 305 comprises a pointing device such as a mouse, a trackball, or a joystick.

According to another preferred embodiment of the device, the device is a portable device such as a cellular phone, a smartphone, a PDA (Personal Digital Assistant), a tablet, a digital camera, or a laptop computer.

According to another preferred embodiment of the invention, the screen 309 is displayed on digital glasses worn by the user.

According to another preferred embodiment of the invention, the device comprises a gyroscope 303 having at least one axis. The first axis of the gyroscope is used to read the angle of the device around gravity. Additional axes can provide further precision by measuring the inclination of the device around horizontal axes, allowing measurements of the gyroscope to be combined with those of the accelerometer 301 for increased stability and precision.

Reference is now made to FIG. 4, wherein there is shown an example of a simplified representation of the components of the tool, namely a point determination unit, a coordinates computation unit, and, optionally, an input unit and a calibration unit.

According to one of the preferred embodiment of the invention, the user calibrates the device by means of the calibration unit 401 to take into account the optical characteristics of the camera, including the focal distance, the speed and accuracy of the autofocus, the aperture, the frame rate, the resolution, the aspect ratio, the color spectrum or any other characteristic susceptible to affect images captured therefrom. These calibration parameters are then used to correct the captured images or to adjust image analysis in order for the results to substantially match reality.

According to another preferred embodiment of the invention, the user calibrates the device by means of the calibration unit 401 to take into account at least one biometric parameter of the user. These parameters may include the total height of the user, the height of his eyes, their focal distance, the length of his arms and forearms, and the angle of his shoulders and elbows, or any measurement that may be used in determining the position Oi and orientation of the camera. These parameters are used to compute the perpendicular projection Ci of the camera onto surface S.

According to another preferred embodiment of the invention, the user calibrates the device by means of the calibration unit 401 to adjust the values measured by the accelerometer. The calibration parameters are used to correct the horizontally or vertically boundaries of the inclination measured by accelerometer, or to distribute the inclination angles evenly across the scale using a mathematical model or a correction table.

According to another preferred embodiment of the invention, the user calibrates the device by means of the calibration unit 401 using reference values. For instance, the device may be calibrated by measuring a known inclination angle by means of the accelerometer or by measuring the known distance between two points Po and Pi.

According to one of the preferred embodiments of the invention, the tool is downloaded onto the device using a cable, a memory card or stick, or a network connection.

According to another preferred embodiment of the invention, the tool is integrated with the device, either as a pre-installed application or an extension of the operating system. The application may be stored in ROM (Read-Only Memory) or implemented using electronic components.

Claims

1. A method for determining the coordinates of a plurality of points Pi on a substantially plane surface S by means of a device comprising an accelerometer, a camera, and a processor, the method comprising, for each point Pi:

determining a perpendicular projection Ci of the location of the camera onto S;
identifying the point Pi by means of the device;
measuring an inclination Ii (the angle between the line of sight of the camera and gravity) by means of the accelerometer;
determining an azimuth Ai (the angle of the line of sight of the camera around gravity);
computing the coordinates of the point Pi using Ai, Ii, and Ci by means of the processor.

2. The method of claim 1, wherein the azimuth Ai is determined by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
capturing a user input by means of an input unit;
using a gyroscope;
using a compass;
using a known angle formed by Pi−2, Pi−1, and Pi;
using predetermined values.

3. The method of claim 1, wherein the perpendicular projection Ci is determined by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
capturing a user input by means of an input unit;
using a gyroscope;
using the accelerometer;
placing all projections Ci on a known path;
rotating the camera around a center of rotation that is substantially the same for all points Pi;
using a biomechanical model of the user holding the device;
using predetermined values.

4. The method of claim 1, further comprising a calibration phase determining at least one calibration parameter for at least one of the following:

correcting the image captured by the camera by taking into account its optical characteristics;
determining at least one biometric parameter of the user;
adjusting the values read by means of the accelerometer to an environment in which the device is being used.

5. A device for determining the coordinates of a plurality of points Pi on a substantially plane surface S, the device comprising:

a camera for capturing a video stream;
a screen for displaying the video stream;
an accelerometer for measuring an inclination Ii (the angle between the line of sight of the camera and gravity) for each point Pi;
a point determination unit for: identifying each point Pi; determining the inclination Ii by means of the accelerometer for each point Pi; determining an azimuth Ai(the angle of the line of sight of the camera around gravity) for each point Pi;
a coordinates computation unit for: determining a perpendicular projection Ci of the location of the camera onto S; computing the coordinates of each point Pi using Ai, Ii, and Ci.

6. The device of claim 5, further comprising:

a gyroscope for determining the azimuth Ai of each point Pi.

7. The device of claim 5, further comprising:

a compass for determining the azimuth Ai of each point Pi.

8. The device of claim 5, wherein the azimuth Ai is determined by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
capturing a user input by means of an input unit;
using a known angle formed by Pi−2, Pi−1, and Pi;
using predetermined values.

9. The device of claim 5, wherein the coordinates computation unit determines the perpendicular projection Ci by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
capturing a user input by means of an input unit;
using a gyroscope;
using the accelerometer;
placing all projections Ci on a known path;
placing all projections Ci such as the lines of sight of the camera for all points Pi intersect at a single point;
using a biomechanical model of the user holding the device;
using predetermined values.

10. The device of claim 5, wherein the point determination unit further performs image analysis on at least one image for each point Pi.

11. The device of claim 5, further comprising a calibration unit for determining at least one calibration parameter for at least one of the following:

correcting the image captured by the camera by taking into account its optical characteristics;
determining at least one biometric parameter of the user;
adjusting the values read from the accelerometer to an environment in which the device is being used.

12. A tool for determining coordinates of a plurality of points Pi on a substantially plane surface S, adapted to run on a device comprising an accelerometer and a camera, the tool comprising:

a point determination unit being adapted for: receiving a video stream by means of the camera; reading the inclination Ii (the angle between the line of sight of the camera and gravity) from the accelerometer for each point Pi; determining an azimuth Ai (the angle of the line of sight of the camera around gravity) for each point Pi;
a coordinates computation unit being adapted for: determining a perpendicular projection Ci of the location of the camera onto S; computing the coordinates of each point Pi using Ai, Ii, and Ci.

13. The tool of claim 12, wherein the point determination unit determines the azimuth Ai by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
displaying the video stream on a screen;
capturing a user input by means of an input unit;
using a gyroscope;
using a compass;
rotating the camera around a center of rotation that is substantially the same for all points Pi;
using a known angle formed by Pi−2, Pi−1, and Pi;
using predetermined values.

14. The tool of claim 12, wherein the coordinates computation unit determines the perpendicular projection Ci by at least one of the following:

analyzing at least one image captured by the camera while aiming at Pi;
capturing a user input by means of an input unit;
using a gyroscope;
using the accelerometer;
placing all projections Ci on a known path;
placing all projections Ci such as the lines of sight of the camera for all points Pi substantially intersect at a single point;
using a biomechanical model of the user holding the device;
using predetermined values.

15. The tool of claim 12, further comprising a calibration unit for determining at least one calibration parameter for at least one of the following:

correcting the image captured by the camera by taking into account its optical characteristics;
determining at least one biometric parameter of the user;
adjusting the values read from the accelerometer to an environment in which the device is being used.
Patent History
Publication number: 20120026322
Type: Application
Filed: Aug 1, 2010
Publication Date: Feb 2, 2012
Patent Grant number: 9041796
Applicants: (St-Lambert), (St-Lambert)
Inventors: Francis Ruben Malka (St-Lambert), Gilles Jean Desforges (St-Lambert)
Application Number: 12/848,204
Classifications
Current U.S. Class: With Camera And Object Moved Relative To Each Other (348/142); Object Or Scene Measurement (348/135); 348/E07.085
International Classification: H04N 7/18 (20060101);