Automatic focusing method, system and mobile terminal based on voice recognition

By using voice recognition technology in mobile terminals to recognize the user's focus instructions and control the motor to achieve focus, the problems of automatic focus defocus and long-distance focus inaccuracy in the existing technology are solved, and the convenience and accuracy of camera shooting are improved.

CN114049878BActive Publication Date: 2024-10-29HUIZHOU TCL MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111335109.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2024-10-29
Estimated Expiration
2041-11-11

AI Technical Summary

Technical Problem

The autofocus method in the existing technology is easy to lose focus when shooting point light source scenes or flat scenes without details, and cannot achieve accurate focus over long distances, causing trouble to users.

Method used

Using an autofocus method based on voice recognition, it detects when the camera turns on the voice focus mode when shooting, obtains the user's voice information in real time, recognizes the focus instructions, and controls the motor to push the lens to the designated position based on the linear relationship between the preset motor drive value and the focus distance. Focus completed.

Benefits of technology

It achieves accurate focusing in various scenes, especially accurate focusing in long distance range, which enhances the convenience and fun of camera shooting and makes up for the shortcomings of traditional motor autofocus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114049878B_ABST
    Figure CN114049878B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic focusing method, system and mobile terminal based on voice recognition, the method comprising: when detecting that the camera of the mobile terminal starts shooting, controlling the mobile terminal to enter the voice focusing mode, and the mobile terminal starts the voice recognition function; during the shooting process of the mobile terminal, the mobile terminal obtains the user's voice information in real time, and recognizes the focus instruction in the voice information; the mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction. The present invention utilizes the voice recognition function, and the user feeds back the distance required to focus to the mobile terminal through voice, and then the motor pushes the lens to the corresponding position, which can make up for the deficiency of the motor automatic focusing, and at the same time the user can freely issue the focus distance, which increases the convenience and fun of camera shooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of camera focusing technology, and in particular to an automatic focusing method, system, mobile terminal and computer-readable storage medium based on voice recognition. Background Art

[0002] Mobile terminals or mobile communication terminals refer to computer devices that can be used on the move. Broadly speaking, they include mobile phones, notebooks, tablet computers, POS machines, and even car computers. However, in most cases, they refer to mobile phones or smart phones with multiple application functions and tablet computers. As networks and technologies develop towards increasingly broadband, the mobile communication industry will move towards a true mobile information age. On the other hand, with the rapid development of integrated circuit technology, the processing power of mobile terminals has become powerful, and mobile terminals are changing from simple communication tools to comprehensive information processing platforms. This also adds a broader development space for mobile terminals.

[0003] Mobile terminals, as simple communication devices, have been accompanying the development of mobile communications for decades. Since 2007, intelligence has triggered a genetic mutation in mobile terminals, fundamentally changing the traditional positioning of terminals as the end of mobile networks. Almost in an instant, mobile smart terminals have transformed into key entrances and major innovation platforms for Internet services, new media, e-commerce and information service platforms, and the most important hub for the interaction of Internet resources, mobile network resources and environmental resources. Their operating systems and processor chips have even become the strategic commanding heights of the entire ICT industry today. The disruptive changes caused by mobile smart terminals have opened the prelude to the development of the mobile Internet industry and started a new technology industry cycle. With the continuous development of mobile smart terminals, their influence will be comparable to that of radio, television and the Internet (PC), becoming the fourth terminal product in human history that has been widely penetrated, rapidly popularized, and has a huge impact, penetrating into all aspects of human social life.

