METHOD AND ARRANGEMENT FOR DETERMINING THE POSITION OF AN OBJECT

Abstract: A method for determining position (Xm, Ym, Zm) of a body (12) provided with at least one marker object (11) with a known dimension parameter (Dm), by means of at least one camera unit (10), provided with a sensor device (15) and an optical element (14) in a determinable distance (c) from said sensor device (15), and means for retrieving and calculation (22). The method comprising steps of: computing the coordinates (xp, yp) of an image (16) of said object (11) reproduced on said sensor device (15), computing a dimension parameter (d) of said object (11) corresponding to said provided dimension parameter (Dm), calculating the proportion of parameters obtained to determine the position (Xm, Ym, Zm) of said object (11).

Description: METHOD AND ARRANGEMENT FOR DETERMINING THE POSITION OF AN OBJECT TECHNICAL FIELD OF THE INVENTION The present invention relates to a method and arrangement for determining position of a body provided with at least one marker object with a known dimension parameter, by means of at least one camera unit, provided with a sensor device and an optical element in a determinable distance from said sensor device, and means for retrieving and calculation. BACKGROUND AND RELATED ART Motion analysis is now a well-known method using camera unit and computer aid to analyse, e.g. biomechanichs of human, animals or motions of a robot arm etc. In a simple system markers are attached to the object to be analysed. In the past the object provided with the markers was first filmed and then manually analysed and digitalised to determine the correct position of the markers. This was a time- consuming procedure. Presently, cameras equipped with so-called CCD plates are used. CCD plate, which is a light sensor, is generally arranged in communication with necessary optical elements. A CCD plate, consisting of lines of charged coupled sensors arranged as a matrix, i.e. arranged in an X and Y coordinate system, for one or several colours, converts the light (from the optical element) projected on it, by electronically scanning in Y direction each line of X sensors and producing a television (video) signal. Then, the signals may be analysed in different ways to detect the position of the markers attached to the object. Presently, two or more camera units are used to measure the distance to an object. SUMMARY OF THE INVENTION It is an object of the present invention to present a method and device to accurately determine the position, preferably the three dimensional position of an object using at least one camera unit, substantially in real time. These objects are achieved by using a method, comprising steps of: - computing the coordinates of an image of said object reproduced on said sensor device, - computing a dimension parameter of said object corresponding to said provided dimension parameter, - calculating the proportion of parameters obtained to determine the position of said object. The invention also concerns an arrangement for determining the position of a body provided with an object having a known dimension parameter to said body, said system comprising at least one camera unit, including a sensor device and an optical element, in a determinable distance from said sensor device, and means for retrieving and calculation, which is arranged to compute the coordinates of an image of said object reproduced on said sensor device, compute a dimension parameter of said object corresponding to said provided dimension parameter, calculate the proportion of parameters obtained to determine the position of said object and means for presenting the determined position. Other advantageous embodiment according to the present invention are characterised in depending claims. BRIEF DESCRIPTION OF THE DRAWINGS In the following the invention will be described with reference to enclosed drawings, in, which: Fig. 1 is a schematic diagram of a simple motion analyse system according to the invention. according to fig. 1. Fig. 3 is a schematic section through a digitalised marker according to the present invention. Fig. 4 schematically illustrates the principle of the present invention. BASIC THEORY Basically, an analogous system uses a conventional video signal from a camera as an input. By means of said signal the X and Y coordinates for the marker, which separate from the surroundings in intensity of light are calculated. The aim is to measure a movement of the marker as exact as possible, i.e. the inaccuracy, which is a result of the video signal consisting of a set of finite number of dots to be minimised. The video signal consists of a number of lines, which are scanned in chronological order. A marker generates an image, which extends over one or several lines. By means of a comparator, it is possible to determine the start and the end of a marker section on a line may be determined. The marker image on a line is called a segment. The time is measured partly from the beginning of the line to the beginning of the segment (X s ) and partly from the beginning of the line to the end of the segment (X e ) . The mean value of these two periods is a measure for the position of a segment in the space, in horizontal direction (if the lines are horizontal) while the serial number of the line (S) is a measure for position of the segment in the vertical direction. The length 1 of the segments is then X e -X s . The X and Y coordinates of the marker, X m and Y m , respectively are obtained through formulas 1 and 2 : (x,-xj . (X.- g The ∑ sign indicates that the summation is carried out over all segments being a member of the marker image. The above is applicable for an analogous signal. Similar calculations may be carried out, if image dots from a digital detector are transferred to another order than linear, where the centre points for all image elements that are members of the same marker are calculated. First, the image elements can be translated to lines and then the calculation may be carried out as in the analogous case. The times X s and X e can be measured with an electronic counting device connected to an oscillator, which also controls the video signal. The counter starts in the beginning av the line and it is read when the start and end of a segment are reached. One problem is that the oscillator frequency, due to technical and economical reasons is limited. In the digital case the problem may be that the image elements cannot be as small as required. To overcome this problem in analogues case, a comparator is provided, which starts an integrator, which generates a linear potential slope, which starts from a potential V a to V b at time X s . The slope is than sampled and measured when the counter changes between two values . The point when the slope passes a predetermined alteration value is used to define the time X ss . The difference between X s and X ss is a constant and it is determined by the integrator and the delays in the comparators. The time X ss is easily calculated from the measured points on the potential slope at the time for the change of the counter provided that at least two points on the slope are measured. For example, if two voltage values are measured, Vi at t, and V 2 at t 2 and V 0 is between V, and V 2 , X ss is interpolated by formula 3: ss 1 V 2 -V. The time X e is measured in same way. In this embodiment a linear slope is used, because the calculations become simpler, however, other curves may be used. DETAILED DESCRIPTION OF AN EMBODIMENT A simple schematic system according to the present invention is shown in fig. 1. The system comprises at least one camera 10 directed to a body, in this case a human body 12, to be analysed and at least one marker 11 attached to the body 12. The camera 12 may be connected to a computer device 13, to further process the received signals from the camera 10. In the following, references will be made to an embodiment of a system operating in IR region, i.e. the camera "sees" bodies emitting infrared radiation. In a preferred embodiment the marker has a substantially spherical configuration provided with a reflecting surface. The camera 12 may be provided with means to emit IR-light, which is then reflected by the marker. The special design of the marker allows the cameras from different angels apprehend a circular form for a correct positioning. In this embodiment the camera 10 is equipped with a CCD unit operating substantially in same way as described above. The block diagram of fig. 2 schematically illustrates some primary parts of the camera 12 intended to execute the method according to the invention. The camera 10 includes optical elements 14 such as lenses and other focusing means (not shown) to projet the image 16 of a marking device 11 onto a CCD unit 15. The surface of the CCD unit is then scanned and the image signals including pixel information are converted to a suitable video signal by means of a converting unit 17, which may be integrated in the CCD unit. The video signal representing image lines, is then serially or in parallel sent to a processing unit 18. The processing unit digitalises the received video signal, for example using an A/D-converter 19. This signal may also be digitalised in unit 17. The processing unit may be connected to a memory unit, not shown, containing a set of instructions for controlling the processing unit. In respect of the "Basic Theory" part, herein above, the image elements may be arranged in lines by means of a low-pass filter to provide some continuos signal, which can be processed as the analogous signal. However, in the preferred embodiment each image element is measured individually and from the measured values, a value is interpolated, determining when a threshold T is passed, analogously to the Basic Theory part. The digitalized signal is then passed over to a comparison unit 20, which interpolates individual sample values about the predetermined threshold value T, also called video level, which may be obtained from a memory unit 21. As described above, the object is to determine when the amplitude of the signal passes the value T. Each passage presents a start and stop coordinate of each segment with a high resolution, which can be about 30 x number of pixels on a row. In a computation unit 22 following calculation is executed: X high resulotion = Pixel N °- + ( 4 ) Where V ! and V 2 are the signal levels of preceding and succeeding pixels, respectively, received from the comparatione unit 21. The pixel number may be obtained from a counter (not shown) . Depending on the components used, levels V] and V 2 may be measured having resolution of 10 bits, the pixel number (MSB) 9 bits and (T- V 1 )/(V 2 -V 1 ) 7 bits. Then the centre point x' of the marker is computed in a computation unit 22 by means of previous values stored in a memory unit 23, using formula (5) : where l k is the length of the segment k (i.e., X ek -X sk ) , according to fig. 5, S is the serial number of the image element, and x k is the centre of the segment k. In the digital case, the formulas (1) and (2) are substituted by formulas (5) and (6) , respectively. However, formula (1) and (2) alone do not contribute to obtaining an exact value as desired. To obtain a more accurate, stable and high resolutive x' , the n power of l k is calculated. In the preferred embodiment the square of l k , i.e. n=2 is calculated. Fig. 3 schematically illustrates the digitalized two dimensional image 26 of the marker. The l k 's may then be stored in the memory unit 23, for further calculations. For a circular marker, the area A of the image is calculated using formula A ~ ∑l k . It is also possible to calculate the radius using A=r 2 .π, which yields formula (7) : which may be computed in the computation unit 22. Referring now to Fig. 4, which schematically illustrates the fundamental principle of the present invention, the position of the object 11 may be calculated according to the following. Following are known data: x' the centre of the marker image 26 on the detector plane 28, i.e. on the CCD plate 15, computed using formula 5 ; c the distance c from the detector plane 28 to the lens 14; X 0 ,Y 0 the centre of the detector plane, corresponding to the centre of the lens, which are camera constants; D m the diameter of the marker 11. In the calculation unit 22 following parameters are calculated: x p Xo-x' / i.e. the X-coordinate of the marker image on the detector plane relative the centre of the detector plane; y p Y 0 -y' » i.e. the X-coordinate of the marker image on the detector plane relative the centre of the detector plane; and d r x 2, r being the radius as above. As between the triangle B and the triangle A in Fig. 4, similarity exists, following proportional relationship also exist: X m /x p = Y m /y P = Z m /c = D m /d, which enables following calculations in the unit 22 : X m -^o (8) d P m m -^ d -y pD 0) Z -m =^ .C (10) Where X m , Y m and Z^ are the three-dimensional position (vector components) of the marker, and specially the distance between the camera (lens) and the object (11) is It is obvious that the distance c must be determined exactly as said distance varies when focusing, i.e. when said lens is displaced. The results may then be transformed to an interface unit to further transmission to the computer unit 13, in which the computed values, can be used to show the position of the marker on a screen for simulation, positioning and other applications. Although, we have described and shown a preferred embodiment, the invention is not limited to said embodiment, variations and modifications may be made within the scope of the attached claims. The processing unit 18 may be integrated in the camera 10, or in a peripheral unit. The number of units and their function in the processing unit 18 may also vary. Further, the form of the marker may vary due to the application area. Moreover, the system according to the invention may be used to detect distances in other areas, for example in mobile units such as vehicles, aeroplanes etc. LIST OF DESIGNATION SIGNS 10 Camera unit 11 Marker 12 Body 13 Computer 14 Lens 15 CCD unit 16 Image 17 Converting unit 18 Processing unit 19 A/D-converting unit 20 Comparator 21 Memory unit 22 Calculation unit 23 Memory unit 24 Interface unit 25 Marker 26 Marker image 27 Measurement plane 28 Detector plane

