Lens device, camera device, control method and computer readable storage medium

By applying a machine learning model in the lens device and combining the status information of the optical components and driving equipment to generate continuous control signals, the problem of discontinuous control operations in the existing technology is solved, and image stability and user experience are improved.

CN113050260BActive Publication Date: 2024-10-29CANON KK
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202011546711.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-10-29
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

There are discontinuities in the control operation of existing lens devices under the influence of multiple factors, resulting in discontinuous image changes and affecting user experience.

Method used

A machine learning model is used to combine the status information of optical components and the status information of driving equipment to generate continuous control signals to achieve seamless adjustment of zoom, focus and aperture.

Benefits of technology

Through the use of machine learning models, continuous control of the lens device is achieved, image stability and user experience are improved, and the discontinuity problem of control operations in the existing technology is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113050260B_ABST
    Figure CN113050260B_ABST
Patent Text Reader

Abstract

The present invention relates to a lens device, an imaging device, a control method, and a computer-readable storage medium. The lens device includes an optical component, a driving device configured to drive the optical component, a detector configured to detect a state related to the driving, and a processor configured to generate a control signal for the driving device based on first information about the detected state. The processor includes a machine learning model configured to generate an output related to the control signal based on the first information and second information about the lens device that is different from the first information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a lens device, a camera device, a control method and a computer-readable storage medium. Background Art

[0002] Japanese Patent Application Laid-Open No. 05-127061 discusses a zoom lens that is controlled using a combination of a plurality of actuators according to conditional branching based on limit values ​​set for the respective actuators. In order to switch one control method to another control method under certain conditions, an arithmetic expression (calculation method) for generating a command signal is generally changed. In the lens operation device discussed in Japanese Patent Application Laid-Open No. 06-175000, the calculation method is changed (calculation is added) to switch one control method to another control method under certain conditions, for example, when the zoom lens unit is at the telephoto end or the wide-angle end, or when the focus lens unit is at the infinity end or the closest end.

[0003] In the case of performing control under multiple factors that affect the control, it is difficult to perform control based on the synergistic effect of the multiple factors. In the control discussed in Japanese Patent Laid-Open Nos. 05-127061 and 06-175000, due to the branching of the operation (control operation) based on whether the condition is satisfied, the change in the control operation is discontinuous, so that the change in the obtained image is also discontinuous, which may make the viewer viewing the image feel strange. Summary of the invention

[0004] A first aspect of the present invention provides a lens device, comprising an optical component; a drive device configured to drive the optical component; a detector configured to detect a state related to the drive; and a processor configured to generate a control signal for the drive device based on first information about the detected state. The processor includes a machine learning model configured to generate an output related to the control signal based on the first information and second information about the lens device that is different from the first information.

[0005] A second aspect of the present invention provides an imaging device including the lens device according to the first aspect, and an imaging element configured to capture an image formed by the lens device.

[0006] A third aspect of the present invention provides a control method for controlling the generation of a control signal for a driving device, wherein the driving device is configured to drive an optical component of a lens device based on first information about the driving state, wherein in the control method, a machine learning model is used, and the machine learning model is configured to generate an output related to the control signal based on the first information and second information about the lens device.

[0007] A fourth aspect of the present invention provides a computer-readable storage medium storing a program for causing a computer to execute the control method according to the third aspect.

[0008] Further features of the present disclosure will become apparent from the following description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 An example configuration of a system according to various exemplary embodiments is illustrated.

[0010] Figure 2 A block diagram illustrating a configuration example of a lens apparatus according to a first exemplary embodiment.

[0011] Figure 3 It is a block diagram illustrating a configuration example of a learning system.

[0012] Figure 4 Inputs to and outputs from a neural network are illustrated.

[0013] Figure 5 It is a flow chart for learning.

[0014] Figure 6 is a block diagram illustrating a configuration example of a system for learning according to the second exemplary embodiment.

[0015] Figure 7 The input to the neural network for zooming and the output from the neural network for zooming are illustrated.

[0016] Figure 8 Inputs to and outputs from the focusing neural network are illustrated.

[0017] Fig. 9 is a block diagram illustrating a configuration example of a system for learning according to the third exemplary embodiment.

[0018] Fig.10 Inputs to and outputs from a neural network are illustrated.

[0019] Fig.11 is a block diagram illustrating a configuration example of a system for learning according to a fourth exemplary embodiment.

[0020] Fig. 12A and Fig. 12B Each illustrates an allowable range of a position error of the focus lens unit.

[0021] Fig.13 A configuration example of a control system according to a fourth exemplary embodiment is illustrated. DETAILED DESCRIPTION

[0022] Exemplary embodiments of the present disclosure will be described below with reference to the accompanying drawings. Basically (unless otherwise specified) the same reference numerals are used in all drawings illustrating exemplary embodiments to denote the same components and the like, and repeated descriptions thereof will be omitted.

[0023] [First exemplary embodiment]

[0024] Figure 1 Configuration examples of systems according to exemplary embodiments including the first exemplary embodiment are illustrated. Figure 3 It is a block diagram illustrating a configuration example of a learning system. Figure 3 Also illustrated Figure 1 The hardware resources and software configuration of the devices included in the configuration example of the illustrated system.

[0025] <Configuration Example of Lens Device>

[0026] Figure 2 is a block diagram illustrating a configuration example of a lens apparatus according to the first exemplary embodiment. Figure 2 A configuration example of a system (imaging device) including a configuration example of a camera body is also illustrated. The system includes a camera body 200 and a lens device 100 (also referred to as an interchangeable lens). The camera body 200 and the lens device 100 are mechanically and electrically connected via a mount 300 serving as a connection mechanism. The mount 300 may include a mount unit belonging to the camera body 200 or a mount unit belonging to the lens device 100, or may include both of these mount units. The camera body 200 may supply power to the lens device 100 through a power supply terminal included in the mount 300. The camera body 200 and the lens device 100 may communicate with each other via a communication terminal included in the mount 300.

[0027] The lens device 100 includes a field lens unit 101, a movable zoom lens unit 102 for magnification adjustment, an aperture unit 103 for adjusting the amount of light, an image shake correction lens unit 104, and a movable focus lens unit 105 for focus adjustment. Each of these lens units may include a single lens. For ease of description, each lens unit is simply referred to as a lens. The zoom lens unit 102 and the focus lens unit 105 are each held by a lens holder (not illustrated). The lens holder can move along a guide axis (along the optical axis indicated by a dotted line in the drawing) not illustrated.

[0028] The zoom lens unit 102 moves along the optical axis by the zoom lens driving unit 106, and the position of the zoom lens unit 102 is detected by the zoom lens detection unit 107. The focus lens unit 105 moves along the optical axis by the focus lens driving unit 111, and the position of the focus lens unit 105 is detected by the focus lens detection unit 112. The aperture unit 103 includes aperture blades to be driven by the aperture driving unit 108, and the aperture unit 103 adjusts the amount of light. The aperture detection unit 109 detects the F number of the aperture unit 103. The image shake correction lens unit 104 moves in a direction orthogonal to the optical axis by the image shake correction lens driving unit 110, and reduces image blur (referred to as image shake) caused by camera motion or the like. The position of the image shake correction lens unit 104 is detected by the image shake correction lens detection unit 121.

