METHOD AND APPARATUS FOR DETERMINING THE POSITION OF A TV CAMERA FOR USE IN A VIRTUAL STUDIO

Abstract: A method of determining the position of a TV camera relative to a patterned panel being viewed by the TV camera including the steps of: identifying a plurality of edge points of the pattern from the video signal produced by said camera and using these edge points to calculate the perspective of the pattern relative to the camera.

Description: Method and Apparatus for Determining the Position of a TV Camera for Use in A Virtual Studio The present invention relates to methods and apparatus for creating virtual images and for determining the relative position of a TV camera. Chroma Key panels are known for use in TV studios. By focusing a TV camera onto a chroma-key background (or panel) and positioning a foreground object in front of the panel a combined picture can be created in which the foreground object appears against a virtual background which can be, for example, a still picture or a video sequence. A problem which arises from this basic technique is that the camera cannot be allowed to move because the virtual background and the foreground object (possibly a TV presenter) will not move synchronously as in real life. In JP 57-93788 a chroma-key panel is used which includes a series of equidistant parallel lines, figure 11, of two different shades of backing colour to monitor any changes in zoom which are manifested as changes in the frequency of the video signal. The boundaries of a chroma-key window are detected in order to fit the inserted image in size and position to the chroma-key window. Perspective can be solved by using a two shade pattern with characteristic features etc. Such features may include characters, symbols, vertices of polygons etc. Whenever at least the image features can be matched with the physical pattern the perspective can be solved. For the purpose of the present invention, the description will generally be confined to the use of a TN camera within a virtual studio but it is to be understood that the invention can be used for general tracking of a TV camera or an object on which it is positioned. In co-pending Israeli Patent Application No. 109,487 to the same applicant, the use of chroma-key patterned panels is disclosed. These panels have a defined pattern which allows the video signals generated by the TV camera to be processed to ascertain the position of the camera. A problem which arises in the above prior art systems is that for large zoom in factors the features in the Field of View (FOV) are reduced in number. Also, for a substantial occlusion the recognition of robust features may be difficult. Since the present invention movement and zoom of the camera are permitted and also the foreground object is allowed to move, these circumstances are very likely to occur. In addition large perspective distortion makes the recognition of features very difficult in particular when said features comprise characters, graphical symbols etc. If the camera loses synchronism between the foreground real object and the virtual background then the effect will be a loss of reality in the composite picture. Thus, as explained above, early previous systems were limited to a static camera and the later systems, although allowing camera movement, may still be subjected to a loss of synchronism between foreground and background. Obviously if none of the patterned chroma-key background is visible then synchronism cannot be maintained but also is not necessary since no virtual background will be shown. As the camera zooms in to the foreground object, the background chroma-key panel will become more occluded by the foreground object and the characteristic pattern will be broken and/or distorted in the case of large perspective views. It is an object of the present invention to provide a TV camera position determination apparatus and method for measuring the position of a TV camera relative to a panel when part of the panel is occluded by a foreground object. It is also an object of the present invention to provide a virtual studio system in which the TN camera is able to be moved laterally with respect to a foreground object and to a background chroma-key panel; in which the camera is able to zoom in and out wim respect to the foreground object without losing synchronism between the foreground object and the virtual background even when the chroma-key panel is substantially completely occluded by the foreground object. It is also a further object of the present invention to provide a camera positioning apparatus in which the position of a TV camera relative to a patterned panel can be determined even when a substantial part of the panel is obscured by an occluding object. The present invention therefore provides a method of determining the position of a TV camera relative to a patterned panel being viewed by the TV camera including the steps of identifying a plurality of edge points of the pattern from the video signal produced by said camera and using these edge points to calculate the perspective ofthe pattern relative to the camera. Preferably the method comprises the steps of identifying a plurality of said first edge points and a plurality of said second points; and producing an edge image. Preferably two or more families of edges are used such that the edges of each family lie on a set of parallel lines comprising at least two lines. Preferably the orientations of the families are sufficiently far apart such that an edge point can be assigned to a specific family by means of its orientation only. In a specific embodiment said patterned panel comprises a pattern of vertical and horizontal straight edges defining lines delineating a colour difference and in which each edge point is situated on one of said horizontal or vertical straight lines. In a first embodiment said plurality of first edge points are clustered to associate edge points to specific lines using a slope and intercept process. In a second embodiment steps of processing the video signal relating to said first and said second plurality of edge points comprise the steps of analysing all detected edge points and grouping together edge point into a first plurality of groups corresponding to horizontal lines and a second plurality of group corresponding to vertical lines. Preferably the edge points in the first and second plurality of groups are allocated preliminarily to specific horizontal and vertical lines. Preferably the step of allocation is followed by computation of the vanishing points of the horizontal and vertical lines, said vanishing points being computed within a defined location error. The perspective projection of any set of parallel lines which are not parallel to the image plane, will converge to a vanishing point. In the singular case where the lines are parallel to the image plane, the vanishing point is at infinity. Preferably the method also includes the step of projecting the edges corresponding to horizontal edges to obtain an edge projection profile map comprising peaks and troughs. Preferably in the projection process a vertical accumulator array H[y] is cleared to zero. Then for each horizontal edge, the line connecting the vanishing point (previously computed for horizontal edges) with the edge is computed. That line is then intersected with the vertical axis (x=0). The cell of the accumulator array which corresponds to the intersection point is then incremented. Peaks in that array correspond to candidate lines. Preferably the method further includes the step of assigning each horizontal edge to a most probable peak and producing a list of edges for each of a plurality of candidate lines indicated by the peak. Preferably a line is specified for each list of edges, edges not corresponding to any specified line being disregarded. The method steps are then preferably repeated for vertical edges and lines. In the method an accurate video image edge line pattern is produced and in which the known pattern on the panel is compared with the edge line pattern. This comparison preferably comprises a first step of identifying a first horizontal line in the accurate video image edge pattern, identifying a second horizontal line in the accurate video image pattern, calculating the distance between said first and second video image lines, comparing the calculated distance between the video image lines with the known pattern to produce a horizontal position and scale determination, repeating said steps to produce a vertical position and scale determination and from said horizontal and vertical position and scale determinations. Once all positions and scales have been determined, the matching between the pattern and the image is now complete. Preferably, that matching is used to solve for the final, accurate perspective transformation between the pattern and the image. Preferably, the perspective transformation is used to solve for .the position of the TV camera relative to the panel. Preferably the patterned panel comprises a chroma-key panel having two separately identifiable chroma-key colours. -Preferably the patterned panel comprises two or more distance coded families of lines. In a further preferred embodiment the patterned panel comprises two or more families of lines such that the lines of each family intersect at a common point. The present invention also provides apparatus for determining the position of a TN camera relative to a patterned panel being viewed by the TV camera including: means for identifying a plurality of edge points of the pattern from the vedeo signal produced by said camera and means for processing these edge points to calculate the perspective of the pattern relative to the camera. Embodiments of the present invention will now be described, by way of example with reference to the accompanying drawings in which :- Figure 1 shows a patterned panel for use in the present invention; Figure 2 shows a close up of a portion of the panel of Figure 1 with an occluding object obscuring part of the pattern; Figure 3 shows a perspective view of Figure 2 from one side; Figure 4 shows a complex perspective view from one side and above; Figure 5 illustrates the process for identification of edge points; Figure 6 illustrates diagrammatically the initial vanishing point calculation for the edge points; Figure 7 illustrates diagrammatically the rectified line image; Figure 8 illustrates the projected line images for the horizontal lines; Figure 9 shows the accurate video lines after final processing for comparison with the pattern of Figure 1; Figure 10 illustrates the inventive concept of using coded bundles of lines; Figure 11 shows the top level flow of processing, and Figure 12 illustrates the line detection process. With reference now to the drawings, Figure 1 shows a patterned panel 10 which comprises a plurality of vertical and horizontal lines 12,14. These lines may be formed from narrow line or stripes of different colour, their function being to provide a plurality of defined edges. For chroma-key panels the colours of the lines or stripes will preferably be different shades of the same colour. The lines need not be horizontal or vertical but will preferably always be parallel straight lines with a predetermined angular relationship between the generally horizontal and vertical lines. Preferably in any pattern two or more families of edges are provided such that the edges of each family lie on a set of parallel lines comprising at least two lines. Also preferably the orientations of the families are far apart such that an edge point can be assigned to a specific family by means of its orientation only. The TV camera 20 indicated diagrammatically is shown in Figure 1 viewing the panel directly from the front. In Figure 2 the video image viewed by camera 20 is shown. The TV camera 20 is operated to zoom in to the area 10' shown dotted in Figure 1 and an occluding object 30 of irregular shape is shown occluding part of the pattem. The pattem in Figure 2 is therefore not continuous and it may be seen that there are no continuous horizontal lines in the zoomed video image. In Figure 2 only one occluding object is shown but there may be several producing further discontinuities in the lines. In Figure 3 the camera has been moved to create a simple perspective which illustrates that the generally horizontal lines 14 are not now parallel and in Figure 4 in the more complex perspective, neither the horizontal or vertical lines are parallel. With the change in size of the pattem, discontinuities in the lines and the non-parallel image matching the video image pattem in Figure 4 with a pattem of the panel stored in digital format will be extremely difficult since no part ofthe video image corresponds to the stored pattem. The method of the present invention provides a means for determining the position ofthe TV camera from the video image of Figure 4. Preferably in the pattern of Figure 1 the line spacings are not all equal such that distance ratios in sets of adjacent lines are unique within the family of either horizontal or vertical lines. Thus if it is possible to identify the line spacing between two vertical lines 121, 122 and two horizontal lines 141, 142 then the area of the pattem forming part of the video image can be identified. However, because of the unknown magnification or zoom of the TV camera, the unknown complex perspective and occlusion the lines appear totally different from the pattem in Figure 1. The method comprises identifying a large plurality of edge points 144 as shown in Figure 4. Each edge point may be considered to comprise a mini-line having slope and intercept as indicated by angle 148. It may also have a nominal direction if it is on a line of any thickness as indicated by arrow 146. The locations of these edge points are stored digitally to provide an initial edge point map. As can be seen in Figure 4 there may be substantial blank areas in the centre portion where the occlusion occurs but within this area there may be false edge points not correctly belonging to the pattem which will be recorded and will require to be discarded. The edge points are allocated in groups to specific lines in the horizontal and vertical directions using the~ Hough transform [J. Illingworth and J. Kittler, A survey of the Hough transform, Computer Vision, Graphics and Image Processing, 26, pp. 139-161 (1986)]. Altematively the initial parallelism of line sets is used to provide approximate positions of line sets in the horizontal and vertical directions. It may be seen from Figure 4 that none of the lines are either horizontal or vertical due to the perspective change. These terms are therefore used herein generally to refer to lines which are substantially horizontal or vertical, that is to say nearer to the horizontal rather than to the vertical and vice versa. With reference now to Figure 5 each line, as approximately determined by either grouping of the edge point and/or by computation of the initial parallelism of the line sets is projected to an approximate vanishing point for both horizontal (150) and vertical lines (152). As shown the lines will not intersect at a single point because the ofthe errors and thus a "circle" of error 150, 152 is allowed, the centre of the circle, for example, being considered to be the vanishing point. When the camera is looking perpendicular to the panel, the vanishing point is at infinity. Working in a homogeneous coordinate system, the latter case can be handled as well. With reference to Figure 7, the horizontal vanishing point is used to cluster the horizontal edge points into lines. The line connecting the vanishing point Ph with edge point El is intersected with the vertical axis. The process is repeated for all horizontal edge points. Clearly, for real lines which are characterised by a multitude of edge points, the intersection points will tend to accumulate as shown in Figure 7. False edges or very short visible lines will contribute mode randomly. In Figure 8, the intersections provide a histogram type waveform. The process is described for horizontal lines but will be repeated for the vertical lines. Each edge point is reassessed by assigning it to the most probable peak and a revised list of edges is then stored for each probable candidate such as 160, 161, 162 in Figure 8. Those edge points which are found not to correspond to a probable candidate are discarded, thus, for horizontal lines, a list of edge points has now been produced which will accurately align with the horizontal lines 141, 142, line 141 being, for example, aligned with peak 161 and line 142 with peak 162 by means of a list of edge points for each line. The lines are therefore accurately detected. This process is then repeated for the vertical lines. The edge points assigned to a most probable peak are processed to find a line passing through these points in some optimal sense. For example, the least-squared error line can be computed. The vanishing points can be now computed more accurately, as a most probable intersection points of a set of horizontal (or vertical lines). Let the vanishing point of the horizontal bundle be given in homogeneous coordinates by (Xh, Yh, Wh). Also let the vanishing point of the vertical bundle (or set of lines) be given by (Xv, Yv, Wv). These points correspond to vanishing points (1,0,0) and (0,1,0) of the parallel bundles on the panel. From this correspondence, the perspective transformation can be solved up to the shift and scale determinations for both bundles. Applying the inverse transformation to the detected lines, produces an accurate grill pattem as shown in Figure 9. This pattem is then matched against the stored pattem (Figure 1) for each axis independently. In the search process each line L4 may be any line in the horizontal pattem. L5 is, however, the next line and the distance or pattem being unique the lines can be identified. If we assume that no lines are missing then we have a matching solution in the horizontal direction and by a similar process we will have a matching solution in the vertical direction. If some lines are missing then a score is determined for the number of other matching lines and a search can be conducted, using the knowledge of the matched lines, for any missing lines. If these are totally obscured then a decision can be taken on a match using a threshold value for the scores for both vertical and horizontal directions. To obtain the exact vanishing points and perspective, the corrected list of edge points for each line is used to provide accurate line equations, thereby enabling the vanishing points to be accurately calculated. Having matched the lines, one knows not only the perspective distortion as before but also the shifts and scales. This completes the determination of the perspective transformation and thereby the position of the TV camera relative to the panel. The system can provide such information either in the case that one or more lines in the pattem are obscured totally or in the event that the lines are discontinuous. The system can, therefore, work with high camera zoom parameters where only a very small fraction of the panel is visible. With reference now to Figure 10, the concept of a parallel family of lines can be extended to an intersecting family using an altemative system of coded bundles 200 (Fig. 10a) (families of lines). The lines are not parallel, yet one can use basically the same techniques. Consider two parallel coded bundles 202', 204' ("primary bundles") which is transformed by a known perspective transformation (the "pre- transformation") in the panel design process to 2 intersecting bundles ("pattem bundles"). These bundles are further transformed by the (unknown) camera perspective transformation and appear as "image bundles" 202", 204" (Fig. 10c). Clearly, the combination of the pre-transformation and the camera transformation is an unknown perspective transformation. We proceed as in the usual algorithm to find that unknown transformation (between the primary bundles Fig. 10a and the image bundles Fig. 10c). Once that transformation is known, we use the pre-transformation to extract the camera transformation (between the pattem bundles and the image bundles). Figure 11 shows the top level flow of the processing, staring from a video signal 1100 and producing an estimate of the perspective transformation 1102 from the panel to the image. To reduce the number of false edges due to foreground objects, a chroma-keyer 1104 is used to segment the background (which contains the pattem information) from the foreground. This segmentation is performed based on a key signal which describes the distance of a specific pixel from the backing colour (preferably blue or green). To further reduce the number of false edges the key image is preferably filtered 1106 to remove isolated features and pixels near the border of foreground objects. This filtering is preferably done using morphological image processing [Serra, J. Image Analysis and Mathematical Moφhology, Academic Press, London 1982]. Edge detection is then applied 1108 to the background image. The method is not sensitive to the specific edge detector used. For a survey see [A. Rosenfeld and A, Kak, Digital Picture Processing, Academic Press 1982, Vol. 2, pp. 84-112]. Preferably the edge detection process consists of the following steps: 1. Smoothing the image to reduce the effect of image noise. 2. Computing a gradient vector (magnitude and directions) at each pixel, by means of x and y spatial derivatives. 3. Thresholding the gradient magnitude and suppressing pixels where the gradient response does not have a local maximum. This suppression step is necessary to obtain thin edge contours. 4. Storing the edge points in an edge array. The line detection process is further described with reference to Figure 12 for horizontal lines. Vertical lines are processed in a similar manner. From a list of horizontal edge points an approximate vanishing point is computed 1202. Each edge is projected through a vanishing point 1204 to produce a projection histogram which is analysed 1206, to find the peaks. The list of peaks is compared with each edge point to assign an edge point to a peak and to then fit the lines 1208 to provide a list of lines.