[0004] Mobile devices are equipped with voice recognition functions and motor autofocus systems. Motor autofocus refers to the process in which the camera uses a motor to automatically push the focus lens to change the object distance and image distance when taking pictures, so that the image of the object is clear. At present, the main ways to achieve autofocus with motors are Contrast AF (Contrast Detection Auto Focus, contrast detection is performed through the focus area, and the focus motor is used to drive the lens module lens to move step by step, and the contrast value is recorded in real time. After completing a full displacement of the lens, the system will obtain the position with the maximum contrast, and finally return to the place with the maximum contrast to complete the focusing process), PDAF (Phase Detection Auto Focus, phase detection autofocus, some masked pixels are reserved on the photosensitive element to act as autofocus sensors, which are specifically used for phase detection. The focus offset value is determined by comparing the distance between the pixels on the left and right sides and their changes, so as to achieve accurate focusing), LDAF (Laser Detection Auto Focus, laser focus, infrared laser is emitted to the subject through a separate infrared laser sensor, which is received by the sensor after reflection. After calculating the distance between the subjects, the focus motor will drive the lens group to the corresponding position to complete the focus), etc. However, no matter which focusing method is used, there are defects. For example, Contrast AF and PDAF are prone to defocus when shooting point light scenes or flat scenes without details, and LDAF can only focus accurately within a shorter distance range, which undoubtedly brings troubles to users.

[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0006] The main purpose of the present invention is to provide an automatic focusing method, system, mobile terminal and computer-readable storage medium based on voice recognition, aiming to solve the problem in the prior art that automatic focusing is easy to lose focus and cannot achieve accurate focusing within a long distance range.

[0007] To achieve the above object, the present invention provides an automatic focusing method based on speech recognition, and the automatic focusing method based on speech recognition comprises the following steps:

[0008] When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal turns on a voice recognition function;

[0009] During the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information;

[0010] The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction.

[0011] Optionally, the automatic focusing method based on voice recognition, wherein when it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focusing mode, and the mobile terminal turns on a voice recognition function, specifically includes:

[0012] The mobile terminal detects in real time whether the camera is in shooting mode;

[0013] If the mobile terminal detects that the camera starts shooting in shooting mode, the mobile terminal enters the voice focus mode, where the voice focus mode is a focus mode that realizes automatic focus according to a user's voice command;

[0014] When the mobile terminal enters the voice focus mode, the mobile terminal starts a voice recognition function to detect the voice uttered by the user in real time.

[0015] Optionally, in the automatic focusing method based on voice recognition, the mobile terminal enters the voice focusing mode, and then further comprises:

[0016] The mobile terminal displays, through a pop-up window on the shooting interface of the mobile terminal within a preset time, that the mobile terminal has entered the voice focus mode.

[0017] Optionally, the automatic focusing method based on voice recognition, wherein during the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focusing instruction in the voice information, specifically includes:

[0018] During the shooting process of the mobile terminal, if the current focus distance of the camera cannot meet the user's requirements, the mobile terminal prompts the user to issue a focus instruction through voice;

[0019] The mobile terminal acquires the voice information sent by the user in real time, performs voice recognition on the voice information sent by the user, and acquires the focus instruction in the voice information according to a preset voice recognition rule.

[0020] Optionally, the automatic focusing method based on voice recognition, wherein the mobile terminal controls the motor to push the lens to the position specified by the focusing instruction to complete focusing according to the focusing instruction, specifically includes:

[0021] Presetting a linear relationship between a motor driving value and a focusing distance, wherein the linear relationship is used for the motor to obtain a corresponding driving value according to the focusing distance;

[0022] After the mobile terminal obtains the focus instruction, the mobile terminal obtains the driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction;

[0023] The mobile terminal controls the motor according to the driving value of the motor to push the lens to a position specified by the driving value to complete focusing.

[0024] Optionally, the automatic focusing method based on voice recognition, wherein the step of obtaining the driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction, specifically includes:

[0025] Get the motor infinite position dis_inf, infinite end drive value dac_inf, ultra-close focus position dis_macro, and ultra-close focus position drive value dac_macro;

[0026] According to the infinite position dis_inf and the ultra-close focus position dis_macro, calculate the corresponding distance value;

[0027] The distance value at infinity is distance_inf = 1 / dis_inf;

[0028] The distance value of the super close focus position is distance_macro=1 / dis_macro;

[0029] Convert the focus distance dis obtained through voice into distance that can be used for calculation: distance = 1 / dis;

[0030] According to the linear relationship between the drive value and distance, when the user sends the focus distance dis, the drive value of the motor is:

