Imaging apparatus and control apparatus

The imaging device addresses subject loss during automatic tracking by limiting zoom based on subject speed, ensuring the subject remains in the frame.

JP2024154327APending Publication Date: 2024-10-30CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023068126
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-30

AI Technical Summary

Technical Problem

Existing imaging devices with automatic tracking technology struggle to prevent loss of a subject during zoom photography due to insufficient control of zoom amount, leading to potential subject loss.

Method used

An imaging device that includes a detection unit to determine subject speed and a control unit to limit zoom based on this speed, ensuring the subject remains within the frame during tracking photography.

Benefits of technology

The device effectively prevents subject loss by controlling zoom based on subject speed, maintaining the subject within the frame during automatic tracking photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154327000001_ABST
    Figure 2024154327000001_ABST
Patent Text Reader

Abstract

To provide an imaging apparatus capable of suppressing a tracking lost of a subject in automatic tracking and photographing.SOLUTION: The imaging apparatus comprises: an imaging unit which acquires image data based on light from an optical system; a rotation driving unit which changes the orientation of the imaging unit; a detection unit which detects information on a subject from the image data; a determination unit which determines the velocity of the subject; and a control unit which on the basis of the information on the subject, controls the rotation driving unit and a zooming unit which changes a field angle of imaging by the imaging unit. The control unit restricts a control amount of the zooming unit based on the velocity of the subject.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an imaging device. [Background technology]

[0002] In recent years, advances in AI (Artificial Intelligence) have led to the proposal of automatic tracking technology that detects a desired subject and controls a camera to track the detected subject.

[0003] Generally, even if the moving speed of the subject is the same, the position of the subject within the field of view moves faster when zooming. In other words, it is known that the more you zoom, the more difficult it becomes to keep a moving subject in the field of view, making it easier to lose the subject.

[0004] Therefore, in auto-tracking photography using auto-tracking technology, users are required to use zoom within a range where the subject can be tracked without losing it.Patent Document 1 discloses a configuration in which, when the remaining battery charge is equal to or less than a threshold, the zoom means is controlled within a second control range that is changed to a wider angle side than the first control range. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2017-85436 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, in the configuration of Patent Document 1, although it is possible to limit the zoom amount according to the remaining battery power, it is not possible to limit the zoom amount so as to make it difficult to lose the subject. For this reason, there is a possibility that the user will increase the zoom amount too much during automatic tracking shooting, causing the subject to be lost.

[0007] An object of the present invention is to provide an imaging device capable of suppressing loss of tracking of a subject during automatic tracking shooting. [Means for solving the problem]

[0008] An imaging device according to one aspect of the present invention has an imaging unit that acquires image data based on light from an optical system, a rotation drive unit that changes the orientation of the imaging unit, a detection unit that detects information about a subject from the image data, a determination unit that determines the speed of the subject, and a control unit that controls the rotation drive unit and a zoom unit that changes the angle of view captured by the imaging unit based on the information about the subject, and the control unit limits the amount of control of the zoom unit based on the speed of the subject. Effect of the Invention

[0009] According to the present invention, it is possible to provide an imaging device capable of suppressing loss of tracking of a subject during automatic tracking shooting. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 illustrates an example of a system configuration of a first embodiment. [Diagram 2] FIG. 2 is a diagram showing the main configuration of a camera and a workstation according to the first embodiment. [Diagram 3] 1 is a flowchart showing a basic operation of a workstation. [Figure 4] 4 is a flowchart showing a basic operation of the camera. [Diagram 5] FIG. 4 is a diagram showing an example of a method for acquiring a pan / tilt control amount. [Figure 6] FIG. 2 is a diagram illustrating an image frame captured by a camera. [Figure 7] FIG. 11 is a diagram illustrating an example of a method for acquiring a zoom control amount. [Figure 8] 5 is a flowchart showing a characteristic operation of the workstation of the first embodiment. [Figure 9]FIG. 11 is a diagram illustrating an example of a method for acquiring a subject speed. [Figure 10] FIG. 4 is an explanatory diagram of a possible movement amount of a subject. [Figure 11] FIG. 11 is a diagram illustrating a configuration of a camera according to a second embodiment. [Figure 12] 10 is a flowchart showing a characteristic operation of the camera of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to refer to the same components, and duplicated descriptions will be omitted. <First embodiment> 1 is a diagram showing an example of a system configuration of this embodiment. This system is composed of a camera 100 that captures an image including a subject 10, and a workstation 200 for controlling the camera 100. The camera 100 and the workstation 200 are connected via a network 300 in a state in which they can communicate with each other. Note that any connection format or communication protocol may be used as long as they are capable of communicating with each other. For example, the devices may be directly connected to each other using a serial communication cable without using a network.

[0012] The workstation 200 can control the operation of the camera 100 by transmitting to the camera 100 a delivery request command that requests the delivery of a video (image) stream and a setting command for setting various parameters. The camera 100 delivers a video stream to the workstation 200 in response to the delivery request command, and stores various parameters in response to the setting command. The workstation 200 also transmits commands to the camera 100 for controlling panning, tilting, and zooming. This makes it possible to control the angle of view captured by the camera 100 (controlling the rotation drive mechanism provided in the imaging unit 104 and the zoom mechanism provided in the optical system).

[0013] The camera 100 and the workstation 200 are connected by a video cable 400, and the video output by the camera 100 is input to the workstation 200. In this embodiment, the camera 100 and the workstation 200 are connected by the video cable 400 to input the video output by the camera 100 to the workstation 200, but the input method is not limited to this configuration. For example, the workstation 200 may obtain the video of the camera 100 via the network 300 by transmitting a distribution request command to the camera 100 to request distribution of a video (image) stream via the network 300. In this embodiment, the workstation 200 and the camera 100 are shown as separate devices, but the present invention is not limited to this. For example, the camera 100 may incorporate the functions of the workstation 200, or the workstation 200 may incorporate the functions of the camera 100.