[0029] Each of the zoom lens driving unit 106, the focus lens driving unit 111, the aperture driving unit 108, and the image shake correction lens driving unit 110 includes an actuator such as an ultrasonic motor. The actuator is not limited to the ultrasonic motor, but may be replaced by a voice coil motor, a direct current (DC) motor, and a stepping motor. The motion sensor 120 is a sensor that detects the shake (vibration) of the lens device 100. The motion sensor 120 is, for example, an angular velocity sensor including a gyroscope.

[0030] The microcomputer 113 (also referred to as a lens microcomputer or processor) includes a storage unit 114, an estimation unit 115, a control unit 116, a communication unit 117, and a determination unit 118 (also referred to as a lens device information determination unit). Here, the storage unit 114 stores machine learning parameters. The estimation unit 115 (generation unit) estimates (generates) a control signal for controlling the focus lens driving unit 111 for the focus lens unit 105. The control unit 116 controls the respective positions of the zoom lens unit 102, the aperture unit 103, and the image shake correction lens unit 104. For example, the control unit 116 generates a control signal for the driving unit in response to a proportional-integral-differential controller (PID control) based on a deviation between a target position or speed of a control object and a position or speed of a control object. The communication unit 117 communicates with the camera body 200. The determination unit 118 determines input information about the lens device 100. The input information is information used in the estimation (generation) of the estimation unit 115. The machine learning parameters and the input information will be described below.

[0031] The camera body 200 may include an imaging element 201, an analog-digital (A / D) conversion circuit 202, a signal processing circuit 203, a recording unit 204, a microcomputer 205 (also referred to as a camera microcomputer or processor), and a display unit 206. The imaging element 201 is an imaging element that captures an image formed by the lens apparatus 100. The imaging element 201 may include a charge coupled device (CCD) sensor or a complementary metal oxide semiconductor (CMOS) sensor. The A / D conversion circuit 202 converts an analog signal (electric signal) output from the imaging element 201 into a digital signal. The signal processing circuit 203 converts the digital signal output from the A / D conversion circuit 202 into video (image) data. The recording unit 204 records the video data output from the signal processing circuit 203. The display unit 206 displays the video data output from the signal processing circuit 203. The user operates the camera using the operation unit 207. The processor 205 of the camera body 200 performs control in the camera body 200. The processor 205 includes a communication unit 208 and a control unit 209. The communication unit 208 communicates with the lens apparatus 100 via the communication unit 117. The control unit 209 sends a command to the lens apparatus 100 based on the operation information and the video data output from the signal processing circuit 203. The operation information indicates an operation performed by a user and output from the operation unit 207. The communication unit 208 sends the command from the control unit 209 to the lens apparatus 100.

[0032] <Recording and Display of Video Images>

[0033] We will now describe Figure 2 1 and 2. The light incident on the lens device 100 forms an image on the imaging element 201 through the field lens unit 101, the zoom lens unit 102, the aperture unit 103, the image shake correction lens unit 104, and the focus lens unit 105. The image is converted into an electric signal by the imaging element 201. The electric signal is converted into a digital signal by the A / D conversion circuit 202. The digital signal is converted into video data by the signal processing circuit 203. The video data is recorded on the recording unit 204. The display unit 206 displays the video image based on the video data.

[0034] <Focus Control>

[0035] Focus control of the lens apparatus 100 by the camera body 200 will now be described. The control unit 209 performs automatic focus control (AF control) based on the video data output from the signal processing circuit 203. The control unit 209 performs control so that, for example, the focus lens unit 105 moves based on the comparison of the video data so that the subject is in focus. The control unit 209 outputs a command related to the movement of the focus lens unit 105 to the communication unit 208. In response to receiving the command from the control unit 209, the communication unit 208 converts the command into a control command and transmits the control command to the lens apparatus 100 via the communication contact point of the pallet 300. The communication unit 117 converts the control command received from the communication unit 208 into the above-mentioned command and outputs the command to the estimation unit 115. In response to receiving the command as an input, the estimation unit 115 generates a control signal based on a plurality of inputs including the input by using the trained machine learning parameters stored in the storage unit 114, and outputs the control signal to the focus lens driving unit 111 for the focus lens unit 105. The plurality of inputs include information on the position of the focus lens unit 105 detected by the focus lens detection unit 112 for the focus lens unit 105 and input information on the lens apparatus 100 determined by the determination unit 118. The input information and a method of generating a control signal by the estimation unit 115 will be described below. With the above-described configuration, the focus lens unit 105 moves based on a command from the control unit 209 so as to maximize the comparison of the video data, thereby achieving appropriate AF control.

[0036] <Aperture Control>

[0037] The aperture control of the lens apparatus 100 by the camera body 200 will now be described. The control unit 209 performs an aperture control (exposure control) process based on the video data output from the signal processing circuit 203. More specifically, the control unit 209 determines a target F number so that the luminance value of the video data is set constant. The control unit 209 outputs the determined F number as a command to the communication unit 208. The communication unit 208 converts the command received from the control unit 209 into a control command, and transmits the control command to the lens apparatus 100 through the communication contact point of the pallet 300. The communication unit 117 converts the control command received from the communication unit 208 into a command related to the F number, and outputs the command to the control unit 116. The control unit 116 determines a control signal based on the command and the F number of the aperture unit 103 detected by the aperture detection unit 109, and outputs the control signal to the aperture drive unit 108. The above configuration realizes appropriate exposure control such that the F number is controlled so that the luminance value of the video data is set constant.

[0038] <Zoom Control>

[0039] Zoom control of the lens apparatus 100 by the camera body 200 will now be described. The user performs a zoom operation on the lens apparatus 100 via the operation unit 207. The control unit 209 outputs a command (e.g., a speed command) for moving the zoom lens unit 102 to the communication unit 208 based on the amount of zoom operation performed by the user. The amount of zoom operation is output from the operation unit 207. The communication unit 208 converts the command received from the control unit 209 into a control command, and transmits the control command to the lens apparatus 100 through the communication contact point of the pallet 300. The communication unit 117 converts the control command received from the communication unit 208 into a command for zooming, and outputs the command to the control unit 116. The control unit 116 determines a control signal based on the command and the position of the zoom lens unit 102 detected by the zoom lens detection unit 107 and outputs the control signal to the focus lens driving unit 111 for the focus lens unit 105. With the above-described configuration, the zoom lens unit 102 can be moved according to the user operation on the operation unit 207.

[0040] <Image Stabilization Control>

[0041] Image stabilization control of the lens apparatus 100 will now be described. The control unit 116 determines a target position of the image shake correction lens unit 104 so as to reduce image shake due to shake of the lens apparatus 100 based on a signal output from the motion sensor 120. The signal output from the motion sensor 120 is related to the shake of the lens apparatus 100. The control unit 116 determines a control signal based on the target position and the position of the image shake correction lens unit 104 detected by the image shake correction lens detection unit 121, and outputs the control signal to the image shake correction lens driving unit 110 for the image shake correction lens unit 104. With the above configuration, image blur (image shake) caused by image pickup by the image pickup element 201 can be reduced.

[0042] <Focus Control Requirements>

[0043] The AF control according to the present exemplary embodiment will now be described. It is assumed here that requirements for the AF control include position error, speed, and power consumption.

[0044] <Position error in request>

