CN109831621B - Camera preview image display method and mobile terminal - Google Patents

Camera preview image display method and mobile terminal Download PDF

Info

Publication number
CN109831621B
CN109831621B CN201811646369.4A CN201811646369A CN109831621B CN 109831621 B CN109831621 B CN 109831621B CN 201811646369 A CN201811646369 A CN 201811646369A CN 109831621 B CN109831621 B CN 109831621B
Authority
CN
China
Prior art keywords
camera
preview image
image
motion state
magnification
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.)
Active
Application number
CN201811646369.4A
Other languages
Chinese (zh)
Other versions
CN109831621A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811646369.4A priority Critical patent/CN109831621B/en
Publication of CN109831621A publication Critical patent/CN109831621A/en
Application granted granted Critical
Publication of CN109831621B publication Critical patent/CN109831621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for displaying a preview image of a camera and a mobile terminal, which solve the problem of single display mode of the preview image. The method comprises the following steps: detecting the magnification of a preview image of the camera; if the magnification factor of the camera preview image is larger than the preset magnification factor, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image; and determining the display mode of the preview image according to the motion state of the camera.

Description

Camera preview image display method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method for displaying a preview image of a camera and a mobile terminal.
Background
When the camera shoots a distant view, a user often selects a certain magnification to display a preview image so as to achieve the purpose of zooming the distant view, at the moment, if the user holds the camera by hand and shakes, in the related technology, the lens of the camera is only used for switching the visual angle along with the shaking continuously, the preview image has strong shaking sense, and the display mode of the preview image is single due to the fact that the motion state of the camera is not considered, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a method for displaying a preview image of a camera and a mobile terminal, which aim to solve the problem of single display mode of the preview image.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a method for displaying a preview image of a camera is provided, including:
detecting the magnification of a preview image of the camera;
if the magnification factor of the camera preview image is larger than the preset magnification factor, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
and determining the display mode of the preview image according to the motion state of the camera.
In a second aspect, a mobile terminal is provided, which includes a camera, and further includes:
the camera state judging module is used for detecting the magnification factor of the camera preview image; if the magnification factor of the camera preview image is larger than the preset magnification factor, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
and the display module is used for determining the display mode of the preview image according to the motion state of the camera.
In a third aspect, a mobile terminal is provided, comprising a processor, a memory and a computer program stored on the memory and being executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method according to the first aspect.
In the embodiment of the invention, the mapping relation exists between the multiple motion states of the camera and the multiple display modes of the preview image, so that when the magnification factor of the preview image is greater than the preset factor, the display mode of the preview image can be determined according to the motion state of the camera, the motion state of the camera is fully considered, the display mode of the preview image is more flexible, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating a method for displaying a preview image of a camera according to an embodiment of the present invention;
fig. 2 is a schematic view of object distances in a method for displaying a preview image of a camera according to an embodiment of the present invention;
FIG. 3a is a schematic illustration of a preview image in an embodiment of the present invention;
FIG. 3b is a diagram illustrating a delayed refresh display of a preview image in accordance with an embodiment of the present invention;
FIG. 3c is a diagram illustrating a preview image displayed without a delayed refresh in one embodiment of the present invention;
fig. 4 is a schematic diagram of a preset duration and a window position in a method for displaying a camera preview image according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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.
In order to solve the problem of a single display mode of a preview image of a camera, an embodiment of the present invention provides a method for displaying a preview image of a camera, including the steps of:
s002: detecting the magnification of a preview image of the camera;
s004: if the magnification of the camera preview image is larger than a preset magnification, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
s006: and determining the display mode of the preview image according to the motion state of the camera.
In the embodiment of the invention, the mapping relation exists between the multiple motion states of the camera and the multiple display modes of the preview image, so that when the magnification factor of the preview image is greater than the preset factor, the display mode of the preview image can be determined according to the motion state of the camera, the motion state of the camera is fully considered, the display mode of the preview image is more flexible, and the user experience is improved.
In the above embodiment, when the magnification of the preview image of the camera is larger than the preset magnification, if the camera shakes or moves slightly, the preview image will shake very obviously, which easily causes the user to feel dizzy and affects the user experience.
On the basis of the foregoing embodiments, in order to solve the problem of a single display mode of a preview image and reduce a shake feeling caused by the preview image, as shown in fig. 1, an embodiment of the present invention provides a method 100 for displaying a camera preview image, including the following steps:
s102: detecting the magnification factor of a camera preview image, and judging the motion state of the camera if the magnification factor of the camera preview image is larger than a preset factor;
the multiple motion states of the camera and the multiple display modes of the preview image have a mapping relationship, and the embodiment of the present invention may execute the following steps based on the mapping relationship:
if the camera is in the first motion state, performing step S104;
if the camera is in the second motion state, step S106 is performed.
In the embodiment of the present invention, if the magnification of the camera preview image is less than or equal to the preset magnification, the process may be ended.
The camera mentioned in the embodiment of the present invention may be located in a mobile terminal (e.g., a mobile phone), and the embodiment will be described by taking the camera in the mobile phone (or referred to as a camera) as an example.
When a user opens a camera of the mobile phone, the camera can acquire images, and the acquired images are displayed in real time in a screen of the mobile phone as preview images.
When a camera shoots a scene at a short distance, a preview image displayed on a screen of a mobile phone is usually at a normal magnification, and the shaking feeling caused by shaking of the mobile phone is not particularly strong.
When the camera is used to capture a distant scene, the user usually selects a certain magnification to magnify and display the preview image. Considering that all mobile terminals such as mobile phones are digitally zoomed, when a preview image is enlarged and displayed, a local pixel on a ccd (charge Coupled device) image sensor of the mobile phone is enlarged by using an "interpolation" processing means, and then displayed on a screen of the mobile phone, so as to achieve the effect of partially enlarging a distant view.
Specifically, the user may select the magnification of the preview image in a variety of ways. For example, the magnification is determined by finger pinching; or, the magnification factor is selected by inputting or selecting the magnification factor; or, the magnification factor is selected by moving a slide bar of the magnification factor; alternatively, the magnification is selected by pressing a volume key of the mobile terminal or the like.
The step can detect the magnification factor of the preview image, and if the magnification factor of the preview image is larger than the preset magnification factor, the motion state of the camera can be judged; if the magnification of the camera is less than or equal to the preset magnification, the flow may be ended.
The preset magnification may be a normal display magnification, and if the preset magnification is a unit of 1, the magnification of the preview image in this step may be a value greater than 1, such as 1.5, 2, 2.5, 3, and the like.
In the embodiment of the present invention, as for the motion state of the camera, in a specific embodiment, the camera is located in a mobile phone, a gyroscope is installed in the mobile phone, and the motion state of the camera can be specifically judged through the gyroscope; in another specific embodiment, a gyroscope is installed in the camera, and the motion state of the camera can also be judged through the gyroscope.
S104: and displaying the image acquired at the appointed moment as a preview image.
Optionally, as an embodiment, the first motion state includes: the window of the camera is cyclically switched between the first position and the second position for a specified duration. For example, when a user zooms in on a bumpy vehicle to photograph a scene of a remote mountain top, the camera view may be cyclically switched between an upper portion of the mountain top (in the air) and a lower portion of the mountain top (e.g., a waist) centered on the mountain top due to the bumping of the vehicle, where the upper portion of the mountain top may be referred to as a first position and the lower portion of the mountain top may be referred to as a second position. In a specific example, whether the window of the camera is switched cyclically between the first position and the second position can be detected by an image feature detection method; whether the window of the camera is switched between the first position and the second position in a circulating mode can be detected based on the acceleration direction and the angular speed direction of the camera through a gyroscope inside the mobile phone.
Optionally, as an embodiment, the displaying the image acquired at the specified time as the preview image includes: determining a dithering cycle based on a duration of a single switch of the window between the first position and the second position; and displaying the image acquired at the appointed moment in the shaking period as a preview image.
Specifically, for example, the image captured at the start time of each shaking period is displayed as the preview image in the shaking period, and the image may not be captured at other times in the shaking period, so as to reduce the shaking feeling caused by the fast switching display of the preview image and save the resource consumption.
Optionally, as an embodiment, the first motion state may further include: the visual angle of the camera is circularly switched up and down or left and right. In this embodiment, it is specifically possible to detect whether the angle of view of the camera is cyclically switched up and down or left and right based on the acceleration direction and the angular velocity direction of the camera by using a gyroscope inside the mobile phone.
The embodiment of the present invention here shows two specific implementations of the foregoing step S104. Of course, it should be understood that step S104 may also be implemented in other ways, and the embodiment of the present invention is not limited thereto.
S106: and displaying the image acquired in real time as a preview image according to the magnification or the preset magnification.
Optionally, as an embodiment, if the window of the camera is unidirectionally switched from the first position to the second position within a specified time period, the image acquired in real time is displayed as a preview image at the magnification. This embodiment considers the situation where the user normally switches the angle of view to shoot the subject.
Optionally, as an embodiment, if the duration of time taken for the window of the camera to switch from the first position to the third position exceeds the specified duration, displaying the image acquired in real time as a preview image by the preset multiple; wherein a spacing between the first position and the second position is less than a spacing between the first position and the third position. The embodiment considers that the user can not treat the shot object when moving the camera in a large range, so that the magnification factor is reduced to the preset factor to increase the visual field, and the user can find the shot object as soon as possible.
Optionally, as an embodiment, after displaying the image acquired in real time as a preview image by the preset multiple, the method may further include the following steps: and after the window of the camera is fixed, displaying the image acquired in real time as a preview image by the magnification factor. In the embodiment, the magnification factor is reduced to the preset factor in the process that the user moves the camera, and after the window of the camera is fixed, the magnification factor selected in advance by the user is restored to display the preview image, so that the shooting effect of the user is not influenced while the dizziness is reduced.
Optionally, as an embodiment, the method may further include the following steps: the method comprises the steps of taking a picture after a window of the camera is fixed, wherein the picture taking mode can be a sound triggering picture taking mode, a key triggering picture taking mode, a fingerprint triggering picture taking mode and the like.
Several specific implementations of the foregoing step S106 are shown herein in accordance with embodiments of the present invention. Of course, it should be understood that step S106 may also be implemented in other ways, and the embodiment of the present invention is not limited thereto.
According to the method for displaying the preview image of the camera, the multiple motion states of the camera and the multiple display modes of the preview image have the mapping relation, so that when the magnification factor of the preview image is larger than the preset factor, the display mode of the preview image can be determined according to the motion state of the camera, the motion state of the camera is fully considered, the display mode of the preview image is more flexible, and the user experience is improved.
Meanwhile, according to the method for displaying the preview image of the camera provided by the embodiment of the invention, if the magnification of the preview image is greater than the preset magnification, the image acquired at the appointed moment is displayed as the preview image according to the motion state of the camera; or, the image acquired in real time is displayed as a preview image by the magnification factor or the preset factor, so that the shaking feeling caused by the vision of the user due to the quick switching display of the preview image is reduced, and the user experience is improved.
To describe the method for displaying a camera preview image according to an embodiment of the present invention in detail, a specific embodiment will be described below.
The embodiment may be implemented by pre-modeling the jitter sense (S) and the object distance (L), the magnification (N) and the jitter frequency (F).
As shown in fig. 2, for the same object, on the premise that the size of the view angle is fixed, as the object distance becomes larger, the shake feeling becomes more obvious when the camera shakes, and therefore, the shake feeling S and L are positively correlated; for the magnification N of the preview image, the larger N is, the more obvious the shaking feeling S is, so S and N are in positive correlation; similarly, for the jitter frequency F, the greater the jitter frequency is and the faster the jitter is represented, the more obvious the jitter feeling S is, so S and F are positively correlated.
Based on the analysis, a preliminary model formula of the shaking sense can be established, and the shaking sense coefficient is set to be A, namely:
S=ALNF
from the above formula, it can be seen that, for the user, a scene is shot, the object distance L does not change, and on the premise of not changing the magnification factor N of the preview image, only the method of reducing the dithering frequency can be used.
The jitter conditions of the mobile phone are mainly divided into the following two types:
in the first case: and in a certain time, the mobile phone moves back and forth to deviate.
For the situation that the position offset occurs back and forth in the short time, we can define the situation as an abnormal jitter situation, and what needs to do at this time is to perform jitter elimination processing;
the implementation steps for the jitter elimination treatment are as follows:
acquiring the shaking condition of the mobile phone according to the sensor, and if the mobile phone shakes back and forth within a short time t, determining that the mobile phone shakes abnormally; estimating a time period T of the back-and-forth jitter according to the jitter condition (or customizing a jitter period time T); and informing the surface flag to delay refreshing display, namely not refreshing the image acquired by the camera in real time in the period T, but refreshing the display at the end time of the period T. To achieve a visual perception of reduced jitter. Wherein, the surfaceFlinger service is responsible for drawing the UI of the Android application program.
As shown in fig. 3a, 3b and 3c, if the display UI effect is continuously refreshed during the shaking period for the scene a with the default fixed viewing angle of fig. 3a, the feeling of shaking up and down as shown in fig. 3c is visually caused. If the jitter elimination processing is performed within the period time T, i.e. the real-time refresh is not performed within T, the generated effect is as shown in fig. 3b, and at this time, the visual effect only slightly moves, so that the dizzy feeling caused by the camera jitter can be reduced.
Meanwhile, when the magnification factor of the camera preview image is larger than the preset factor, if the visual angle is manually and greatly switched, the current technology only correspondingly switches the visual angle. Due to the effect of the magnification of the preview image, the viewing angle is small, and it may appear that the user cannot focus on the object that the user wants to photograph. The user needs to move the mobile phone again to adjust the visual angle or manually zoom out again, and the user needs to zoom in again to shoot the scene after positioning the shot scene. The operation is complicated, and the following solutions can be used to solve the technical problem:
in the second case, the mobile phone is displaced in a single direction within a certain time. And regarding the behavior that the mobile phone moves in a single direction within the time t, the user is considered to actively switch the view angle, and the normal movement is defined. In such a case, an optimized use experience is required.
The specific implementation steps are as follows:
1. and acquiring the moving direction of the mobile phone according to the gyroscope. If the acquired movement situation is unidirectional movement, that is, there is no back-and-forth movement within the time t, in this case, it is regarded that the user actively performs the operation of switching the view angle.
2. The behavior process for time t is defined as follows: if only unidirectional movement is carried out within the time t and the visual angle is fixed, multiple zooming is not needed, because the time is short, the user is considered to be only finely adjusted, the visual angle change is not large, and the scene can be easily positioned. If the movement is back and forth within the time t, the abnormal jitter is defined, and the processing mode of the first condition is referred to;
if the time is more than the time t, the user only moves in a single direction and finally fixes the visual angle, and the user is considered to actively switch the visual angle; if the time is more than the time t, the user can move back and forth, and the user can actively switch the visual angle without processing according to the abnormal shaking behavior.
3. And after the behavior that the user actively switches the visual angle is judged according to the above, automatically reducing the magnification to the normal magnification, and waiting for judging that the mobile phone has no position to move. I.e. the user is considered to fix the viewing angle. And then the magnification is adjusted back to the original setting.
To more clearly illustrate the above two cases and to more clearly explain the behavior process for time t, this embodiment may create a model diagram, as shown in fig. 4:
T0for the initial time, a limit time T ═ T is defined1-T0
1. If at some time T, the window is in a second position, T0<t<T1(ii) a And at the moment, the window does not repeatedly move between the first position and the second position, so that the user is defined to actively switch the window to perform fine adjustment action, and the image acquired in real time can be displayed as a preview image by the magnification selected by the user.
2. If at some time T, the window is in a second position, T0<t<T1(ii) a And the window is switched between the first position and the second position in a cycle at the moment, so that the abnormal jitter behavior is defined, and jitter elimination processing is required. The jitter period may specifically be determined based on the duration of a single switch of the window between the first position and the second position; and displaying the image acquired at the appointed moment in the shaking period as a preview image.
3. If the window is in the third position at a certain time t,i.e. t>T1(ii) a At the moment, the window is not circularly switched between the first position and the third position, namely, the window is moved to the third position from the first position in a single direction, the view angle is defined as the active switching of a user, and because the time of the process is longer than the limit time T, the magnification factor needs to be reduced for optimization processing, namely, the image acquired in real time is displayed as a preview image by the preset factor of the camera; wherein a spacing between the first position and the second position is less than a spacing between the first position and the third position.
4. If at some time t, the window is in a third position, t>T1(ii) a And the window is circularly switched between the first position and the third position, and is also defined as an optimization processing scheme for actively switching the view angle by the user to reduce the magnification, namely, the image acquired in real time is displayed as a preview image by the preset multiple of the camera.
According to the technical scheme provided by the embodiment of the invention, according to the shaking condition of the camera, if the shaking is high-frequency and small-angle shaking, the shaking is considered to be abnormal shaking, and at the moment, the shaking frequency can be acquired through the sensor, so that the display is refreshed according to the time delay of one period on the UI refreshing, and the experience of slowing down the shaking can be brought to a user visually.
Meanwhile, if the user manually switches the visual angle, the moving direction can be obtained according to the sensor, and the direction is not changed within a certain time, the user is considered to be in normal shake (the visual angle is switched), the magnification factor can be intelligently reduced at the moment, and after the user fixes the visual angle, the previous magnification factor is reset.
Through the operation, the shaking effect can be slowed down in the process that the user uses the camera, so that the shaking effect can not be brought in the visual sense, and the user experience is improved.
In fact, in the shaking period, the camera can display the image acquired at the beginning of the period as the preview image in the period without acquiring the image, so that the shaking feeling caused by the quick switching display of the preview image is reduced, and the resource consumption is saved.
The camera preview image display method according to the embodiment of the present invention is described in detail above with reference to fig. 1 to 4. A mobile terminal according to an embodiment of the present invention will be described in detail with reference to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal 500 according to an embodiment of the present invention. As shown in fig. 5, the mobile terminal 500 includes:
a camera state determining module 502, configured to detect a magnification factor of a camera preview image; if the magnification factor of the camera preview image is larger than the preset magnification factor, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
the presentation module 504 may be configured to determine a display manner of the preview image according to the motion state of the camera.
According to the mobile terminal provided by the embodiment of the invention, in the embodiment of the invention, the mapping relation exists between the various motion states of the camera and the various display modes of the preview image, so that when the magnification factor of the preview image is greater than the preset factor, the display mode of the preview image can be determined according to the motion state of the camera, the motion state of the camera is fully considered, the display mode of the preview image is more flexible, and the user experience is improved.
Optionally, as an embodiment, the display module 504 may be specifically used for
When the camera is in a first motion state, displaying an image acquired at a specified moment as a preview image;
and when the camera is in a second motion state, displaying the image acquired in real time as a preview image by the magnification or the preset magnification.
Optionally, as an embodiment, the first motion state includes: the window of the camera is cyclically switched between the first position and the second position for a specified duration.
Optionally, as an embodiment, the displaying the image acquired at the specified time as the preview image includes: determining a dithering cycle based on a duration of a single switch of the window between the first position and the second position; and displaying the image acquired at the appointed moment in the shaking period as a preview image.
Optionally, as an embodiment, the displaying the image acquired in real time as the preview image at the magnification when the camera is in the second motion state includes: and if the window of the camera is unidirectionally switched from the first position to the second position within the specified time length, displaying the image acquired in real time as a preview image by the magnification factor.
Optionally, as an embodiment, when the camera is in the second motion state, displaying the image acquired in real time as a preview image by the preset multiple includes: if the time length of the window of the camera switched from the first position to the third position exceeds the specified time length, displaying the image acquired in real time as a preview image by the preset multiple; wherein a spacing between the first position and the second position is less than a spacing between the first position and the third position.
Optionally, as an embodiment, the display module 504 may further be configured to: and after the window of the camera is fixed, displaying the image acquired in real time as a preview image by the magnification factor.
The mobile terminal 500 according to the embodiment of the present invention may refer to a flow corresponding to the method for displaying the camera preview image according to the embodiment of the present invention, and each unit/module and the other operations and/or functions in the mobile terminal 500 are respectively for implementing a corresponding flow in the method for displaying the camera preview image, and are not described herein again for brevity.
Fig. 6 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to detect a magnification of the camera preview image;
if the magnification factor of the camera preview image is larger than the preset magnification factor, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
and determining the display mode of the preview image according to the motion state of the camera.
In the embodiment of the invention, the mapping relation exists between the multiple motion states of the camera and the multiple display modes of the preview image, so that when the magnification factor of the preview image is greater than the preset factor, the display mode of the preview image can be determined according to the motion state of the camera, the motion state of the camera is fully considered, the display mode of the preview image is more flexible, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the above-mentioned camera preview image display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for displaying a preview image of a camera, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A method for displaying a preview image of a camera, comprising:
detecting the magnification of a preview image of the camera;
if the magnification of the camera preview image is larger than a preset magnification, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
determining a display mode of a preview image according to the motion state of the camera;
the determining a display mode of the preview image according to the motion state of the camera includes:
when the camera is in a first motion state, displaying an image acquired at a specified moment as a preview image; the first motion state comprises: the window of the camera is cyclically switched between the first position and the second position for a specified duration.
2. The method of claim 1, wherein determining a manner of display of the preview image according to the motion state of the camera comprises:
and when the camera is in a second motion state, the image acquired in real time is taken as a preview image to be displayed in a magnifying manner by the magnification factor or the preset magnification factor.
3. The method of claim 1, wherein presenting the image captured at the specified time as a preview image comprises:
determining a dithering cycle based on a duration of a single switch of the window between the first position and the second position;
and displaying the image acquired at the appointed moment in the shaking period as a preview image.
4. The method of claim 2, wherein the presenting the live-captured image as a preview image at the magnification when the camera is in the second motion state comprises:
and if the window of the camera is switched from the first position to the second position in a unidirectional way within the specified time length, the image acquired in real time is used as a preview image to be displayed in an enlarged mode by the magnification factor.
5. The method of claim 4, wherein the displaying the real-time captured image as a preview image at the preset magnification when the camera is in the second motion state comprises:
if the time length for switching the window of the camera from the first position to the third position exceeds the specified time length, the image acquired in real time is used as a preview image to be displayed in an enlarged mode by the preset times;
wherein a spacing between the first position and the second position is less than a spacing between the first position and the third position.
6. The method of claim 5, wherein after the real-time captured image is displayed as a preview image at the preset magnification, the method further comprises:
and after the window of the camera is fixed, the image acquired in real time is taken as a preview image to be amplified and displayed by the amplification factor.
7. A mobile terminal comprises a camera, and is characterized by further comprising:
the camera state judging module is used for detecting the magnification factor of the camera preview image; if the magnification of the camera preview image is larger than a preset magnification, judging the motion state of the camera, wherein the mapping relation exists between various motion states of the camera and various display modes of the preview image;
the display module is used for determining the display mode of the preview image according to the motion state of the camera;
the display module is used for displaying the image acquired at the appointed moment as a preview image when the camera is in the first motion state; the first motion state comprises: the window of the camera is cyclically switched between the first position and the second position for a specified duration.
8. The mobile terminal of claim 7, wherein the presentation module is configured to present
And when the camera is in a second motion state, the image acquired in real time is taken as a preview image to be displayed in a magnifying manner by the magnification factor or the preset magnification factor.
9. The mobile terminal of claim 7, wherein said presenting the image captured at the specified time as a preview image comprises:
determining a dithering cycle based on a duration of a single switch of the window between the first position and the second position;
and displaying the image acquired at the appointed moment in the shaking period as a preview image.
10. The mobile terminal of claim 8, wherein the presenting the image captured in real time as a preview image at the magnification factor when the camera is in the second motion state comprises:
and if the window of the camera is switched from the first position to the second position in a unidirectional way within the designated time length, the image acquired in real time is used as a preview image to be displayed in an amplifying way by the magnification factor.
11. The mobile terminal of claim 10, wherein the displaying the image captured in real time as the preview image in a magnified manner by the preset factor when the camera is in the second motion state comprises:
if the time length of the window of the camera switched from the first position to the third position exceeds the specified time length, the image acquired in real time is used as a preview image to be displayed in an enlarged mode by the preset times;
wherein a spacing between the first position and the second position is less than a spacing between the first position and the third position.
12. The mobile terminal of claim 11, wherein the presentation module is further configured to:
and after the window of the camera is fixed, the image acquired in real time is taken as a preview image to be amplified and displayed by the amplification factor.
13. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201811646369.4A 2018-12-29 2018-12-29 Camera preview image display method and mobile terminal Active CN109831621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811646369.4A CN109831621B (en) 2018-12-29 2018-12-29 Camera preview image display method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811646369.4A CN109831621B (en) 2018-12-29 2018-12-29 Camera preview image display method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109831621A CN109831621A (en) 2019-05-31
CN109831621B true CN109831621B (en) 2021-07-13

