CN114143450A - Mobile terminal focusing processing method and device, mobile terminal and storage medium - Google Patents

Mobile terminal focusing processing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN114143450A
CN114143450A CN202111375580.9A CN202111375580A CN114143450A CN 114143450 A CN114143450 A CN 114143450A CN 202111375580 A CN202111375580 A CN 202111375580A CN 114143450 A CN114143450 A CN 114143450A
Authority
CN
China
Prior art keywords
focusing
focus
target
mobile terminal
tracking target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111375580.9A
Other languages
Chinese (zh)
Other versions
CN114143450B (en
Inventor
张虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202111375580.9A priority Critical patent/CN114143450B/en
Publication of CN114143450A publication Critical patent/CN114143450A/en
Application granted granted Critical
Publication of CN114143450B publication Critical patent/CN114143450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a mobile terminal focusing processing method, a mobile terminal focusing processing device, a mobile terminal and a storage medium, wherein the method comprises the following steps: when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target; when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm; and when the loss of the focus tracking target is detected and the time for losing the focus tracking target exceeds the preset time, the automatic focusing is recovered. The mobile terminal aims to solve the technical problems that poor focusing can occur when a target is temporarily shielded in an automatic focusing process of a mobile terminal in the prior art, so that the target is lost in the focusing process, bad experience is caused, and the use by a user is inconvenient. The method can realize that the main focusing effect is not influenced if the target is temporarily lost/shielded in the focusing process, and provides convenience for the use of a user.

Description

Mobile terminal focusing processing method and device, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a mobile terminal focusing processing method and device, a mobile terminal and a storage medium.
Background
With the development of science and technology and the continuous improvement of the living standard of people, various mobile terminals such as mobile phones are more and more popular, and the mobile phones become indispensable communication tools in the life of people.
In the prior art, in order to obtain a clearer picture when a mobile object is shot, mobile phone manufacturers add a click focus-following function to a camera. But during the focus tracking, if the target is lost (possibly only temporarily occluded), it will revert to auto-focus. In the process, the motor stretches back and forth, if the tracked target is a close shot and the focus is restored to be in a long shot after the automatic focusing, the close shot cannot be tracked again due to blurring, and the short-time focusing effect is poor, that is, in the automatic focusing process of the mobile terminal in the prior art, poor focusing occurs when the target is temporarily shielded, so that the target is lost in the focusing process, poor experience is caused, and the use by a user is inconvenient.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The present invention provides a method and an apparatus for focusing a mobile terminal, a mobile terminal and a storage medium, which aim to solve the technical problems that in the automatic focus tracking process of the mobile terminal in the prior art, a target is temporarily blocked and is badly focused, so that the target is lost in the focus tracking process, which causes bad experience and is inconvenient for a user to use. The method can realize that the main focusing effect is not influenced if the target is temporarily lost/shielded in the focusing process, and provides convenience for the use of a user.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a mobile terminal focusing processing method, wherein the method comprises the following steps:
detecting a focus following target needing focusing;
when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target;
detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm;
and when the loss of the focus tracking target is detected and the time for losing the focus tracking target exceeds the preset time, the automatic focusing is recovered.
The mobile terminal focusing processing method, wherein the step of detecting and acquiring the focus-following target needing focusing comprises the following steps:
and detecting the function of the camera to be started, and detecting the focus-following target needing focusing in real time on a preview interface.
The mobile terminal focusing processing method comprises the following steps of starting a focusing instruction when a focusing target needing focusing is detected, and continuously focusing the focusing target, wherein the steps of:
detecting whether an operation instruction for clicking the focus tracking target exists on a preview interface;
when an operation instruction of clicking a focus tracking target is detected on the preview interface, confirming that the focus tracking target needing focusing is detected;
and starting a focusing instruction based on the detected focus-following target needing focusing, and continuously focusing the focus-following target.
The mobile terminal focusing processing method comprises the following steps of, in the continuous focusing process, detecting whether the focused target is lost or not:
judging whether the focus tracking target is lost from a preview picture or not in the continuous focus tracking process;
when the focus tracking target is not lost from the preview picture, continuously tracking the focus;
and when the focus tracking target is lost from the preview picture, judging whether the time for losing the focus tracking target exceeds preset time.
The mobile terminal focusing processing method comprises the following steps of, when it is detected that the focus tracking target is lost and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focusing distance to be unchanged and continuously finding the focus tracking target through an object tracking algorithm, wherein the step of:
and when the loss of the focus tracking target is detected and the loss time of the focus tracking target is less than or equal to the preset time, controlling to keep the position of the camera motor and the focusing distance unchanged temporarily, and continuously finding the focus tracking target by an object tracking algorithm.
The focusing processing method of the mobile terminal, wherein the step of continuously finding the focus-following target through the object tracking algorithm further comprises the following steps:
judging whether the focus tracking target is found back;
when the focus tracking target is found back, controlling to continuously track the focus tracking target;
and when the focus tracking target is not found back, judging whether the time for losing the focus tracking target exceeds preset time.
The mobile terminal focusing processing method comprises the following steps of, when it is detected that the focus tracking target is lost and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focusing distance to be unchanged and continuously finding the focus tracking target through an object tracking algorithm, wherein the step of:
and when the temporary shielding of the focus tracking target is detected, and the temporary shielding time is less than or equal to the preset time, controlling a camera motor to be protected, so that the focusing distance is kept unchanged, and continuously finding the focus tracking target through an object tracking algorithm.
A mobile terminal focus processing apparatus, wherein the apparatus comprises:
the focus tracking target detection module is used for detecting a focus tracking target needing focusing;
the continuous focusing module is used for starting a focusing instruction when a focusing target needing focusing is detected, and continuously focusing the focusing target;
the target detection module is used for detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
the detection control module is used for controlling the focusing distance to be unchanged and continuously finding the focus-following target through an object tracking algorithm when the focus-following target is detected to be lost and the time for losing the focus-following target is less than or equal to the preset time;
and the overtime control module is used for recovering automatic focusing when the loss of the focus tracking target is detected and the loss time of the focus tracking target exceeds the preset time.
A mobile terminal comprises a memory, a processor and a mobile terminal focusing processing program which is stored in the memory and can run on the processor, wherein when the processor executes the mobile terminal focusing processing program, the steps of any one of the mobile terminal focusing processing methods are realized.
A computer readable storage medium, wherein the computer readable storage medium has a mobile terminal focusing processing program stored thereon, and when the mobile terminal focusing processing program is executed by a processor, the steps of any one of the mobile terminal focusing processing methods are implemented.
Has the advantages that: compared with the prior art, the invention provides a mobile terminal focusing processing method and device, a mobile terminal and a storage medium. In the automatic focus tracking process, the focus can be kept unchanged if the target is temporarily lost, so that the object tracking algorithm can conveniently retrieve the focus tracking target at any time, the automatic focus tracking method is particularly suitable for complex scenes such as crowds, and the like, and provides convenience for users. In the automatic focus tracking process of the mobile terminal, when a target is temporarily shielded, the mobile terminal can control the motor to keep still, and the focusing distance cannot be changed; the focusing on the focus tracking target is not influenced, the main focusing effect is not influenced, and convenience is provided for the use of a user.
Drawings
Fig. 1 is a schematic diagram illustrating focusing processing effects of a mobile terminal in the prior art.
Fig. 2 is a flowchart of a specific implementation of a focusing processing method of a mobile terminal according to embodiment 1 of the present invention.
Fig. 3 is a schematic structural diagram of a preview interface of a focusing processing method of a mobile terminal according to an embodiment of the present invention.
Fig. 4 is a flowchart of a specific implementation of a focusing processing method of a mobile terminal according to embodiment 2 of the present invention.
Fig. 5 is a schematic block diagram of a focusing processing apparatus of a mobile terminal according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of an internal structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, 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 merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
With the development of science and technology and the continuous improvement of the living standard of people, various mobile terminals such as mobile phones are more and more popular, and the mobile phones become indispensable communication tools in the life of people.
In the prior art, in order to obtain a clearer picture when a mobile object is shot, mobile phone manufacturers add a click focus-following function to a camera. But during the focus tracking, if the target is lost (possibly only temporarily occluded), it will revert to auto-focus. In the process, the motor stretches back and forth, if the tracked target is a close shot and the focus is restored to be in a long shot after the automatic focusing, the close shot cannot be tracked again due to blurring, and the short-time focusing effect is poor, that is, in the automatic focusing process of the mobile terminal in the prior art, poor focusing occurs when the target is temporarily shielded, so that the target is lost in the focusing process, poor experience is caused, and the use by a user is inconvenient.
Fig. 1 is a schematic diagram of a camera shooting process of a mobile terminal in the prior art. As shown in fig. 1, when a dog in a computer video is photographed, a mobile terminal in the prior art focuses on the dog, and when a blocking object appears, the dog as a target object is temporarily blocked by a pen holder as shown in the left diagram of fig. 1, the middle diagram of fig. 1 loses a tracking target due to the existence of the blocking object, the middle diagram of fig. 1 turns to focus on the pen holder, the photographing of the dog is unclear, the automatic focusing is recovered, and when a camera recovers to be automatically focused, if the position of the focused target exceeds the depth of field range after the automatic focusing, an object tracking algorithm cannot be re-identified due to blurring; if the target position can be identified again, the user can obviously perceive the movement of the motor and the focusing action because the focusing is changed back and forth, so that the process of 'clear → fuzzy → clearer' is caused, and the technical problem of poor experience is brought.
The depth of field refers to the distance range of a clear image presented in the range before and after the focus after the focusing is finished; and the reduction: objects that are beyond the depth of field exhibit an unclear state.
In order to solve the above problem, an embodiment of the present invention provides a method for focusing a mobile terminal, which detects a focus-following target that needs to be focused; when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target; detecting whether the focus tracking target is lost or not in the continuous focus tracking process; when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm; and when the loss of the focus tracking target is detected and the time for losing the focus tracking target exceeds the preset time, the automatic focusing is recovered. According to the invention, when the tracking target is temporarily shielded, the motor is kept still, the focusing distance is not changed, the experience is better, convenience is provided for the user, and the user experience is improved.
Exemplary method
First embodiment
As shown in fig. 2, an embodiment of the present invention provides a mobile terminal focusing method, which can be used in mobile devices such as a mobile phone and a tablet computer. The method in the embodiment of the invention comprises the following steps:
s100, detecting a focus tracking target needing focusing;
in the embodiment of the invention, in order to obtain a clearer picture when a moving object is shot, a click focus tracking function is added into a camera, automatic focusing is suspended if a target is lost (possibly temporarily blocked) in the focus tracking process, a motor is controlled to be kept still, and the focus distance is kept unchanged.
In the specific implementation, when a user operates the mobile terminal, for example, operates a mobile phone to start a camera, the mobile terminal detects that the camera function is started, and displays a preview interface on a shooting picture. Namely, whether a user operates to click the focus-following target needing focusing is detected.
In the embodiment of the present invention, the focus tracking means: the focusing point of the camera always follows the shooting object, and the focusing is carried out in real time along with the movement of the object in the picture.
S200, when a focus tracking target needing focusing is detected, starting a focusing instruction, and continuously tracking the focus tracking target;
when the step is implemented specifically, whether an operation instruction for clicking the focus tracking target exists or not is detected on a preview interface of the camera, namely whether a user clicks on which object to track the focus tracking target on the preview interface or not is detected; the click focus tracking in the embodiment of the present invention refers to that an object is clicked on a screen, and the object is continuously identified by using an object tracking algorithm to track the object.
In the invention, when an operation instruction of clicking a focus tracking target is detected on a preview interface, the focus tracking target needing focusing is confirmed to be detected; and starting a focusing instruction based on the detected focus-following target needing focusing, and continuously focusing the focus-following target.
That is, in the embodiment of the present invention, when it is detected that a certain object is clicked on the screen, the object is continuously identified by using the object tracking algorithm, the object is focused to keep the focus point of the camera following the shooting object, and the object is focused in real time along with the movement of the object on the screen, that is, the object clicked by the user is focused, and the process proceeds to step S300.
Step S300, detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
in the embodiment of the invention, whether the focus tracking target is lost or not is detected in the continuous focus tracking process. Namely, the invention detects whether the focus tracking target is lost or temporarily blocked when the focus tracking is continuously carried out.
In specific implementation, in the process of continuous focus tracking, whether the focus tracking target is lost from a preview picture (including whether the focus tracking target is temporarily blocked) is judged; when the focus tracking target is not lost from the preview picture, continuously tracking the focus;
in this embodiment of the present invention, when the focused object is lost from the preview screen, where the lost is that the focused object is lost from the screen (may be temporarily blocked or partially blocked, as shown in fig. 3), it is determined whether the time for losing the focused object exceeds a predetermined time, for example, as shown in fig. 3, it is determined whether a dog, which is a focused object, blocks the focused object for more than 3 seconds, so as to determine whether the lost focused object is blocked by a temporary blocking object or temporarily moves out of the screen.
S400, when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm;
in the embodiment of the invention, when the loss of the focus tracking target is detected and the loss time of the focus tracking target is less than or equal to the preset time, the focusing distance is controlled to be kept unchanged, and the focus tracking target is continuously found through an object tracking algorithm. For example, as shown in the middle diagram of fig. 3, when the dog as the focus tracking target is blocked and lost in the detection preview picture, and the time for the focus tracking target to be blocked and lost is less than or equal to the predetermined time (3 seconds), the focusing distance is controlled to be unchanged in the embodiment of the present invention, so that the focus tracking target does not appear a blur phenomenon, and the focus tracking target is continuously retrieved through the object tracking algorithm.
As shown in the middle diagram of fig. 3, when it is detected that the focused object (dog in the middle of fig. 3) is lost and the focused object loss time is less than or equal to a predetermined time (e.g., 3 seconds), the control temporarily keeps the camera motor position and the focusing distance for focusing unchanged, and continuously retrieves the focused object through an object tracking algorithm. That is, in the embodiment of the present invention, when the focus tracking target is focused, the focus tracking target is temporarily blocked by a blocking object, or the focus tracking target temporarily moves the picture, and as long as the temporary time does not exceed 3 seconds, the present invention does not refocus again, and controls the position of the camera motor and the focusing distance for focusing to be temporarily kept unchanged, as shown in the middle of fig. 3, so that the situation that the picture of the focus object is blurred is not generated even if the focus object is temporarily blocked or temporarily lost in the focusing process.
Specifically, when the temporary shielding of the focus tracking target is detected, and the temporary shielding time is less than or equal to the preset time (3 seconds), the camera motor is controlled to be kept stationary, so that the focusing distance is kept unchanged, and the focus tracking target is continuously found back through an object tracking algorithm, so that the clicked focus tracking target can continuously keep a clear picture.
In an embodiment of the present invention, the step of continuously retrieving the focus-tracking target by using an object tracking algorithm further includes: judging whether the focus tracking target is found back; when the focus tracking target is found back, controlling to continuously track the focus tracking target; and when the focused target is not found back, judging whether the lost time of the focused target exceeds the preset time, if not, continuing to execute the step S400 until the time is out, and entering the step S500, and if so, directly entering the step S500.
And step S500, when the loss of the focus tracking target is detected and the loss time of the focus tracking target exceeds the preset time, the automatic focusing is recovered.
In the embodiment of the invention, if the focus tracking target is lost and exceeds the preset time, for example, more than 3 seconds, the user is considered to abandon the currently clicked focus tracking target, the automatic focusing can be controlled to be restored again, and convenience is provided for the user to use.
As shown in fig. 4, the method for focusing a mobile terminal according to an embodiment of the present invention includes the following steps:
step S10, start, proceed to step S11;
step S11, clicking an object to identify a focus tracking target; and proceeds to step S12;
step S12, continuously focusing, namely continuously focusing the clicked focusing target;
step S13, judging whether the object is lost, namely whether the focus tracking target is lost or blocked, if so, entering step S14, and if not, returning to step S12;
step S14, determining whether the time exceeds n seconds, that is, determining whether the focus tracking target is lost for more than n seconds (for example, 3 seconds), if yes, proceeding to step S17, and if no, proceeding to step S15;
step S15, the object tracking algorithm continues to recognize the screen while keeping the focus unchanged, and the process proceeds to step S16.
In other words, in the invention, when the loss or the shielding of the focus tracking target is detected to exceed the preset time, for example, 3 seconds, the motor is controlled to keep still, the focusing distance is not changed, and the focus tracking target is kept clear continuously.
Step S16, judging whether the target object is recovered, if yes, going to step S12, if no, going to step S14
Step S17, restoring automatic focusing
And step S18, end.
As shown in fig. 3, according to the embodiment of the method of the present invention, when a blocking object appears in front of the selected tracking target, that is, when the tracking target is temporarily blocked, the motor is controlled to remain stationary, and the focusing distance is not changed; the focusing of the focus tracking target is not influenced, and the process of 'clear → clear (after the focus tracking target is shielded or clear) → continue clear' is experienced, so that convenience is provided for the use of a user.
Exemplary device
As shown in fig. 5, an embodiment of the present invention provides a mobile terminal focusing processing apparatus, including:
a focus tracking target detection module 610, configured to detect a focus tracking target that needs to be focused;
the continuous focusing module 620 is configured to start a focusing instruction when a focusing target needing focusing is detected, and continuously focus the focusing target;
a target detection module 630, configured to detect whether the focus tracking target is lost during the continuous focus tracking process;
the detection control module 640 is used for controlling the focusing distance to be unchanged and continuously finding the focused target through an object tracking algorithm when the focused target is detected to be lost and the time for losing the focused target is less than or equal to a preset time;
the timeout control module 650 is configured to, when it is detected that the focus tracking target is lost and the time for losing the focus tracking target exceeds a predetermined time, resume automatic focusing, specifically as described above.
Based on the above embodiments, the present invention further provides a mobile terminal, and a schematic block diagram thereof may be as shown in fig. 6. The mobile terminal comprises a processor, a memory, a network interface and a display screen which are connected through a system bus. Wherein the processor of the mobile terminal is configured to provide computing and control capabilities. The memory of the mobile terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the mobile terminal is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a mobile terminal focusing process. The display screen of the mobile terminal can be a liquid crystal display screen or an electronic ink display screen.
It will be understood by those skilled in the art that the block diagram in fig. 6 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the mobile terminal to which the solution of the present invention is applied, and a specific mobile terminal may include more or less components than those in the figure, or combine some components or have different component arrangements.
In one embodiment, a mobile terminal is provided, the mobile terminal includes a memory, a processor, and a mobile terminal focusing processing program stored on and executable on the processor, the processing performs the following steps:
detecting a focus following target needing focusing;
when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target;
detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm;
when it is detected that the tracking target is lost and the tracking target loss time exceeds the predetermined time, the automatic focusing is resumed, as described above.
The step of detecting and acquiring a focus-following target needing focusing comprises the following steps:
and detecting the function of the camera to be started, and detecting the focus-following target needing focusing in real time on a preview interface.
When a focus-following target needing focusing is detected, a focusing instruction is started, and the step of continuously following the focus of the focus-following target comprises the following steps:
detecting whether an operation instruction for clicking the focus tracking target exists on a preview interface;
when an operation instruction of clicking a focus tracking target is detected on the preview interface, confirming that the focus tracking target needing focusing is detected;
based on the detected focus-following target needing focusing, a focusing instruction is started, and the focus-following target is continuously focused, specifically as described above.
Wherein, in the continuous focus tracking process, the step of detecting whether the tracking target is lost or not comprises the following steps:
judging whether the focus tracking target is lost from a preview picture or not in the continuous focus tracking process;
when the focus tracking target is not lost from the preview picture, continuously tracking the focus;
when the focus tracking target is lost from the preview screen, it is determined whether the focus tracking target loss time exceeds a predetermined time, specifically as described above.
Wherein, when it is detected that the focused target is lost and the time for losing the focused target is less than or equal to the preset time, the step of controlling the focusing distance to keep unchanged and continuously finding the focused target by an object tracking algorithm comprises the following steps:
and when the loss of the focus tracking target is detected and the loss time of the focus tracking target is less than or equal to the preset time, controlling to keep the position of the camera motor and the focusing distance unchanged temporarily, and continuously finding the focus tracking target by an object tracking algorithm.
Wherein, the step of continuously finding the focus-following target by the object tracking algorithm further comprises:
judging whether the focus tracking target is found back;
when the focus tracking target is found back, controlling to continuously track the focus tracking target;
when the focused target is not retrieved, it is determined whether the time for losing the focused target exceeds a predetermined time, specifically as described above.
Wherein, when it is detected that the focused target is lost and the time for losing the focused target is less than or equal to the preset time, the step of controlling the focusing distance to keep unchanged and continuously finding the focused target by an object tracking algorithm comprises the following steps:
when the temporary shielding of the focus tracking target is detected, and the temporary shielding time is less than or equal to the preset time, controlling a camera motor to be protected to keep the focus distance unchanged, and continuously retrieving the focus tracking target through an object tracking algorithm, which is specifically described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a mobile terminal focusing processing method, an apparatus, a mobile terminal and a storage medium, wherein the method comprises: when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target; when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm; and when the loss of the focus tracking target is detected and the time for losing the focus tracking target exceeds the preset time, the automatic focusing is recovered. The mobile terminal aims to solve the technical problems that poor focusing can occur when a target is temporarily shielded in an automatic focusing process of a mobile terminal in the prior art, so that the target is lost in the focusing process, bad experience is caused, and the use by a user is inconvenient. The method can realize that the main focusing effect is not influenced if the target is temporarily lost/shielded in the focusing process, and provides convenience for the use of a user.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A mobile terminal focusing processing method is characterized by comprising the following steps:
detecting a focus following target needing focusing;
when a focus-following target needing focusing is detected, starting a focusing instruction, and continuously following the focus of the focus-following target;
detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
when the fact that the focus tracking target is lost is detected, and the time for losing the focus tracking target is less than or equal to the preset time, controlling the focus distance to be unchanged, and continuously finding the focus tracking target through an object tracking algorithm;
and when the loss of the focus tracking target is detected and the time for losing the focus tracking target exceeds the preset time, the automatic focusing is recovered.
2. The mobile terminal focusing processing method according to claim 1, wherein the step of detecting and acquiring a focus-following target needing focusing comprises:
and detecting the function of the camera to be started, and detecting the focus-following target needing focusing in real time on a preview interface.
3. The focusing processing method of the mobile terminal according to claim 1, wherein when a focusing target needing focusing is detected, a focusing instruction is started, and the step of continuously focusing the focusing target comprises:
detecting whether an operation instruction for clicking the focus tracking target exists on a preview interface;
when an operation instruction of clicking a focus tracking target is detected on the preview interface, confirming that the focus tracking target needing focusing is detected;
and starting a focusing instruction based on the detected focus-following target needing focusing, and continuously focusing the focus-following target.
4. The mobile terminal focusing processing method according to claim 1, wherein the step of detecting whether the focused object is lost or not in the continuous focusing process comprises:
judging whether the focus tracking target is lost from a preview picture or not in the continuous focus tracking process;
when the focus tracking target is not lost from the preview picture, continuously tracking the focus;
and when the focus tracking target is lost from the preview picture, judging whether the time for losing the focus tracking target exceeds preset time.
5. The mobile terminal focusing processing method according to claim 1, wherein the step of controlling the focusing distance to remain unchanged and continuously finding the focused target through an object tracking algorithm when detecting that the focused target is lost and the time for losing the focused target is less than or equal to a predetermined time comprises:
and when the loss of the focus tracking target is detected and the loss time of the focus tracking target is less than or equal to the preset time, controlling to keep the position of the camera motor and the focusing distance unchanged temporarily, and continuously finding the focus tracking target by an object tracking algorithm.
6. The mobile terminal focusing processing method of claim 1, wherein the step of continuously retrieving the focus-finding target through the object tracking algorithm further comprises:
judging whether the focus tracking target is found back;
when the focus tracking target is found back, controlling to continuously track the focus tracking target;
and when the focus tracking target is not found back, judging whether the time for losing the focus tracking target exceeds preset time.
7. The mobile terminal focusing processing method according to claim 1, wherein the step of controlling the focusing distance to remain unchanged and continuously finding the focused target through an object tracking algorithm when detecting that the focused target is lost and the time for losing the focused target is less than or equal to a predetermined time comprises:
and when the temporary shielding of the focus tracking target is detected, and the temporary shielding time is less than or equal to the preset time, controlling a camera motor to be protected, so that the focusing distance is kept unchanged, and continuously finding the focus tracking target through an object tracking algorithm.
8. A mobile terminal focusing processing device, characterized in that the device comprises:
the focus tracking target detection module is used for detecting a focus tracking target needing focusing;
the continuous focusing module is used for starting a focusing instruction when a focusing target needing focusing is detected, and continuously focusing the focusing target;
the target detection module is used for detecting whether the focus tracking target is lost or not in the continuous focus tracking process;
the detection control module is used for controlling the focusing distance to be unchanged and continuously finding the focus-following target through an object tracking algorithm when the focus-following target is detected to be lost and the time for losing the focus-following target is less than or equal to the preset time;
and the overtime control module is used for recovering automatic focusing when the loss of the focus tracking target is detected and the loss time of the focus tracking target exceeds the preset time.
9. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a mobile terminal focusing processing program stored in the memory and operable on the processor, and the processor implements the steps of the mobile terminal focusing processing method according to any one of claims 1 to 7 when executing the mobile terminal focusing processing program.
10. A computer-readable storage medium, having a mobile terminal focus processing program stored thereon, which when executed by a processor, implements the steps of the mobile terminal focus processing method according to any one of claims 1-7.
CN202111375580.9A 2021-11-19 2021-11-19 Mobile terminal focusing processing method and device, mobile terminal and storage medium Active CN114143450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111375580.9A CN114143450B (en) 2021-11-19 2021-11-19 Mobile terminal focusing processing method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111375580.9A CN114143450B (en) 2021-11-19 2021-11-19 Mobile terminal focusing processing method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114143450A true CN114143450A (en) 2022-03-04
CN114143450B CN114143450B (en) 2024-04-12

Family

ID=80390332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111375580.9A Active CN114143450B (en) 2021-11-19 2021-11-19 Mobile terminal focusing processing method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114143450B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070196091A1 (en) * 2006-02-22 2007-08-23 Pentax Corporation Auto focus unit and digital camera
CN101086599A (en) * 2006-06-09 2007-12-12 索尼株式会社 Imaging apparatus, imaging apparatus control method, and computer program
CN103997598A (en) * 2013-02-14 2014-08-20 三星电子株式会社 Method of tracking object using camera and camera system for object tracking
CN104954695A (en) * 2015-07-14 2015-09-30 厦门美图之家科技有限公司 Focusing locking method and system for video shooting
CN104994297A (en) * 2015-07-09 2015-10-21 厦门美图之家科技有限公司 Focusing and metering locking method and system for panoramic shooting
CN105007426A (en) * 2015-07-27 2015-10-28 厦门美图之家科技有限公司 Focusing method and focusing system based on face recognition
CN112291480A (en) * 2020-12-03 2021-01-29 维沃移动通信有限公司 Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN116418975A (en) * 2022-01-04 2023-07-11 北京小米移动软件有限公司 Occlusion detection method, device and medium for camera group

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070196091A1 (en) * 2006-02-22 2007-08-23 Pentax Corporation Auto focus unit and digital camera
CN101086599A (en) * 2006-06-09 2007-12-12 索尼株式会社 Imaging apparatus, imaging apparatus control method, and computer program
CN103997598A (en) * 2013-02-14 2014-08-20 三星电子株式会社 Method of tracking object using camera and camera system for object tracking
CN104994297A (en) * 2015-07-09 2015-10-21 厦门美图之家科技有限公司 Focusing and metering locking method and system for panoramic shooting
CN104954695A (en) * 2015-07-14 2015-09-30 厦门美图之家科技有限公司 Focusing locking method and system for video shooting
CN105007426A (en) * 2015-07-27 2015-10-28 厦门美图之家科技有限公司 Focusing method and focusing system based on face recognition
CN112291480A (en) * 2020-12-03 2021-01-29 维沃移动通信有限公司 Tracking focusing method, tracking focusing device, electronic device and readable storage medium
CN116418975A (en) * 2022-01-04 2023-07-11 北京小米移动软件有限公司 Occlusion detection method, device and medium for camera group

Also Published As

Publication number Publication date
CN114143450B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US7965317B2 (en) System and method for implementation motion-driven multi-shot image stabilization
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
CN108377342B (en) Double-camera shooting method and device, storage medium and terminal
EP3146707A1 (en) Enhanced image capture
AU2015264713A1 (en) Enhanced image capture
CN110769147A (en) Shooting method and electronic equipment
CN113824876A (en) Method and device for processing picture stability under digital zooming, mobile terminal and medium
CN107003730B (en) Electronic equipment, photographing method and photographing device
CN114143450B (en) Mobile terminal focusing processing method and device, mobile terminal and storage medium
CN111225144A (en) Video shooting method and device, electronic equipment and computer storage medium
CN111970435B (en) Method and device for macro photography
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN112672058B (en) Shooting method and device
CN104601884A (en) Photograph method and terminal
JP2010034885A (en) Imaging apparatus
CN107707819B (en) Image shooting method, device and storage medium
CN113766090B (en) Image processing method, terminal and storage medium
CN107197155B (en) Method and system for focusing after photographing, mobile terminal and storage device
CN112911148B (en) Image processing method and device and electronic equipment
CN106851116B (en) Processing method and electronic equipment
CN115037879A (en) Shooting method and device thereof
CN114339015B (en) Photographing processing method, photographing processing device and storage medium
CN117119302A (en) Image processing method and device and terminal equipment
CN113315898A (en) Mobile terminal photographing control method and device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant