Camera control device and program
The camera control device uses internal subject detection and area division to maintain subjects within the camera's field of view, addressing the limitations of external data reliance and unstable postures, ensuring accurate and efficient image capture.
Patent Information
- Application Number
- JP2020100516
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-06-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-06-09
AI Technical Summary
Existing camera control methods relying on external positional information, such as GNSS satellites, fail in environments where satellite signals are unavailable, and can result in subjects moving out of the camera's field of view due to unstable camera postures, leading to incomplete image capture.
A camera control device that detects subject position within an imaging area using an overhead camera, divides the area into segments, and controls robot cameras based on internal position information to maintain the subject within the field of view, utilizing a control table to adjust camera attitudes and lens parameters.
Enables accurate and efficient subject tracking without external positional data, ensuring the subject remains within the camera's field of view and allows for high-precision image capture.
Smart Images

Figure 0007548728000023 
Figure 0007548728000024 
Figure 0007548728000025
Abstract
Description
[Technical field]
[0001] The present invention relates to a camera control device and a program. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is known a technique for reconstructing a three-dimensional model of a subject from images captured by a plurality of cameras and obtaining a virtual viewpoint image from an arbitrary position where no cameras are placed.
[0003] For example, by using a camera equipped with an electric pan head (hereinafter referred to as a "robot camera") as the camera to be placed, it is possible to always capture an image of a subject without it moving out of the angle of view of the robot camera. Even when a limited number of robot cameras are used, it is possible to capture images with both precision and freedom (for example, see Patent Document 1).
[0004] Furthermore, a method that uses position information of a subject has been proposed as a technique for controlling the position of a robot camera so that the subject does not move out of the angle of view (see, for example, Patent Document 2). This method acquires position information of the subject from an external source and also acquires timing information indicating the passage of time, and controls the camerawork of the robot camera that photographs the subject based on the position information of the subject and the timing information.
[0005] Furthermore, a method has been proposed in which a subject is detected from an image captured by a sensor camera, and the subject is photographed while being automatically tracked by a robot camera (see, for example, Patent Document 3). In this method, a plurality of colors constituting the surface of the subject is preset, a portion having the plurality of preset colors is extracted as an image portion from the captured image, the subject is detected based on the image information, and the subject is automatically tracked. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2019-67419 A [Patent Document 2] International Publication No. 2017 / 154953 [Patent Document 3] Patent No. 3704201 Summary of the Invention [Problem to be solved by the invention]
[0007] The method of Patent Document 2 mentioned above obtains the subject's position information from a GNSS (Global Navigation Satellite System) satellite, and controls a robot camera by reading camera work corresponding to the position information from a camera work information table set.
[0008] However, this method cannot be used if a device for acquiring location information is not attached to the subject, and cannot be used efficiently in an environment where location information cannot be received from satellites.
[0009] Furthermore, in the method of the aforementioned Patent Document 3, if a control error causes the robot camera's posture to become unstable, the subject may move out of the camera's field of view, resulting in an angle of view in which part of the subject is missing, and it is not necessarily possible to obtain useful images.
[0010] For this reason, it has been desirable to be able to detect the position of a subject without using position information obtained from an external source and to control a robot camera quickly and accurately.
[0011] Therefore, the present invention has been made to solve the above-mentioned problems, and its object is to provide a camera control device and program that can detect the position of a subject without using position information obtained from an external source, and keep the subject within the camera's field of view at all times. [Means for solving the problem]
[0012] In order to solve the above problem, a camera control device according to claim 1 is a camera control device that controls the attitude of a camera, the camera control device including: an image capture area division unit that inputs an image capture image including a subject within an image capture area captured by an overhead camera, and divides the image capture area into a plurality of areas according to a preset rule, thereby extracting divided images corresponding to each of the plurality of areas from an image of the image capture image; and ,before One where the subject exists Or multiple areas Detects An area pattern indicating the one or more areas a subject position detection unit that generates position information including All area patterns showing one area or multiple areas where the subject may exist A control table is held in which parameters indicating the attitude of the camera are stored corresponding to each of the above, and the position information generated by the subject position detection unit is extracted from the control table. The area pattern and a camera control unit that reads out the parameters corresponding to the object and generates posture information including the parameters, and a camera communication unit that transmits a control signal including the posture information generated by the camera control unit to the camera.
[0013] The camera control device of claim 2 comprises: a camera control device for controlling the attitude of a camera, the camera control device including: an image capture area division unit that inputs an image capture video including a subject within an image capture area captured by an overhead camera, and divides the image capture area into a plurality of areas according to a preset rule, and extracts divided images corresponding to each of the plurality of areas from an image of the image capture video; a subject position detection unit that detects a silhouette area of the subject for each of the plurality of areas based on the divided images corresponding to each of the plurality of areas extracted by the image capture area division unit, and generates position information including the area and the silhouette area of the area; a camera control unit that holds a control table in which parameters indicating the attitude of the camera are stored corresponding to each of the plurality of areas, reads out from the control table the parameters corresponding to the areas included in the position information generated by the subject position detection unit, calculates a weighted average of the silhouette area of the area with respect to the entire silhouette area of the subject for the parameters, and generates attitude information including the parameter of the weighted average; and a camera communication unit that transmits a control signal including the attitude information generated by the camera control unit to the camera. It is characterized by:
[0017] Also, claims 3 The camera control device according to claim 1 OR 2 wherein the center of the imaging area is defined as the origin, a line passing from the origin through the installation position of the camera is defined as the starting line, and a point on the plane of the imaging area is expressed as polar coordinates (r, δ) of a distance r from the origin and a deviation angle δ from the starting line, and the multiple areas divided by the imaging area dividing unit are defined as regions into which the imaging area is divided in polar coordinates or horizontally or vertically to the optical axis of the camera.
[0018] Also, claims 4 The camera control device according to claim 1 3In the camera control device described in any one of claims 1 to 5, the camera control device controls a plurality of cameras, the camera control unit holds the control table for each of the plurality of cameras, and generates the posture information for each of the plurality of cameras using the corresponding control table, and the camera communication unit transmits a control signal including the posture information generated by the camera control unit to each of the corresponding cameras.
[0019] Also, claims 5 The camera control device according to claim 1 3 The camera control device according to any one of claims 1 to 5, wherein the camera control device controls a plurality of cameras, the camera control unit holds the control table for any one of the plurality of cameras, generates the posture information for the one camera using the control table, and generates the posture information for the other camera based on the posture information and a position and posture relationship between the one camera and the other camera among the plurality of cameras, and the camera communication unit transmits a control signal including the posture information generated by the camera control unit to each of the corresponding cameras.
[0020] Furthermore, claims 6 The program according to claim 1 5 The present invention is characterized in that the camera control device functions as any one of the camera control devices described above. Effect of the Invention
[0021] As described above, according to the present invention, the position of the subject can be detected without using position information obtained from an external source, and the subject can always be kept within the field of view of the camera. [Brief description of the drawings]
[0022] [Figure 1] 1 is a block diagram showing an example of the overall configuration of an imaging system including a camera control device according to an embodiment of the present invention. [Diagram 2] 1A and 1B are diagrams illustrating examples of imaging environments and area divisions. [Diagram 3] 1 is a flowchart showing an example of processing in the first embodiment. [Figure 4] 4A to 4C are diagrams illustrating an example of a position of a subject within an imaging area in the first embodiment. [Diagram 5] FIG. 4 is a diagram illustrating an example of a configuration of a control table in the first embodiment. [Figure 6] FIG. 13 is a diagram illustrating an example of a configuration of a control table in a modified example of the first embodiment. [Figure 7] 13 is a flowchart showing a processing example of the second embodiment. [Figure 8] 13 is a diagram for explaining an example of the position of a subject within an imaging area in the second embodiment. FIG. [Figure 9] 13 is a flowchart showing a processing example of a modified example of the second embodiment. [Figure 10] FIG. 13 is a diagram illustrating an example of a configuration of a control table in a modified example of the second embodiment. [Figure 11] 13 is a flowchart showing a processing example of the third embodiment. [Figure 12] 13 is a diagram for explaining an example of the position of a robot camera and area divisions in the fourth embodiment. FIG. [Figure 13] 13A to 13C are diagrams illustrating an example of an imaging environment, a position of a robot camera, and area divisions in the fourth embodiment. [Figure 14] 13 is a diagram for explaining an example of the position of a robot camera and area divisions in the fifth embodiment. FIG. [Figure 15] FIG. 13 is a diagram illustrating a process of generating posture information for two robot cameras using one control table when the two robot cameras are installed in a space. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. [Imaging system] First, an imaging system will be described. Fig. 1 is a block diagram showing an example of the overall configuration of an imaging system including a camera control device according to an embodiment of the present invention, and Fig. 2 is a diagram for explaining an example of an imaging environment and area divisions.
[0024] This imaging system 1 is configured with an overhead camera 2, a camera control device 3, and one or more robot cameras 4. The imaging system 1 is a system that detects a subject 120 existing within an imaging area 110 from an image of a captured video captured by the overhead camera 2, and controls the robot camera 4 so that the subject 120 is always within the field of view of the robot camera 4.
[0025] The subject 120 is present on a stage 115 within the imaging area 110, and the overhead camera 2 and the robot camera 4 are attached to, for example, a hemispherical mounting member 116, which is installed so as to cover the subject 120. In Fig. 2, the overhead camera 2 is installed at the apex of the hemispherical mounting member 116 so as to overlook the subject 120.
[0026] The overhead camera 2 is a camera that captures an image of the subject 120, and outputs the captured image to the camera control device 3. The overhead camera 2 is a camera or a robot camera attached at an overhead position that can capture at least 80% or more, preferably 100%, of the imaging area 110, for example, at an elevation angle of 45° or more, preferably 80°, from the imaging area 110. The overhead camera 2 may be a camera that can be mounted on a drone and placed in the air.
[0027] The camera control device 3 inputs the captured image from the overhead camera 2, detects the position of the subject 120 within the imaging area 110 based on the image of the captured image, generates a control signal for posture etc. according to that position, and transmits the control signal to the robot camera 4.
[0028] The robot camera 4 receives the control signal, and performs control of panning, tilting, etc. based on the control signal to change the posture, etc. This allows the robot camera 4 to place the subject 120 within its field of view.
[0029] Here, the imaging area 110 is divided into a plurality of areas according to a preset rule. For example, in Fig. 2, the imaging area 110 is an area photographed by the overhead camera 2 when the stage 115 is viewed from the overhead camera 2, and its shape is a circle. The imaging area 110 is divided into four areas 111 to 114 in clockwise order from the upper right by two straight lines in a cross direction that intersect at a right angle and pass through the center of the circle of the imaging area 110. In other words, the areas 111 to 114 are regions in which the imaging area 110 is divided by the two straight lines in a cross direction that pass through the center of the circle.
[0030] 1, the camera control device 3 includes an imaging area dividing unit 10, a subject position detecting unit 11, a camera control unit 12, and a camera communication unit 13. The camera control unit 12 holds a control table 20 that is set in advance.
[0031] The imaging area dividing unit 10 inputs the captured image from the overhead camera 2. Then, the imaging area dividing unit 10 extracts divided images of the areas 111-114 by dividing the image of the imaging area 110 in the captured image into images of four areas 111-114 according to a preset rule as shown in FIG. 2. The imaging area dividing unit 10 outputs the divided images of the areas 111-114 to the subject position detection unit 11.
[0032] The subject position detection unit 11 receives the divided images of areas 111-114 from the imaging area division unit 10, detects the subject 120 from these divided images, and generates position information indicating the position of the subject 120. Then, the subject position detection unit 11 outputs the position information of the subject 120 to the camera control unit 12.
[0033] Specifically, the time when subject 120 is not within the field of view of overhead camera 2 (within imaging area 110) is defined as T0, and the time when subject 120 is within the field of view of overhead camera 2 is defined as T1. Subject position detection unit 11 detects the position of subject 120 by known processing such as background subtraction using divided images of areas 111-114 at times T0 and T1, chromakey that transmits a specific color, or luminance key that transmits a specific luminance.
[0034] The camera control unit 12 receives position information of the subject 120 from the subject position detection unit 11, and generates posture information of the robot camera 4 based on the position information by using a preset control table 20. The control table 20 stores parameters indicating the position information of the subject 120 and the posture of the robot camera 4 corresponding to the position information. The camera control unit 12 then outputs the posture information to the camera communication unit 13.
[0035] The camera communication unit 13 inputs the attitude information from the camera control unit 12, generates a control signal including the attitude information, and transmits the control signal to the robot camera 4. This enables the robot camera 4 to change its attitude according to the attitude information included in the control signal, and to bring the subject 120 into its field of view.
[0036] The processing of the camera control device 3 will be specifically described below with reference to an embodiment.
[0037] Example 1 First, a description will be given of Example 1. Example 1 is an example in which subject 120 is present within any one of areas 111 to 114 within imaging area 110.
[0038] Fig. 3 is a flowchart showing a processing example of the first embodiment, and shows the processing of the camera control device 3 shown in Fig. 1. Fig. 4 is a diagram for explaining an example of the position of the subject 120 in the imaging area 110 in the first embodiment.
[0039] As shown in FIG. 4, it is assumed that subject 120 is present in area 111 among areas 111-114 in imaging area 110, and is not present in areas 112-114.
[0040] The imaging area dividing unit 10 of the camera control device 3 receives the captured image from the overhead camera 2 (step S301), divides the imaging area 110 of the captured image into areas 111 to 114, and extracts divided images (step S302).
[0041] The subject position detection unit 11 detects the position of the subject 120 from the divided images of areas 111 to 114 by processing such as the background subtraction described above (step S303). In this example, the subject position detection unit 11 detects that the subject 120 is present in the area 111. Then, the subject position detection unit 11 generates position information including the area x=111 (step S304).
[0042] 5 is a diagram showing an example of the configuration of the control table 20-1 in the embodiment 1. This control table 20-1 is made up of an area x and a pan / tilt value LUT(x) which is a parameter (posture parameter) indicating the posture corresponding to the area x. The pan / tilt value LUT(x) is made up of a pan value Pan and a tilt value Tilt in the area x.
[0043] In the control table 20-1, a pan-tilt value LUT(111)=(φ 111 ,θ 111 ) is stored. In addition, pan-tilt value LUT(112)=(φ 112 ,θ 112 ), and the pan-tilt value LUT(113)=(φ 113 ,θ 113 ) is stored. In addition, pan-tilt value LUT(114)=(φ 114 ,θ 114 ) is stored.
[0044] Returning to FIG. 3, the camera control unit 12 selects, from the control table 20-1, the pan-tilt value LUT(111)=(φ 111 ,θ 111 ) (step S305). Then, the camera control unit 12 reads out the pan value φ 111 and tilt value θ 111 (Step S306).
[0045] The camera communication unit 13 receives the pan value φ of the posture information. 111 and tilt value θ 111 and transmits the control signal to the robot camera 4 (step S307).
[0046] As a result, the robot camera 4 detects the pan value φ 111 and tilt value θ 111 By changing the posture according to the above, the subject 120 can be accommodated within the field of view. The posture of the robot camera 4 can be controlled by the camera control device 3 of the first embodiment.
[0047] [Modification of the first embodiment] Next, a modified example of the embodiment 1 will be described. The modified example of the embodiment 1 is an example in which, in addition to the posture of the robot camera 4 in the embodiment 1, the zoom rotation amount and the focus rotation amount, which are lens parameters of the robot camera 4, are also controlled. This is also applied to the embodiment 2, the modified example of the embodiment 2, the embodiment 3, the embodiment 4, and the embodiment 5 described later.
[0048] 6 is a diagram showing an example of the configuration of a control table 20-1' in a modified example of the first embodiment. This control table 20-1' is composed of an area x, and the attitude parameters and lens parameters, pan / tilt values and zoom / focus rotation amount LUT(x), corresponding to the area x. The lens parameters are the zoom rotation amount and focus rotation amount of the lens provided in the robot camera 4. The pan / tilt value and zoom / focus rotation amount LUT(x) is composed of the pan value Pan, tilt value Tilt, zoom rotation amount Zoom, and focus rotation amount Focus in the area x.
[0049] In the control table 20-1', the pan / tilt value and the zoom / focus rotation amount LUT(111)=(φ 111 ,θ 111 ,Z 111 ,F 111 ) is stored. In addition, the pan / tilt value and zoom / focus rotation amount LUT(112)=(φ 112 ,θ 112 ,Z 112 ,F 112 ) is stored. In addition, the pan / tilt value and zoom / focus rotation amount LUT(113)=(φ 113 ,θ 113 ,Z 113 ,F 113 ) is stored. In addition, the pan / tilt value and zoom / focus rotation amount LUT(114)=(φ 114 ,θ 114 ,Z 114 ,F 114 ) is stored.
[0050] The camera control unit 12 obtains the pan / tilt value and the zoom / focus rotation amount LUT(111)=(φ 111 ,θ 111 ,Z 111 ,F 111 Then, the camera control unit 12 reads out the pan value φ 111 , tilt value θ 111 , zoom rotation amount Z 111 and focus rotation amount F 111 The pose lens information including:
[0051] The camera communication unit 13 receives the pan value φ of the posture information. 111 and tilt value θ 111 , and the zoom rotation amount Z of the lens information 111 and focus rotation amount F 111 and transmits the control signal to the robot camera 4.
[0052] As a result, the robot camera 4 detects the pan value φ 111 and tilt value θ 111 By changing the posture according to the control signal, the subject 120 can be placed within the field of view. 111 and focus rotation amount F 111 By changing the degree of image enlargement and the focal length according to the above, it is possible to photograph the subject 120 at a desired size and in focus. In other words, the camera control device 3 of the modified example of the first embodiment can control the attitude and lens of the robot camera 4.
[0053] Example 2 Next, a description will be given of Example 2. The above-described Example 1 is an example in which the subject 120 is contained within the area 111, but Example 2 is an example in which the subject 120 exists across all of the areas 111 to 114 within the imaging area 110.
[0054] The second embodiment is an example of performing silhouette area control when subject 120 exists not only in area 111 but also across areas 112 to 114. The silhouette area control is a control that identifies one area in which the silhouette area of subject 120 is maximum, and uses posture information corresponding to the identified one area.
[0055] Fig. 7 is a flowchart showing a processing example of the second embodiment, and shows silhouette area control by the camera control device 3 shown in Fig. 1. Fig. 8 is a diagram for explaining an example of the position of the subject 120 in the imaging area 110 in the second embodiment.
[0056] 8, the subject 120 is present across all of the areas 111 to 114 in the imaging area 110. The silhouette areas of the subject 120 in the areas 111 to 114 are respectively represented as S subject (111), S subject (112), S subject (113), S subject (114). Here, Ssubject (111)>S subject (114)>S subject (112)=S subject Let (113).
[0057] The imaging area dividing unit 10 of the camera control device 3 inputs the captured image from the overhead camera 2 (step S701), divides the imaging area 110 of the captured image into areas 111 to 114, and extracts divided images (step S702).
[0058] The subject position detection unit 11 calculates the silhouette area S of the subject 120 from the divided images by performing the above-mentioned background subtraction process for each area (each of the areas 111 to 114). subject (x) is calculated (step S703). x=111 to 114.
[0059] The subject position detection unit 11 detects a silhouette area S subject Then, the subject position detection unit 11 compares the silhouette area S subject The largest area of (x) is identified as x=111, and location information including the area x=111 is generated (step S704).
[0060] The camera control unit 12 selects pan-tilt value LUT(111)=(φ) corresponding to area x=111 included in the position information from the control table 20-1 shown in FIG. 111 ,θ 111 ) (step S705). Then, the camera control unit 12 reads out the pan value φ 111 and tilt value θ 111 (step S706).
[0061] The camera communication unit 13 receives the pan value φ of the posture information. 111 and tilt value θ 111 and transmits the control signal to the robot camera 4 (step S707).
[0062] As a result, the robot camera 4 detects the pan value φ 111and tilt value θ 111 By changing the posture according to the above, the subject 120 can be brought into the field of view.
[0063] [Modification of the second embodiment] Next, a modified example of the second embodiment will be described. The modified example of the second embodiment is an example in which list control is performed when the subject 120 exists not only in the area 111 but also across the areas 112 to 114. The list control is a control that identifies one or more areas in which the silhouette of the subject 120 exists, and uses posture information corresponding to the identified one or more areas.
[0064] FIG. 9 is a flowchart showing a processing example of a modified example of the second embodiment, and shows list control by the camera control device 3 shown in FIG.
[0065] The imaging area dividing unit 10 of the camera control device 3 inputs a captured image from the overhead camera 2 (step S901), divides the imaging area 110 of the captured image into areas 111 to 114, and extracts divided images (step S902).
[0066] The subject position detection unit 11 detects areas x=111, 112, 113, 114 in which the subject 120 exists as shown in Fig. 8 from the divided images of areas 111 to 114 by processing such as the background subtraction described above (step S903). Then, the subject position detection unit 11 generates position information including the area pattern x'=111, 112, 113, 114 (step S904).
[0067] 10 is a diagram showing an example of the configuration of the control table 20-2 in the modified example of the embodiment 2. The control table 20-2 is configured from an area pattern x' and a pan-tilt value LUT(x') which is a posture parameter corresponding to the area pattern x'. The area pattern x' in the control table 20-2 is all patterns in which the subject 120 can exist in one or more of the areas 111, 112, 113, and 114.
[0068] In the control table 20-2, a pan-tilt value LUT(111)=(φ 111 ,θ 111 ) is stored. In addition, pan-tilt value LUT(112)=(φ 112 ,θ 112 Similarly, pan-tilt value LUT(141)=(φ 141 ,θ 141 ) is stored.
[0069] Returning to FIG. 9, the camera control unit 12 selects, from the control table 20-2, the pan / tilt value LUT (111, 112, 113, 114)=(φ 141 ,θ 141 ) (step S905). Then, the camera control unit 12 reads out the pan value φ 141 and tilt value θ 141 (step S906).
[0070] The camera communication unit 13 receives the pan value φ of the posture information. 141 and tilt value θ 141 and transmits the control signal to the robot camera 4 (step S907).
[0071] As a result, the robot camera 4 detects the pan value φ 141 and tilt value θ 141 By changing the posture according to the above, the subject 120 can be brought into the field of view.
[0072] Example 3 Next, a third embodiment will be described. The third embodiment is an example in which weighted average control is performed when the subject 120 exists across multiple areas 111 to 114 in the imaging area 110. The weighted average control is a control that identifies one or more areas in which the silhouette of the subject 120 exists, and uses weighted average posture information obtained from the area of the silhouette of the subject 120 for the identified one or more areas.
[0073] In the first and second embodiments, an example has been described in which the imaging area 110 is divided into four areas 111 to 114. Here, when the imaging area 110 is divided into n areas (n is an integer of 2 or more), the number of pan-tilt value LUT(x) stored in advance in the control table 20 is as follows: n C1+ n C2... n C n-1 + n C n As the number of divisions increases, the number of pan / tilt value LUT(x) stored in the control table 20 also increases, making the table complicated.
[0074] Therefore, by performing the weighted average control of the third embodiment, the number of pan / tilt value LUT(x) stored in advance in the control table 20 is reduced, and the subject 120 is placed within the field of view of the robot camera 4 with high accuracy.
[0075] FIG. 11 is a flowchart showing a processing example of the third embodiment, and shows weighted average control by the camera control device 3 shown in FIG.
[0076] The imaging area dividing unit 10 of the camera control device 3 receives the captured image from the overhead camera 2 (step S1101), divides the imaging area 110 of the captured image into areas 111 to 114, and extracts divided images (step S1102).
[0077] The subject position detection unit 11 calculates the silhouette area S of the subject 120 from the divided images by performing the above-mentioned background subtraction process for each area (each of the areas 111 to 114). subject(x) is calculated (step S1103). x=111 to 114.
[0078] The subject position detection unit 11 detects the area x and the silhouette area S subject Position information including (x) is generated (step S1104).
[0079] Here, the silhouette areas of the subject 120 in the areas 111 to 114 obtained by the subject position detection unit 11 are S subject (111), S subject (112), S subject (113), S subject (114).
[0080] The camera control unit 12 reads out the pan-tilt value LUT(x) of the area x included in the position information from the control table 20-1 shown in FIG. 5 (step S1105). Then, the camera control unit 12 calculates the silhouette area S subject The weighted average of (x) is calculated to obtain the pan value φ and the tilt value θ (step S1106). subject The weighted average by (x) is the silhouette area S of the area x relative to the entire silhouette area of the subject 120. subject This is a process to obtain a weighted average of the pan / tilt value LUT(x) using the ratio of (x) as a weight.
[0081] The camera control unit 12 generates attitude information including the pan value φ and the tilt value θ (step S1107).
[0082] Specifically, the camera control unit 12 calculates a pan-tilt value LUT(111)=(φ 111 ,θ 111 Similarly, the camera control unit 12 reads out the pan-tilt value LUT(112)=(φ 112 ,θ 112 ), LUT(113)=(φ 113 ,θ 113 ), LUT(114)=(φ114 ,θ 114 ) is read.
[0083] The camera control unit 12 calculates the silhouette area S included in the position information based on the following formula (1). subject The camera control unit 12 calculates a weighted average of the pan / tilt value LUT(x) by (x) to obtain the pan value φ and the tilt value θ. Note that the camera control unit 12 may use the following formula (2) to obtain the pan value φ and the tilt value θ.
number
number
[0084] The camera communication unit 13 generates a control signal including the pan value φ and tilt value θ of the attitude information, and transmits the control signal to the robot camera 4 (step S1108).
[0085] As a result, the robot camera 4 can accommodate the subject 120 within its field of view by changing its posture according to the pan value φ and tilt value θ included in the control signal. In this case, the camera control unit 12 calculates the silhouette area S subject Since the pan value φ and tilt value θ are obtained by calculating a weighted average of (x), there is no need to increase the number of pan-tilt value LUT(x) in the control table 20-1. In other words, highly accurate attitude control can be achieved using a small number of pan-tilt value LUT(x).
[0086] The camera control unit 12 determines the silhouette area S subject The weighted average is calculated by (x), but the area S excluding the subject 120 in the area is area A weighted average based on (x) may be calculated.
[0087] Specifically, the camera control unit 12 calculates a silhouette area S of the area x included in the position information from the area of the area x. subject(x) is subtracted, and the area S other than the subject 120 in area x is area Then, the camera control unit 12 reads out the pan / tilt value LUT(x) for the area x included in the position information from the control table 20-1.
[0088] The camera control unit 12 calculates the area S of the area x other than the subject 120 based on the following formula (3). area The camera control unit 12 calculates a weighted average of the pan / tilt value LUT(x) by (x) to obtain the pan value φ and the tilt value θ. Note that the camera control unit 12 may use the following equation (4) to obtain the pan value φ and the tilt value θ.
number
number
[0089] Example 4 Next, a fourth embodiment will be described. In order to control the robot camera 4 with high precision, the imaging area 110 may be divided into smaller areas, and a control table 20 may be used in which pan-tilt value LUT(x) corresponding to each area is stored.
[0090] Example 4 is an example in which the robot camera 4 is controlled with high precision by using a plurality of areas obtained by dividing the imaging area 110 into even finer areas in Example 1, the modified example of Example 1, Example 2, the modified example of Example 2, and Example 3.
[0091] As described above, the imaging area dividing unit 10 of the camera control device 3 divides the image of the imaging area 110 into images of four areas 111 to 114 according to a preset rule as shown in Fig. 2. In the fourth embodiment, the imaging area dividing unit 10 further divides the image of the imaging area 110 into smaller areas according to a preset rule.
[0092] 12 is a diagram for explaining an example of the position of the robot camera and area divisions in Example 4. In (1) to (3), the center of the imaging area 110 is the origin, a line passing from the origin through the installation position of the robot camera 4 is the starting line, and a point on the plane of the imaging area 110 is expressed by polar coordinates (r, δ) of the distance r from the origin and the deviation angle δ from the starting line.
[0093] Rules for dividing the image of the imaging area 110 into areas shown in (1) to (3) are defined according to the distance r and the deflection angle δ, which are parameters of the polar coordinates (r, δ). The imaging area dividing unit 10 divides the image of the imaging area 110 into a plurality of areas divided by the polar coordinates, as shown in (1) to (3), in accordance with the preset rules. The plurality of areas divided by the imaging area dividing unit 10 are regions into which the imaging area 110 is divided by the polar coordinates.
[0094] The rule (1) is for dividing the imaging area 110 into areas with a constant interval of distance r and deflection angle δ, which are parameters of the polar coordinates (r, δ), and with a density that corresponds to the distance r and deflection angle δ. The rule (1) makes it possible to divide the areas finer, and although the number of pan-tilt value LUT(x) stored in the control table 20 increases, the robot camera 4 can be controlled with high precision.
[0095] The rule (2) divides the imaging area 110 so that the area near the center is a sparse area and the area other than the center is a dense area. The rule (2) is suitable for the case of using a robot camera 4 installed at a bird's-eye position higher than the subject 120. Since the robot camera 4 views the subject 120 from a high position, there is less change in the pan and tilt values in the area near the center, and this area can be made sparse.
[0096] The rule (3) divides the imaging area 110 so that the area close to the robot camera 4 is a sparse area and the area far from the robot camera 4 is a dense area, and different divisions can be used in front and behind the robot camera 4. Assuming that the size of the subject 120 is approximately the same in the front and behind, the angle of view is wide in the front, so the number of areas can be small, and the angle of view is narrow in the back, so the number of areas needs to be increased and the area narrowed. In other words, in front of the robot camera 4, attitude control is performed with a small number of areas, and in the back, attitude control with a large number of areas and high accuracy is performed, and as a result, control of the robot camera 4 can be suitably realized according to the area in front and the area in back.
[0097] Fig. 13 is a diagram for explaining an example of an imaging environment, a position of a robot camera, and area divisions in the fourth embodiment, and shows an example of the area divisions different from those shown in Fig. 12. The robot camera 4 is installed at a bird's-eye view position higher than the subject 120.
[0098] 13, the image capturing area 110 is divided into areas perpendicular to the optical axis of the robot camera 4. The image capturing area dividing unit 10 divides the image of the image capturing area 110 in a direction perpendicular to the optical axis of the robot camera 4 according to a preset rule.
[0099] In this rule, the robot camera 4 looks down on the subject 120 from a high position, so the movement in the tilt direction is important. Therefore, by dividing the area so that it is perpendicular to the optical axis of the robot camera 4, the movement in the tilt direction can be realized with high accuracy.
[0100] When the robot camera 4 is installed at the same height as the subject 120, it is preferable that the rule be such that the image capturing area 110 is divided into areas parallel to the optical axis of the robot camera 4. In this case, the image capturing area dividing unit 10 divides the image of the image capturing area 110 in the horizontal direction with respect to the optical axis of the robot camera 4 according to a preset rule.
[0101] For example, if the subject 120 is a person, the vertical movements are limited to jumping, bending, stretching, etc., while the horizontal movements are from one end of the stage 115 to the other. The vertical movements can be accommodated by widening the angle of view of the robot camera 4, but if the horizontal movements are also accommodated by widening the angle of view, the subject 120 will become small.
[0102] For this reason, under this rule, the movement in the pan direction is important for the robot camera 4. Therefore, by dividing the area so that it is parallel to the optical axis of the robot camera 4, the movement in the pan direction can be realized with high accuracy.
[0103] Similarly, when the imaging area 110 has a horizontally elongated shape, it is desirable to divide the imaging area 110 into areas parallel to the optical axis of the robot camera 4 as a rule.
[0104] Example 5 Next, a description will be given of Example 5. Example 5 is an example in which a plurality of robot cameras 4 are used in Example 1, the modified example of Example 1, Example 2, the modified example of Example 2, Example 3, and Example 4.
[0105] (Rules for division) When multiple robot cameras 4 are installed in a space so as to surround the subject 120, the imaging area 110 is divided into a predetermined number of areas of a predetermined shape according to a preset rule corresponding to each of the multiple robot cameras 4. Note that the imaging area 110 may be divided into common areas of the same number and shape for the multiple robot cameras 4.
[0106] Specifically, the imaging area dividing unit 10 of the camera control device 3 divides the image of the imaging area 110 in the captured video according to a preset rule corresponding to each of the multiple robot cameras 4. As a result, a predetermined number of divided images are extracted corresponding to each of the multiple robot cameras 4.
[0107] 14A and 14B are diagrams for explaining examples of the position of the robot camera 4 and area divisions in the embodiment 5. In (1) and (2), two robot cameras 4-1 and 4-2 are shown installed at positions where their optical axes intersect at right angles.
[0108] Referring to (1), the rule corresponding to the robot camera 4-1 is to divide the image capturing area 110 in a direction perpendicular to the optical axis of the robot camera 4-1 (see the thick line in the image capturing area 110). The image capturing area dividing unit 10 divides the image of the image capturing area 110 in a direction perpendicular to the optical axis of the robot camera 4-1 according to a preset rule corresponding to the robot camera 4-1.
[0109] The rule corresponding to the robot camera 4-2 is to divide the image capturing area 110 in a direction perpendicular to the optical axis of the robot camera 4-2 (see the thin lines in the image capturing area 110). The image capturing area dividing unit 10 divides the image of the image capturing area 110 in a direction perpendicular to the optical axis of the robot camera 4-2 according to a preset rule corresponding to the robot camera 4-2.
[0110] Referring to (2), the rule corresponding to the robot camera 4-1 is to divide the image capturing area 110 in the horizontal direction with respect to the optical axis of the robot camera 4-1 (see the thick line in the image capturing area 110). The image capturing area dividing unit 10 divides the image of the image capturing area 110 in the horizontal direction with respect to the optical axis of the robot camera 4-1 according to a preset rule corresponding to the robot camera 4-1.
[0111] The rule corresponding to the robot camera 4-2 is to divide the imaging area 110 into areas with a certain interval of distance r and deflection angle δ, which are parameters of the polar coordinates (r, δ), and with a density that varies according to the distance r and deflection angle δ (see the thin lines in the imaging area 110). The imaging area dividing unit 10 divides the image of the imaging area 110 in the polar coordinate (r, δ) direction according to a preset rule corresponding to the robot camera 4-2.
[0112] The imaging area 110 may be divided into common areas of the same number and shape according to a preset rule common to a plurality of robot cameras 4.
[0113] (Control Table 20) Furthermore, when a plurality of robot cameras 4 are installed in a space, a different control table 20 may be used in correspondence with each of the plurality of robot cameras 4.
[0114] In this case, the camera control unit 12 holds multiple control tables 20 (as many as the number of robot cameras 4) corresponding to each of the multiple robot cameras 4. The camera control unit 12 inputs position information of the subject 120 from the subject position detection unit 11 for each of the multiple robot cameras 4, and uses the corresponding control table 20 to determine posture information of the robot camera 4 based on the position information.
[0115] The camera communication unit 13 inputs the attitude information from the camera control unit 12 for each of the multiple robot cameras 4, generates a control signal including the attitude information, and transmits the control signal to the corresponding robot camera 4.
[0116] Incidentally, only one control table 20 corresponding to one of the multiple robot cameras 4 may be used.
[0117] Specifically, the camera control unit 12 holds a control table 20 corresponding to one given robot camera 4. The camera control unit 12 calculates pan / tilt value LUT(x) corresponding to other robot cameras 4 based on the pan / tilt value LUT(x) stored in the control table 20 and the relationship between positions and postures of multiple robot cameras 4. Then, the camera control unit 12 generates a control table 20 corresponding to the other robot cameras 4. The camera control unit 12 generates posture information for each of the multiple robot cameras 4 using the corresponding control table 20.
[0118] In this case, the camera control unit 12 may generate posture information for one given robot camera 4 using the control table 20, and convert the posture information of the one robot camera 4 into posture information of other robot cameras 4. Specifically, the camera control unit 12 generates posture information of one robot camera 4 based on the posture information of the other robot cameras 4 and the relationship between the positions and postures of multiple robot cameras 4.
[0119] 15 is a diagram for explaining a process for generating posture information of two robot cameras 4-1, 4-2 when the two robot cameras 4-1, 4-2 are installed in a space, using one control table 20. Below, a process will be explained in which the camera control unit 12 generates posture information of the robot camera 4-1 using one control table 20, and generates posture information of the robot camera 4-2 from the posture information of the robot camera 4-1 using a predetermined formula.
[0120] For any directional vector, in the coordinate system Σ (a) Each component in the coordinate system Σ (b) The rotation matrix to transform each component in a (b) In addition, in the coordinate system Σ (a) The vectors in are superscripted with (a). The coordinate system fixed to the imaging area 110 is the world coordinate system Σ (W) Here, the first axis X and the second axis Y are set on the floor surface of the imaging area 110, and the third axis Z is set vertically upward. Unless otherwise specified, all coordinate systems are right-handed.
[0121] In addition, the coordinate system fixed to the robot camera 4-1 is the first camera coordinate system Σ (c1) (solid line), the first camera coordinate system Σ when the pan angle φ1 and tilt angle θ1 of the robot camera 4-1 are both 0 (c1) The first reference camera coordinate system Σ (n1) (Dotted line). In the following, the first camera coordinate system Σ (c1) and the first reference camera coordinate system Σ (n1) The two origins are assumed to be the same.
[0122] For example, in the world coordinate system Σ (W) The first reference camera coordinate system Σ (n1) If the orientation of is expressed as XYZ-Euler angles (α1, β1, γ1), the rotation matrix R n1 (w) is expressed by the following formula:
number
[0123] In addition, the pan axis of the robot camera 4-1 is in the first camera coordinate system Σ (c1) The second axis of the first camera coordinate system Σ (c1) If the first axis of the rotation matrix R c1 (n1) is expressed by the following formula:
number
[0124] Furthermore, the coordinate system fixed to the robot camera 4-2 is the second camera coordinate system Σ (c2) (solid line), the second camera coordinate system Σ when the pan value φ2 and tilt value θ2 of the robot camera 4-2 are both 0 (c2) The second reference camera coordinate system Σ (n2) (Dotted line). The pan axis of the robot camera 4-2 is in the second camera coordinate system Σ (c2) The tilt axis is the second axis of the second camera coordinate system Σ (c2) In the following, the second camera coordinate system Σ (c2) and the second reference camera coordinate system Σ (n2) The two origins are assumed to be the same.
[0125] For example, in the world coordinate system Σ (W) The second reference camera coordinate system Σ (n2) If the orientation of is expressed as XYZ-Euler angles (α2, β2, γ2), the rotation matrix R w (n2) is expressed by the following formula:
number
[0126] World coordinate system Σ (W) From the origin O of the robot camera 4-1 (i.e., the first camera coordinate system Σ (c1) The vector leading to the origin of T1 (W) In addition, in the world coordinate system Σ (W) From the origin O of the robot camera 4-2 (i.e., the second camera coordinate system Σ (c2) The vector leading to the origin of T2 (W) Let us assume that.
[0127] The camera control unit 12 uses the control table 20 corresponding to the robot camera 4-1 to calculate a pan value φ, which is the attitude information of the robot camera 4-1. 111 and tilt value θ 111 Assume that the pan value φ 111 and tilt value θ 111 When controlled in the above manner, it is determined which part of the imaging area 110 the robot camera 4-1 is imaging.
[0128] For example, the robot camera 4-1 has a pan value φ 111 and tilt value θ 111 The point P where the optical axis intersects with the floor surface of the imaging area 110 should be found. The unit direction vector of the optical axis of the robot camera 4-1 is Let TIFF0007548728000008.tif11170. For example, the optical axis is in the first camera coordinate system Σ (c1) When it is parallel to the third axis, it is expressed by the following equation. TIFF0007548728000009.tif11170
[0129] The position of the robot camera 4-1 is represented by the following equation:
number
number
[0130] Here, since point P is on the floor of the imaging area 110, the vector The third component of TIFF0007548728000012.tif12170 is zero. In other words, it can be expressed by the following formula.
number
[0131] Therefore, the coefficient λ is determined by the following formula:
number
[0132] Next, we determine the direction in which the robot camera 4-2 should be pointed, that is, the direction of the optical axis. If the position of the robot camera 4-2 is point R2, the optical axis is expressed by the vector It should overlap with TIFF0007548728000015.tif15170, and the following formula holds:
number
[0133] From the above formulas (9), (11), and (12), the line of sight vector is calculated by the following formula: TIFF0007548728000017.tif14170 can be defined.
number
[0134] When the above equation (13) is coordinate-transformed using the above equation (7), it is expressed by the following equation.
number
[0135] The vector thus obtained Each component of TIFF0007548728000020.tif13170 is expressed by the following formula.
number
[0136] At this time, the pan value φ' to which the robot camera 4-2 should be directed is 111 and tilt value θ' 111 is expressed by the following formula:
number
[0137] In this way, the camera control unit 12 generates posture information for a given robot camera 4-1 using the control table 20, and calculates the posture information of the other robot camera 4-2 from the posture information using equation (16).
[0138] Here, instead of the formula (16), a table consisting of the posture information of one robot camera 4-1 and the posture information of another robot camera 4-2 may be used. Specifically, the camera control unit 12 generates posture information for a given robot camera 4-1 using the control table 20, and reads out the posture information of another robot camera 4-2 corresponding to the posture information of one robot camera 4-1 from the table. This makes it possible to generate the posture information of another robot camera 4-2 from the posture information of one robot camera 4-1.
[0139] Also, instead of using the formula (16), a control table 20' corresponding to the other robot camera 4-2 may be set in advance and the control table 20' may be used. Specifically, the camera control unit 12 calculates the pan / tilt value LUT(x) of the other robot camera 4-2 from the pan / tilt value LUT(x) stored in the control table 20 corresponding to a specific robot camera 4-1 in advance using the formula (16). Then, the camera control unit 12 sets the control table 20' corresponding to the other robot camera 4-2 using the pan / tilt value LUT(x) of the other robot camera 4-2. The camera control unit 12 generates posture information for the multiple robot cameras 4-1 and 4-2 using the corresponding control tables 20 and 20'. Note that the same process can be used for three or more robot cameras 4.
[0140] As described above, according to the camera control device 3 of Example 1, the modified example of Example 1, Example 2, the modified example of Example 2, Example 3, Example 4 and Example 5, the imaging area division unit 10 divides the image of the imaging area 110 in the captured video into a predetermined number of area images (divided images) of a predetermined shape in accordance with preset rules.
[0141] The subject position detection unit 11 detects the subject 120 from a plurality of divided images, and generates position information including the position of the subject 120 and the like.
[0142] The camera control unit 12 uses the control table 20 to obtain posture information and the like of the robot camera 4 based on the position information.
[0143] The camera communication unit 13 generates a control signal including posture information and the like, and transmits the control signal to the robot camera 4.
[0144] As a result, the robot camera 4 operates according to the posture information and the like included in the control signal. Therefore, the position of the subject 120 can be detected without using position information obtained from an external source, and the subject 120 can always be kept within the field of view of the robot camera 4.
[0145] Furthermore, since the posture information is generated using the preset control table 20, the amount of calculations required for automatic control of the robot camera 4 can be reduced, enabling high-speed control to be achieved.
[0146] Although the present invention has been described above by taking the first embodiment and the like, the present invention is not limited to the first embodiment and the like, and various modifications are possible without departing from the technical concept thereof.
[0147] A normal computer can be used as the hardware configuration of the camera control device 3 according to the first embodiment of the present invention. The camera control device 3 is configured by a computer including a CPU, a volatile storage medium such as a RAM, a non-volatile storage medium such as a ROM, and an interface.
[0148] The functions of the imaging area dividing unit 10, the subject position detecting unit 11, the camera control unit 12 and the camera communication unit 13 provided in the camera control device 3 are each realized by causing a CPU to execute a program in which these functions are written.
[0149] These programs are stored in the storage medium and are read and executed by the CPU. These programs can also be distributed by storing them in a storage medium such as a magnetic disk (floppy disk, hard disk, etc.), an optical disk (CD-ROM, DVD, etc.), or a semiconductor memory, and can also be transmitted and received via a network. [Explanation of symbols]
[0150] 1. Imaging system 2. Bird's-eye view camera 3 Camera Control Device 4. Robot Camera 10. Imaging area division section 11. Subject position detection section 12 Camera control section 13 Camera communication unit 20 Control Table 110 Imaging area 111,112,113,114 Area 115 Stages 116 Mounting parts 120 Subject
Claims
1. In a camera control device that controls the attitude of a camera, an image capture area division unit that receives an image capture video including a subject within an image capture area captured by an overhead camera, divides the image capture area into a plurality of areas in accordance with a preset rule, and extracts divided images corresponding to each of the plurality of areas from an image of the image capture video; a subject position detection unit that detects one or more areas in which the subject exists based on the divided images corresponding to the plurality of areas extracted by the imaging area division unit, and generates position information including an area pattern indicating the one or more areas; a camera control unit that holds a control table in which parameters indicating an attitude of the camera are stored corresponding to each of all area patterns indicating one area and multiple areas in which the subject may be present, reads out from the control table the parameters corresponding to the area pattern included in the position information generated by the subject position detection unit, and generates attitude information including the parameters; a camera communication unit that transmits a control signal including the attitude information generated by the camera control unit to the camera; A camera control device comprising:
2. In a camera control device that controls the attitude of a camera, an image capture area division unit that receives an image capture video including a subject within an image capture area captured by an overhead camera, divides the image capture area into a plurality of areas in accordance with a preset rule, and extracts divided images corresponding to each of the plurality of areas from an image of the image capture video; a subject position detection unit that detects a silhouette area of the subject for each of the plurality of areas based on the divided images corresponding to each of the plurality of areas extracted by the imaging area division unit, and generates position information including the area and the silhouette area of the area; a camera control unit that holds a control table in which parameters indicating an attitude of the camera are stored corresponding to each of the plurality of areas, reads out from the control table the parameters corresponding to the areas included in the position information generated by the subject position detection unit, calculates a weighted average of a silhouette area of the area with respect to an overall silhouette area of the subject for the parameters, and generates attitude information including the parameters of the weighted average; a camera communication unit that transmits a control signal including the attitude information generated by the camera control unit to the camera; A camera control device comprising:
3. 3. The camera control device according to claim 1, The center of the imaging area is defined as the origin, a line passing through the installation position of the camera from the origin is defined as the starting line, and a point on the plane of the imaging area is expressed as polar coordinates (r, δ) with a distance r from the origin and a deviation angle δ from the starting line, A camera control device characterized in that the multiple areas divided by the imaging area dividing unit are regions into which the imaging area is divided using polar coordinates or horizontally or vertically to the optical axis of the camera.
4. 4. The camera control device according to claim 1, The camera control device controls a plurality of cameras, The camera control unit is storing the control table for each of the plurality of cameras, and generating the posture information for each of the plurality of cameras using the corresponding control table; The camera communication unit includes: a control signal including the attitude information generated by the camera control unit, transmitted to each of the corresponding cameras;
5. 4. The camera control device according to claim 1, The camera control device controls a plurality of cameras, The camera control unit is holding the control table for any one of the plurality of cameras, generating the attitude information for the one camera using the control table, and generating the attitude information for the other camera based on the attitude information and a position and attitude relationship between the one camera and the other camera of the plurality of cameras; The camera communication unit includes: a control signal including the attitude information generated by the camera control unit, transmitted to each of the corresponding cameras;
6. A program for causing a computer to function as the camera control device according to any one of claims 1 to 5.
Citation Information
Patent Citations
Moving object detection and judgement device
JP1995037100A
Automatic photographing camera system
JP1997322051A
Track device and tracking system
JP2015194901A
Image processing device, image processing method, and program
JP2019067419A
AUTOMATIC CAMERA SYSTEM AND SUBJECT RECOGNITION METHOD IN THE SYSTEM
JP3704201B2