Family

ID=66861454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811646369.4A Active CN109831621B (en) 2018-12-29 2018-12-29 Camera preview image display method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109831621B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115706850B (en) * 2021-08-12 2024-04-05 荣耀终端有限公司 Image shooting method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN106161940A (en) * 2016-07-29 2016-11-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108289161A (en) * 2017-01-09 2018-07-17 三星电子株式会社 Electronic equipment and its image capture method
CN108965701A (en) * 2018-07-06 2018-12-07 维沃移动通信有限公司 A kind of shake antidote and terminal device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005093654A2 (en) * 2004-03-25 2005-10-06 Fatih Ozluturk Method and apparatus to correct digital image blur due to motion of subject or imaging device
US8306262B2 (en) * 2008-05-15 2012-11-06 Arcsoft, Inc. Face tracking method for electronic camera device
CN106845472A (en) * 2016-12-30 2017-06-13 深圳仝安技术有限公司 A kind of novel intelligent wrist-watch scans explanation/interpretation method and novel intelligent wrist-watch
CN107396019B (en) * 2017-08-11 2019-05-17 维沃移动通信有限公司 A kind of slow motion video method for recording and mobile terminal
CN108536364A (en) * 2017-12-28 2018-09-14 努比亚技术有限公司 A kind of image pickup method, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN106161940A (en) * 2016-07-29 2016-11-23 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108289161A (en) * 2017-01-09 2018-07-17 三星电子株式会社 Electronic equipment and its image capture method
CN108965701A (en) * 2018-07-06 2018-12-07 维沃移动通信有限公司 A kind of shake antidote and terminal device

Also Published As

Publication number Publication date
CN109831621A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN111182205B (en) Photographing method, electronic device, and medium
CN108471498B (en) Shooting preview method and terminal
CN108566510B (en) Flexible screen control method, mobile terminal and readable storage medium
CN108989672B (en) Shooting method and mobile terminal
CN108174103B (en) Shooting prompting method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN110913139B (en) Photographing method and electronic equipment
CN109688253B (en) Shooting method and terminal
CN109413333B (en) Display control method and terminal
CN109005355B (en) Shooting method and mobile terminal
CN109361874B (en) Photographing method and terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN111510623B (en) Shooting method and electronic equipment
CN108174109B (en) Photographing method and mobile terminal
CN110881105B (en) Shooting method and electronic equipment
CN107807488B (en) Camera assembly, aperture adjusting method and mobile terminal
CN110944114B (en) Photographing method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN108924413B (en) Shooting method and mobile terminal
CN109005337B (en) Photographing method and terminal
CN109309762B (en) Message processing method, device, mobile terminal and storage medium
CN108243489B (en) Photographing control method and mobile terminal
CN108259756B (en) Image shooting method and mobile terminal
CN110719409B (en) Continuous shooting method and electronic equipment

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