[0014] FIG. 2 is a diagram showing the main components of the camera 100 and the workstation 200. [Camera 100 Configuration] The camera 100 of this embodiment has a CPU 101, a RAM 102, a ROM 103, an imaging unit 104, a video output unit 105, a communication unit 106, and a PTZ (Panoramac Tilt Zoom) control unit 107. An internal bus 108 connects the above components. Each component is driven by power obtained by rectifying AC power supplied from an external source to a predetermined voltage, or by power supplied from a built-in battery (not shown).

[0015] The CPU 101 is a system control unit that controls the entire system of the camera 100. The CPU 101 loads a program recorded in a ROM 103 into a RAM 102 and executes it to control each component and perform calculation processing, and executes the flowcharts described below.

[0016] The RAM 102 serves as a working memory and temporarily stores control programs and data.

[0017] ROM 103 is a non-volatile storage device such as a flash memory, HDD, SSD, or SD card, and is used as a permanent storage area for the OS, various programs, and various data, as well as a short-term storage area for various data.

[0018] The imaging unit 104 receives light that has been focused through a lens (optical system) at an imaging element, converts the received light into electric charges, and acquires a moving image (image data). The lens is capable of optical zooming by being provided with a zoom mechanism having a zoom lens and a mechanism for driving the zoom lens. This lens may be an interchangeable lens that is detachable from the camera 100. For example, a CMOS (Complementary Metal Oxide Semiconductor) image sensor may be used as the imaging element. Alternatively, a CCD (Charge Coupled Device) image sensor may be used as the imaging element.

[0019] The video output unit 105 is an interface for externally outputting the video captured by the imaging unit 104. The video output unit 105 is configured by, for example, a serial digital interface (SDI) or a high-definition multimedia interface (HDMI) (registered trademark).

[0020] The communication unit 106 performs network communication with external devices. In this embodiment, the communication unit 106 performs communication with a workstation 200.

[0021] The PTZ control unit 107 has a zoom driving unit (not shown) for changing the imaging angle of view, a panning driving unit (not shown) for changing the imaging direction, and a tilting driving unit (not shown). [Workstation 200 Configuration] The workstation 200 of this embodiment includes a CPU (control unit) 201, a RAM 202, a ROM 203, a communication unit 204, a video input unit 205, an inference unit (detection unit) 206, and a user input I / F 207. An internal bus 208 connects the above components.

[0022] The CPU 201 is a system control unit that controls the entire system of the workstation 200. The CPU 201 loads a program recorded in a ROM 203 into a RAM 202 and executes it to control each component and perform calculation processing, and executes the flowcharts described below.

[0023] The RAM 202 serves as a working memory and temporarily stores control programs and data.

[0024] ROM203 is a non-volatile storage device such as a flash memory, HDD, SSD, or SD card, and is used as a permanent storage area for the OS, various programs, and various data, as well as a short-term storage area for various data.

[0025] The communication unit 204 performs network communication with external devices. In this embodiment, the communication unit 204 performs communication with the camera 100.

[0026] The video input unit 205 is an interface for receiving video from the camera 100, and is configured with SDI or HDMI.

[0027] The inference unit 206 estimates (detects) information related to the subject, such as the position and presence or absence of a predetermined object, from the video received from the video input unit 205 or the like. The inference unit 206 is configured with a calculation device specialized for image processing and inference processing, such as a so-called GPU (Graphics Processing Unit). Note that, while a GPU is generally effective for use in inference processing, equivalent functions may be realized by a reconfigurable logic circuit such as an FPGA (Field-Programmable Gate Array). Furthermore, the processing of the inference unit 206 may be performed by the CPU 201. In other words, the CPU 201 may function as a detection unit that detects information related to the subject.

[0028] The user input I / F 207 receives instructions from a user and transmits instruction signals to the CPU 201. As a specific example, the user input I / F 207 is an interface for connecting to input devices such as a mouse, a keyboard, and a touch panel, and is configured by a USB (Universal Serial Bus) or the like. <Explanation of basic operation of each device> The following describes a basic operation of this system, in which the workstation 200 controls the camera 100 to track a detected subject. [Basic operation of Workstation 200] Fig. 3 is a flowchart showing a basic operation of the workstation 200. The flow of Fig. 3 is executed when the CPU 201 receives, via the communication unit 204 or the user input I / F 207, a command to execute tracking.

[0029] In step S301, CPU 201 determines whether or not a command indicating the end of this flow has been received via communication unit 204 or user input I / F 207. If CPU 201 determines that a command indicating the end of this flow has been received, it ends this flow, and if it determines that a command indicating the end of this flow has not been received, it executes the process of step S302.

[0030] In step S 302 , the CPU 201 receives an image captured by the camera 100 via the video input unit 205 , and stores it in the RAM 202 .

[0031] In step S303, the CPU 201 reads the image from the RAM 202, inputs it to the inference unit 206, acquires subject information such as the type of subject inferred by the inference unit 206, position information of the subject on the image, and size of the subject, and stores it in the RAM 202. The inference unit 206 has a trained model created using a machine learning method such as deep learning. The inference unit 206 receives an image as input data, and outputs the type of subject such as a person, position information of the subject, size information of the subject, and a score indicating the likelihood as output data. In this embodiment, the position information will be described as coordinates indicating the center of gravity of a target object in the image. Also, the size information will be described as information indicating the height and width of a frame surrounding a detected subject in the image.

[0032] In step S304, CPU 201 transmits a command to inquire about current control information to camera 100 via communication unit 204, and stores the response (control information of camera 100) in RAM 202. The control information includes information related to driving such as maximum, minimum and current angles for panning and tilting, and maximum, minimum and current angles for zooming, as well as information related to images such as image resolution and format. In this embodiment, the information given as examples is mainly used, but the obtainable control information is not limited to this.