[0045] The term "position error" used here refers to an index indicating how accurately the focus lens unit 105 can be moved to the target position when the focus lens unit 105 is moved to the target position. The focus lens unit 105 is moved to a specific target position so that a specific subject is in focus. In AF control, as the error between the target position and the actual position increases, the subject in the video image is largely out of focus. It is well known that even if the error is the same, although the subject may be in focus when the depth of focus is deep, the subject may be out of focus when the depth of focus and the minimum blur circle determined by the F number are shallow.

[0046] Fig. 12A and Fig. 12B Each illustrates an allowable range of position error of the focus lens unit 105. More specifically, Fig. 12A and Fig. 12B Each illustrates an allowable range corresponding to the depth of focus in a case where the focus lens unit 105 moves from the initial position to the target position. Fig. 12A This example shows a case where the depth of focus is deep. Fig. 12B A case where the depth of focus is shallow is illustrated. A1 and B1 each represent an initial position of the focus lens unit 105. A2 and B2 each illustrate a position of the focus lens unit 105 after the focus lens unit 105 has moved. Fig. 12A and Fig. 12B The dotted line in indicates the optical axis. The focus lens unit 105 moves along the optical axis. Fig. 12A The example case has a deep depth of focus. Fig. 12B The illustrated case has a shallow depth of focus. Fig. 12A and Fig. 12B Each illustrates a case where the focus lens unit 105 stops at a distance corresponding to the control error from the target position. Assume that, Fig. 12A The initial position, target position and control error in Fig. 12B The consistency in .

[0047] exist Fig. 12A In the case of , the position A2 of the focus lens unit 105 after the movement falls within the allowable range of the control error (position error) corresponding to the depth of focus, so that a video image with a specific subject in focus is obtained. Fig. 12BIn the case of , the position B2 of the moved focusing lens unit 105 falls outside the allowable range of the control error corresponding to the focal depth, so that a video image of a specific subject is obtained that is out of focus. Therefore, even when the control error (position error) is the same, the allowable range of the control error varies depending on the focal depth. Therefore, the ratio of the control error to the allowable range also varies. By using the focus sensitivity expressed in the following formula (1), the focal depth as a parameter for estimating the image plane position can be converted into a parameter for estimating the position of the focusing lens unit 105 or the control error (position error).

[0048] [Image plane deviation] = [Focus sensitivity] × [Focus lens unit deviation] (1)

[0049] In the formula (1), the focus sensitivity is a value that varies depending on the position of the focus lens unit 105 and the position of the zoom lens unit 102. The depth of focus varies depending on the F number. Therefore, the control error (position error) of the focus lens unit 105 obtained to focus a specific object varies depending on the position of the focus lens unit 105, the position of the zoom lens unit 102, and the position of the aperture unit 103 (the state of a specific optical component in the lens device 100).

[0050] <Requested speed>

[0051] The term "speed" in one of the above requirements refers to the moving speed when the focusing lens unit 105 moves. A predetermined offset per unit time may also be used as the speed. Assuming that the offset of the surface (image plane) on which the subject is focused is regarded as the image plane offset and the moving speed of the surface is regarded as the image plane moving speed, the offset of the focusing lens unit 105 can be regarded as being proportional to the image plane offset. However, the proportional constant may vary depending on the state of each optical system included in the lens device 100 (depending on the positional relationship between multiple optical components). The proportional constant corresponds to the focus sensitivity expressed in the above formula (1).

[0052] Even if the focus lens unit 105 is shifted by the same amount, the image plane shift amount is relatively large when the focus sensitivity is high due to the state of the lens device 100, and the image plane shift amount is relatively small when the focus sensitivity is low. Therefore, the focus lens unit 105 is shifted by an amount corresponding to the shift amount of the focus lens unit 105 obtained by using the formula (1), so that the focus lens unit 105 can be moved so that the image plane shift amount is set constant. In addition, in the case of controlling the image plane moving speed in a state where a moving subject is constantly focused, the allowable range of the error between the target image plane moving speed and the actual moving speed of the image plane can be determined based on the depth of focus.

[0053] Here, as described above, the focus sensitivity varies depending on the position of the focus lens unit 105 and the position of the zoom lens unit 102. In addition, the depth of focus varies depending on the F number. Therefore, a certain moving speed of the image plane or a moving speed of the focus lens unit 105 required for tracking a subject, for example, varies depending on the position of the focus lens unit 105, the position of the zoom lens unit 102, and the state of the aperture unit 103.

[0054] In some cases, the volume of the sound emitted along with the driving of the focus lens unit 105 and which can be recorded in the shooting of the video image may be required to be set to be less than or equal to a specific volume (threshold value). In this case, the moving speed of the focus lens unit 105 may be set to be less than or equal to a specific threshold value.

[0055] <Power consumption in request>

[0056] The term "power consumption" used herein refers to power to be consumed when driving the focus lens unit 105. The power consumption varies depending on the speed and period of time for which the focus lens unit 105 is moved.

[0057] By reducing power consumption, the battery capacity can be used efficiently. For example, the number of images that can be captured on a single battery charge and the operating time for capturing images can be increased, which allows the size of the battery to be reduced.

[0058] When the specific requirements for the above-mentioned position error, speed and power consumption are met, for example, focusing can be achieved for the user. Multiple requirements may have a trade-off relationship. For example, the position error and power consumption may have a trade-off relationship. In the case of a deep depth of focus, the influence of the position deviation of the focus lens unit 105 on focusing is less than the influence on focusing in the case of a shallow depth of focus. Therefore, the power consumption can be reduced by allowing the control error as long as the position error of the focus lens unit 105 falls within the allowable range corresponding to the depth of focus. Conversely, in the case of a shallow depth of focus, the position deviation of the focus lens unit 105 has a large influence on focusing. Therefore, if the control error is reduced so that the position error of the focus lens unit 105 falls within the allowable range corresponding to the depth of focus, the power consumption increases.

[0059] In the case where the focus control is performed so that the subject is continuously focused, the error (also referred to as a control error or a control deviation) between the target position of the focus lens unit 105 and the actual position of the focus lens unit 105 is set so that the error continuously falls within the allowable range corresponding to the depth of focus. To this end, for example, control can be performed so that, in a specific range within the allowable range of the control error, the moving speed of the focus lens unit 105 is set relatively low, and in a range beyond the specific range, the moving speed of the focus lens unit 105 is set relatively high. In this case, power consumption can be reduced as the moving speed of the focus lens unit 105 decreases. Here, the allowable range can be determined based on the depth of focus. In addition, the relationship between the moving speed of the focus lens unit 105 and the moving speed of the image plane can be determined based on the focus sensitivity. Therefore, the moving speed of the focus lens unit 105 for continuously focusing on the subject can be determined based on the position of the focus lens unit 105, the position of the zoom lens unit 102, and the state of the aperture unit 103.

[0060] With the above-described configuration, the control signal for controlling the focus lens driving unit 111 for the focus lens unit 105 can be changed based on requirements for position error, speed, and power consumption associated with the movement of the focus lens unit 105 .

[0061] <Determination of Control Signal of Estimation Unit 115>