[0031] dac_code=dac_macro+(distance-distance_macro) / (distance_inf-distance_macro)*(dac_inf-dac_macro).

[0032] Optionally, in the automatic focusing method based on voice recognition, the preset time is 3 seconds.

[0033] In addition, to achieve the above-mentioned purpose, the present invention further provides an automatic focusing system based on voice recognition, wherein the automatic focusing system based on voice recognition comprises:

[0034] A focus mode control module, for controlling the mobile terminal to enter a voice focus mode when detecting that the camera of the mobile terminal starts shooting, and the mobile terminal starts a voice recognition function;

[0035] A voice recognition module, used for the mobile terminal to obtain the user's voice information in real time during the shooting process of the mobile terminal, and to recognize the focus instruction in the voice information;

[0036] The focus control module is used for the mobile terminal to control the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a mobile terminal, wherein the mobile terminal includes: a memory, a processor, and an auto-focus program based on voice recognition stored in the memory and executable on the processor, wherein the auto-focus program based on voice recognition, when executed by the processor, implements the steps of the auto-focus method based on voice recognition as described above.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an autofocus program based on voice recognition, and when the autofocus program based on voice recognition is executed by a processor, the steps of the autofocus method based on voice recognition as described above are implemented.

[0039] In the present invention, when it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter the voice focus mode, and the mobile terminal turns on the voice recognition function; during the shooting process of the mobile terminal, the mobile terminal obtains the user's voice information in real time and recognizes the focus instruction in the voice information; the mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction. The present invention utilizes the voice recognition function, and the user feeds back the distance required to focus to the mobile terminal through voice, and then the motor pushes the lens to the corresponding position, which can make up for the deficiency of the motor automatic focus. At the same time, the user can freely issue the focus distance, which increases the convenience and fun of camera shooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of a preferred embodiment of the automatic focusing method based on speech recognition of the present invention;

[0041] Figure 2 is a flow chart of step S10 in a preferred embodiment of the automatic focusing method based on speech recognition of the present invention;

[0042] Figure 3 is a flow chart of step S20 in a preferred embodiment of the automatic focusing method based on speech recognition of the present invention;

[0043] Figure 4 is a flow chart of step S30 in a preferred embodiment of the automatic focusing method based on speech recognition of the present invention;

[0044] Figure 5 It is a schematic diagram of the principle of a preferred embodiment of the automatic focusing system based on speech recognition of the present invention;

[0045] Figure 6 The figure is a schematic diagram of the operating environment of a preferred embodiment of the mobile terminal of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0047] The automatic focusing method based on speech recognition described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the automatic focusing method based on voice recognition includes the following steps:

[0048] Step S10: When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal starts a voice recognition function.

[0049] For the specific process, please refer to Figure 2 , which is a flowchart of step S10 in the automatic focusing based on voice recognition provided by the present invention.

[0050] like Figure 2 As shown, the step S10 includes:

[0051] S11, the mobile terminal detects in real time whether the camera is in shooting mode;

[0052] S12: If the mobile terminal detects that the camera starts shooting in shooting mode, the mobile terminal enters the voice focus mode, where the voice focus mode is a focus mode that realizes automatic focus according to a user voice command;

[0053] S13. After the mobile terminal enters the voice focus mode, the mobile terminal starts a voice recognition function to detect the voice uttered by the user in real time.

[0054] Specifically, the mobile terminal (such as a smart phone) detects in real time whether the camera is in shooting mode. For example, the user enters shooting mode after clicking the camera. If the mobile terminal detects that the camera is in shooting mode and starts shooting, the mobile terminal enters the voice focus mode (equivalent to automatically switching to voice focus mode). The voice focus mode is a focus mode that realizes automatic focus according to user voice commands, that is, the user can control the mobile terminal to perform automatic focus by issuing commands through voice. When the mobile terminal enters the voice focus mode, the mobile terminal turns on the voice recognition function to detect the voice emitted by the user in real time, that is, starts to monitor the voice emitted by the user in real time.