[0033] In step S305, CPU 101 acquires a control amount. Specifically, CPU 201 acquires the direction and control amount of each of pan and tilt so as to track the subject, using the position information stored in RAM 202 in step S303 and the control information of camera 100 acquired in step S304. CPU 201 also acquires the control amount of zoom so that the size of the subject becomes constant, using the size information stored in RAM 202 in step S303 and the control information of camera 100 acquired in step S304. Then, CPU 201 converts the acquired control amount into a control command in accordance with a protocol previously determined as a method for controlling camera 100, and writes it out to RAM 202. In this embodiment, the size of the subject is the proportion of the subject in an image acquired using the size information of the subject. In this embodiment, CPU 201 acquires the control amount of zoom so that the size of the subject becomes constant, but the present invention is not limited thereto. For example, a zoom control amount input via user input I / F 207 or a zoom control amount acquired via communication unit 204 may be stored in RAM 202 instead of a zoom control amount acquired by CPU 201. The pan / tilt control amount is an amount that specifies the rotation speed when a pan drive unit (not shown) and a tilt drive unit (not shown) of camera 100 are rotated in the horizontal direction and the vertical direction, respectively. The zoom control amount is an amount that specifies the movement speed when a zoom drive unit (not shown) of camera 100 is moved in the wide-angle direction and the telephoto direction. A method for acquiring the control amount will be described later.

[0034] In step S306, the CPU 201 transmits the control command written to the RAM 202 in step S305 to the camera 100 via the communication unit 204. [Basic operation of Camera 100] Fig. 4 is a flowchart showing the basic operation of the camera 100. The flow of Fig. 4 is executed when the CPU 101 detects that a control command has arrived at the communication unit .

[0035] In step S 401 , the CPU 101 reads the control command received via the communication unit 106 , and writes it to the RAM 102 .

[0036] In step S402, the CPU 101 reads out values ​​of the control direction and the control amount for each of the pan direction, tilt direction, and zoom direction from the control command written to the RAM 102 in step S401.

[0037] In step S403, the CPU 101 derives drive parameters for panning, tilting, and zooming in a desired direction at a desired speed based on the values ​​read out in step S402. The drive parameters specifically include parameters for controlling motors (not shown) for the pan and tilt directions included in the PTZ control unit 107, and parameters for controlling a zoom drive unit. Note that these parameters may be converted by referring to a conversion table previously stored in the RAM 102 based on the control amount included in the received control command.

[0038] In step S404, the CPU 101 controls the PTZ control unit 107 based on the drive parameters derived in step S403, thereby enabling the camera 100 to perform pan / tilt / zoom operations. [How to obtain the pan / tilt control amount] The procedure for acquiring the pan / tilt control amount in step S305 will be described taking a case where a pan operation is performed as an example. Fig. 5 is a diagram showing an example of a method for acquiring the pan / tilt control amount.

[0039] In automatic tracking shooting, the CPU 201 controls the PTZ control unit 107 so that a predetermined target position in an image is always brought closer to the subject position. To perform this control, the CPU 201 acquires a control amount of the PTZ control unit 107 required to bring the target position closer to the subject position. For example, when the target position is set to the center of the screen, the CPU 201 acquires a control amount of the PTZ control unit 107 required to bring the position of the center of the screen closer to the subject position. The control amount can be acquired by multiplying the distance from the target position to the subject position by a proportionality coefficient K, as shown in FIG. 5.

[0040] Target position X t , set the subject position to X h , the proportional coefficient (control sensitivity) is K, the control amount Y p is expressed by the following equation (1).

[0041] Y p =(X h -X t )×K (1) Control amount Y p is 501 in Figure 5 a In other words, the control amount Yp is determined based on the relationship between the target position X t and subject position X h The larger the difference between the target position and the target position, the larger the target position. The smaller the difference between the target position and the target position, the smaller the target position. t and subject position X h If you want to move the pan faster while keeping the difference between them constant, you can increase the proportionality coefficient K. In other words, if you set a proportionality coefficient K that is larger than the proportionality coefficient K, large By setting the control amount Y p Conversely, if you want to move the pan more slowly, you can set a proportional coefficient K smaller than the proportional coefficient K. small 5. Based on the relationship in 501b of FIG. 5, the control amount Y p In this embodiment, the control amount Y p Although the method of increasing or decreasing the proportional coefficient has been described as a method of acquiring the control amount Y p may be set to 0. Furthermore, the proportionality coefficient K may be a value acquired by the CPU 201 via the user input I / F 207, or a value previously stored in the RAM 202 may be read out, and the acquisition method is not limited to this.

[0042] By controlling based on a similar concept, the amount of tilt control can also be obtained. [How to get the zoom control amount] The procedure for acquiring the zoom control amount in step S305 will be described. In automatic tracking shooting, the CPU 201 controls the PTZ control unit 107 so that the subject is always imaged at a reference size. The reference size may be a size input via the user input I / F 207, may be a size stored in the RAM 202 in step S303 when automatic tracking shooting is performed, or may be a value previously held in the RAM 202. The acquisition method is not limited to these methods.

[0043] To implement this control, the CPU 201 acquires drive parameters for driving the zoom drive unit controlled by the PTZ control unit 107 .

[0044] Fig. 6 is a diagram showing a schematic diagram of an image frame captured by the camera 100 at a predetermined time and stored in the RAM 202 by the CPU 201 in step S302. Fig. 7 is a diagram showing an example of a method for acquiring a zoom control amount.

[0045] In this embodiment, the width of the image 600 input to the video input unit 205 is w a pixels, height h a In addition, in the size information of the object stored in the RAM 202 in step S303, the width of the frame 602 surrounding the detected object 601 in the image is w b pixels, height h b Let us assume that.