[0062] A neural network (also referred to as NN) is implemented in the estimation unit 115. The estimation unit 115 refers to the machine learning parameters stored in the storage unit 114 and determines the control signal based on the NN algorithm using the machine learning parameters. Figure 4 Inputs to and outputs from a neural network are illustrated. In the NN as a learning model (training model) according to the first exemplary embodiment, input X1 represents a target position of the focus lens unit 105 and is an output from the communication unit 117. Input X2 represents an actual position of the focus lens unit 105 and is obtained from the focus lens detection unit 112. Input X3 represents a focal depth as information related to the lens device 100. Input X4 represents focus sensitivity, which is information related to the lens device 100. Output Y1 represents a control signal for controlling a focus lens driving unit 111 for the focus lens unit 105. Here, information related to the optical characteristics of the lens device 100, such as focal depth and focus sensitivity, etc., can be determined by the determination unit 118 depending on specific information such as a minimum blur circle, an F number, a position of the focus lens unit 105, and a position of the zoom lens unit 102. A control signal for controlling the focus lens driving unit 111 for the focus lens unit 105 is generated based on the training model including the input and output as described above.

[0063] <Structure of learning unit>

[0064] Figure 3 2 is a block diagram illustrating a configuration example of a learning system. Figure 3 , the communication unit 122 (also referred to as a personal computer (PC) communication unit) is a communication unit for communicating with a PC 400 (also referred to as an information processing device). The PC 400 includes a processor (a central processing unit (CPU) or a graphics processing unit (GPU)) and a storage device (a read-only memory (ROM), a random access memory (RAM), or a hard disk drive (HDD)). The storage device stores programs, data, etc. for the processor to perform operations. The communication unit 404 is used to communicate with the communication unit 122. The learning unit 403 (also referred to as a machine learning unit) performs a learning process by obtaining inputs and outputs in the estimation unit 115. The learning process will be described in detail below.

[0065] The learning unit 403 and the communication unit 404 in the PC 400 may be implemented so that the execution program stored in the HDD is loaded into the memory (ROM or RAM) and the loaded program is executed by a hardware resource such as a CPU, etc. A rule for setting a reward for reinforcement learning is described in the program. The rule will be described below.

[0066] The communication unit 404 receives information about the operation log of the lens apparatus 100 from the communication unit 122 of the lens apparatus 100. The operation log includes input and output in the estimation unit 115. The information about the operation log is input to the learning unit 403. The learning unit 403 performs machine learning based on the information about the operation log and outputs parameters for machine learning. The learning method used by the learning unit 403 will be described below. The machine learning parameters output from the learning unit 403 are sent to the lens apparatus 100 via the communication unit 404. The machine learning parameters received by the communication unit 122 are stored in the storage unit 114. The machine learning parameters stored in the storage unit 114 are referred to by the estimation unit 115 and reflected in the NN algorithm of the estimation unit 115. The estimation unit 115 outputs a control signal based on the NN algorithm, and the focus lens driving unit 111 drives the focus lens unit 105 based on the control signal.

[0067] Here, the GPU is feasible for effectively performing parallel processing of data, and is therefore effective in the case of repeated learning using a learning model such as a learning model for deep learning. Therefore, in the processing performed by the learning unit 403, a GPU can be used instead of a CPU, or a GPU can be used in addition to a CPU. For example, a learning program including a learning model can be desirably executed by a CPU and a GPU in collaboration. The processing performed by the learning unit 403 can be performed using a GPU.

[0068] <Method of Generating Trained Machine Learning Parameters by Learning Unit 403>

[0069] Next, a learning method using machine learning parameters (a method of generating trained machine learning parameters) performed by the learning unit 403 according to the present exemplary embodiment is described. Figure 3 Learning machine learning parameters in the illustrated system The system includes the lens device 100 and the PC 400 as described above.

[0070] The estimation unit 115 incorporates a program for generating a control signal for moving the focus lens unit 105 from the start position to the stop position into a predetermined specific pattern for learning. The focus lens unit 105 is controlled based on the program. The control and the learning associated with the control are repeated so that the machine learning parameters in the control unit 116 are rewritten by the PC 400. Figure 5 A learning flowchart is illustrated. Figure 5 The respective steps in may be performed by the learning unit 403 of the PC 400 or the estimating unit 115 of the lens apparatus 100 .

[0071] exist Figure 5 In the embodiment of the present invention, first in step S101 (initialization of machine learning parameters), the learning unit 403 sends the initial value (e.g., "0") of the machine learning parameter to the lens device 100 via the communication unit 404. In step S102 (lens unit control and log acquisition), the estimation unit 115 moves the focus lens unit 105 from a predetermined start position to a predetermined stop position. The communication unit 122 can obtain a control signal, a control amount, a depth of focus, a focus sensitivity, and power consumption as a log related to the control of the focus lens unit 105. The control signal can be obtained from the estimation unit 115. The control amount (in this case, the position) can be obtained from the focus lens detection unit 112. The depth of focus and the focus sensitivity can be obtained from the determination unit 118. The power consumption in the focus lens drive unit 111 can be obtained from the focus lens drive unit 111. The power consumption in the focus lens drive unit 111 can be obtained based on the current detected by the current detector provided in the power supply of the motor. The log as described above is sent from the communication unit 122 to the PC 400.

[0072] Next, in step S103 (granting a reward), the learning unit 403 grants a reward to the control associated with the log based on the rule preliminarily stored in the storage unit 410 (also referred to as the data storage unit). The rule will be described below. Next, in step S104, the learning unit 403 updates the machine learning parameters to maximize the reward. The machine learning parameters can be updated by back propagation. However, the method for updating the machine learning parameters is not limited to back propagation. After the updated machine learning parameters are stored in the storage unit 410, the updated machine learning parameters are stored in the storage unit 114 via the communication unit 404 and the communication unit 122. In step S105, the updating unit 412 (also referred to as the data updating unit) determines whether the learning of the machine learning parameters is completed. For example, whether the number of repetitions of machine learning (update of machine learning parameters) reaches a threshold, or whether the change in the reward based on machine learning is less than a threshold, determines whether the machine learning is completed. If the updating unit 412 determines that the machine learning is not completed ("No" in step S105), the process returns to step S101. If the updating unit 412 determines that the machine learning is finished (YES in step S105 ), the learning unit 403 causes the storage unit 410 to store the information on the machine learning parameters obtained by the machine learning, and then the processing is terminated.

[0073] Examples of machine learning algorithms include the nearest neighbor algorithm, the naive Bayes method, Bayes method), decision tree, support vector machine, and deep learning using neural network. The algorithm is not limited to these examples, and any available algorithm can be appropriately selected and applied.

[0074] <How to set rewards>

[0075] The reward setting method will now be described. It is assumed here that the rules for awarding rewards are determined for the three items of "position error", "speed error" and "power consumption", respectively, and the rules for these three items are summarized. The allowable amounts of each position error and speed error vary depending on the depth of focus and the focus sensitivity, so in this case the position error and speed error are set based on the ratio of the position error and speed error to the allowable amount. For example, a higher reward (score) is awarded when the ratio is less than 100%, and a lower reward (score) is awarded when the ratio is greater than 100%. The position error is the difference between the target position and the actual position. The target position is the target control amount determined by the estimation unit 115, and can be obtained from the log. The actual position can be obtained from the log by a detector. Here, the speed error is the difference between the target image plane movement speed and the actual image plane movement speed, and can be obtained from the log or can be calculated based on the log.

