CN110958393A - Camera preview interface anti-shake method, device and computer readable storage medium - Google Patents

Camera preview interface anti-shake method, device and computer readable storage medium Download PDF

Info

Publication number
CN110958393A
CN110958393A CN201911304251.8A CN201911304251A CN110958393A CN 110958393 A CN110958393 A CN 110958393A CN 201911304251 A CN201911304251 A CN 201911304251A CN 110958393 A CN110958393 A CN 110958393A
Authority
CN
China
Prior art keywords
mobile terminal
state
preview
camera
voltage
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.)
Pending
Application number
CN201911304251.8A
Other languages
Chinese (zh)
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 CN201911304251.8A priority Critical patent/CN110958393A/en
Publication of CN110958393A publication Critical patent/CN110958393A/en
Pending legal-status Critical Current

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
    • H04N23/675Focus control based on electronic image sensor signals comprising setting of focusing regions
    • 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/62Control of parameters via user interfaces
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an anti-shake method for a camera preview interface, which is applied to a mobile terminal, wherein the mobile terminal comprises a vibrating motor, and the anti-shake method comprises the following steps: s1: marking a preview state of the mobile terminal, wherein the preview state is a state when a camera focuses on a preview interface; s2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if not, go to step S4; s3: reducing the voltage of the vibration motor; s4: maintaining a voltage of the vibration motor at a rated value. S5: and answering or rejecting the incoming call, and recovering the voltage of the vibrating motor to be a rated value. The invention also provides an anti-shaking device for the camera preview interface and a computer readable storage medium. The anti-shaking method for the camera preview interface solves the problem of shaking of the camera preview interface caused by incoming calls from the software perspective, and improves the user experience.

Description