[0055] Furthermore, the mobile terminal displays on the shooting interface of the mobile terminal through a pop-up window within a preset time that the mobile terminal has entered the voice focus mode. That is, when the mobile terminal enters the voice focus mode, a prompt that the mobile terminal has entered the voice focus mode is displayed on the interface of the mobile terminal. The display time can be 3 seconds, so that the user can know that the voice focus mode has been entered.

[0056] Step S20: During the shooting process of the mobile terminal, the mobile terminal obtains the user's voice information in real time and recognizes the focus instruction in the voice information.

[0057] For the specific process, please refer to Figure 3 , which is a flow chart of step S20 in the automatic focusing based on voice recognition provided by the present invention.

[0058] like Figure 3 As shown, the step S20 includes:

[0059] S21, during the shooting process of the mobile terminal, if the current focus distance of the camera cannot meet the user's requirements, the mobile terminal prompts the user to issue a focus instruction through voice;

[0060] S22, the mobile terminal acquires the voice information sent by the user in real time, performs voice recognition on the voice information sent by the user, and acquires the focus instruction in the voice information according to a preset voice recognition rule.

[0061] Specifically, during the shooting process of the mobile terminal, for example, when a smartphone turns on the camera to shoot, if the current focus distance of the camera cannot meet the user's needs, that is, the user finds that the currently shot picture is not clear or the angle is wrong and cannot meet the focus distance requirement, the mobile terminal prompts the user to issue a focus instruction through voice, and then the user can issue relevant voice according to the prompt. The mobile terminal obtains the voice information issued by the user in real time, performs voice recognition on the voice information issued by the user, and obtains the focus instruction in the voice information according to the preset voice recognition rules. Because the voice issued by the user may not only include the focus instruction, there may be other voices that are not the focus instruction, so it is necessary to extract the focus instruction issued by the user.

[0062] Step S30: the mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction.

[0063] For the specific process, please refer to Figure 4 , which is a flowchart of step S30 in the automatic focusing based on voice recognition provided by the present invention.

[0064] like Figure 4 As shown, the step S30 includes:

[0065] S31, presetting a linear relationship between a driving value of a motor and a focusing distance, wherein the linear relationship is used for the motor to obtain a corresponding driving value according to the focusing distance;

[0066] S32, after the mobile terminal obtains the focus instruction, obtaining a driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction;

[0067] S33. The mobile terminal controls the motor according to the driving value of the motor to push the lens to a position specified by the driving value to complete focusing.

[0068] Specifically, a linear relationship between the motor's drive value and the focusing distance is pre-set, and the linear relationship is used for the motor to obtain a corresponding drive value according to the focusing distance. Since the focusing distance is adjusted by the motor's drive value (daccode value), it is necessary to pre-set a linear relationship between the motor's drive value and the focusing distance. After the mobile terminal obtains the focusing instruction, it obtains the drive value (dac code value) corresponding to the motor in the linear relationship according to the focusing distance in the focusing instruction. Finally, the mobile terminal controls the motor according to the drive value (daccode value) of the motor to push the lens to the position specified by the drive value to complete the focusing.

[0069] Further, obtaining a driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction specifically includes:

[0070] (1) By reading the camera module OTP, obtain the motor infinite position dis_inf (unit: m), infinite end dac code value dac_inf (unit: dac), super close focus position dis_macro (unit: m), super close focus position dac code value dac_macro (unit: dac).

[0071] (2) Calculate the corresponding distance value based on the infinite distance position dis_inf and the ultra-close focus position dis_macro;

[0072] That is, the distance at infinity is: distance_inf = 1 / dis_inf;

[0073] The distance of the super close focus position is distance_macro=1 / dis_macro.

[0074] (3) The focus distance dis obtained through speech is converted into distance that can be used for calculation, that is, distance = 1 / dis.

[0075] (4) Using the linear relationship between dac code and distance, when the user sends the focus distance dis (unit: m), the motor dac code value can be calculated using the following formula: dac_code = dac_macro + (distance - distance_macro) / (distance_inf - distance_macro) * (dac_inf - dac_macro).