[0076] For example, the target image plane moving speed can be calculated based on the generated log (history) of the target position by the estimation unit 115. The actual image plane moving speed can be obtained by replacing the offset amount in equation (1) that can be calculated based on the log (history) of the actual image plane position with the speed, based on the focus sensitivity and moving speed of the focus lens unit 105 obtained from the log, by equation (2) obtained.

[0077] [Image plane moving speed] = [Focus sensitivity] × [Moving speed of the focus lens unit] (2)

[0078] In the case where the power consumption is less than a predetermined upper limit, a higher reward is granted. The rewards determined for the above three items can be used to obtain a machine learning model.

[0079] <Correlation between input and output data in machine learning models>

[0080] By setting the reward as described above, the parameters of the machine learning model that are advantageous in terms of focusing performance and power consumption can be adjusted. The input data of the machine learning model (a neural network in this case) includes information that has a correlation with the control signals of each driving unit that are the output data of the machine learning model. The offset of the focus lens unit 105 to be used for focusing is obtained based on the target position and the actual position. The allowable range of error of the actual position relative to the target position is determined based on the depth of focus. Therefore, it is expected to obtain a control signal by setting a higher reward as the error decreases within the allowable range. In addition, since the offset of the focus lens unit 105 can be replaced by an image plane offset, it is expected to obtain an appropriate control signal by setting a higher reward as the error of the image plane offset or the image plane movement speed relative to the target image plane offset or the image plane movement speed decreases.

[0081] <Advantageous Effects of the Present Exemplary Embodiment>

[0082] In general lens control, an algorithm for switching (branching) control operations is established based on conditions respectively set for requirements of position error, speed error, and power consumption.

[0083] More specifically, the allowable range of the position error is set for each range of the depth of focus or the focus sensitivity. Therefore, the control signal changes discontinuously according to the switching of the range, which makes it difficult to perform seamless control. In the present exemplary embodiment, the control signal does not rely on such a conditional branch, but instead relies on the machine learning model as described above, so that a control signal that changes the position, speed, and power consumption seamlessly can be output. Therefore, according to the present exemplary embodiment, a lens device that is advantageous in terms of the continuity of the control operation change or the image change can be provided.

[0084] <Other control objectives>

[0085] The control target according to the present exemplary embodiment is not limited to the focus lens unit 105, but may be, for example, the zoom lens unit 102, the image shake correction lens unit 104, or the aperture stop instead. In this case, the information (information set) having a correlation with the control signal to be output may be selected as the information (information set) related to the lens device 100 to be input to the machine learning model (e.g., neural network). For example, information (information set) including the rotation angle of the zoom operation ring, the focal length, and the brightness may be selected. Therefore, the above-mentioned beneficial effects produced by the present exemplary embodiment can also be obtained in the control as described above.

[0086] For example, in the case where a machine learning model is applied to a zoom lens drive control operation, a control signal for controlling the zoom lens drive unit 106 for the zoom lens unit 102 so that the rate of change of the angle of view (the rate of change of the angle of view per unit time) becomes constant can be obtained based on information about the target position and the angle of view relative to the zoom lens unit 102. In this case, a higher reward can be set as the rate of change of the angle of view approaches a constant value. In addition, in the case where a machine learning model is applied to an aperture stop drive control operation, a control signal for controlling the drive unit for the aperture stop based on a change in the luminance of the video image (compatible with a change in the luminance of the video image) can be obtained using the luminance and F number of a video image as inputs. For example, even if the aperture stop is driven with the same drive amount, in the case where the luminance is high and the F number is small, the luminance changes more rapidly than in the case where the luminance is low and the F number is large, which makes the user who is viewing the video image feel strange. In this case, a higher reward can be set as the luminance change decreases. Furthermore, in the case where the machine learning model is applied to the driving control operation of the image shake correction lens unit 104, a control signal for controlling the image shake correction lens driving unit 110 for the image shake correction lens unit 104 based on the focal length can be obtained using the focal length and the offset of the video image as inputs. Even if the image shake correction lens unit 104 is offset by the same offset, in the case of a long focal length, the offset of the video image increases, and thus the image shake correction lens unit 104 is to be driven quickly. In this case, a higher reward is set as the position error of the image shake correction lens unit 104 decreases. The output of the motion sensor 120 including the gyroscope is unstable for a certain period of time after the power is turned on. Therefore, a control signal for controlling the image shake correction lens driving unit 110 for the image shake correction lens unit 104 based on the time after the motion sensor 120 is activated can be obtained using time as input. In this case, a lower reward is set as the drift output from the motion sensor 120 increases. Furthermore, by using information on a video image offset vector (motion vector) obtained from the camera as an input, a control signal based on the offset vector for controlling the image shake correction lens driving unit 110 for the image shake correction lens unit 104 can be obtained. In this case, a higher reward is set as the absolute value of the offset vector decreases.

[0087] The orientation (tilt), temperature and ambient sound volume of the lens device 100 can also be used as inputs to the machine learning model. The orientation changes the effect of gravity acting when driving the lens or aperture, and thus the driving torque of the drive unit also changes. The temperature changes the characteristics of the lubricant of the drive unit, thereby also changing the driving torque of the drive unit. The ambient sound volume limits the driving speed by limiting the driving sound of the drive unit. Therefore, by inputting the state quantity as described above, a control signal for controlling the drive unit based on the state quantity (compatible with the state quantity) can be obtained.

[0088] [Second exemplary embodiment]

[0089] <Exemplary Embodiment for Multi-Group Control (Multi-Model)>

[0090] The second exemplary embodiment relates to a system for controlling a plurality of lens units in parallel, and illustrates an example of cooperative control operation of the zoom lens unit 102 and the focus lens unit 105. According to the second exemplary embodiment, in a case where an image pickup condition is determined by two optical components, a control signal for controlling a drive unit of one optical component is obtained by inputting control information about another optical component into a machine learning model (a neural network in this case). As with the first exemplary embodiment, the second exemplary embodiment is also applicable to cooperative control operations using a combination of optical components other than the combination of the focus lens unit 105 and the zoom lens unit 102. Figure 6 is a block diagram illustrating a configuration example of a system for learning according to a second exemplary embodiment. The second exemplary embodiment differs from the first exemplary embodiment in that at least one of the inputs to a neural network that outputs a control signal for controlling a drive unit for one of the lens units represents the position of the other lens unit. Figure 6 Differences between the illustrated configuration example and the configuration example of the first exemplary embodiment.

[0091] The lens microcomputer 113 (also referred to as a processor) includes an estimation unit A 715a and an estimation unit B 715b (i.e., the number of estimation units corresponds to the number of lens units to be controlled, i.e., two estimation units in this case). The estimation unit A 715a estimates (outputs) a control signal for controlling the focus lens driving unit 111 for the focus lens unit 105, and the estimation unit B 715b estimates (outputs) a control signal for controlling the zoom lens driving unit 106 for the zoom lens unit 102. The estimation unit A 715a determines a target position of the focus lens unit 105 according to the position of the zoom lens 102 based on a driving command supplied from the camera body 200, and outputs (generates) a control signal for controlling the focus lens driving unit 111 for the focus lens unit 105 based on the target position. The estimation unit A 715a preliminarily holds table information indicating a relationship among the object distance, the position of the zoom lens 102, and the position of the focus lens unit 105, and determines the target position of the focus lens unit 105 based on the table information. The determined target position of the focus lens unit 105 is input to the NN algorithm that learns the machine learning parameters. The focus lens driving unit 111 that receives the control signal as the output of the estimation unit A 715a moves the focus lens unit 105 along the optical axis. By comparison, the estimation unit B 715b obtains a control signal for controlling the zoom lens driving unit 106 for the zoom lens 102, and the zoom lens driving unit 106 that receives the control signal as the output of the estimation unit B 715b moves the zoom lens 102 along the optical axis. The storage unit 114 stores the trained machine learning parameters for each of the estimation unit A 715a and the estimation unit B 715b.