Camera preview interface anti-shake method, device and computer readable storage medium
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of mobile terminals, in particular to an anti-shake method and device for a camera preview interface and a computer readable storage medium.
[ background of the invention ]
Along with the evolution and iteration of network communication technology, mobile portable devices such as mobile phones and tablet computers are becoming indispensable communication tools in daily life and work of people as carriers of modern communication technology. The camera function in the mobile phone is one of the most frequently used devices in the mobile phone, and the user experience is very important. The mobile terminal comprises a camera for realizing the function of the camera, and the camera comprises a lens group, a focusing motor and an image sensor.
When the camera focuses on the preview interface, the focusing motor in the camera works, and the lens group is driven to move to the corresponding position by the focusing motor, so that the optical image of the shot target just falls on the image sensor, and the optimal imaging effect is achieved. At the moment, if a call is dialed, the vibration motor in the mobile terminal vibrates to ring and generate vibration, the vibration of the vibration motor and the vibration of the focusing motor generate resonance, so that the situation of shaking can occur on a preview interface, the focusing operation is influenced, and the user experience is very poor.
Therefore, it is desirable to provide a new camera preview interface anti-shake method, apparatus and computer readable storage medium to solve the above-mentioned drawbacks.
[ summary of the invention ]
The present invention is directed to overcoming the above-mentioned problems, and providing a method and an apparatus for reducing camera preview interface jitter during incoming call, and a computer readable storage medium.
In order to achieve the above object, the present invention provides an anti-shake method for a camera preview interface, which is applied to a mobile terminal, wherein the mobile terminal includes a vibration motor, and when a call is received, the vibration motor vibrates and sounds a bell, and the anti-shake method includes the following steps:
step S1: marking a preview state of the mobile terminal, wherein the preview state is a state when a camera focuses on a preview interface;
step S2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if not, go to step S4;
step S3: reducing the voltage of the vibration motor;
step S4: maintaining a voltage of the vibration motor at a rated value.
Step S5: and if the incoming call is answered or refused, restoring the voltage of the vibrating motor to be a rated value.
Preferably, the step S1 specifically includes: and marking the preview state of the mobile terminal by setting system attributes or setting attributes.
Preferably, the step S3 specifically includes: and reducing the voltage of the excitation signal of the vibration motor.
Preferably, the mobile terminal is a mobile phone, a tablet computer, a POS machine or a television.
The invention also provides an anti-shake device for the preview interface of the camera, wherein the mobile terminal comprises a vibrating motor, when a call is received, the vibrating motor vibrates and rings, and the anti-shake device comprises:
the marking module is used for marking the preview state of the mobile terminal, wherein the preview state is the state of a camera focusing on a preview interface;
the judging module is used for judging whether the state of the mobile terminal is a preview state when receiving the incoming call request;
the processing module is used for reducing the voltage of the vibration motor of the mobile terminal if the mobile terminal is in a preview state, and keeping the voltage of the vibration motor as a rated value if the mobile terminal is not in the preview state; and
and the recovery module is used for recovering the voltage of the vibrating motor to be a rated value when the incoming call is answered or refused.
Preferably, the marking module marks the preview state of the mobile terminal by setting a system attribute or by setting an attribute.
Preferably, the marking module, the judging module and the recovering module are electrically connected with the processing module.
Preferably, the processing module is connected with an exciter of the vibration motor, and is used for controlling the exciter to adjust the voltage of the excitation signal.
Preferably, the vibration motor includes a speaker and a vibrator, and the speaker and the vibrator are driven to vibrate by an excitation signal output by the exciter.
The invention also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the camera preview interface anti-shake method.
Compared with the prior art, in the camera preview interface anti-shake method and device and the computer readable storage medium provided by the invention, by judging whether the state of the mobile terminal is in the preview state or not, if the state is in the preview state, the voltage of the vibrating motor of the mobile terminal is reduced, so that the vibration quantity of the vibrating motor is reduced, the influence of the vibrating motor on a focusing motor is reduced, the problem of camera preview interface shake caused by an incoming call is solved from the software perspective, the user experience is improved, extra hardware is not required, the use is rapid and convenient, and extra cost is not required.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a flowchart of an anti-shake method for a preview interface of a camera according to the present invention;
fig. 2 is a schematic diagram of a connection relationship of the anti-shake apparatus for a preview interface of a camera provided by the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal in another embodiment provided in the present invention.
[ detailed description ] embodiments
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, wherein fig. 1 is a flowchart of a camera preview interface anti-shake method according to the present invention. The invention provides an anti-shake method for a camera preview interface, which is applied to a mobile terminal, wherein the mobile terminal can be a mobile phone, a tablet personal computer, a POS (point of sale) machine or a television. The mobile terminal comprises a camera function, and the camera function is used for shooting or recording a shooting target.
In order to realize the function of the camera, a camera is required to be installed in the mobile terminal, the camera comprises a lens group, a focusing motor and an image sensor, an optical image generated by a shooting target through the lens group is projected onto the image sensor, then the optical image is converted into an electric signal, the electric signal is converted into a digital image signal through an A/D conversion module to be stored, then the digital image signal is processed, and the image of the shooting target can be seen through a display.
The anti-shake method for the camera preview interface comprises the following steps:
step S1: and marking the preview state of the mobile terminal, wherein the preview state is a state when the camera focuses on a preview interface.
When the camera function is used, the camera correspondingly enters the preview interface to obtain the image of the shooting target and displays the image on the display, and because the camera does not enter the focusing process, the obtained image of the shooting target may be blurred or incompletely displayed, and the image effect of the shooting target displayed on the display is poor.
And next, the mobile terminal adopts an automatic focusing or semi-automatic focusing mode for focusing, and when the mobile terminal is in a focusing state, the focusing motor drives the lens group to move to a corresponding position according to the distance of the shot target, so that the optical image of the shot target just falls on the image sensor, and the optimal imaging effect is achieved. In the focusing process, the driving motor can adjust the whole position of the lens group and also can adjust the position of a certain lens or a plurality of lenses in the lens group. It will be appreciated that the movement of the focus motor during focusing operation produces vibrations.
When a camera is opened for previewing, a preview interface is displayed on the display, a floating focusing window appears on the preview interface, and the focusing window, namely the focusing area, can be dragged to the floating window at will on the preview interface. The floating window can be in various shapes, the size and the shape of the floating window can be changed by dragging with fingers or other modes, then the floating window area is transmitted into the bottom layer, and the bottom layer algorithm is used for sampling and analyzing the data of the floating window area, so that real-time focusing is realized, and the optimal imaging effect is achieved. The size of the floating focusing window is enlarged or reduced by inputting an adjusting instruction by a user, and the position of the floating focusing window is moved by inputting an adjusting instruction by the user.
Specifically, in this embodiment, the state of the mobile terminal when focusing on the camera preview interface may be marked as the preview state by setting the system attribute or by setting the attribute. It should be noted that when the system attribute or the attribute setting mode is set, the system setting permission or the camera setting permission of the mobile terminal needs to be acquired, and a specific permission acquiring process thereof may be implemented by using a conventional technical means in the art, which is not described in detail herein.
Step S2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if the preview state is not established, step S4 is executed.
Specifically, the judging process is as follows: and comparing the running state of the camera with the preview state, if the comparison result is consistent, the camera is in the preview state, and if the comparison result is inconsistent, the camera is not in the preview state. The operation state of the camera may be directly obtained from the operation data of the mobile terminal, and in the determination process, the corresponding system permission or camera permission of the mobile terminal may need to be obtained, and the specific process of obtaining the permission may be implemented by using a conventional technical means in the art, which is not described in detail herein.
Preferably, a comparison function may be set, where the comparison function may compare the running state data of the camera and the preview state data one by one, and if a difference between the two data is 0, the preview state of the mobile terminal may be determined.
Step S3: and reducing the voltage of the vibration motor of the mobile terminal.
When receiving an incoming call, the vibration motor of the mobile terminal correspondingly vibrates to send out a ringing tone or generate vibration to remind a user to answer the incoming call. Specifically, the vibration motor comprises a loudspeaker and a vibrator, wherein the loudspeaker and the vibrator are driven by an excitation signal to generate vibration, the loudspeaker is used for giving out an incoming call ringtone and correspondingly generating a slight vibration sensation, and the vibrator is used for giving out strong vibration and correspondingly giving out fine sound.
The vibration intensity of the loudspeaker and the vibrator is positively correlated with the intensity of the excitation signal, namely, the larger the voltage of the excitation signal is, the stronger the vibration is; the larger the voltage of the excitation signal is, the smaller the voltage is, and the smaller the vibration is.
When the mobile terminal is in a preview state, if the vibration frequency generated by the vibration motor is close to the vibration frequency generated by the focusing motor, the vibration motor and the focusing motor can resonate, and the vibrations of the vibration motor and the focusing motor are superposed with each other, so that the vibration quantity of the focusing motor is increased, and the focusing effect is influenced.
The vibration quantity of the vibration motor can be weakened by reducing the voltage of the vibration motor of the mobile terminal, and when the vibration motor resonates with the focusing motor, the vibration quantity generated by the superposition of the vibration motor and the focusing motor is slightly increased compared with the vibration quantity generated by the vibration of the focusing motor, so that the focusing operation is slightly influenced. Preferably, the voltage reduction amount of the vibration motor may set a threshold value, and when the threshold value is reached, the vibration of the vibration motor has a small influence on the vibration of the focusing motor, and is within a range invisible to the naked eye, so that the focusing operation of a user is not influenced.
Of course, in other embodiments, the vibration frequency of the vibration motor may be adjusted to deviate from the vibration frequency of the focusing motor, so as to avoid the resonance of the vibration motor and the focusing motor, but because the vibration frequency of the focusing motor is unstable, the frequency adjustment of the vibration motor also falls into an uncontrollable range, which has a great limitation in practical use, and is not beneficial to popularization and use.
It should be noted that the camera preview interface anti-shake method provided by the present invention does not limit the mobile terminal to perform anti-shake adjustment only when a call is coming, and the camera preview interface anti-shake method of the present invention can be adopted in other processes that need to be applied to a vibrating motor, and all of them belong to the protection scope of the present invention.
Step S4: maintaining a voltage of the vibration motor at a rated value.
If the mobile terminal is not in the preview state, the voltage of the vibration motor is kept as a rated value, so that the vibration state of the vibration motor is in the rated state, and the ringing can be normally performed and the vibration sense can be generated. At this time, since the focus motor does not operate, the focus motor and the focus motor do not resonate with each other.
Step S5: and if the incoming call is answered or refused, restoring the voltage of the vibrating motor to be a rated value.
It can be understood that, no matter whether the incoming call is answered, the incoming call is rejected or the incoming call is muted, the incoming call is stopped, that is, the vibration motor stops working, at this time, the working of the focusing motor is not influenced, the voltage of the vibration motor can be recovered to a rated value for the next normal vibration requirement, and the steps S1-S4 are repeated when the incoming call is next time, so that the vibration motor of the mobile terminal is ensured not to influence the vibration of the focusing motor.
Referring to fig. 2, fig. 2 is a schematic connection diagram of an anti-shake apparatus for a preview interface of a camera according to the present invention. The invention also provides an anti-shake device 100 for a preview interface of a camera, wherein the anti-shake device 100 comprises a marking module 10, a judging module 20, a processing module 30 and a recovering module 40. The marking module 10, the judging module 20 and the recovering module 40 are all electrically connected to the processing module 30, and the processing module 30 processes, analyzes and responds to the operation data fed back to the processing module 30, and controls corresponding hardware structures in the mobile terminal to react, thereby completing a final adjusting process.
The marking module 10 is configured to mark a preview state of the mobile terminal, where the preview state is a state when the camera focuses on a preview interface.
When the camera function is used, the camera correspondingly enters the preview interface to obtain the image of the shooting target and displays the image on the display, and because the camera does not enter the focusing process, the obtained image of the shooting target may be blurred or incompletely displayed, and the image effect of the shooting target displayed on the display is poor.
And next, the mobile terminal adopts an automatic focusing or semi-automatic focusing mode for focusing, and when the mobile terminal is in a focusing state, the focusing motor drives the lens group to move to a corresponding position according to the distance of the shot target, so that the optical image of the shot target just falls on the image sensor, and the optimal imaging effect is achieved. In the focusing process, the driving motor can adjust the whole position of the lens group and also can adjust the position of a certain lens or a plurality of lenses in the lens group. It will be appreciated that the movement of the focus motor during focusing operation produces vibrations.
When a camera is opened for previewing, a preview interface is displayed on the display, a floating focusing window appears on the preview interface, and the focusing window, namely the focusing area, can be dragged to the floating window at will on the preview interface. The floating window can be in various shapes, the size and the shape of the floating window can be changed by dragging with fingers or other modes, then the floating window area is transmitted into the bottom layer, and the bottom layer algorithm is used for sampling and analyzing the data of the floating window area, so that real-time focusing is realized, and the optimal imaging effect is achieved. The size of the floating focusing window is enlarged or reduced by inputting an adjusting instruction by a user, and the position of the floating focusing window is moved by inputting an adjusting instruction by the user.
Specifically, in this embodiment, the marking module 10 may mark the state of the mobile terminal when focusing is performed on the camera preview interface as the preview state by setting a system attribute or by setting an attribute. It should be noted that, when setting the system attribute or setting the attribute formula, the marking module 10 needs to acquire the corresponding system setting permission or camera setting permission of the mobile terminal, and a specific process of acquiring the permission adopts a conventional technical means in the art, which is not described in detail herein.
The determining module 20 is configured to determine whether the state of the mobile terminal is a preview state when receiving an incoming call request.
Specifically, the judging process of the judging module 20 is as follows: and comparing the running state of the camera with the preview state, if the comparison result is consistent, the mobile terminal is in the preview state, and if the comparison result is inconsistent, the mobile terminal is not in the preview state. The operation state of the camera may be directly obtained from the operation data of the mobile terminal, and in the determination process, the corresponding system permission or camera permission of the mobile terminal may need to be obtained, and the specific process of obtaining the permission may be implemented by using a conventional technical means in the art, which is not described in detail herein.
Preferably, the determining module 20 may set a comparison function, where the comparison function may compare the running state data of the camera and the preview state data one by one, and if a difference between the running state data and the preview state data is 0, the preview state of the mobile terminal may be determined.
The processing module 30 is configured to reduce the voltage of the mobile terminal vibration motor or maintain the voltage of the vibration motor at a rated value, specifically, if the mobile terminal vibration motor is in a preview state, the processing module 30 reduces the voltage of the mobile terminal vibration motor; if not, the processing module 30 maintains the voltage of the vibration motor at a nominal value.
When receiving an incoming call, the vibration motor of the mobile terminal correspondingly vibrates to send out a ringing tone or generate vibration to remind a user to answer the incoming call. Specifically, the vibration motor comprises a loudspeaker and a vibrator, wherein the loudspeaker and the vibrator are driven by an excitation signal to generate vibration, the loudspeaker is used for giving out an incoming call ringtone and correspondingly generating a slight vibration sensation, and the vibrator is used for giving out strong vibration and correspondingly giving out fine sound.
The vibration intensity of the loudspeaker and the vibrator is positively correlated with the intensity of the excitation signal, namely, the larger the voltage of the excitation signal is, the stronger the vibration is; the larger the voltage of the excitation signal is, the smaller the voltage is, and the smaller the vibration is.
When the mobile terminal is in a preview state, if the vibration frequency generated by the vibration motor is close to the vibration frequency generated by the focusing motor, the vibration motor and the focusing motor can resonate, and the vibrations of the vibration motor and the focusing motor are superposed with each other, so that the vibration quantity of the focusing motor is increased, and the focusing effect is influenced.
Therefore, the invention can weaken the vibration quantity of the vibration motor by reducing the voltage of the vibration motor of the mobile terminal, when the vibration motor and the focusing motor resonate, the vibration quantity generated by the superposition of the vibration motor and the focusing motor is increased less than the vibration quantity generated by the vibration of the focusing motor, and the influence on the focusing operation is less. Preferably, the voltage reduction amount of the vibration motor may set a threshold value, and when the threshold value is reached, the vibration of the vibration motor has a small influence on the vibration of the focusing motor, and is within a range invisible to the naked eye, so that the focusing operation of a user is not influenced.
The marking module 10 and the judging module 20 are both electrically connected to the processing module 30, the marking information of the marking module 10 and the judging result of the judging module 20 are both fed back to the processing module 30, and the processing module 30 is connected to an exciter of the vibration motor and is used for controlling the working state of the exciter and further adjusting the voltage of an exciting signal sent by the exciter.
The recovery module 40 is configured to recover the voltage of the vibration motor to a rated value when the incoming call is answered or rejected.
It can be understood that, no matter whether the incoming call is answered, rejected or muted, the incoming call ringtone will be stopped, that is, the vibration motor stops working, and at this time, the working of the focusing motor will not be affected, and the voltage of the vibration motor can be restored to a rated value for the next normal vibration requirement, and the steps S1-S4 are repeated for the next incoming call, so that the vibration motor of the mobile terminal will not affect the vibration of the focusing motor.
The recovery module 40 is also electrically connected to the processing module 30, and when the voltage of the vibration motor needs to be recovered, the recovery module 40 sends a signal to the processing module 30, and the processing module 30 controls the working state of the exciter, so as to adjust the voltage of the excitation signal sent by the exciter to a rated value.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal can be a mobile phone, a tablet computer, a POS machine or a television. The mobile terminal 60 comprises a processor 61 and a memory 62, the processor 61 and the memory 62 being electrically connected.
The processor 61 is a control center of the mobile terminal 60, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal 60 and processes data by running or loading an application program stored in the memory 62 and calling data stored in the memory 62, thereby performing overall monitoring of the mobile terminal 60.
The processor 61 loads instructions corresponding to processes of one or more application programs into the memory 62 according to the following steps, and the processor 61 runs the application programs stored in the memory 62, thereby implementing various functions:
step S1: marking a preview state of the mobile terminal, wherein the preview state is a state when a camera focuses on a preview interface;
step S2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if not, go to step S4;
step S3: reducing the voltage of the vibration motor;
step S4: maintaining a voltage of the vibration motor at a rated value.
Step S5: and if the incoming call is answered or refused, restoring the voltage of the vibrating motor to be a rated value.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal in another embodiment of the present invention, where the mobile terminal 70 may be used to implement the camera preview interface anti-shake method in the above embodiment. The mobile terminal 70 may be a cell phone, a tablet, a POS, or a television.
The RF circuit 71 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 71 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 71 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. Such wireless networks include, but are not limited to, cellular telephone networks, wireless local area networks, or metropolitan area networks.
The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 72 may be used for storing software programs and modules, such as program instructions/modules corresponding to the camera preview interface anti-shake method and the camera preview interface anti-shake apparatus 100 in the above-mentioned embodiments, and the processor 73 executes various functional applications and data processing by running the software programs and modules stored in the memory 72. The memory 72 may include high-speed random access memory or non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. The memory 72 may further include memory located remotely from the processor 73 and such remote memory may be coupled to the mobile terminal 70 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 74 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 74 may include a touch-sensitive surface 741 as well as other input devices 742. The touch-sensitive surface 741, also referred to as a touch screen or a touch pad, may collect touch operations by a user (such as user operations on or near the touch-sensitive surface 741 or on or near the touch-sensitive surface 741 using any suitable object or attachment, such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch sensitive surface 741 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 73, and can receive and execute commands sent from the processor 73. In addition, the touch-sensitive surface 741 can be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 74 may comprise other input devices 742 in addition to the touch-sensitive surface 741. In particular, other input devices 742 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 75 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 70, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 75 may include a Display panel 751, and the Display panel 751 may be configured, optionally, in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 741 may overlay the display panel 751, and when the touch-sensitive surface 741 detects a touch operation thereon or thereabout, it is transmitted to the processor 73 to determine the type of touch event, and then the processor 73 provides a corresponding visual output on the display panel 751 according to the type of touch event. Although in FIG. 4, the touch-sensitive surface 741 and the display panel 751 are implemented as two separate components for input and output functions, in some embodiments, the touch-sensitive surface 741 and the display panel 751 may be integrated for input and output functions.
The mobile terminal 70 may also include at least one sensor 76, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 751 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 751 and/or a backlight when the mobile terminal 70 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), and can detect the magnitude and direction of gravity when the mobile phone is stationary, and the gravity acceleration sensor is used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile phone; the mobile terminal 70 may also be configured with other sensors such as a gyroscope, a barometer, and a thermometer, which will not be described in detail herein.
Audio circuit 771, speaker 772, and microphone 773 may provide an audio interface between a user and mobile terminal 70. The audio circuit 771 may transmit the converted electrical signal of the received audio data to the speaker 772, and the converted electrical signal is converted into a sound signal by the speaker 772 and output; the microphone 773 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 771, and then sends the audio data to, for example, another terminal via the RF circuit 71 after being processed by the audio data output processor 73, or outputs the audio data to the memory 72. The audio circuit 771 may also include an earbud jack to provide peripheral headphones for communication with the mobile terminal 70.
The mobile terminal 70, via the transport module 78 (e.g., Wi-Fi module), may assist the user in emailing, browsing web pages, accessing streaming media, etc., which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 78, it is understood that the transmission module 78 does not belong to the essential constitution of the mobile terminal 70, and the embodiment of the present application can be completely omitted as necessary within the scope not changing the essence of the invention.
The processor 73 is a control center of the mobile terminal 70, connects the remaining various parts using various interfaces and lines, and performs various functions of the mobile terminal 70 and processes data by operating or executing software programs and/or modules stored in the memory 72 and calling data stored in the memory 72, thereby integrally monitoring the mobile terminal 70. Alternatively, processor 73 may include one or more processing cores; in some embodiments, processor 73 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 73.
The mobile terminal 70 may also include a power supply 79 (e.g., a battery) for powering the various components, and the power supply 79 may be logically coupled to the processor 73 via a power management system that may enable managing charging, discharging, and power consumption via the power management system. The power supply 79 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 4, the mobile terminal 70 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 75 and the input unit 74 of the mobile terminal 70 are integrated as a touch screen, and the memory 72 stores one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors 73, and the one or more programs include instructions for:
step S1: marking a preview state of the mobile terminal, wherein the preview state is a state when a camera focuses on a preview interface;
step S2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if not, go to step S4;
step S3: reducing the voltage of the vibration motor;
step S4: maintaining a voltage of the vibration motor at a rated value.
Step S5: and if the incoming call is answered or refused, restoring the voltage of the vibrating motor to be a rated value.
In specific implementation, the above modules and units may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities, and specific implementations of the above modules and units may refer to the foregoing method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions can be loaded by a processor to execute steps in any one of the camera preview interface anti-shake methods provided in the embodiment of the present application.
The storage medium may include a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
Since the instructions stored in the storage medium may execute the steps in the method for inputting and/or verifying any SSID provided in the embodiment of the present application, the beneficial effects that can be achieved by any method for preventing camera preview interface from shaking provided in the embodiment of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Although the application has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. This application is intended to embrace all such modifications and variations and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components, the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the specification.
That is, the above description is only an embodiment of the present application, and not intended to limit the scope of the present application, and all equivalent structures or equivalent flow transformations made by using the contents of the specification and the drawings, such as mutual combination of technical features between various embodiments, or direct or indirect application to other related technical fields, are included in the scope of the present application.
In addition, those of ordinary skill in the art will appreciate that the various illustrative methods, apparatus, and devices described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, apparatuses and units described above may refer to corresponding processes in the conventional technical means in the art, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Compared with the prior art, in the camera preview interface anti-shake method and device and the computer readable storage medium provided by the invention, by judging whether the state of the mobile terminal is in the preview state or not, if the state is in the preview state, the voltage of the vibrating motor of the mobile terminal is reduced, so that the vibration quantity of the vibrating motor is reduced, the influence on a focusing motor is reduced, the problem of camera preview interface shake caused by an incoming call is solved from the software perspective, the user experience is improved, no additional hardware is required, the use is rapid and convenient, and no additional cost is required.
While the foregoing is directed to embodiments of the present invention, it will be understood by those skilled in the art that various changes may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A camera preview interface anti-shake method is applied to a mobile terminal, the mobile terminal comprises a vibration motor, and when a call comes, the vibration motor vibrates and rings, and the anti-shake method is characterized by comprising the following steps:
step S1: marking a preview state of the mobile terminal, wherein the preview state is a state when a camera focuses on a preview interface;
step S2: when receiving an incoming call request, determining whether the state of the mobile terminal is a preview state, if so, executing step S3; if not, go to step S4;
step S3: reducing the voltage of the vibration motor;
step S4: maintaining a voltage of the vibration motor at a rated value.
Step S5: and if the incoming call is answered or refused, restoring the voltage of the vibrating motor to be a rated value.
2. The anti-shake method according to claim 1, wherein the step S1 is specifically: and marking the preview state of the mobile terminal by setting system attributes or setting attributes.
3. The anti-shake method according to claim 1, wherein the step S3 is specifically: and reducing the voltage of the excitation signal of the vibration motor.
4. The anti-shake method according to claim 1, wherein the mobile terminal is a mobile phone, a tablet computer, a POS (point of sale) machine or a television.
5. The utility model provides a camera preview interface anti-shake device, mobile terminal includes vibrating motor, and during the incoming telegram, vibrating motor vibrates and sends the ringtone, its characterized in that, anti-shake device includes:
the marking module is used for marking the preview state of the mobile terminal, wherein the preview state is the state of a camera focusing on a preview interface;
the judging module is used for judging whether the state of the mobile terminal is a preview state when receiving the incoming call request;
the processing module is used for reducing the voltage of the vibration motor of the mobile terminal if the mobile terminal is in a preview state, and keeping the voltage of the vibration motor as a rated value if the mobile terminal is not in the preview state; and
and the recovery module is used for recovering the voltage of the vibrating motor to be a rated value when the incoming call is answered or refused.
6. The anti-shake apparatus according to claim 5, wherein the marking module marks the preview status of the mobile terminal by setting a system attribute or by setting an attribute.
7. The anti-shake apparatus according to claim 5, wherein the marking module, the judging module and the restoring module are electrically connected to the processing module.
8. The anti-shake apparatus according to claim 7, wherein the processing module is connected to an actuator of the vibration motor, and is configured to control the actuator to adjust a voltage of the excitation signal.
9. The anti-shake apparatus according to claim 8, wherein the vibration motor includes a speaker and a vibrator, both of which are driven to vibrate by an excitation signal output from the exciter.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the camera preview interface anti-shake method of any one of claims 1-4.
CN201911304251.8A 2019-12-17 2019-12-17 Camera preview interface anti-shake method, device and computer readable storage medium Pending CN110958393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911304251.8A CN110958393A (en) 2019-12-17 2019-12-17 Camera preview interface anti-shake method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911304251.8A CN110958393A (en) 2019-12-17 2019-12-17 Camera preview interface anti-shake method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110958393A true CN110958393A (en) 2020-04-03