[0076] Through the above calculations, the user only needs to send the focus distance through voice, and the motor will push the lens to the corresponding position very quickly and accurately to obtain a clear image.

[0077] In the present invention, when the user turns on the camera to start shooting, the "voice focus" mode is entered, and the mobile terminal automatically turns on the voice recognition function and continuously obtains the user's voice information. At this time, the user can issue a focus command through voice, such as "focus to 3 meters". After the command is successfully issued, the motor will automatically push the lens to the corresponding position to complete the focus.

[0078] The present invention optimizes and develops the motor focusing method based on the intelligent voice recognition function, which is real-time, convenient and effective. The linear relationship between the motor's DAC code value and the distance is used to send the focusing distance to the terminal device through the voice recognition function. The terminal device obtains the corresponding DAC code value through calculation, and then the motor pushes the lens to the corresponding position to complete the focusing.

[0079] Furthermore, if Figure 5 As shown, based on the above-mentioned automatic focusing method based on voice recognition, the present invention also provides an automatic focusing system based on voice recognition, wherein the automatic focusing system based on voice recognition includes:

[0080] A focus mode control module 51, configured to control the mobile terminal to enter a voice focus mode when detecting that the camera of the mobile terminal starts shooting, and the mobile terminal starts a voice recognition function;

[0081] A voice recognition module 52, used for the mobile terminal to obtain the user's voice information in real time during the shooting process of the mobile terminal, and to recognize the focus instruction in the voice information;

[0082] The focus control module 53 is used for the mobile terminal to control the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction.

[0083] Furthermore, if Figure 6 As shown, based on the above-mentioned automatic focusing method and system based on voice recognition, the present invention also provides a mobile terminal accordingly, and the mobile terminal includes a processor 10, a memory 20 and a display 30. Figure 6 Only some components of the mobile terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0084] In some embodiments, the memory 20 may be an internal storage unit of the mobile terminal, such as a hard disk or memory of the mobile terminal. In other embodiments, the memory 20 may also be an external storage device of the mobile terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the mobile terminal. Further, the memory 20 may also include both an internal storage unit of the mobile terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the mobile terminal, such as the program code of the mobile terminal installed. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, an automatic focusing program 40 based on voice recognition is stored on the memory 20, and the automatic focusing program 40 based on voice recognition can be executed by the processor 10, thereby realizing the automatic focusing method based on voice recognition in the present application.

[0085] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the automatic focusing method based on voice recognition.

[0086] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the mobile terminal and to display a visual user interface. The components 10-30 of the mobile terminal communicate with each other via a system bus.

[0087] In one embodiment, when the processor 10 executes the automatic focusing program 40 based on voice recognition in the memory 20, the following steps are implemented:

[0088] When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal turns on a voice recognition function;

[0089] During the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information;

[0090] The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction.

[0091] When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal turns on a voice recognition function, which specifically includes:

[0092] The mobile terminal detects in real time whether the camera is in shooting mode;

[0093] If the mobile terminal detects that the camera starts shooting in shooting mode, the mobile terminal enters the voice focus mode, where the voice focus mode is a focus mode that realizes automatic focus according to a user's voice command;

[0094] When the mobile terminal enters the voice focus mode, the mobile terminal starts a voice recognition function to detect the voice uttered by the user in real time.

[0095] Wherein, the mobile terminal enters the voice focus mode, and then further includes:

[0096] The mobile terminal displays, through a pop-up window on the shooting interface of the mobile terminal within a preset time, that the mobile terminal has entered the voice focus mode.

[0097] Wherein, during the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information, specifically including:

[0098] During the shooting process of the mobile terminal, if the current focus distance of the camera cannot meet the user's requirements, the mobile terminal prompts the user to issue a focus instruction through voice;

[0099] The mobile terminal acquires the voice information sent by the user in real time, performs voice recognition on the voice information sent by the user, and acquires the focus instruction in the voice information according to a preset voice recognition rule.

[0100] The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction, which specifically includes:

[0101] Presetting a linear relationship between a motor driving value and a focusing distance, wherein the linear relationship is used for the motor to obtain a corresponding driving value according to the focusing distance;