[0046] In this case, the size of the subject is S p is expressed by the following equation (2).

[0047] S P =(w b ×h b ) / {(w a ×h a )×100} (2) Set the size of the reference object to S. k Then, the zoom control amount Z p is the size of the reference object S as shown in FIG. k and the size of the subject Sp The zoom control amount Z can be obtained by multiplying the difference between p is expressed by the following equation (3).

[0048] Z p =(S k -S p )×T (3) At this time, the control amount Z p is determined based on the relationship 701a in FIG. p is the size of the reference object S k and the size of the subject S p The larger the difference between the two, the larger the pixel size becomes, and the smaller the difference becomes, and the pixel size becomes 0 when the difference becomes 0. In this case, the size of the reference object S k and the size of the subject S p If you want to move the zoom faster while keeping the difference between them constant, you can increase the proportionality coefficient T. In other words, if you set a proportionality coefficient T that is larger than the proportionality coefficient T, large By setting the control amount Z p Conversely, if you want to zoom more slowly, you can determine a proportionality coefficient T smaller than T. small , and the control variable Z p The proportional coefficient T may be a value acquired by the CPU 201 via the user input I / F 207, or a value previously stored in the RAM 202 may be read out, and the acquisition method is not limited to this. p When the control amount Z is a positive value, it indicates that the zoom control is performed in the telephoto direction, and when it is a negative value, it indicates that the zoom control is performed in the wide-angle direction. p The control direction can be determined from the value of

[0049] In this manner, the camera 100 can be controlled so that the size of the subject detected by the workstation 200 is always constant. <Explanation of zoom control restriction operation> In this embodiment, when automatically tracking and photographing a subject, the workstation 200 operates to limit the zoom control (limit the drive of the zoom mechanism) according to the speed of the subject. This operation will be described. FIG. 8 is a flowchart showing the operation of the workstation 200 of this embodiment. The flow of FIG. 8 is realized by the CPU 201 reading out a program stored in the ROM 203, expanding it in the RAM 202, and executing control and arithmetic processing of each part. Note that the processing shown in FIG. 8 is merely an example, and the order is not limited.

[0050] The processes in steps S801 to S804 are similar to those in steps S301 to S304 in FIG. 3, respectively, and therefore will not be described.

[0051] In step S805, CPU 201 reads the position information of the object inferred by inference unit 206 in step S803 from RAM 202, and obtains the object speed using the position information. That is, CPU 201 functions as a determination unit that determines the speed of the object. CPU 201 then stores the obtained object speed in RAM 202. [Subject speed calculation method] A method for obtaining the object speed will be described below. Fig. 9 is a diagram showing an example of a method for obtaining the object speed.

[0052] 9A is a diagram showing an example of an image frame f1 captured by the camera 100 at time t1 and stored in the RAM 202 by the CPU 201 in step S802. In this embodiment, the horizontal resolution of the frame f1 is w a Pixels, vertical resolution is h a pixels, and the frame rate frequency is F hzAssume that the subject 900(a) present in frame f1 is a subject to be photographed using automatic tracking, and the position P1 output from the inference unit 206 in step S803 in frame f1 is the position information of the subject 900(a). As described above, in this embodiment, the position information of the subject output from the inference unit 206 is coordinates indicating the center of gravity of the target object in the image. In this case, the upper left vertex of frame f1 is the origin (0,0), and the coordinates of the lower right vertex are (w a -1,h a Let the coordinate system be (x1, y1) and the position P1 be (x1, y1).

[0053] FIG. 9(b) is a diagram showing an image frame f2 captured by the camera 100 at time t2, stored in the RAM 202 by the CPU 201 in step S802. In this embodiment, the resolution and coordinate system of the frame f2 are the same as those of the frame f1, and the frame f2 is taken at a later time than the frame f1. The subject 900(b) present in the frame f2 is the same object as the subject present in the frame f1, and the position P2 of the subject output from the inference unit 206 in step S803 in the frame f2 is the position information of the subject 900(b). In this embodiment, the position P2 is (x2, y2), where x2 is greater than x1 and y2 is less than y1. In other words, the subject is moving from the position P1 to the upper right in the frame.

[0054] FIG. 9(c) shows the horizontal movement amount x when the subject moves from position P1 in frame f1 to position P2 in frame f2. t and the vertical movement y t FIG. t and the movement amount y t are expressed by the following equations (4) and (5), respectively.

[0055] x t =x2-x1(4) y t =y2-y1(5) Based on this, the horizontal velocity of the subject x speedand vertical velocity y speed is expressed by the following equations (6) and (7).

[0056] x speed =x t / [1 / {F hz ×(f2-f1)}] (6) y speed =y t / [1 / {F hz ×(f2-f1)}] (7) In this way, the object speed of the object detected by the workstation 200 can be obtained. The moving direction of the object is x speed and y speed For example, x speed If y is positive, you know that you are moving to the right of the frame, and if it is negative, you know that you are moving to the left of the frame. speed The moving direction can be known by the same concept. In the present embodiment, the method of using the result of obtaining the velocity of the subject from the change in the position information of the center of gravity of the subject between two frames has been described, but the present invention is not limited to this. For example, speed and y speed The average value of the speed may be used, or the minimum or maximum value of the past frames may be used, or a value that limits the speed may be used if the speed is greater than or less than a speed specified by the user. Also, the speed of the subject may be obtained by calculating a motion vector between frames and using the motion vector of the detected person area.

[0057] The process of step S806 is similar to the process of step S305 in FIG. 3, and therefore a description thereof will be omitted.

[0058] In step S807, CPU 201 first reads from RAM 202 the subject position information inferred by inference unit 206 in step S803, the subject speed acquired in step S805, and the zoom control command stored in step S806. Next, CPU 201 uses the read information to determine whether or not to limit the amount of zoom control. If CPU 201 determines that the amount of zoom control is to be limited, it executes processing in step S809, and if it does not determine that the amount of zoom control is to be limited, it executes processing in step S808. [Zoom control amount limit judgment] The following describes the determination of the restriction on the zoom control amount. Fig. 10 is an explanatory diagram of the possible movement amount of the subject, and shows a schematic representation of the movement of the subject when it moves from position P1 in frame f1 to position P2 in frame f2. Fig. 10 shows the exact same state as Fig. 9(c), and the coordinate system and the like are also the same. Therefore, the values ​​explained in Fig. 9 are used in the explanation.

[0059] First, the CPU 201 reads out the position P2 of the subject in frame f2 from the RAM 202, and calculates the horizontal and vertical movement amounts x r ,y r are acquired and stored in the RAM 202. r ,y r is a value determined according to the position of the subject, and corresponds to the distance from position P2 to the edge of the frame. r ,y r are expressed by the following equations (8) and (9), respectively.

[0060] x r =(w a -1)-x2(8) y r =y2(9) As explained in step S805, formulas (8) and (9) can be expressed when the subject is moving from position P1 in the frame in the upper right direction, but this does not apply when the subject is moving in a different direction. For example, when x2 is smaller than x1 and y2 is larger than y1, that is, when the subject is moving from position P1 in the frame in the lower left direction, the possible movement amount x r ,y r are expressed by the following equations (10) and (11), respectively.

[0061] x r =x2(10) y r =(h a -1)-y2(11) In this way, the possible movement amount x depends on the direction of the subject's movement. r ,y r In this embodiment, the amount of movement x from the object movement direction may differ. r ,y r However, the present invention is not limited to this. For example, the distance from the subject position P2 to the closest frame end is obtained, and the horizontal and vertical distances to the frame end are respectively calculated as the movable amount x r ,y r It is also possible to use the following.

[0062] Next, the CPU 201 calculates the horizontal velocity x of the object acquired in step S805. speed and vertical velocity y speed from RAM 202, and based on that, an estimated movement amount of the subject moving during the specified period is obtained and stored in RAM 202. In this embodiment, the specified period indicates a margin of time until the subject is lost. The specified period may be a value stored in advance in RAM 202 by CPU 201, or a value set by the user via user input I / F 207 may be read from RAM 202 by CPU 201.

[0063] When the specified period is d, the estimated horizontal movement of the subject is x future and the estimated vertical movement of the subject y futureare expressed by the following equations (12) and (13), respectively.

[0064] x future =x speed ×d (12) y future =y speed ×d (13) Finally, the CPU 201 calculates the zoom control command stored in step S806 and the obtained movable amount x r ,y r and the estimated movement of the subject x future ,y future The CPU 201 reads out the horizontal movement allowable amount x of the object. r Estimated horizontal movement x future If y is large, it is assumed that the subject will go out of the frame after the specified period, and it is determined that the amount of zoom control should be limited. r Estimated vertical movement y future Similarly, when the zoom control command is large and the zoom is controlled in the telephoto direction, it is determined that the zoom control amount should be limited. In this embodiment, the estimated movement amount of the subject used for limiting the zoom control amount is calculated from the speed of the subject and the designated period, and it is determined whether the subject will be out of the frame after the designated period, and whether the zoom should be limited is determined. However, the present invention is not limited to this. For example, in step S803, the time from when the CPU 201 inputs an image to the inference unit 206 until the inference unit 206 detects the subject and stores the subject information in the RAM 202 (the time from the start to the end of the detection process by the inference unit 206) is set as the processing latency. Then, the value obtained by adding the processing latency to the designated period d may be set as a new designated period d1. When the time when the CPU 201 inputs the image to the inference unit 206 is time t3 and the time when the inference unit 206 stores the inference result in the RAM 202 is time t4, the processing latency L1 is expressed by the following formula (14).

[0065] L1 = t4 - t3 (14) Here, the processing latency is described by taking the processing of step S803 as an example, but the present invention is not limited to this. The time required for the processing of each step from step S801 to step S808 may be set as the processing latency, or the total of the processing times of each step from step S801 to step S808 may be set as the processing latency. Also, the latency from obtaining the control amount of pan / tilt for automatically tracking the subject to actually performing pan / tilt may be set as the processing latency. By doing this, it is possible to obtain an estimated movement amount based on the magnitude of the processing latency. Also, after the CPU 201 transmits a control command to the communication unit 106 via the communication unit 204, the control latency from when the PTZ control unit 107 performs zoom control (the time from when the CPU 201 starts controlling the zoom mechanism to when the zoom mechanism actually drives) may be taken into consideration. For example, a value obtained by adding the control latency to the designated period d may be set as a new designated period d2.

[0066] The control latency L2 is expressed by the following equation (15).

[0067] L2 = t5 - t6 (15) Here, t5 is the time when CPU 201 transmits a control command to communication unit 106 via communication unit 204, and t6 is the time when the pan / tilt / zoom information of camera 100 acquired in step S804 changes based on the transmitted control command.

[0068] Alternatively, the CPU 201 may read out from the RAM 202 the set latency set by the user via the user input I / F 207, and may take the set latency into consideration and set a new specified period d3 by adding the set latency to the specified period d. By doing this, it is possible to obtain an estimated movement amount based on the magnitude of the set latency.

[0069] The designated period may be set in consideration of the communication latency (delay time that occurs during communication) from the workstation 200 to the camera 100. For example, the communication latency may be half the time difference between the time when the workstation 200 transmits a command to the camera 100 and the time when the workstation 200 receives a response to the command. The workstation 200 and the camera 100 may have synchronized clocks, and the communication latency may be calculated from the difference between the time when the workstation 200 transmits a command to the camera 100 and the time when the camera 100 receives the command. Then, the value obtained by adding the communication latency to the designated period d may be set as a new designated period d4. By doing this, it is possible to obtain an estimated movement amount based on the magnitude of the communication latency.

[0070] Moreover, these latencies may be combined and used to obtain the designated period. In the case of driving conditions that are prone to loss, a correction may be applied so that the designated period d is longer. For example, when the proportionality coefficient K described in step S806 is small, the tracking pan speed is small and the subject can be tracked smoothly, but the possibility of loss increases, so a correction may be applied so that the designated period d is longer. This makes it possible to reduce the possibility of loss even when the proportionality coefficient K is small.

[0071] In step S808, the CPU 201 transmits the control command written to the RAM 202 in step S806 to the camera 100 via the communication unit 204.

[0072] In step S809, the CPU 201 reads out only the pan / tilt control command from the RAM 202 among the control commands written in the RAM 202 in step S806, and transmits it to the camera 100 via the communication unit 204. As a result, the zoom is not driven (the zoom magnification is not changed). In this embodiment, the zoom control command is not transmitted to the camera 100, but the present invention is not limited to this. For example, the CPU 201 may read out a zoom control command set in advance via the user input I / F 207 from the RAM 202, and transmit it to the camera 100 via the communication unit 204. As a result, zooming based on a user operation is performed. In addition, a zoom control command with a zoom control amount of 0 may be transmitted to the camera 100. Any method can be applied to the present invention as long as it can reduce the zoom control amount in the telephoto direction from the zoom control command stored in the RAM 202 in step S806. In this application, not driving the zoom mechanism without transmitting a zoom control command is also referred to as limiting the zoom control amount.

[0073] Also, when the CPU 201 reads out the image stored in step S802 from the RAM 202 and plays it back, it may perform electronic zooming and store the result in the RAM 202 as an image received from the video input unit 205 or the like, to make it look like zooming has been performed. Electronic zooming is a technique for enlarging an image by performing image processing on a part of the image, making it look like optical zooming has been performed. The image processing may be performed by the CPU 201, or may be performed by an image processing unit 209 separately provided in the workstation 200. When electronic zooming is performed in real time, it is desirable to limit the amount of zoom control based on the speed of the subject, as with optical zooming. On the other hand, when playing back and processing the image later, the zoom magnification can be increased to a level where the subject does not go outside the shooting range. In this case, the magnification ratio of electronic zooming may be controlled to be the same as or close to the magnification ratio of zooming without any restriction.

[0074] Doing so has the effect of making the user not aware of the zoom restriction. In this embodiment, the moving speed of the subject on the frame is acquired to determine whether to limit the zoom control amount, but the present invention is not limited to this. For example, the speed of the subject may be acquired using a distance sensor or the like. Specifically, first, the CPU 201 reads out the pan / tilt direction of the camera 100 stored in the RAM 202 in step S804. Next, the three-dimensional position of the subject is obtained using the read value and the distance to the subject obtained by the distance sensor, and the subject speed is obtained from the moving distance and the elapsed time of the movement, thereby determining whether to limit the zoom control amount. <Second embodiment> In the first embodiment, a system was described in which the workstation 200 estimates the subject position from video data and controls the camera 100 based on the result. In contrast, in the present embodiment, the camera 100 has a similar estimation function, thereby configuring a system that does not include a workstation.

[0075] The system configuration of this embodiment can be expressed by removing the part enclosed by the dotted line in Fig. 1 from the system configuration in Fig. 1. In other words, this system is composed of a camera 100 that captures an image including a subject 10.

[0076] FIG. 11 is a diagram showing the configuration of a camera 100 that constitutes this system.

[0077] Camera 100 of this embodiment has an inference unit (detection unit) 109 and a user input I / F 110 in addition to the components of camera 100 of the first embodiment. Each component is driven by power obtained by rectifying AC power supplied from an external source to a predetermined voltage, or by power supplied from a built-in battery (not shown).

[0078] The inference unit 109 estimates the position and presence or absence of a predetermined object from the video captured by the imaging unit 104. The inference unit 109 is configured with a calculation device specialized for image processing and inference processing, such as a so-called GPU (Graphics Processing Unit). Note that, while a GPU is generally effective for use in inference processing, a reconfigurable logic circuit such as an FPGA (Field-Programmable Gate Array) may achieve the same function. Furthermore, the processing of the inference unit 109 may be performed by the CPU 101. In other words, the CPU 101 may function as a detection unit that detects information related to the subject.

[0079] The user input I / F 110 accepts instructions from a user and transmits instruction signals to the CPU 101. As a specific example, the user input I / F 110 is an interface for connecting to input devices such as a mouse, a keyboard, and a touch panel, and is configured by a USB (Universal Serial Bus) or the like. <Description of Characteristic Operation of the Second Embodiment> As a characteristic operation of the present invention, an operation in which the camera 100 limits zoom control according to the speed of a subject when automatically tracking and photographing the subject will be described. Fig. 12 is a flowchart showing a characteristic operation of the camera 100 of this embodiment. The flow of Fig. 12 is realized by the CPU 101 reading out a program stored in the ROM 103, expanding it in the RAM 102, and executing control and calculation processing of each part. Note that the processing shown in Fig. 12 is merely an example, and the order is not limited.

[0080] In step S1201, CPU 101 determines whether or not a command indicating the end of this flow has been received via communication unit 106 or user input I / F 110. If CPU 101 determines that a command indicating the end of this flow has been received, it ends this flow, and if it determines that a command indicating the end of this flow has not been received, it executes the process of step S1202.

[0081] In step S1202, the CPU 101 reads an image from the RAM 102, inputs it to the inference unit 109, acquires subject information such as the type of subject inferred by the inference unit 109, position information of the subject on the image, and size of the subject, and stores it in the RAM 102. The inference unit 109 has a trained model created using a machine learning method such as deep learning. The inference unit 109 receives an image as input data, and outputs the type of subject such as a person, position information of the subject, size information of the subject, and a score indicating the likelihood as output data. In this embodiment, the position information will be described as coordinates indicating the center of gravity of a target object in the image. Also, the size information will be described as information indicating the height and width of a frame surrounding a detected subject in the image.

[0082] In step S1203, CPU 101 reads from RAM 102 the position information of the subject inferred by inference unit 109 in step S1202, and acquires the subject speed using the position information. That is, CPU 101 functions as a determination unit that determines the speed of the subject. CPU 101 then stores the acquired subject speed in RAM 102. The method of acquiring the subject speed is the same as the method described in the first embodiment.

[0083] In step S1204, the CPU 101 acquires a control amount. Specifically, the CPU 101 acquires the direction and control amount of each of pan and tilt so as to track the subject, using the position information and size information of the subject stored in the RAM 102 in step S1202 and the control information of the camera 100 stored in the RAM 102. The CPU 101 also acquires a zoom control amount that keeps the size of the subject constant. The CPU 101 then converts the acquired control amount into a control command in accordance with a protocol that is predefined as a method for controlling the camera 100, and writes the command to the RAM 102. In this embodiment, the size of the subject is the ratio of the subject to an image acquired using the size information of the subject. In this embodiment, the CPU 101 acquires a zoom control amount that keeps the size of the subject constant, but the present invention is not limited to this. For example, the zoom control amount input via the user input I / F 110 or the zoom control amount acquired via the communication unit 106 may be stored in the RAM 102 instead of the zoom control amount acquired by the CPU 101. The pan / tilt control amount is an amount that specifies the rotation speed when a pan drive unit (not shown) and a tilt drive unit (not shown) of the camera 100 are rotated in the horizontal and vertical directions, respectively. The zoom control amount is an amount that specifies the movement speed when a zoom drive unit (not shown) of the camera 100 is moved in the wide-angle direction and the telephoto direction. The procedure for acquiring the control amount is the same as the procedure described in the first embodiment.

[0084] In step S1205, CPU 101 first reads from RAM 102 the subject position information inferred by inference unit 109 in step S1202, the subject speed acquired in step S1203, and the zoom control command stored in step S1204. Next, CPU 101 uses the read information to determine whether or not to limit the amount of zoom control. If CPU 101 determines that the amount of zoom control is to be limited, it executes processing in step S1206, and if it does not determine that the amount of zoom control is to be limited, it executes processing in step S1207. Note that the specific method of determining whether to limit the amount of zoom control is the same as the method described in the first embodiment.

[0085] In step S1206, the CPU 101 reads the control command written to the RAM 102 in step S1204, and derives drive parameters for each of the pan direction, tilt direction, and zoom direction based on the control command.

[0086] In step S1207, the CPU 101 reads out only the pan / tilt control command from among the control commands written to the RAM 102 in step S1204, and derives drive parameters for the pan direction and tilt direction based on the control command. In this embodiment, the zoom control command is not read out from the RAM 102, but the present invention is not limited to this. For example, the CPU 101 may read out a zoom control command set in advance via the user input I / F 110 from the RAM 102, and derive drive parameters for the zoom direction based on the control command. Also, instead of the zoom control amount written out to the RAM 102 in step S1204, a zoom control command that sets the zoom control amount to 0 may be used to derive drive parameters for the zoom direction. Any method can be applied to the present invention as long as it can reduce the zoom control amount in the telephoto direction.

[0087] Alternatively, the CPU 101 may read out from the RAM 102 the image captured by the imaging unit 104, perform electronic zoom, and store the result in the RAM 102 as the image captured by the imaging unit 104, thereby making it appear as if a pseudo zoom has been performed. Electronic zoom is a technique that enlarges an image by applying image processing to a part of the image, thereby making it appear as if an optical zoom has been performed. The image processing may be performed by the CPU 101, or may be performed by a separately provided image processing unit 111. In this case, the magnification ratio of the electronic zoom may be controlled to be the same as or close to the magnification ratio of the zoom when no restriction is imposed.

[0088] Doing so has the effect of making the user not aware of the zoom restriction. In this embodiment, the moving speed of the subject on the frame is acquired to determine whether to limit the zoom control amount, but the present invention is not limited to this. For example, the speed of the subject may be acquired using a distance sensor or the like. Specifically, first, the CPU 101 reads out the pan / tilt direction of the camera 100 stored in the RAM 102. Next, the read value and the distance to the subject obtained by the distance sensor may be used to determine the three-dimensional position of the subject, and the subject speed may be obtained from the moving distance and the elapsed time of the movement, thereby determining whether to limit the zoom control amount. Specifically, the CPU 101 reads out the pan / tilt direction of the camera 100 stored in the RAM 102. Then, the read value and the distance to the subject obtained by the distance sensor may be used to determine the three-dimensional position of the subject, and the subject speed may be obtained from the moving distance and the elapsed time of the movement, thereby determining whether to limit the zoom control amount.

[0089] In step S1208, the CPU 101 controls the PTZ control unit 107 based on the drive parameters derived in step S1206 or step S1207, thereby enabling the camera 100 to perform pan / tilt / zoom operations. <Other embodiments> The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0090] The disclosure of this embodiment includes the following configuration.

[0091] (Configuration 1) an imaging unit that acquires image data based on light from an optical system; A rotation drive unit that changes the orientation of the imaging unit; a detection unit that detects information regarding a subject from the image data; A determination unit that determines a speed of the subject; a control unit that controls the rotation drive unit and a zoom unit that changes an angle of view captured by the imaging unit based on information about the subject, The control unit limits a control amount of the zoom unit based on a speed of the subject. (Configuration 2) The imaging device described in configuration 1, characterized in that the control unit limits the amount of control of the zoom unit so that when the subject's speed is a first speed, the amount of control of the zoom in the telephoto direction is smaller than when the subject's speed is a second speed that is slower than the first speed. (Configuration 3) 2. The imaging device according to configuration 1, wherein the determination section determines a speed of the subject using a motion vector of the subject in the image data. (Configuration 4) 2. The imaging device according to configuration 1, wherein the determination section determines the speed of the subject using a distance to the subject. (Configuration 5) 2. The imaging device according to configuration 1, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a time period from start to end of a detection process by the detection unit. (Configuration 6) 2. The imaging device according to configuration 1, wherein the control unit limits a control amount of the zoom unit based on a value indicating a speed of the subject and a control sensitivity. (Configuration 7) 2. The imaging device according to configuration 1, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a position of the subject in the image data. (Configuration 8) The imaging device described in configuration 1, characterized in that the control unit obtains a control amount of the zoom unit based on a size of the subject indicated by information about the subject, and limits the control amount of the zoom unit based on the control amount based on the size of the subject and the speed of the subject. (Configuration 9) The imaging device described in configuration 1, characterized in that the control unit limits the amount of control of the zoom unit based on the speed of the subject and the time from when control of the rotation drive unit starts to when the rotation drive mechanism actually starts to drive. (Configuration 10) 2. The imaging device according to configuration 1, wherein the zoom section performs optical zoom by driving a zoom lens included in the optical system. (Configuration 11) The imaging device described in configuration 10, wherein the control unit limits the drive of the zoom unit based on the speed of the subject and the time from when the control unit starts to control the zoom unit to when the zoom unit actually drives. (Configuration 12) The imaging device described in configuration 11, characterized in that the control unit limits the drive of the zoom unit based on the speed of the subject, the time from when the control unit starts to control the zoom unit to when the zoom unit actually drives, and a time based on a time set externally. (Configuration 13) the zoom unit has a first zoom unit that performs optical zoom and a second zoom unit that performs electronic zoom, 2. The imaging device according to configuration 1, wherein when the driving of the first zoom unit is restricted, electronic zoom is performed on the image data. (Configuration 14) A control device for controlling an imaging device including an imaging unit that acquires image data based on light from an optical system and a rotation drive unit that changes the orientation of the imaging unit, a detection unit that detects information regarding a subject from the image data; A determination unit that determines a speed of the subject; a control unit that controls the rotation drive unit and a zoom unit that changes an angle of view captured by the imaging unit based on information about the subject, The control device, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject. (Configuration 15) 15. The control device according to configuration 14, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a delay time that occurs during communication with the imaging device.