[0092] Next, the difference between the machine learning parameter learning method (method for generating a trained machine learning model) performed by the learning unit 703 according to the second exemplary embodiment and the method of the first exemplary embodiment is described. The estimation unit A 715a, the control unit A 716a, and the learning unit A 703a play a role in the control of the zoom lens unit 102, and the estimation unit B 715b, the control unit B 716b, and the learning unit B 703b play a role in the control of the focus lens unit 105.

[0093] Figure 7 The input to the neural network for zooming and the output from the neural network for zooming are illustrated. Figure 7The example illustrated in is a neural network (machine learning model) in the estimation unit A 715a. The information to be input (X1 to X6) is described below. X1 represents the target position of the focus lens unit 105 determined by the control unit 116. X2 represents the actual position (current position) of the focus lens unit 105 obtained from the focus lens detection unit 112. X3 represents the focal depth of the lens device 100. X4 represents the focus sensitivity of the lens device 100. X5 represents the target position of the zoom lens unit 102 determined by the control unit 116. X6 represents the actual position of the zoom lens unit 102 obtained from the zoom lens detection unit 107. X4 (focus sensitivity) is information (value) for obtaining the image plane shift amount according to the shift amount of the focus lens unit 105. The information to be output Y2 is a control signal for controlling the zoom lens drive unit 106 for the zoom lens unit 102. As is apparent from the above, when a control signal for the zoom lens unit 102 is output, information on the focus lens unit 105 which is a lens unit different from the zoom lens unit 102 is input to the neural network (machine learning model).

[0094] Figure 8 Inputs to and outputs from the focusing neural network are illustrated. Figure 8 The example illustrated in is a neural network (machine learning model) in the estimation unit B 715b. The information to be input (X1 to X6) is described below. X1 represents the target position of the focus lens unit 105 determined by the control unit 116. X2 represents the actual position (current position) of the focus lens unit 105 obtained from the focus lens detection unit 112. X3 represents the focal depth of the lens device 100. X4 represents the focus sensitivity of the lens device 100. X5 represents the target position of the zoom lens unit 102 determined by the control unit 116. X6 represents the actual position of the zoom lens unit 102 obtained from the zoom lens detection unit 107. The information Y1 to be output is a control signal for controlling the focus lens driving unit 111 for the focus lens unit 105. X4 (focus sensitivity) is used to obtain information (value) of the image plane shift amount according to the shift amount of the zoom lens unit 102. As is apparent from the above, when the control signal for the focus lens unit is output, information about the zoom lens unit 102, which is a lens unit different from the focus lens unit 105, is input to the neural network (machine learning model).

[0095] The machine learning model (machine learning parameter) generation method can be performed by the learning unit A 703a and the learning unit B 703b in the PC 400 and the estimation unit A 715a and the estimation unit B 715b in the processor 113. The process of this method is similar to that of the first exemplary embodiment.

[0096] <Advantageous Effects of the Present Exemplary Embodiment>

[0097] According to the present exemplary embodiment, the two different trained machine learning models (neural networks) as described above are respectively incorporated into the control of the zoom lens unit 102 and the control of the focus lens unit 105, thereby enabling the control operation of the two lens units to be coordinated with each other. Therefore, unlike the prior art in which the zoom lens unit follows the focus lens unit, the control operation of the zoom lens unit 102 and the focus lens unit 105 to be coordinated with each other can be achieved in the present exemplary embodiment. Therefore, unlike the prior art, compensation for insufficient position accuracy of the focus lens unit 105 or compensation for insufficient speed of the zoom lens unit 102 can be achieved through control.

[0098] <Other control objectives>

[0099] In the present exemplary embodiment, focus control is described, but the cooperative control operation is not limited to focus control. For example, the present exemplary embodiment is also applicable to the cooperative control operation between the focus lens unit 105 and the zoom lens unit 102, for compensating the change in the angle of view (image field change) caused by the movement of the focus lens unit 105 by the movement of the zoom lens unit 102. In addition, the present exemplary embodiment is also applicable to the cooperative control operation between the zoom lens unit 102 and the aperture diaphragm, for compensating the change in the F number caused by the movement of the zoom lens unit 102 by adjusting the opening degree of the aperture diaphragm. In addition, the present exemplary embodiment is also applicable to the cooperative control operation between multiple control systems for image shake correction, such as the cooperative control operation between multiple image shake correction lenses for image shake correction, the cooperative control operation between the image shake correction lens unit 104 and the image shake correction imaging element, or the cooperative control operation between the image shake correction lens unit 104 and the image shake correction image processing.

[0100] [Third exemplary embodiment]

[0101] <Exemplary Embodiment of Multiple Group Control (One Model)>

[0102] Like the second exemplary embodiment, the third exemplary embodiment also relates to a system for controlling a plurality of lens units in parallel. The third exemplary embodiment differs from the second exemplary embodiment in that a single machine learning model (in this case, a neural network) is used for processing for controlling a plurality of lens units in parallel. An example of focus control will be described below.

[0103] The present exemplary embodiment relates to a case where an image pickup condition (in this case, a focus state or a subject distance) is determined based on two lens units. In this case, a single machine learning model (in this case, a neural network) receives information about the two lens units as input and outputs a control signal for controlling a drive unit for the two lens units. Fig. 9 1 is a block diagram illustrating a configuration example of a system for learning according to a third exemplary embodiment. The differences between the third exemplary embodiment and the first and second exemplary embodiments will be described below. The estimation unit 815 included in the processor 113 includes a single machine learning model (a neural network in this case). The information about the lens device 100 to be input to the neural network includes position information about the zoom lens unit 102 and the focus lens unit 105, and the information to be output from the neural network indicates a control signal for controlling a drive unit for the two lens units. The zoom lens unit 102 and the focus lens unit 105 are controlled in parallel based on these control signals.

[0104] As described above, the estimation unit 815 outputs in parallel a control signal for the zoom lens unit 102 and a control signal for the focus lens unit 105. Based on the control signal, the focus lens driving unit 111 moves the focus lens 105 along the optical axis and the zoom lens driving unit 106 moves the zoom lens 102 along the optical axis. The storage unit 114 stores the trained machine learning parameters to be used by the estimation unit 815.