[0102] After the mobile terminal obtains the focus instruction, the mobile terminal obtains the driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction;

[0103] The mobile terminal controls the motor according to the driving value of the motor to push the lens to a position specified by the driving value to complete focusing.

[0104] The step of obtaining the driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction specifically includes:

[0105] Get the motor infinite position dis_inf, infinite end drive value dac_inf, ultra-close focus position dis_macro, and ultra-close focus position drive value dac_macro;

[0106] According to the infinite position dis_inf and the ultra-close focus position dis_macro, calculate the corresponding distance value;

[0107] The distance value at infinity is distance_inf = 1 / dis_inf;

[0108] The distance value of the super close focus position is distance_macro=1 / dis_macro;

[0109] Convert the focus distance dis obtained through voice into distance that can be used for calculation: distance = 1 / dis;

[0110] According to the linear relationship between the drive value and distance, when the user sends the focus distance dis, the drive value of the motor is:

[0111] dac_code=dac_macro+(distance-distance_macro) / (distance_inf-distance_macro)*(dac_inf-dac_macro).

[0112] Wherein, the preset time is 3 seconds.

[0113] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an automatic focusing program based on voice recognition, and when the automatic focusing program based on voice recognition is executed by a processor, the steps of the automatic focusing method based on voice recognition as described above are implemented.

[0114] In summary, the present invention provides an automatic focusing method, system and mobile terminal based on voice recognition, the method comprising: when it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter the voice focusing mode, and the mobile terminal turns on the voice recognition function; during the shooting process of the mobile terminal, the mobile terminal obtains the user's voice information in real time, and recognizes the focus instruction in the voice information; the mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction. The present invention utilizes the voice recognition function, and the user feeds back the distance required to focus to the mobile terminal through voice, and then the motor pushes the lens to the corresponding position, which can make up for the shortcomings of the motor automatic focus. At the same time, the user can freely issue the focus distance, which increases the convenience and fun of camera shooting.

[0115] 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 mobile terminal including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or mobile terminal. 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 mobile terminal including the element.

[0116] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0117] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. An automatic focusing method based on speech recognition, characterized in that: The automatic focusing method based on voice recognition comprises: When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal turns on a voice recognition function; During the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information; During the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information, specifically including: During the shooting process of the mobile terminal, if the current focus distance of the camera cannot meet the user's requirements, the mobile terminal prompts the user to issue a focus instruction through voice; When the user finds that the currently captured image is not clear or the angle is wrong and cannot meet the focus distance requirement, the mobile terminal prompts the user to issue a focus instruction through voice; The mobile terminal acquires the voice information sent by the user in real time, performs voice recognition on the voice information sent by the user, and acquires the focus instruction in the voice information according to a preset voice recognition rule; The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction; The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction, which specifically includes: Presetting a linear relationship between a motor driving value and a focusing distance, wherein the linear relationship is used for the motor to obtain a corresponding driving value according to the focusing distance; After the mobile terminal obtains the focus instruction, the driving value corresponding to the motor is obtained in the linear relationship according to the focus distance in the focus instruction, and the focus distance is adjusted by the driving value of the motor; The mobile terminal controls the motor according to the driving value of the motor to push the lens to a position specified by the driving value to complete focusing; The step of obtaining a driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction specifically includes: Get the motor infinite position dis_inf, infinite end drive value dac_inf, ultra-close focus position dis_macro, and ultra-close focus position drive value dac_macro; According to the infinite position dis_inf and the ultra-close focus position dis_macro, calculate the corresponding distance value; The distance value at infinity is distance_inf = 1 / dis_inf; The distance value of the super close focus position is distance_macro=1 / dis_macro; Convert the focus distance dis obtained through voice into distance that can be used for calculation: distance = 1 / dis; According to the linear relationship between the drive value and distance, when the user sends the focus distance dis, the drive value of the motor is: dac_code=dac_macro+(distance-distance_macro) / (distance_inf-distance_ macro)*(dac_inf-dac_macro).

