Motion determination device, electronic apparatus, and motion determination method
The motion determination device uses a machine learning model to accurately classify motion types in optical devices, enhancing image stabilization by adapting correction techniques based on historical data analysis.
Patent Information
- Application Number
- JP2023020515
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2024-08-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for determining the type of movement in optical devices, such as digital cameras and video cameras, lack accuracy in distinguishing between different types of motion, including camera shake, panning, walking, and tripod support, leading to inadequate image stabilization.
A motion determination device that utilizes a machine learning model to process motion data from angular velocity and acceleration sensors, incorporating a correction mechanism using the history of the data to enhance accuracy in determining the type of motion.
The solution enables precise identification of motion types, allowing for optimized image stabilization by adjusting correction methods based on the determined motion type, thereby improving image quality.
Smart Images

Figure 2024115059000001
Abstract
Description
[Technical field]
[0001] The present invention relates to techniques for determining the type of movement of an optical instrument. [Background technology]
[0002] Optical devices such as digital cameras, video cameras, and lens devices are often equipped with an image stabilization system that detects the movement (shake) of the optical device due to camera shake or the like using a motion sensor such as an angular velocity sensor, and reduces (corrects) the image shake due to the movement. However, optical devices are subject to not only camera shake, but also shake due to panning for following a moving subject, shake caused by a user carrying the optical device walking, and small shake caused by wind when the optical device is supported by a tripod outdoors. For this reason, it is desirable to analyze the output signal from the motion sensor to determine the type of movement, and to perform appropriate image stabilization control according to the type of movement.
[0003] Patent Document 1 discloses a method for determining whether a stationary state or a moving (walking) state is occurring based on the time that has elapsed since an angular velocity signal exceeded a threshold value. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Patent No. 5743838 Summary of the Invention [Problem to be solved by the invention]
[0005] However, the method disclosed in Patent Document 1 has room for further improvement in terms of accuracy in determining the type of movement.
[0006] The present invention provides a motion determination device and the like that are capable of determining the type of motion with high accuracy. [Means for solving the problem]
[0007] A motion determination device according to one aspect of the present invention includes a processing means for inputting first information on the motion of an electronic device into a machine learning model and generating second information on a type of motion as an output of the machine learning model, a correction means for correcting the second information, and a determination means for determining the type of motion based on the corrected second information. The correction means performs the correction using a history of the second information. Note that an electronic device or optical device having the motion determination device also constitutes another aspect of the present invention. In addition, a learning device that uses the first information as an input to learn a machine learning model and supplies the learned machine learning model to the motion determination device also constitutes another aspect of the present invention.
[0008] A motion determination method according to another aspect of the present invention includes the steps of inputting first information on the motion of an electronic device into a machine learning model and generating second information on the type of motion as an output of the machine learning model, correcting the second information, and determining the type of motion based on the corrected second information. The step of correcting includes using a history of the second information. Note that a program for causing a computer to execute processing according to the motion determination method also constitutes another aspect of the present invention. Effect of the Invention
[0009] According to the present invention, the type of movement can be determined with high accuracy. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a block diagram showing a configuration of an imaging system including an imaging apparatus according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing the configuration of an MPU included in the imaging apparatus according to the embodiment. [Diagram 3] FIG. 2 is a block diagram showing the configuration of an MPU included in a lens device in the imaging system. [Figure 4] 4 is a flowchart showing an imaging process performed by the imaging device of the embodiment. [Diagram 5]11 is a flowchart showing a shake correction interrupt process in the embodiment. [Figure 6] 11 is a flowchart showing a motion type determination process in the embodiment. [Figure 7] 11 is a flowchart showing a coefficient calculation process in the embodiment. [Figure 8] FIG. 1 is a diagram showing the configuration of output data of the machine learning model in the first embodiment. [Figure 9] FIG. 4 is a diagram showing a configuration of history data in the first embodiment. [Figure 10] FIG. 11 is a diagram showing the configuration of correction coefficients and output data of a machine learning model before and after correction in the first embodiment. [Figure 11] FIG. 1 is a conceptual diagram showing a machine learning model in the first embodiment. [Figure 12] FIG. 2 is a diagram showing the configuration of learning data for the machine learning model in the first embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, embodiments of the present invention will be described with reference to the drawings. EXAMPLES
[0012] FIG. 1 shows the configuration of an imaging system including an imaging device 200 as an electronic device (optical device) and a lens device 100 detachably attached to the imaging device 200 so as to be communicable with the imaging device 200. As shown in FIG.
[0013] The imaging device 200 has an imaging element 201, a signal processing circuit 204, a recording processing unit 205, a display unit 206, an operation unit 207, a camera MPU 208, and a camera communication unit 209. The imaging device 200 also has a camera angular velocity sensor 210, a camera acceleration sensor 211, an imaging element drive motor 202, a camera shake correction control unit (shake prevention means) 212, and an imaging element encoder 203.
[0014] The image sensor 201 photoelectrically converts an object image (optical image) formed by the imaging optical system in the lens device 100, and outputs an electrical signal (analog signal). The image sensor 201 is composed of a photoelectric conversion element such as a CMOS sensor or a CCD sensor. The analog signal output from the image sensor 201 is converted into a digital signal by an A / D conversion circuit (not shown). The image sensor 201 is also shifted in a direction perpendicular to the optical axis of the imaging optical system by the driving force of an image sensor drive motor 202. This shift drive of the image sensor 201 performs sensor vibration reduction, which corrects image shake caused by shake of the imaging system.
[0015] The signal processing circuit 204 performs various image processing on the digital signal from the A / D conversion circuit (not shown) to generate a video signal (image data). The signal processing circuit 204 also generates focus information indicating the focus state of the imaging optical system and luminance information indicating the exposure state. The signal processing circuit 204 also outputs the video signal to a display unit 206, which displays the video signal as a live view image used to check the composition, focus state, etc. The signal processing circuit 204 also outputs the video signal to a recording processing unit 205. The recording processing unit 205 stores the video signal in an external memory or the like.
[0016] The operation unit 207 is composed of a mode dial for setting various imaging modes, a release button for instructing imaging preparation operations and the start of imaging, etc. When a first release signal (Sw1) is output when the release button is half-pressed by a user (photographer) and input to the camera MPU 208, the camera MPU 208 performs imaging preparation operations such as autofocus control and photometry. When a second release signal (Sw2) is output when the release button is fully pressed by the user and input to the camera MPU 208, the camera MPU 208 determines that this is an instruction to capture an image, and generates and records an image for recording.
[0017] The camera MPU 208 also controls the entire imaging device 200. Furthermore, the camera MPU 208 communicates with the lens device 100 via a camera communication unit 209 to exchange various data and commands. The camera MPU 208 is a microprocessing unit (MPU), but may be another processor or circuit such as a central processing unit (CPU).
[0018] The camera angular velocity sensor 210 outputs an angular velocity signal corresponding to the angular velocity of the imaging device 200. The camera acceleration sensor 211 outputs an acceleration signal corresponding to the acceleration of the imaging device 200. The angular velocity signal output from the camera angular velocity sensor 210 and the acceleration signal output from the camera acceleration sensor 211 are input to the camera MPU 208 as a camera shake detection signal. The camera MPU 208 calculates a drive target signal for shifting and driving the imaging element 201 using the camera shake detection signal. The camera MPU 208 generates a shake correction signal corresponding to the difference between the drive target signal and the shift position signal of the imaging element 201 output from the imaging element encoder 203, and outputs this to the camera shake correction control unit 212. The camera shake correction control unit 212 controls the imaging element drive motor 202 based on the shake correction signal to shift and drive the imaging element 201.
[0019] The imaging device 200 may have only one of the camera angular velocity sensor 210 and the camera acceleration sensor 211. When the imaging device 200 has both the camera angular velocity sensor 210 and the camera acceleration sensor 211, a larger amount of information can be obtained from the camera shake detection signal compared to when the imaging device 200 has only one of them. As a result, it becomes possible to perform shake correction and determine the type of movement with higher accuracy.
[0020] The lens device 100 includes an imaging optical system, a plurality of drive motors for driving the imaging optical system, and a plurality of control circuits for controlling the respective drive motors. The lens device 100 also includes a lens MPU 107, a lens communication unit 108, a lens angular velocity sensor 105, a lens acceleration sensor 106, and a correction lens encoder 104.
[0021] The imaging optical system includes a correction lens 101. The multiple drive motors include a correction lens drive motor 102. In addition, the multiple control circuits include a lens shake correction control unit (anti-vibration means) 103. The imaging optical system further includes a focus lens and an aperture, and includes drive motors that drive them and control circuits that control them.
[0022] The lens MPU 107 controls the operation of the lens device 100. The lens MPU 107 also communicates with the imaging device 200 via a lens communication unit 108 to exchange data and commands. In this embodiment, the lens MPU 107 is a microprocessing unit (MPU), but may be another processor or circuit such as a central processing unit (CPU).
[0023] The lens angular velocity sensor 105 outputs an angular velocity signal corresponding to the angular velocity of the lens device 100. The lens acceleration sensor 106 outputs an acceleration signal corresponding to the acceleration of the lens device 100. The angular velocity signal output from the lens angular velocity sensor 105 and the acceleration signal output from the lens acceleration sensor 106 are input to the lens MPU 107 as a lens shake detection signal. The lens MPU 107 calculates a drive target signal for driving the correction lens 101 using the lens shake detection signal. The lens MPU 107 generates a shake correction signal corresponding to the difference between this drive target signal and a position signal of the shake correction lens 101 output from the correction lens encoder 104, and outputs this to the lens shake correction control unit 103. The lens shake correction control unit 103 controls the correction lens drive motor 102 based on the shake correction signal to shift and drive the correction lens 101 in a direction perpendicular to the optical axis of the imaging optical system. This shift of the correction lens 101 performs lens vibration reduction that corrects image shake caused by shake of the imaging system. The correction lens 101 may move not only in a plane perpendicular to the optical axis, but also in a direction having a component perpendicular to the optical axis (for example, on a curved surface around the center on the optical axis).
[0024] Instead of the camera shake detection signal, a lens shake detection signal output from at least one of the lens angular velocity sensor 105 and the lens acceleration sensor 106 may be input to the camera MPU 208. The lens shake detection signal is acquired by the camera MPU 208 from the lens MPU 107 via the camera communication unit 209. In that case, the imaging device 200 does not need to be provided with the camera angular velocity sensor 210 and the camera acceleration sensor 211. 2 shows the function of the camera MPU 208. In this embodiment, the camera MPU 208 as a motion determination device including a processing means and a determination means uses information on the camera shake detection signal to determine the type of motion, which is the shake of the imaging system. In addition, the type of motion is determined using a machine learning model in order to improve the determination accuracy.
[0025] The camera MPU 208 includes a camera acquisition unit 208a and a camera calculation unit 208b. The camera acquisition unit 208a acquires first information related to the movement. In this embodiment, the first information is acquired as a camera shake detection signal that has been subjected to a preprocessing described later. The camera calculation unit 208b inputs the first information acquired by the camera acquisition unit 208a to a machine learning model described later, and determines the type of the movement using second information related to the type of the movement that is the output of the machine learning model described later.
[0026] 3 shows the functions of the lens MPU 107. The lens MPU 107 has a lens acquisition unit 107a and a lens calculation unit 107b. The lens acquisition unit 107a has the same functions as the camera acquisition unit 208a. The lens calculation unit 107b has the same functions as the camera calculation unit 208b.
[0027] The flowchart in Fig. 4 shows the imaging process executed by the camera MPU 208 as a computer according to a program. In this embodiment, vibration isolation control and motion type determination are performed in the imaging device 200. For this reason, the lens device 100 does not need to be provided with the shake correction lens encoder 104, the correction lens 101, the shake correction lens drive motor 102, and the lens shake correction control unit 103.
[0028] In step S101, the camera MPU 208 performs initial communication with the lens MPU 107 and identifies the model of the lens device 100. At this time, the lens MPU 107 also identifies the model of the imaging device 200.
[0029] In step S102, the camera MPU 208 communicates status information with the lens MPU 107. The camera MPU 208 also transmits information on the state of the camera (such as the aperture value and shutter speed set by the user) to the lens MPU 107. The camera MPU 208 also receives information on the state of the lens (such as the current focal length, aperture value, and focus lens position) from the lens MPU 107.
[0030] In step S103, the camera MPU 208 detects the focus state for the subject as an imaging preparation operation, and calculates the drive amount of the focus lens from the detection result. The camera MPU 208 transmits a focus command including the drive amount of the focus lens to the lens MPU 107. The lens MPU 107 controls the drive of the focus lens according to the received focus command. This performs autofocus control. The camera MPU 208 also performs photometry using the video signal, and calculates and sets the ISO sensitivity, aperture value, frame rate, exposure time per frame, and the like as imaging parameters. The camera MPU 208 transmits an aperture command including the aperture value to the lens MPU 107. The lens MPU 107 controls the drive of the aperture according to the received aperture command. This performs automatic exposure control.
[0031] In step S104, the camera MPU 208 determines whether the image capture preparation process is complete. If the image capture preparation process is complete, the process proceeds to step S105. If the image capture preparation process is not complete, the process returns to step S103.
[0032] In step S105, the camera MPU 208 causes the signal processing circuit 204 to generate an image for recording, and stores this in an external memory (not shown) via the recording processing unit 205.
[0033] The flowchart in FIG. 5 shows the shake correction interrupt process that is performed at a predetermined timing from step S102 to step S105 in FIG.
[0034] In step S201, the camera MPU 208 acquires a camera shake detection signal from the camera angular velocity sensor 210 and the camera acceleration sensor 211. Note that instead of the camera shake detection signal, motion vector information indicating the direction and speed of motion obtained from a video signal may be used, or both the camera shake detection signal and the motion vector information may be used.
[0035] In step S202, the camera MPU 208 performs a motion type determination process, which will be described in detail later.
[0036] In step S203, the camera MPU 208 performs processing according to the type of motion obtained as a result of the motion type determination process. If the motion type determination result is "walking", the process proceeds to step S204, if it is "tripod", the process proceeds to step S205, if it is "panning", the process proceeds to step S206, if it is "hold", the process proceeds to step S207, and if it is "other", the process proceeds to step S208.
[0037] "Walking" refers to the movement made when a user captures images using an imaging system while walking. "Tripod" refers to the movement made by wind, etc., when capturing images with the imaging system supported by a tripod as a support member. "Panning" refers to the movement made when a user captures images while panning, intentionally changing the direction of the imaging system. "Hold" refers to the movement made when a user captures images while holding the imaging system in their hand in a stationary state. "Other" refers to movements that do not fall under any of "walking," "tripod," "panning," or "hold."
[0038] In steps S204 to S208, settings related to vibration isolation control for each of the above types of movement are performed.
[0039] In step S204 (walking processing), the camera MPU 208 sets the cutoff frequency in the low-pass filter calculation for the camera shake detection signal low so that larger (lower frequency) shakes can be detected compared to other types of movement. This is because "walking" is more likely to cause large image shakes than other types of movement.
[0040] In step S205 (processing for tripod), the camera MPU 208 sets the cutoff frequency in the high-pass filter calculation for the camera shake detection signal higher than for other types of movement. This is because low-frequency shake is unlikely to occur with a "tripod," and this is to prevent erroneous shake correction due to offsets between the camera angular velocity sensor 210 and the camera acceleration sensor 211.
[0041] In step S206 (panning processing), camera MPU 208 sets camera shake correction control unit 212 to drive image sensor 201 so that its center gradually returns to a position on the optical axis of the imaging optical system over a predetermined time. This stops the shift drive of image sensor 201 for sensor vibration isolation. This is to prevent image shake in the panning direction caused by panning as an intentional movement of the user from being corrected. Note that camera shake correction control unit 212 may be set to perform shake correction in directions other than the panning direction, rather than performing shake correction in the panning direction.
[0042] In step S207 (hold processing), camera MPU 208 detects low-frequency shake from the motion vector acquired from the video signal, and sets camera shake correction control unit 212 to correct image shake caused by the low-frequency shake. This makes it possible to improve the accuracy of image stabilization against low-frequency shake compared to other types of motion.
[0043] In step S208 (other processing), camera MPU 208 sets the cutoff frequency in the low-pass filter calculation for the camera shake detection signal so that it is higher when the value of the camera shake detection signal is small than in the case of “walking.” After performing the processes in steps S204 to S208 above, camera MPU 208 proceeds to step S209.
[0044] In step S209, the camera MPU 208 generates a shake correction signal. First, the camera MPU 208 calculates a drive target signal for shifting and driving the image sensor 201 using the camera shake detection signal that has been processed in any one of steps S204 to S208. The camera MPU 208 then generates a shake correction signal according to the difference between the drive target signal and the position signal of the image sensor 201 output by the image sensor encoder 203.
[0045] In step S210, camera MPU 208 outputs a camera shake correction signal to camera shake correction control unit 212. Camera shake correction control unit 212 drives image sensor drive motor 202 in response to the camera shake correction signal to shift image sensor 201. In this way, camera MPU 208 controls sensor shake correction.
[0046] Next, the motion type determination process (motion type determination method) performed using the machine learning model in step S202 in FIG. 5 will be described with reference to the flowchart in FIG.
[0047] In step S301, the camera MPU 208 (camera acquisition unit 208a) acquires a camera shake detection signal from the camera angular velocity sensor 210 and the camera acceleration sensor 211. At this time, motion vector information obtained from a video signal may be acquired as described above.
[0048] In step S302, the camera acquisition unit 208a reads information about the offset (output value in a stationary state) included in the camera shake detection signal from a memory (not shown), and subtracts the offset from the camera shake detection signal based on the information.
[0049] In step S303, the camera acquisition unit 208a performs preprocessing on the camera shake detection signal from which the offset has been subtracted, and generates first information (information about movement) to be input to the machine learning model. Specifically, the camera acquisition unit 208a linearly interpolates missing values and outliers contained in the camera shake detection signal from which the offset has been subtracted, using normal values before and after them, and performs unit conversion and standardization to generate the first information.
[0050] In step S304, the camera MPU 208 (camera calculation unit 208b) inputs the preprocessed camera shake detection signal as first information to the machine learning model.
[0051] In step S305, the camera calculation unit 208b performs coefficient calculation on the probability for each class (type of movement) which is the second information output from the machine learning model, and determines the final type of movement. This process will be described in detail later. The camera calculation unit 208b stores the second information and its history data in the buffer memory 213.
[0052] Next, the coefficient calculation process in step S305 in FIG. 6 will be described with reference to the flowchart in FIG.
[0053] In step S401, the camera MPU 208 (camera calculation unit 208b) as a correction means reads out the second information from the buffer memory 213, that is, the probability for each class shown in Fig. 8. Fig. 8 illustrates the following as examples: probability of "walking" 0, probability of "tripod" 0.91, probability of "panning" 0.01, probability of "holding" 0.04, and probability of "other" 0.04. The larger the probability value, the more likely it is that the movement.
[0054] In step S402, the camera calculation unit 208b acquires history data of the second information shown in Fig. 9 from the buffer memory 213. Fig. 9 shows the history of the most recent five pieces of second information.
[0055] In step S403, the camera calculation unit 208b calculates a coefficient for correcting the second information by using the second information acquired in step S401 and the history data. Fig. 10(a) shows an example of this correction coefficient.
[0056] The probability of "tripod" as the second information shown in FIG. 8 is 0.9 or more, and the probability of "tripod" in the most recent two history records shown in FIG. 9 is 0.9 or more. In other words, the probability of "tripod" being equal to or greater than the predetermined value (0.9 or more) has been obtained consecutively a predetermined number of times or more (three or more times), including this time. Therefore, it is highly likely that the "tripod" state is still stable. In this embodiment, the correction coefficient applied (multiplied) to the probability of "tripod" as the first movement type and the probability of "panning" as the second movement type that is likely to be performed while supported by a tripod (i.e., related to "tripod") is set to 1, and the correction coefficient multiplied to the probability of other movements is set to 0.
[0057] Note that the correction coefficient for the first movement type may be set to 1, and the correction coefficients for all other movement types may be set to values other than 1, such as 0 or 0.5. Also, the correction coefficient for a movement type whose most recent history probability is equal to or greater than a predetermined value may be made different from the correction coefficients for the other movement types.
[0058] Furthermore, when the number of types of movement included in the history is less than a predetermined number (for example, the number of types of movement determined in the imaging device), the correction coefficient may be different from when the number of types of movement is equal to or greater than the predetermined number.
[0059] The camera calculation unit 208b generates the corrected second information by multiplying the probability of each class by a correction coefficient corresponding to the probability. Note that, if the sum of all the probabilities is not 1.0 as a result of multiplying the probabilities by the correction coefficient, the second information may be normalized so that the sum of all the probabilities becomes 1.0, as shown in FIG. 10(a).
[0060] As described above, by setting the correction coefficient for "tripod" to 1, it is possible to prevent the motion from being erroneously determined to be a type other than "tripod" due to wind when the imaging system is supported by a tripod or vibrations caused by the user's camera operation, etc. Also, by setting the correction coefficient for "panning" to 1, it is possible to correctly determine panning when the imaging system is supported by a tripod.
[0061] In this embodiment, the class with the highest probability in the second information after correction obtained in this manner is determined as the final type of movement. Note that the application of the correction coefficient may be performed not only by multiplication of the correction coefficient, but also by division, addition, or subtraction.
[0062] Fig. 10(b) shows an example of the probability, correction coefficient, and corrected second information for each class different from those in Fig. 10(a). In this example, the probability of "walking" is 0.92, the probability of "panning" is 0.05, the probability of "other" is 0.03, the probability of other types of movement is 0, and the correction coefficients for "walking" and its related "panning" and "other" are 1, and the others are 0. In this example, the final type of movement is determined to be "walking".
[0063] In this embodiment, when the above correction coefficients are set, if a type of movement other than "tripod" and "panning" that has the highest probability (third type of movement) is acquired three times in a row as the second information, the correction coefficients for all classes are set to the same 1. This makes it possible to obtain correct corrected second information that corresponds to the type of movement after the transition when the movement transitions to one other than "tripod."
[0064] Next, the machine learning model will be described with reference to FIG. 11. FIG. 11 shows the input / output relationship of the machine learning model in this embodiment. The machine learning model used in this embodiment is an algorithm for outputting the probability for each class to which input data belongs based on the input data. In this embodiment, a neural network is used as the machine learning model. In addition, the algorithm of the machine learning model for classifying classes can use a decision tree, a logistic regression, a support vector machine, a naive Bayes, a state space model, or the like.
[0065] The input data as the first information in this embodiment is the camera shake detection signal that has been pre-processed as described above. However, depending on the algorithm, the input data as the first information may be changed as appropriate, and may be a camera shake detection signal that has not been pre-processed, or may be a feature amount of the camera shake detection signal regardless of whether it has been pre-processed. The feature amount is the average value, maximum value, minimum value, sum of squares, variance, standard deviation, kurtosis, skewness, etc. of the camera shake detection signal. Also, as described above, the first information may be motion vector information.
[0066] The machine learning model has a learning phase and an estimation phase. In the learning phase, parameters in the machine learning model are updated to improve the accuracy of class determination for input data. A class is a predetermined number of categories defined in advance, and in this embodiment, the class is associated with a type of movement.
[0067] Moreover, the training data consists of input data and a correct label that indicates the class of the input data. Training is performed by the machine learning model using part of the training data as input to make a class determination, comparing the determined class with the class indicated by the correct label, and updating the parameters in the machine learning model to minimize the difference (loss) between the two. Then, the machine learning model's judgment accuracy after training is evaluated using some of the training data that was not used during training. At this time, data from the same subject (user) is always assigned to only one of the training and evaluation. This is to prevent the judgment accuracy from being unreasonably high, since data from the same subject is likely to be correct.
[0068] In the learning phase, learning is performed a predetermined number of times. Learning is repeated until a termination condition, such as reaching a predetermined determination accuracy, is met. The camera calculation unit 208b can determine the type of movement from the input data with high accuracy by using the trained machine learning model thus obtained in the estimation phase.
[0069] The output data as the second information in this embodiment is the probability of any one of the types of movement, namely, "walking", "tripod", "panning", "holding" and "other". The classes output from the machine learning model may directly represent the type of movement, such as "walking", "tripod" and "panning", or may represent the type of movement in other ways. For example, the classes to be defined may be large shake, vertical shake, horizontal shake and small shake, and the large shake may be associated with "walking", the vertical shake and horizontal shake with "panning", and the small shake with "tripod". The types of movement to be determined are not limited to the five types of "walking", "tripod", "panning", "holding" and "other", and other types of movement may be added or any of the five types may be changed.
[0070] Next, the learning data of the machine learning model in this embodiment will be described in detail with reference to FIG. 12. FIG. 12 shows the structure of the learning data of the machine learning model. The learning data is divided into input data and a correct answer label. The input data consists of a data ID, a sampling time, a YAW angular velocity, a PITCH angular velocity, a ROLL angular velocity, an X acceleration, a Y acceleration, and a Z acceleration. YAW indicates the direction around the vertical axis, PITCH indicates the direction around the horizontal axis, and ROLL indicates the direction around the optical axis, and X, Y, and Z indicate the horizontal (left and right), vertical (up and down), and optical axis direction, respectively. The correct answer label indicates the imaging state when the input data was acquired.
[0071] The learning data shown in FIG. 12 was obtained when imaging was experimentally performed in the states of "walking," "tripod," "panning," "hold," and "other."
[0072] In the "Walking" mode, images were captured while walking in four directions: forward, backward, left and right. The capture time varies from user to user. In the "Tripod" mode, images were captured for 2 minutes and 30 seconds while changing the combination of three capture angles (upward, horizontal and downward) and two camera orientations (portrait and landscape) with the imaging system supported by a tripod.
[0073] In "panning," imaging was performed for one minute while changing the combination of two directions (left and right), two camera positions (portrait and landscape), and two camera holding methods (handheld and tripod supported). In "hold," imaging was performed for two minutes while changing the combination of two user positions (the user standing and the user resting their elbows on a stand), and two imaging methods (live view imaging and imaging while looking through the viewfinder). Note that "hold" is a state in which the user holds the camera firmly in their hands, resulting in relatively little shaking even though it is handheld shooting. In "other," imaging was performed for two minutes and 30 seconds while the imaging system was placed on a vibration table (not shown) and vibration was generated.
[0074] Next, the pre-processing and feature quantities of the camera shake detection signal in this embodiment will be described. Note that the contents of the pre-processing and feature quantities may be appropriately changed depending on the learning environment.
[0075] In the pre-processing, the camera shake detection signal is standardized and unit converted, and missing values and outliers in the camera shake detection signal are removed.
[0076] Standardization is a process of converting data so that its average is 0 and its variance is 1. Furthermore, unit conversion is a process of expressing angular velocity and acceleration in a predetermined unit system based on the angular velocity signal and acceleration signal, which are camera shake detection signals. Standardization and unit conversion are processes performed to improve the accuracy of learning by aligning the scale of the camera shake detection signal.
[0077] A missing value is empty data generated due to a detection error of the camera angular velocity sensor 210 or the camera acceleration sensor 211. An outlier is data in the camera shake detection signal that has an extremely large difference in value from other data. Outliers and missing values are factors that reduce the accuracy of learning. For this reason, the camera calculation unit 208b detects and removes outliers and missing values from the camera shake detection signal, and prevents the camera shake detection signal containing outliers and missing values from being input to the machine learning model.
[0078] According to this embodiment, it is possible to determine the type of movement with high accuracy by using a machine learning model that generates the second information and a history of the second information. Furthermore, according to this embodiment, it is possible to determine the type of movement with high accuracy by using the history of the second information without changing the machine learning model itself.
[0079] In this embodiment, the second information on the type of movement is a probability indicating the possibility of the type of movement. However, the second information may be information other than a probability (e.g., a high, medium, or low level of possibility) or information indicating the determination reliability of each type of movement on a scale of 1, 2, or 3, etc., based on which a final determination result of the movement can be obtained.
[0080] In this embodiment, the case has been described where the image capture device 200 performs the anti-shake control and the motion type determination, but these functions may also be performed by the lens device 100 as an electronic device (optical device). In this case, the lens MPU 107 is provided with a function for determining the type of motion instead of the camera MPU 208. Also, anti-shake control is performed by the lens shake correction control unit 103 controlling the shift drive of the correction lens 101 instead of the camera shake correction control unit 212.
[0081] In addition, in this embodiment, the case where the imaging device 200 itself learns the machine learning model has been described, but the machine learning model may be learned by an external learning device via a network or a storage medium. In this case, information based on the camera shake detection signal acquired from the camera angular velocity sensor 210 or the camera acceleration sensor 211 is supplied to the learning device via a network or a storage medium, and one or more processors in the computer of the learning device execute learning according to a program. The learning device supplies the learned machine learning model (parameters of the model) to the imaging device 200 by communication. This allows the imaging device 200 to determine the type of movement using the supplied machine learning model. With this configuration, the accuracy of determining the type of movement can be improved even in an imaging device with limited computing performance.
[0082] In this embodiment, optical image stabilization is performed by shift driving of the image sensor 201 or the compensation lens 101, but electronic image stabilization may also be performed. In electronic image stabilization, the amount of image stabilization is calculated based on a camera shake detection signal or a lens shake detection signal, and the area of the video signal to be cut out as an image for display or an image for recording is controlled based on the amount of image stabilization. Electronic image stabilization may also be performed using motion vector information.
[0083] The above embodiment includes the following configurations.
[0084] (Configuration 1) a processing means for inputting first information on a movement of the electronic device into a machine learning model and generating second information on a type of the movement as an output of the machine learning model; a correction means for correcting the second information; a determination means for determining a type of the movement based on the second information after the correction, The motion determination device, wherein the correction means performs the correction using a history of the second information. (Configuration 2) the second information includes a probability for each type of movement; 2. The movement determination device according to configuration 1, wherein the correction means corrects the probability for each type of movement by using a history of the second information. (Configuration 3) The motion determination device according to configuration 2, wherein the correction means performs the correction by setting a correction coefficient for each type of motion and applying the correction coefficient to the probability for each type of motion. (Configuration 4) The motion determination device according to configuration 3, wherein the correction means makes the correction coefficient for a type of motion that has a probability of being equal to or greater than a predetermined value in the history different from the correction coefficient for other types of motion. (Configuration 5) The motion determination device according to configuration 3, wherein the correction means differentiates the correction coefficient for a first motion type for which a probability of being equal to or greater than the predetermined value has been obtained a predetermined number of times in succession, including the history, from the correction coefficients for other motion types. (Configuration 6) The movement determination device according to configuration 4 or 5, wherein the correction means makes the correction coefficient for a second movement type related to the first movement type different from the correction coefficients for other movement types. (Configuration 7) The movement determination device described in configuration 5 or 6, wherein the correction means sets the correction coefficients for the first movement type and the third movement type to be the same when a probability of a third movement type different from the first movement type being equal to or greater than a predetermined value is obtained consecutively a predetermined number of times or more. (Configuration 8) The motion determination device according to configuration 3, wherein the correction means changes the correction coefficient when the number of types of motion included in the history is less than a predetermined number compared to when the number of types of motion is equal to or greater than the predetermined number. (Configuration 9) 9. An electronic device comprising the motion determination device according to any one of configurations 1 to 8. (Configuration 10) 10. The electronic device according to configuration 9, which is an optical device having an image stabilization means for performing processing to correct image blur caused by the movement. (Configuration 11) A learning device, comprising: a learning unit that learns the machine learning model using the first information as an input; and supplies the trained machine learning model to a motion determination device according to any one of claims 1 to 10.
[0085] (Other Examples) 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.
[0086] The embodiments described above are merely representative examples, and various modifications and alterations are possible for each embodiment when implementing the present invention. [Explanation of symbols]
[0087] 200 Imaging device 201 Image sensor 208 Camera MPU 210 Camera Angular Velocity Sensor 211 Camera Acceleration Sensor 212 Camera shake correction control section
Claims
1. a processing means for inputting first information on a movement of an electronic device into a machine learning model and generating second information on a type of the movement as an output of the machine learning model; a correction means for correcting the second information; a determination means for determining a type of the movement based on the second information after the correction, The motion determination device, wherein the correction means performs the correction using a history of the second information.
2. the second information includes a probability for each type of movement; 2. The movement determination device according to claim 1, wherein the correction means corrects the probability for each type of movement by using a history of the second information.
3. 3. The movement determining device according to claim 2, wherein the correction means performs the correction by setting a correction coefficient for each type of movement and applying the correction coefficient to a probability for each type of movement.
4. 4. The movement determination device according to claim 3, wherein the correction means makes the correction coefficient for a type of movement that has a probability equal to or greater than a predetermined value in the history different from the correction coefficient for other types of movement.
5. The movement determination device described in claim 3, characterized in that the correction means makes the correction coefficient for a first movement type for which a probability of being greater than or equal to the predetermined value has been obtained a predetermined number of times in succession, including the history, different from the correction coefficients for other movement types.
6. 6. The movement determining device according to claim 5, wherein the correction means makes the correction coefficient for a second movement type related to the first movement type different from the correction coefficients for other movement types.
7. The movement determination device described in claim 5, characterized in that the correction means sets the correction coefficients for the first movement type and the third movement type to be the same when a probability of a third movement type different from the first movement type being equal to or greater than a predetermined value is obtained consecutively a predetermined number of times or more.
8. The motion determination device according to claim 3, characterized in that the correction means changes the correction coefficient when the number of motion types included in the history is less than a predetermined number compared to when the number of motion types is equal to or greater than the predetermined number.
9. An electronic device comprising the motion determination device according to claim 1 .
10. 10. The electronic device according to claim 9, wherein the electronic device is an optical device having an image stabilization unit that performs processing for correcting image blur caused by the movement.
11. A learning device, comprising: a learning unit that learns the machine learning model using the first information as an input; and supplies the trained machine learning model to the motion determination device according to claim 1 .
12. inputting first information about a movement of the electronic device into a machine learning model and generating second information about a type of the movement as an output of the machine learning model; performing a correction on the second information; determining a type of the movement based on the corrected second information; A motion determination method, comprising: performing the correction by using a history of the second information in the step of performing the correction.
13. A program for causing a computer to execute a process according to the motion determination method of claim 12.
Citation Information
Patent Citations
Punching-trimming method and its device
JP1982043838A