[0105] The difference between the machine learning parameter learning method (method for generating a trained machine learning model) to be performed by the learning unit 803 according to the third exemplary embodiment and the method of the first exemplary embodiment will now be described. The estimation unit 815 incorporates a learning program for generating commands for the zoom lens drive unit 106 and the focus lens drive unit 111 based on a predetermined specific change pattern. Information input to and output from the estimation unit 815 when the learning program is executed is obtained as a log. Fig.10Inputs to and outputs from a neural network are illustrated. An example of information regarding inputs to a neural network will now be described below. X1 represents a command for the focus lens unit 105 determined by the control unit 116. X2 represents the actual position (current position) of the focus lens unit 105 obtained from the focus lens detection unit 112. X3 represents the depth of focus of the lens device 100. X4 represents the focus sensitivity of the above-mentioned lens device 100. X5 represents a command for the zoom lens unit 102 determined by the control unit 116. X6 represents the actual position of the zoom lens unit 102 obtained from the zoom lens detection unit 107. X7 represents the focus sensitivity associated with the movement of the zoom lens unit 102 (the "focus sensitivity" is obtained by replacing the [offset of the focus lens unit] in the above formula (1) with [offset of the zoom lens unit]. Y1 represents a control signal for the focus lens drive unit 111. Y2 represents a control signal for the zoom lens drive unit 106. The learning unit 803 of the PC 400 and the estimation unit 815 of the processor 113 are capable of executing the above-described trained machine learning model generation method. The process of the generation (learning) process is similar to that of the first exemplary embodiment ( Figure 5 )similar.

[0106] <Advantageous Effects of the Present Exemplary Embodiment>

[0107] According to the present exemplary embodiment, it is possible to perform a cooperative control operation using two lens units by using a single machine learning model (neural network). If there are some processes that are the same as the control of the zoom lens unit 102 and the control of the focus lens unit 105, it is possible to integrate these processes into one process in the neural network, which reduces the load on the processor 113. Therefore, the present exemplary embodiment is more advantageous than the second exemplary embodiment in terms of reduction in processing time of the estimation unit 815. In addition, the present exemplary embodiment is advantageous in terms of synchronization of the cooperative control operation.

[0108] <Other control objectives>

[0109] In the present exemplary embodiment, focus control is described, but the cooperative control operation is not limited to focus control. In this respect, the third exemplary embodiment is similar to the second exemplary embodiment.

[0110] [Fourth exemplary embodiment]

[0111] <Exemplary Embodiment for Assist Control>

[0112] Fig.111 is a block diagram illustrating a configuration example of a system for learning according to a fourth exemplary embodiment. The fourth exemplary embodiment is different from the above exemplary embodiments in that the lens microcomputer 113 includes a control unit 1516 that performs PID control on the focus lens unit 105 and an estimation unit 1515 that performs auxiliary control operations on the control to be performed by the control unit 1516. An example of focus control will be described below.

[0113] It is difficult to perform control that is compatible with various states or usage environments of the lens device 100, such as the orientation and temperature of the lens device 100, the gravity acting on the lens device 100, and the lubricant of each driving unit of the lens device 100, by using PID control. When the movement of the driving target starts and stops, dynamic friction and static friction switch, so it is difficult to perform precise and stable control. In the camera device, a viewer who views a video image obtained under control with such difficulties may feel uncomfortable. According to the present exemplary embodiment, in view of such difficulties, in a case where the present exemplary embodiment is disadvantageous in terms of stability and accuracy of the control operation, such as when the movement starts or stops, an auxiliary control operation using a machine learning model (a neural network in this case) is performed.

[0114] The fourth exemplary embodiment is different from the first exemplary embodiment in that a focus control unit 1516, an estimation unit 1515, a PC communication unit 1522, and a learning unit 1503 are provided. Fig.11 Differences from the illustrated configuration examples.

[0115] <Focus Control According to the Present Exemplary Embodiment>

[0116] The focus control according to the fourth exemplary embodiment is different from the focus control according to the first exemplary embodiment in that the lens microcomputer 113 includes a control unit 1516 and an estimation unit 1515. Fig.13 The control unit 1516 according to the present exemplary embodiment is described. Fig.13 A configuration example of a control system according to a fourth exemplary embodiment is illustrated. Fig.13 , G1 represents the target position for the focus lens driving unit 111 output from the communication unit 117. P1 represents the actual position (current position) of the focus lens unit 105 obtained from the focus lens detection unit 112. E1 represents the difference (deviation) between G1 and P1. The control unit 1516 includes a P-controller 1516a that performs P-control processing, an I-controller 1516b that performs I-control processing, and a D-controller 1516c that performs D-control processing. O1 represents a control signal for the focus lens driving unit 111. X1, X2, X3, and X4 are Figure 5Y1 represents an output from the machine learning model that makes the output (control signal) O1 from the control unit 1516 advantageous in terms of accuracy and stability of the control process. Σ1 represents an arithmetic unit (subtractor) for obtaining the deviation E1. Σ2 represents an arithmetic unit (adder) for obtaining the control signal O1 by adding the outputs from the controllers 1516a to 1516c.

[0117] The control unit 1516 generates a deviation E1 between the target position G1 and the actual position P1. The P-controller 1516a outputs a value obtained by multiplying the deviation E1 by a specific gain. The I-controller 1516b outputs a value obtained by multiplying the integral value of the deviation E1 by a specific gain. The D-controller 1516c outputs a value obtained by multiplying the differential value of the deviation E1 by a specific gain. The method in which the estimation unit 1515 outputs Y1 based on X1, X2, X3, and X4 is similar to the method according to the first exemplary embodiment. In the control unit 1516, the arithmetic unit Σ2 adds the output from the P-controller 1516a, the output from the I-controller 1516b, the output from the D-controller 1516c, and the output Y1 from the estimation unit 1515 to obtain a control signal O1, and outputs the obtained control signal. The focusing lens unit 105 is controlled in this way.

[0118] Here, the arithmetic unit Σ2 can determine whether to add the output Y1 from the estimation unit 1515 based on a certain condition. For example, based on information indicating whether a moving image is being captured by the processor 205 of the camera body 200, the output Y1 can be added when a moving image is captured, or the output Y1 is not added in other cases. In the case of capturing a moving image that can be captured when the movement of the focus lens unit 105 starts or stops, the output Y1 from the estimation unit 1515 can be added to achieve smooth movement when the movement of the focus lens unit 105 starts or stops. With this configuration, the processing load of the processor 113 can be reduced. In addition, if the focus lens unit 105, in which speed unevenness is easy to be noticed, moves at a speed lower than a threshold value, the output Y1 from the estimation unit 1515 is added. In addition, if the depth of focus is less than or equal to the threshold value, and thus it is possible to expect to obtain higher position accuracy, the output Y1 from the estimation unit 1515 can be added. In addition, the output Y1 from the estimation unit 1515 can be added during recording of a moving image.

[0119] <Method for generating trained machine learning parameters (machine learning model)>

[0120] The generation method according to the present exemplary embodiment is different from the method according to the first exemplary embodiment in the configurations of the estimation unit 151 and the communication unit 1522 in the processor 113 and the configuration of the learning unit 1503 in the PC 400. The target of machine learning and the operation target of the estimation unit 1515 are limited to the specific case of moving the focus lens unit 105 as described above. For example, the program for learning can repeatedly start or stop the movement of the focus lens unit 105 locally. In addition, the program enables learning to be performed in different states or environments, for example, regarding the orientation and temperature of the lens apparatus 100.

[0121] The present exemplary embodiment is also different from the above exemplary embodiment in information about a log to be transmitted from the communication unit 1522 to the communication unit 404. The log includes not only inputs to and outputs from the estimation unit 115 but also inputs to and outputs from the control unit 1516. The learning method is similar to the method according to the first exemplary embodiment except for the above-described point.

[0122] <Advantageous Effects of the Present Exemplary Embodiment>

[0123] According to the present exemplary embodiment, for lens control, control using a machine learning model and other control can be combined. Therefore, the learning time can be reduced by limiting the learning range of the machine learning model, or the processing time of the estimation unit 115 can be reduced by reducing the size of the machine learning model. In addition, for example, in the case of a scene requiring highly precise control, control using a machine learning model is applied, and in other cases, other control is used, thereby reducing the processing load and power consumption of the processor 113.

[0124] <Other control objectives>

[0125] In the present exemplary embodiment, focus control is described, but the auxiliary control operation is not limited to focus control. The present exemplary embodiment is similar to the second exemplary embodiment in this respect. For example, in zoom control, if zooming (moving the zoom lens unit 102) is performed at a speed lower than a threshold value at which unevenness of speed is easily noticed, an auxiliary control operation (adding the output of the estimation unit 115) is performed.

[0126] Although the present exemplary embodiment illustrates an example of combining PID control with a machine learning model, different machine learning models may also be combined. A plurality of different machine learning models, such as two learning models corresponding to the case where motion starts and the case where motion stops, may be combined with other controls such as PID control.

[0127] <Exemplary Embodiments of Program, Storage Medium, and Data Structure>

[0128] Aspects of this embodiment may also be implemented by the following process: a program or data structure for implementing one or more functions according to the above exemplary embodiments is provided to a system or device via a network or storage medium, and a computer in the system or device reads and executes the program. The computer includes one or more processors or circuits. The computer may include multiple discrete computers, multiple discrete processors or circuits or circuit networks to read and execute computer executable instructions.

[0129] The processor or circuit may include a CPU, a microprocessing unit (MPU), a GPU, an application specific integrated circuit (ASIC), and a field programmable gate circuit (FPGA). In addition, the processor or circuit may include a digital signal processor (DSP), a data flow processor (DFP), and a neural processing unit (NPU).

[0130] The exemplary embodiments of the present disclosure are described above. However, the present disclosure is not limited to the above exemplary embodiments, and various modifications and changes can be made within the scope of the aspects of the embodiments.

[0131] In addition, the embodiments of the present invention may be implemented by reading and executing computer executable instructions (e.g., one or more programs) recorded on a storage medium (also more completely referred to as a "non-transitory computer-readable storage medium") to perform one or more functions in the above-mentioned embodiments, and / or a computer of a system or device including one or more circuits (e.g., an application-specific integrated circuit (ASIC)) for performing one or more functions in the above-mentioned embodiments, and the embodiments of the present invention may be implemented by, for example, reading and executing the computer executable instructions from the storage medium by the computer of the system or device to perform one or more functions in the above-mentioned embodiments, and / or controlling the one or more circuits to perform one or more functions in the above-mentioned embodiments. The computer may include one or more processors (e.g., a central processing unit (CPU), a microprocessing unit (MPU)), and may include a network of separate computers or separate processors to read and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, a hard disk, a random access memory (RAM), a read-only memory (ROM), a memory of a distributed computing system, an optical disk (such as a compact disc (CD), a digital versatile disc (DVD), or a Blu-ray disc (BD) TM ), flash memory devices, memory cards, etc.

[0132] Other embodiments

[0133] The embodiments of the present invention may also be implemented by providing software (program) for performing the functions of the above-described embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.

[0134] While the present disclosure has been described with reference to exemplary embodiments, it is to be understood that the present disclosure is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.

Claims

1. A lens device comprising a first optical component and a second optical component, wherein the lens device include: a first drive device configured to drive the first optical member to change an optical characteristic of the lens arrangement, and a second drive device configured to drive the second optical member to change an optical characteristic; a first detector configured to detect a first state related to driving of the first optical member and a second detector configured to detect a second state related to driving of the second optical member; as well as a processor configured to generate a first control signal for the first drive device and a second control signal for the second drive device based on first information about the first state and second information about the second state, wherein the processor includes a machine learning model configured to generate an output related to the first control signal and the second control signal based on the first information and the second information, and The lens device further includes a learning unit configured to adjust a machine learning parameter of the machine learning model based on a reward related to the first information given as input according to the first information and the second information, The learning unit is configured to set the reward to be higher as the error of the value related to the first state relative to the target value becomes smaller.

2. The lens device according to claim 1, in, The first information includes information about a position of the first optical member as the first state and a target position corresponding to the position of the first optical member.

3. The lens device according to claim 1, in, The machine learning model includes a neural network.

4. The lens device according to claim 1, in, The first drive device moves the first optical member during zooming, and The first information includes at least one of the following information: information about the relationship between the position of the first optical component and the viewing angle of the lens device, information about the relationship between the offset of the first optical component and the offset of the image plane of the lens device, and information about the focal depth of the lens device.

5. The lens device according to claim 4, in, The second driving device moves the second optical member during image shake correction, and wherein the second information includes information indicating a relationship between an amount of displacement of the second optical member and an amount of displacement of an image formed by the lens device.

6. The lens device according to claim 4, in, The second driving device changes the aperture diameter of the aperture stop serving as the second optical member when the F number of the lens device changes, and The second information includes at least one of the following information: information on the F number; information on the brightness of the image obtained through the lens device; and information on the relationship between the position of the first optical component, the opening degree of the second optical component and the F number of the lens device.

7. The lens device according to claim 4, in, The second drive device moves the second optical member during focusing, and The second information includes information on a relationship between a movement amount of the second optical member and a movement amount of an image plane of the lens device, information on a focal depth of the lens device, and information on a subject distance of the lens device.

8. The lens device according to claim 1, in, The processor includes a control unit configured to generate an output related to the control signal, the control unit being distinct from the machine learning model, and Wherein, the control signal is obtained based on the output generated by the processor and the output generated by the machine learning model.

9. The lens device according to claim 8, in, The machine learning model generates an output when predetermined conditions are met.

10. The lens device according to claim 9, in, The predetermined conditions include conditions for image capture via the lens apparatus.

11. The lens device according to claim 10, in, The imaging condition includes at least one of the following conditions: the imaging is imaging of a moving image, recording of the moving image by imaging, zooming at a speed not higher than a threshold, and imaging of the moving image at a depth of focus not wider than a threshold.

12. A camera device, include: The lens device according to claim 1; as well as An image pickup element is configured to pick up an image formed by the lens device.

13. A method for controlling a lens device, in, By driving the first optical member and the second optical member to change the optical characteristics, the control method includes: In a first step, a first state related to driving of the first optical member and a second state related to driving of the second optical member are detected; and a second step of generating a first control signal for controlling the driving of the first optical member and a second control signal for controlling the driving of the second optical member based on the first information about the first state and the second information about the second state, wherein, in a second step, the first information and the second information are input into a machine learning model to generate an output related to the first control signal and the second control signal, wherein, when the first information and the second information are input, the machine learning parameters of the machine learning model are updated based on the reward related to the first information, and The reward is set to be higher as the error of the value related to the first state relative to the target value becomes smaller.

14. A computer-readable storage medium storing a program for causing a computer to execute the control method according to claim 13.

Citation Information

Patent Citations

  • Zoom lens

    JP1993127061A

  • Zoom lens operating device

    JP1994175000A

  • Camera and interchangeable lens

    JP1993199444A

  • Shake correcting apparatus, camera and interchangeable lens

    JP2010026384A

  • Imaging apparatus, its method, and program

    JP2019133089A