2. The automatic focusing method based on speech recognition according to claim 1, characterized in that: When it is detected that the camera of the mobile terminal starts shooting, the mobile terminal is controlled to enter a voice focus mode, and the mobile terminal starts a voice recognition function, specifically including: The mobile terminal detects in real time whether the camera is in shooting mode; If the mobile terminal detects that the camera starts shooting in shooting mode, the mobile terminal enters the voice focus mode, where the voice focus mode is a focus mode that realizes automatic focus according to a user's voice command; When the mobile terminal enters the voice focus mode, the mobile terminal starts a voice recognition function to detect the voice uttered by the user in real time.

3. The automatic focusing method based on speech recognition according to claim 2, characterized in that: The mobile terminal enters the voice focus mode, and then further includes: The mobile terminal displays, through a pop-up window on the shooting interface of the mobile terminal within a preset time, that the mobile terminal has entered the voice focus mode.

4. The automatic focusing method based on speech recognition according to claim 3, characterized in that: The preset time is 3 seconds.

5. An automatic focusing system based on speech recognition, characterized in that: The automatic focusing system based on voice recognition comprises: A focus mode control module, for controlling the mobile terminal to enter a voice focus mode when detecting that the camera of the mobile terminal starts shooting, and the mobile terminal starts a voice recognition function; A voice recognition module, used for the mobile terminal to obtain the user's voice information in real time during the shooting process of the mobile terminal, and to recognize the focus instruction in the voice information; During the shooting process of the mobile terminal, the mobile terminal acquires the user's voice information in real time and recognizes the focus instruction in the voice information, specifically including: During the shooting process of the mobile terminal, if the current focus distance of the camera cannot meet the user's requirements, the mobile terminal prompts the user to issue a focus instruction through voice; When the user finds that the currently captured image is not clear or the angle is wrong and cannot meet the focus distance requirement, the mobile terminal prompts the user to issue a focus instruction through voice; The mobile terminal acquires the voice information sent by the user in real time, performs voice recognition on the voice information sent by the user, and acquires the focus instruction in the voice information according to a preset voice recognition rule; A focus control module, used for the mobile terminal to control the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction; The mobile terminal controls the motor to push the lens to the position specified by the focus instruction to complete the focus according to the focus instruction, which specifically includes: Presetting a linear relationship between a motor driving value and a focusing distance, wherein the linear relationship is used for the motor to obtain a corresponding driving value according to the focusing distance; After the mobile terminal obtains the focus instruction, the driving value corresponding to the motor is obtained in the linear relationship according to the focus distance in the focus instruction, and the focus distance is adjusted by the driving value of the motor; The mobile terminal controls the motor according to the driving value of the motor to push the lens to a position specified by the driving value to complete focusing; The step of obtaining a driving value corresponding to the motor in the linear relationship according to the focus distance in the focus instruction specifically includes: Get the motor infinite position dis_inf, infinite end drive value dac_inf, ultra-close focus position dis_macro, and ultra-close focus position drive value dac_macro; According to the infinite position dis_inf and the ultra-close focus position dis_macro, calculate the corresponding distance value; The distance value at infinity is distance_inf = 1 / dis_inf; The distance value of the super close focus position is distance_macro=1 / dis_macro; Convert the focus distance dis obtained through voice into distance that can be used for calculation: distance = 1 / dis; According to the linear relationship between the drive value and distance, when the user sends the focus distance dis, the drive value of the motor is: dac_code=dac_macro+(distance-distance_macro) / (distance_inf-distance_ macro)*(dac_inf-dac_macro).

6. A mobile terminal, characterized in that: The mobile terminal includes: a memory, a processor, and an auto-focus program based on voice recognition stored in the memory and executable on the processor. When the auto-focus program based on voice recognition is executed by the processor, the steps of the auto-focus method based on voice recognition as described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an automatic focusing program based on voice recognition, and when the automatic focusing program based on voice recognition is executed by a processor, the steps of the automatic focusing method based on voice recognition as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Automatic focusing device and method for smart terminal camera

    CN106375668A

  • Focus control method and focus control apparatus

    CN1800900A