Detection method, intelligent terminal and storage medium
By testing the target image when the OIS function is turned off and turned on in the vibration state of the detection device, and calculating the suppression ratio, the problem of low efficiency of the existing OIS function testing methods is solved, and more efficient OIS automatic detection is achieved.
Patent Information
- Application Number
- CN202411676738.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-04
AI Technical Summary
The existing optical anti-shake (OIS) functional testing method requires multiple images to be shot continuously during the test process, which is long, has a large amount of calculation and is inefficient.
A detection method is provided, by shooting a shooting target according to a preset shooting method when the OIS function is turned on when the OIS function is turned on, obtaining the detection target image, and calculating the anti-shake effect parameters of the OIS function, including the suppression ratio.
It shortens the time of equipment shooting and algorithm running time, improves the efficiency of OIS automated detection, and is simple and convenient to operate.
Smart Images

Figure CN119562049A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of camera anti-shake testing, and in particular to a detection method, a smart terminal and a storage medium. Background Art
[0002] With the popularization of smart phones and the rapid development of related technologies in recent years, consumers have higher and higher requirements for mobile phone photography effects. There are many technical evolution directions for improving photography effects. One important branch is optical image stabilization (OIS). Mobile phones with OIS function can correct "optical axis offset" through the floating lens of the lens. The principle is to detect movement through the gyroscope and then transmit the signal to the processor. The processor immediately calculates the displacement that needs to be compensated, and then compensates according to the direction and displacement of the lens through the compensation lens group, thereby effectively overcoming the image blur caused by camera vibration.
[0003] In the process of conceiving and implementing this application, the inventors found that the existing OIS function test method has at least the following problems: 1. Multiple images need to be taken continuously during the test, which takes a long time; 2. The test process requires a large amount of calculation, which is time-consuming and inefficient.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0005] In response to the above technical problems, the present application provides a detection method, an intelligent terminal and a storage medium, which can shorten the device shooting time and the algorithm running time, thereby improving the efficiency of OIS automatic detection and making the operation simple and convenient.
[0006] In order to solve the above technical problems, the present application provides a detection method, including: S10: when the detection device is in a vibration state, when the OIS function is turned off and on, the shooting target is photographed according to the preset shooting method to obtain a detection target image, and the detection target image includes a first target image and a second target image; S20: calculating the anti-shake effect parameters of the OIS function through the moving trajectory length of the shooting target in the first target image and the second target image.
[0007] Optionally, the anti-shake effect parameters include: a suppression ratio; when the suppression ratio is greater than or equal to a qualified threshold, it is confirmed that the anti-shake effect of the OIS function meets the qualified requirements; when the suppression ratio is less than the qualified threshold, it is confirmed that the anti-shake effect of the OIS function does not meet the qualified requirements.
[0008] Optionally, before step S10, it includes: S01: when the vibration of the detection device is turned off, turning on the OIS function, and photographing the shooting target according to the preset shooting method to obtain a reference target image, and obtaining a reference contour of the shooting target in the reference target image.
[0009] Optionally, the reference contour is an image contour of the photographed target in a stationary state in the reference target image.
[0010] Optionally, after step S01, it also includes: S02: when the vibration of the detection device is turned off, turning off the OIS function, and shooting the shooting target according to the preset shooting method to obtain the environmental detection target image, and confirming the stability of the shooting environment according to the image state detection result of the environmental detection target image, the shooting environment includes the detection device and the OIS function.
[0011] Optionally, S20 includes: S21: simulating a first moving trajectory of the shooting target in the first target image and a second moving trajectory of the shooting target in the second target image respectively; S22: calculating a first moving trajectory length of the first moving trajectory and a second moving trajectory length of the second moving trajectory with reference to the reference contour; S23: calculating the suppression ratio according to the first moving trajectory length and the second moving trajectory length.
[0012] Optionally, the preset shooting mode includes long exposure shooting.
[0013] Optionally, the shooting target is a test image, the test image includes: a black background and a white foreground, the white foreground is circular and located in the center of the black background.
[0014] The present application also provides an intelligent terminal, comprising: a memory and a processor, wherein a detection program is stored in the memory, and when the detection program is executed by the processor, the steps of the above method are implemented.
[0015] The present application also provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0016] As described above, a detection method of the present application performs a single shot of a customized shooting target through a preset shooting method, thereby shortening the time for taking photos, and designs a detection algorithm for long exposure feature maps. The suppression ratio is calculated by the moving trajectory of the shooting target in two modes to shorten the search time of the original algorithm. Both of them together improve the OIS automatic detection efficiency, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0018] Figure 1 A schematic diagram of the hardware structure of a smart terminal for implementing each embodiment of the present application; Figure 2 A communication network system architecture diagram provided for an embodiment of the present application; Figure 3 is a schematic flow chart of a detection method according to the first embodiment; Figure 4 is a schematic diagram of a detection device according to a detection method shown in the first embodiment; Figure 5 is a schematic diagram of a specific flow chart of a detection method according to the second embodiment; Figure 6 It is a schematic diagram of a picture taken when the vibration platform is turned off as shown in the present application; Figure 7 It is a schematic diagram of a first mode shooting screen when the vibration platform shown in the present application is turned on. Figure 8 It is a schematic diagram of the second mode shooting screen when the vibration platform shown in the present application is turned on.
[0019] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings have shown clear embodiments of this application, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0020] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0021] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0022] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate that there are the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" etc. used in this application can be interpreted as inclusive, or mean any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”, and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0023] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0024] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0025] It should be noted that in this article, step codes such as S10 and S20 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S20 first and then S10, etc., but these should all be within the scope of protection of this application.
[0026] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0028] The smart terminal may be implemented in various forms. For example, the smart terminal described in this application may include smart terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0029] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will understand that, in addition to components specifically used for mobile purposes, the construction according to the embodiments of the present application can also be applied to fixed-type terminals.
[0030] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0031] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal: The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing- Long Term Evolution), TDD-LTE (Time Division Duplexing- Long Term Evolution) and 5G, etc.
[0032] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0033] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0034] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0035] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0036] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0037] The user input unit 107 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch panel 1071), and drive corresponding connection devices according to a pre-set program. The touch panel 1071 may include a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0038] Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Then, the processor 110 provides corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.
[0039] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0040] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area. Optionally, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0041] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0042] The mobile terminal 100 may further include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.
[0043] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0044] In order to facilitate understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based is described below.
[0045] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present application, wherein the communication network system is an LTE system of universal mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are connected in sequence for communication.
[0046] Optionally, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0047] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Optionally, eNodeB 2021 may be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 may provide UE 201 with access to EPC 203 .
[0048] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving GateWay) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036. Optionally, MME 2031 is a control node that processes signaling between UE 201 and EPC 203, and provides bearer and connection management. HSS 20032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and store some user-specific information such as service features and data rates. All user data can be sent through SGW2034. PGW2035 can provide IP address allocation and other functions for UE 201. PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0049] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.
[0050] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems (such as 5G), etc., without limitation here.
[0051] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.
[0052] First embodiment See also Figure 3 , Figure 3 It is a flowchart of a detection method according to the first embodiment.
[0053] like Figure 3 As shown, a detection method provided by the first embodiment of the present invention comprises the following steps: S10: When the detection device is in a vibration state, when the OIS function is turned off or on, the target is photographed according to a preset photographing method to obtain a detection target image, where the detection target image includes a first target image and a second target image.
[0054] Optionally, the preset shooting mode includes: long exposure shooting. In this embodiment, the preset shooting mode is single long exposure shooting (the same below), that is, shooting the same shooting target in different modes by using the camera long exposure method.
[0055] Long exposure photography, also known as long exposure photography, is a photography technique that keeps the shutter open for a long time. It is often used in night photography, light trail photography, and water photography.
[0056] Specifically, the target is photographed with long exposure in different modes, thereby obtaining a plurality of different detection target images.
[0057] In this embodiment, the detection device vibration is turned on and the OIS function is turned off as the first mode; the detection device vibration is turned on and the OIS function is turned on as the second mode. The difference between the first mode and the second mode is only the turning on and off of the OIS function, and the other parameters and settings are the same. The detection device vibration is to ensure that the shooting device (such as a mobile phone and a camera, etc.) is in a shaking state during shooting (the camera is in a stationary state and the anti-shake effect cannot be detected), so as to detect and verify the anti-shake effect of the OIS function. The detection target image obtained by shooting the shooting target in the first mode is the first target image; the detection target image obtained by shooting the shooting target in the second mode is the second target image.
[0058] In this embodiment, the shooting target is a test image, and the test image features are a black background and a white circle (it may also be other shapes, such as a rectangle).
[0059] For example, a mobile phone or other camera is placed and fixed on a detection device (such as a vibration table, which can be used to shake the camera), and a test pattern is arranged in front of the mobile phone (such as 1 meter and 5 meters, etc.). The test pattern features a black background and a white circle, so as to ensure that the white circle in the captured image is clear and accurate (such as Figure 4as shown).
[0060] Optionally, before step S10, it includes: S01: when the vibration of the detection device is turned off, turning on the OIS function, and photographing the shooting target according to the preset shooting method to obtain a reference target image, and obtaining a reference contour of the shooting target in the reference target image.
[0061] Optionally, the reference contour is an image contour of the photographed target in a stationary state in the reference target image.
[0062] In this embodiment, the vibration of the detection device is turned off and the OIS function is turned on as the third mode. The reference target image obtained by photographing the shooting target through the third mode is the third target image. After the third target image is photographed, the image state of the shooting target (white circle) in the third target image is detected and judged, and the image state includes a moving state and a stationary state. If the shooting target in the third target image is in a moving state, it is necessary to check the detection device, the mobile phone / camera equipment (camera hardware or OIS function). Under normal circumstances, the shooting target in the third target image obtained by shooting in the third mode (because the shooting target: test image, is a white circle in the center of a black background, so it is only necessary to judge whether the white circle is stationary) is stationary. If the shooting target is in a moving state, it indicates that there may be a problem with the detection device or the mobile phone / camera equipment, resulting in the shooting target in the third target image obtained being moving.
[0063] Therefore, after confirming that the shooting target is moving, it is necessary to eliminate the problem (such as the test image is not fixed and stable, the detection device is unstable, the camera is unstable, and the OIS function has an error) to ensure that the shooting target in the third target image is stationary, so as to avoid deviations in the subsequent anti-shake effect detection results.
[0064] Specifically, the contour of the photographed target (ie, the white circle) in the third target image can also be identified by an algorithm, thereby obtaining a reference contour of the photographed target in a stationary state. The reference contour needs to be obtained when the photographed target in the third target image is in a stationary state.
[0065] Optionally, after step S01, it also includes: S02: when the vibration of the detection device is turned off, turning off the OIS function, and shooting the shooting target according to the preset shooting method to obtain the environmental detection target image, and confirming the stability of the shooting environment according to the image state detection result of the environmental detection target image, the shooting environment includes the detection device and the OIS function.
[0066] In this embodiment, the vibration of the detection device and the OIS function are turned off as the fourth mode. The environment detection target image obtained by shooting the shooting target in the fourth mode is the fourth target image. The fourth target image can be used to eliminate the stability of the shooting environment (such as, the test image is not fixed and stable, the detection device is unstable, the camera is unstable, and the OIS function fails).
[0067] For example, keep the vibration table (i.e., the detection device) stationary / off, turn on the mobile phone OIS mode / function, take a photo of the test image (take a photo in long exposure mode, 1 photo), and then calculate the state of the test image (i.e., stationary state and non-stationary / moving state) through the algorithm. Calculation method: Extract the outline of the white circle in the test image, take any 4 points on the outline, and record them as , , , . Calculate the distance L1 between P0 and P1, and the distance L2 between P2 and P3 respectively; If the distance difference between L1 and L2 is less than or equal to the first threshold (the specific value of the first threshold can be changed according to the specific scenario), it is determined that the white circle of the test image is in a stationary state, and step S10 can be executed; If the distance difference between L1 and L2 is greater than the first threshold, the white circle in the test image is judged to be in a non-stationary / moving state, and the following steps need to be performed: After turning off the OIS mode / function of the mobile phone, take a photo of the test image again, recalculate the state of the test image (i.e., static state and non-static / moving state) through the algorithm, extract the outline of the white circle in the test image, and take any 4 points on the outline, record them as Q0, Q1, Q2, and Q3. Calculate the distance M1 between Q0 and Q1, and the distance M2 between Q2 and Q3 respectively; If the distance difference between M1 and M2 is less than or equal to the first threshold, the white circle is judged to be in a stationary state, indicating that the shaking is caused by an unstable OIS module / function, and the OIS module / function needs to be reinstalled; If the distance difference between M1 and M2 is less than or equal to the first threshold, the white circle is judged to be in a non-stationary / moving state, which means that the vibration table is unstable and needs to be checked.
[0068] S20: Calculating an anti-shake effect parameter of the OIS function according to the moving track lengths of the photographed target in the first target image and the second target image.
[0069] Optionally, the anti-shake effect parameters include: a suppression ratio; when the suppression ratio is greater than or equal to a qualified threshold, it is confirmed that the anti-shake effect of the OIS function meets the qualified requirements; when the suppression ratio is less than the qualified threshold, it is confirmed that the anti-shake effect of the OIS function does not meet the qualified requirements.
[0070] OIS (Optical Image Stabilizer), optical image stabilizer. Suppression ratio (SR), usually used to judge the anti-shake ability of the camera.
[0071] Optionally, the step of S20 includes: S21: simulating a first moving trajectory of the shooting target in the first target image and a second moving trajectory of the shooting target in the second target image respectively; S22: calculating a first moving trajectory length of the first moving trajectory and a second moving trajectory length of the second moving trajectory with reference to the reference contour; S23: calculating the suppression ratio according to the first moving trajectory length and the second moving trajectory length.
[0072] Specifically, a camera device equipped with an OIS function, such as a mobile phone, shoots a target using a first mode and a preset shooting method to obtain a first target image. Then, the target is shot using a second mode and a preset shooting method to obtain a second target image. Then, the first moving trajectory and the first moving trajectory length of the target in the first target image, as well as the second moving trajectory and the second moving trajectory length of the target in the second target image are calculated by using the reference contour of the target. Then, the suppression ratio is calculated by using the first moving trajectory length and the second moving trajectory length to determine the anti-shake effect of the OIS function.
[0073] It should be noted that, in the first mode and the second mode, if the target in the captured target image is stationary, it may be necessary to check the shooting equipment such as the mobile phone and the detection device and then reshoot.
[0074] For example, the vibration table is turned on, the OIS mode of the mobile phone is turned off (i.e., the first mode), a single photo is taken of the test image (i.e., the shooting target) using the long exposure mode, and then the test image is calculated using the existing algorithm. picture Status; Test at this time picture The characteristic is a circular motion trajectory (see Figure 7 ), the trajectory length S is calculated as follows: extract the outline of the white circle in the test image, and the x-coordinate set of the points on the outline of the shooting target is: , the y coordinate set is: Y ; The first target image and the second target image include an initial contour of the target (e.g., taking the left contour as the starting point, placing the reference contour into the left contour of the target in the third target image for matching to obtain the initial contour of the target) and a final contour (e.g., taking the right contour as the end point, placing the reference contour into the right contour of the target in the third target image for matching to obtain the final contour of the target).
[0075] Then, the x-coordinate set of the initial contour and the x-coordinate set of the final contour of the photographed target in the first target image are obtained; for example, = min( ), = max( ); Obtain the y coordinate set of the initial contour and the y coordinate set of the final contour of the photographed target in the first target push; such as, = min( ), = max( ).
[0076] Finally, according to the coordinate values of the initial contour and the coordinate values of the final contour, a first moving track length of the photographed target in the first mode is calculated.
[0077] Turn on the vibration table, turn on the mobile phone OIS mode (i.e. the second mode), take a photo of the test image (take a photo in long exposure mode, 1 photo), and use the algorithm to calculate the state of the test image in the same way as the first mode above, and finally get the length of the second moving track.
[0078] It should be noted that when the vibration table is turned off (e.g., the third mode and the fourth mode), the image captured in the normal state is a stationary circle, such as Figure 6 When the vibration table is turned on, the image captured is a circle with a motion trajectory, as shown in Figure 7 and Figure 8 shown.
[0079] Exemplarily, the lengths of movement trajectories of the objects captured in the first target image and the second target image captured in the first mode and the second mode are calculated respectively, and then the suppression ratio is calculated based on the first movement trajectory length and the second movement trajectory length.
[0080] The suppression ratio is compared with the qualified threshold. If the suppression ratio is greater than or equal to the qualified threshold, it means that the anti-shake effect of the OIS meets the qualified requirement, otherwise it does not meet the qualified requirement.
[0081] Through the above method, it is only necessary to shoot a target image containing the shooting target in the long exposure mode in different modes, and then calculate the moving trajectory of the shooting target in the target image, and calculate the suppression ratio through the moving distance of the moving trajectory. Finally, the anti-shake performance of OIS is detected by the suppression ratio, which can shorten the running time of the detection algorithm and improve the OIS detection efficiency.
[0082] Second embodiment See also Figure 5 , Figure 5It is a specific flow chart of a detection method according to the second embodiment. This embodiment has the same technical solution as the above embodiment.
[0083] like Figure 5 As shown, a detection method comprises the following steps: S1: Place the mobile phone on the detection device and arrange the test pattern. The test pattern features a black background and a white circle.
[0084] S2: Keep the vibration table still, turn on the OIS mode of the mobile phone, take a photo of the test chart (take a photo in long exposure mode, 1 photo), and calculate the chart outline using the algorithm.
[0085] S3: Turn on the vibration table, turn off the OIS mode of the mobile phone, take a photo of the test image (take a photo in long exposure mode, 1 photo), and use the algorithm to calculate the trajectory.
[0086] S4: Turn on the vibration table, turn on the OIS mode of the mobile phone, take a photo of the test image (take a photo in long exposure mode, 1 photo), and use the algorithm to calculate the trajectory.
[0087] S5: Calculate the suppression ratio based on the chart motion trajectory length calculated by S3 and S4.
[0088] S6: Compare the suppression ratio with the qualified threshold. If the suppression ratio is greater than or equal to the qualified threshold, it means that the anti-shake effect meets the qualified requirement. Otherwise, it does not meet the qualified requirement.
[0089] Through the above method, when shooting the target in the third mode, if an abnormality is detected, the OIS mode can be turned off and the shooting can be carried out again, so as to further determine whether the instability is caused by the detection device or the OIS module. If there is no abnormality, the shooting in the fourth mode can be skipped directly, saving shooting time and calculation time; the long exposure method is used for OIS automatic detection, which improves the detection efficiency while ensuring that the detection content items are not reduced and the detection accuracy is not reduced.
[0090] The present application also provides a smart terminal, which includes a memory and a processor. The memory stores an OIS automatic detection program based on long exposure. When the OIS automatic detection program based on long exposure is executed by the processor, the steps of a detection method in any of the above embodiments are implemented.
[0091] The present application also provides a computer-readable storage medium, on which is stored an OIS automatic detection program based on long exposure. When the OIS automatic detection program based on long exposure is executed by a processor, the steps of a detection method in any of the above embodiments are implemented.
[0092] In the embodiments of the smart terminal and computer-readable storage medium provided in the present application, all technical features of any one of the above-mentioned detection method embodiments may be included, and the expanded and explained contents of the specification are basically the same as those of the embodiments of the above-mentioned methods, and will not be repeated here.
[0093] The embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the methods in the above various possible implementation modes.
[0094] An embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.
[0095] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0096] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0097] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0098] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0099] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.
[0100] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0103] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk (SSD)), etc.
[0104] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A detection method, characterized in that: The method comprises the following steps: S10: When the detection device is in a vibration state, when the OIS function is turned off and when the OIS function is turned on, photographing the shooting target according to a preset shooting mode to obtain a detection target image, wherein the detection target image includes a first target image and a second target image; S20: calculating an anti-shake effect parameter of an OIS function according to the moving track length of the photographed target in the first target image and the second target image.
2. The method according to claim 1, characterized in that The anti-shake effect parameters include: suppression ratio; When the suppression ratio is greater than or equal to the qualified threshold, confirming that the anti-shake effect of the OIS function meets the qualified requirement; When the suppression ratio is less than the qualified threshold, it is confirmed that the anti-shake effect of the OIS function does not meet the qualified requirement.
3. The method according to claim 2, characterized in that Before the step S10, the process includes: S01: In a state where the vibration of the detection device is turned off, the OIS function is turned on, and the shooting target is photographed according to the preset shooting method to obtain a reference target image, and obtain a reference contour of the shooting target in the reference target image.
4. The method according to claim 3, characterized in that The reference contour is an image contour of the photographed target in a stationary state in the reference target image.
5. The method according to claim 3, characterized in that After the step S01, the method further includes: S02: When the vibration of the detection device is turned off, the OIS function is turned off, and the shooting target is photographed according to the preset shooting method to obtain an environmental detection target image, and the stability of the shooting environment is confirmed according to the image state detection result of the environmental detection target image, and the shooting environment includes the detection device and the OIS function.
6. The method according to claim 3, characterized in that The S20 includes: S21: Simulating a first moving trajectory of the photographed target in the first target image and a second moving trajectory of the photographed target in the second target image respectively; S22: Calculating a first moving trajectory length of the first moving trajectory and a second moving trajectory length of the second moving trajectory with reference to the reference profile; S23: Calculating the suppression ratio according to the first moving track length and the second moving track length.
7. The method according to any one of claims 1 to 6, characterized in that: The preset shooting mode includes long exposure shooting.
8. The method according to any one of claims 1 to 6, characterized in that The shooting target is a test image, which includes a black background and a white foreground. The white foreground is circular and located in the center of the black background.
9. An intelligent terminal, characterized in that: The intelligent terminal comprises: a memory and a processor, wherein the memory stores a detection program, and when the detection program is executed by the processor, the steps of the detection method according to any one of claims 1 to 8 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the detection method according to any one of claims 1 to 8 are implemented.