Claims: CLAIMS 1. A method of determining the position of a TV camera relative to a patterned panel being viewed by the TV camera including the steps of: identifying a plurality of edge points of the pattem from the video signal produced by said camera and using these edge points to calculate the perspective of the pattem relative to the camera. 2. A method as claimed in claim 1 comprising the steps of: identifying a plurality of first edge points and a plurality of second edge points; and producing an edge image. 3. A method as claimed in claim 2 in which said patterned panel comprises a pattem of vertical and horizontal straight edges defining lines delineating a colour difference and in which each edge point is situated on one of said horizontal or vertical straight lines. 4. A method as claimed in claim 3 in which said plurality of first edge points are clustered to associate edge points to specific lines using a slope and intercept process. 5. A method as claimed in claim 3 in which said steps of processing the video signal relating to said first and said second plurality of edge points comprises the steps of : analysing all detected edge points and grouping together edge points into a first plurality of groups corresponding to horizontal lines and a second plurality of groups coπesponding to vertical lines. 6. A method as claimed in claim 5 in which the edge points in the first and second plurality of groups are allocated preliminarily to specific horizontal and vertical lines. 7. A method as claimed in claim 6 in which the step of allocation is followed by computation of the vanishing points of the horizontal and vertical lines, said vanishing points being computed within a defined location enor. 8. A method as claimed in claim 7 further including the step of : projecting the edges coπesponding to horizontal edges to obtain an edge projection profile map comprising peaks and troughs. 9. A method as claimed in claim 8 further including the step of : assigning each horizontal edge to a most probable peak and producing a list of edges for each of a plurality of candidate lines indicated by the peak. 10. A method as claimed in claim 9 in which a line is specified for each list of edges, edges not coπesponding to any specified line being disregarded. 11. A method as claimed in claim 10 in which the steps are repeated for vertical edges and lines. 12. A method as claimed in claim 11 in which accurate vanishing points are computed from the specified lines. 13. A method as claimed in claim 11 in which the perspective transformation is solved up to the shift and scale determinations for botii families of lines. 14. A method as claimed in claim 13 in which an accurate line pattem is produced by means of inverse perspective transformation and in which the known pattem on the panel is compared with the edge line pattem. 15. A method as claimed in claim 14 in which said comparison comprises a first step of identifying a first horizontal line in the accurate video image edge pattem, identifying a second horizontal line in the accurate video image pattem, calculating the distance between said first and second video image lines, comparing the calculated distance between the video image lines with the known pattem to produce a horizontal position and scale determination, repeating said steps to produce a vertical position and scale determination and from said horizontal and vertical position and scale determinations determining the position of the TV camera relative to the panel. 16. A method as claimed in any one of claims 1 to 15 in which the patterned panel comprises a chroma-key panel having two separately identifiable chroma-key colours. 17. A method as claimed in any one of claims 1 to 15 in which the patterned panel comprises two or more distance coded families of lines. 18. A method as claimed in any one of claims 1 to 15 in which the patterned panel comprises two or more families of lines such that the lines of each family intersect at a common point. 19. A method as claimed in claim 16 in which the determination ofthe position of the TN camera relative to the panel is used to calculate the perspective of a background video picture relative to a foreground object. 20. Apparatus for determining the position of a TN camera relative to a patterned panel being viewed by the TN camera including: means for identifying a plurality of edge points of the pattem from the video signal produced by said camera and means for processing these edge points to calculate the perspective of the pattem relative to the camera. 21. Apparatus as claimed in claim 18 in which the patterned panel is a chroma-key panel. 22. Apparams as claimed in claim 19 further including further processing means for processing said calculated position of the camera, background scene storage means for storage of background scene, perspective displacement means to adjust the perspective of a background scene in accordance with the calculated camera position and video display means for displaying the background scene in a conect perspective on said chroma-key background panel with foreground objects interposed between said camera and said background panel. 23. Apparatus as claimed in any one of claims 20 to 22 in which the patterned panel comprises two or more distance coded families of lines. 24. Apparatus as claimed in any one of claims 20 to 22 in which the patterned panel comprises two or more families of lines such that the lines of each family intersect at a common point.

Inventors: AUFHAUSER DAVID, LIVSHITS ZINOVY, NISSIM MOSHE, SHARIR AVI, STEINBERG ALEXANDER, TAMIR MICHAEL, WILF ITZHAK, AUFHAUSER, DAVID, LIVSHITS, ZINOVY, NISSIM, MOSHE, SHARIR, AVI, STEINBERG, ALEXANDER, TAMIR, MICHAEL, WILF, ITZHAK
Applicants: AUFHAUSER DAVID, GOODMAN CHRISTOPHER, LIVSHITS ZINOVY, NISSIM MOSHE, ORAD HI TEC SYSTEMS LTD, SHARIR AVI, STEINBERG ALEXANDER, TAMIR MICHAEL, WILF ITZHAK, AUFHAUSER, DAVID, GOODMAN, CHRISTOPHER, LIVSHITS, ZINOVY, NISSIM, MOSHE, ORAD HI-TEC SYSTEMS LIMITED, SHARIR, AVI, STEINBERG, ALEXANDER, TAMIR, MICHAEL, WILF, ITZHAK
Application year: 1996
Main classification: H04N9
IPC codes: G06T1, H04N5, H04N9