[0092] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. [Explanation of symbols]

[0093] 100 Camera (imaging device) 101 CPU (judgment unit, control unit) 104 Imaging unit 109 Inference section (detection section)

Claims

1. an imaging unit that acquires image data based on light from an optical system; A rotation drive unit that changes the orientation of the imaging unit; a detection unit that detects information regarding a subject from the image data; A determination unit that determines a speed of the subject; a control unit that controls the rotation drive unit and a zoom unit that changes an angle of view captured by the imaging unit based on information about the subject, The control unit limits a control amount of the zoom unit based on a speed of the subject.

2. 2. The imaging device according to claim 1, wherein the control unit limits the amount of control of the zoom unit so that when the speed of the subject is a first speed, the amount of control of the zoom in the telephoto direction is smaller than when the speed of the subject is a second speed slower than the first speed.

3. The imaging device according to claim 1 , wherein the determination section determines the speed of the subject by using a motion vector of the subject in the image data.

4. The imaging apparatus according to claim 1 , wherein the determination unit determines the speed of the subject using a distance to the subject.

5. 2 . The imaging device according to claim 1 , wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a time period from start to end of a detection process by the detection unit.

6. 2. The image pickup apparatus according to claim 1, wherein the control unit limits a control amount of the zoom unit based on a value indicating a speed of the subject and a control sensitivity.