Family

ID=69982295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911304251.8A Pending CN110958393A (en) 2019-12-17 2019-12-17 Camera preview interface anti-shake method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110958393A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187811A1 (en) * 2010-01-29 2011-08-04 Samsung Electronics Co. Ltd. Apparatus and method for providing camera function in portable terminal
CN103475785A (en) * 2013-09-25 2013-12-25 广东欧珀移动通信有限公司 Mobile terminal and picture taking method and system thereof
CN104104799A (en) * 2014-07-24 2014-10-15 深圳市中兴移动通信有限公司 Anti-interference method and anti-interference device in mobile terminal shooting process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187811A1 (en) * 2010-01-29 2011-08-04 Samsung Electronics Co. Ltd. Apparatus and method for providing camera function in portable terminal
CN103475785A (en) * 2013-09-25 2013-12-25 广东欧珀移动通信有限公司 Mobile terminal and picture taking method and system thereof
CN104104799A (en) * 2014-07-24 2014-10-15 深圳市中兴移动通信有限公司 Anti-interference method and anti-interference device in mobile terminal shooting process

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
WO2019196707A1 (en) Mobile terminal control method and mobile terminal
US11635939B2 (en) Prompting method and mobile terminal
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
CN108683761B (en) Sound production control method and device, electronic device and computer readable medium
EP3691234B1 (en) Photographing method and terminal
US9785343B2 (en) Terminal device, image display method, and storage medium
CN109739465B (en) Audio output method and mobile terminal
WO2021077908A1 (en) Parameter adjusting method and electronic device
WO2019129092A1 (en) Frame rate-lowered photographing method, mobile terminal and storage medium
CN110913139A (en) Photographing method and electronic equipment
CN109561255B (en) Terminal photographing method and device and storage medium
CN109788114B (en) Call processing method and terminal
CN109117069B (en) Interface operation method, terminal and computer readable storage medium
CN111541038B (en) NFC antenna circuit structure, electronic equipment and method for enhancing magnetic field intensity
CN111459447B (en) Volume adjustment display method and electronic equipment
CN111556196B (en) Call method and device and electronic equipment
CN109800097B (en) Notification message reminding method, storage medium and mobile terminal
JP6141352B2 (en) Electronic equipment and control program
CN110958393A (en) Camera preview interface anti-shake method, device and computer readable storage medium
US11741881B2 (en) Display image compensation method, device, electronic equipment, and storage medium
WO2021036724A1 (en) Wireless charging method and terminal device
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN110083205B (en) Page switching method, wearable device and computer-readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200403

RJ01 Rejection of invention patent application after publication