Claims: CLAIMS 1. A method for determining position (X m , Y m , Z m ) of a body (12) provided with at least one marker object (11) with a known dimension parameter (D m ) , by means of at least one camera unit (10) , provided with a sensor device (15) and an optical element (14) in a determinable distance (c) from said sensor device (15) , and means for retrieving and calculation (22) , the method comprising steps of: - computing the coordinates (x p , y p ) of an image (16) of said object (11) reproduced on said sensor device (15) , - computing a dimension parameter (d) of said object (11) corresponding to said provided dimension parameter (D m ) , calculating the proportion of parameters obtained to determine the position (X m , Y m , Z m ) of said object (11) . 2. A method according to claim 1, characterised in, that the distance (Z m ) to said object is determined using the proportionality between the distance (Z m ) to said object and distance (c) between the optical element and sensor plane, and dimension parameter (d) of the image (16) of the object on said sensor device (15) and the dimension parameter (D m ) of the object. 3. A method according to claim 1, characterised in, that the centre coordinate (x p , y p ) of said image is the distance between a centre point (x', y') of the image and a centre point (X Q , Y 0 ) on said sensor device. 4. A method according to claim 3, characterised in, that centre (x', y') of said of said image on said sensor device (15) is calculated using steps of - interpolating a signal form the sensor device containing pixel data for said reproduced image (16) and calculating a centre (x k ) for a length (l k ) of a segment representing a section of said image, and - using said calculated centre (x k ) and said length (l k ) to determine the centroid coordinate (x') by using following formula: 5. A method according to claim 3, characterised in, that said start or end point (x k ) is calculated using following formula: Where T is a predetermined threshold value V ! and V 2 are signal levels of preceding and succeeding pixels, respectively and p is the number of the pixel m. 6. A method according to claim 1 or 2 , characterised in, steps of: interpolating signal containing pixel data for said reproduced image (16) and calculating a length (l k ) of a segment representing a section of said image, and - using said calculated length (l k ) to determine the area (A) of the image by using A = ∑l k . 7. A method according to any one of claims 1 to 6, characterised in, that said marking object (11) is substantially spherical. 8. A method according to any one of claims 1 to 7, characterised in, that said known dimension parameter (D m ) is the diameter of said object (11) . 9. An arrangement for determining the position (X m , Y m , Z m ) of a body (12) provided with an object (11) having a known dimension parameter (D m ) to said body (12) , said system comprising at least one camera unit (10) , including a sensor device (15) and an optical element (14) , in a determinable distance (c) from said sensor device (15) , and means for retrieving and calculation (22) , which is arranged to compute the coordinates (x p , y p ) of an image (16) of said object (11) reproduced on said sensor device (15) , compute a dimension parameter (d) of said object (11) corresponding to said provided dimension parameter (D m ) , calculate the proportion of parameters obtained to determine the position (X m , Y m; 7^) of said object (11) and means for presenting the determined position. 10. An arrangement according to claim 9, further comprising: means (15) for collecting image data for said body, converting means (19) for producing a digital signal containing pixel data for said reproduced image (16) , comparator unit (20) for generating difference between a pixel signal level and a threshold value (T) , computation unit (22) for calculating a centre point (x k ) for length (l k ) of each segment representing a section of said image, calculating a centroid coordinate (x') and/or an area of said image and/or a radius of said image. 11. An arrangement according to any one of claims 9 or 10, characterised in, that said sensor device (15) is a CCD plate.

Inventors: JOSEFSSON THORLEIF, JOSEFSSON, THORLEIF
Applicants: JOSEFSSON THORLEIF, QUALISYS AB, JOSEFSSON, THORLEIF
Application year: 1998
Main classification: G06T7
IPC codes: A61B5, G01B11, G01C15, G06T7