7. 2. The image pickup apparatus according to claim 1, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a position of the subject in the image data.

8. 2. The imaging device according to claim 1, wherein the control unit acquires a control amount of the zoom unit based on a size of the subject indicated by information about the subject, and limits the control amount of the zoom unit based on the control amount based on the size of the subject and the speed of the subject.

9. 2. The imaging device according to claim 1, wherein the control unit limits the amount of control of the zoom unit based on the speed of the subject and the time from when control of the rotation drive unit begins to when the rotation drive unit actually starts to drive.

10. 2. The image pickup apparatus according to claim 1, wherein the zoom unit performs optical zoom by driving a zoom lens included in the optical system.

11. 11. The imaging device according to claim 10, wherein the control unit limits the driving of the zoom unit based on the speed of the subject and the time from when the control unit starts to control the zoom unit until the zoom unit actually drives.

12. 12. The imaging device according to claim 11, wherein the control unit limits the driving of the zoom unit based on the speed of the subject, the time from when the control unit starts to control the zoom unit until the zoom unit actually drives, and a time based on a time set externally.

13. the zoom unit has a first zoom unit that performs optical zoom and a second zoom unit that performs electronic zoom, 2. The image pickup apparatus according to claim 1, wherein when the driving of the first zoom unit is restricted, electronic zoom is performed on the image data.

14. A control device for controlling an imaging device including an imaging unit that acquires image data based on light from an optical system and a rotation drive unit that changes the orientation of the imaging unit, a detection unit that detects information regarding a subject from the image data; A determination unit that determines a speed of the subject; a control unit that controls the rotation drive unit and a zoom unit that changes an angle of view captured by the imaging unit based on information about the subject, The control device, wherein the control unit limits a control amount of the zoom unit based on a speed of the subject.

15. The control device according to claim 14 , wherein the control unit limits a control amount of the zoom unit based on a speed of the subject and a delay time that occurs during communication with the imaging device.

Citation Information

Patent Citations

  • Imaging apparatus

    JP2017085436A