CN112055156B - Preview image updating method and device, mobile terminal and storage medium - Google Patents

Preview image updating method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112055156B
CN112055156B CN202010966422.XA CN202010966422A CN112055156B CN 112055156 B CN112055156 B CN 112055156B CN 202010966422 A CN202010966422 A CN 202010966422A CN 112055156 B CN112055156 B CN 112055156B
Authority
CN
China
Prior art keywords
target
camera
image data
scaling
coefficient
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
CN202010966422.XA
Other languages
Chinese (zh)
Other versions
CN112055156A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010966422.XA priority Critical patent/CN112055156B/en
Publication of CN112055156A publication Critical patent/CN112055156A/en
Application granted granted Critical
Publication of CN112055156B publication Critical patent/CN112055156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/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

Abstract

The application is applicable to the technical field of image processing, and provides a preview image updating method, a device, a mobile terminal and a storage medium, wherein the method comprises the following steps: if a first target scaling factor of the first target camera is received, starting the first target camera and controlling the first target camera to output image data; if the target scaling sub-coefficient of the first target camera is received, determining that the camera control information is used for controlling the first target camera to output image data and controlling the second target camera to output image data; if the first target camera outputs image data and the second target camera does not output image data, modifying the camera control information to control the first target camera to output the image data; and updating a preview image according to the image data output by the first target camera and the target zooming subsystem number, wherein the preview image is an image displayed on a preview interface. By the method and the device, image data can be continuously output when the camera is switched, and the phenomenon of image blocking of previewing is improved.

Description

Preview image updating method and device, mobile terminal and storage medium
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to a preview image updating method and apparatus, a mobile terminal, and a storage medium.
Background
The mobile terminal generally has a camera function, and people have higher and higher requirements on the camera function, and the number of cameras for realizing the camera function is increased, such as two cameras, three cameras, four cameras, and the like. For a mobile terminal integrating at least two cameras, when zooming is realized through a zooming gesture, a camera switching situation may exist, when the camera is switched, a camera to be started needs to be initialized, and due to the fact that time is consumed in the initialization process, image data cannot be continuously output, and a preview image jamming phenomenon occurs.
Disclosure of Invention
The application provides a preview image updating method, a preview image updating device, a mobile terminal and a storage medium, which are used for continuously outputting image data and improving the pause phenomenon of a preview image when a camera is switched.
In a first aspect, an embodiment of the present application provides a preview image updating method, where the preview image updating method includes:
if a first target scaling factor of a first target camera is received, starting the first target camera and controlling the first target camera to output image data;
if a target scaling sub-coefficient of the first target camera is received, determining that camera control information is image data for controlling the first target camera to output and image data for controlling a second target camera to output, wherein the target scaling sub-coefficient is determined according to the first target scaling coefficient and a second target scaling coefficient, and the second target scaling coefficient is a scaling coefficient for indicating switching from the first target camera to the second target camera;
if the first target camera outputs image data and the second target camera does not output image data, modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, and obtaining the modified camera control information;
and updating a preview image based on the modified camera control information according to the image data output by the first target camera and the target zooming sub-system number, wherein the preview image is an image displayed on a preview interface.
In a second aspect, an embodiment of the present application provides a preview image updating apparatus, including:
the output control module is used for starting the first target camera and controlling the first target camera to output image data if a first target scaling coefficient of the first target camera is received;
an information determining module, configured to determine, if a target scaling sub-coefficient of the first target camera is received, that camera control information is to control the first target camera to output image data and to control a second target camera to output image data, where the target scaling sub-coefficient is determined according to the first target scaling coefficient and a second target scaling coefficient, and the second target scaling coefficient is a scaling coefficient used for instructing switching from the first target camera to the second target camera;
the information modification module is used for modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data if the first target camera outputs image data and the second target camera does not output image data, so as to obtain the modified camera control information;
and the image updating module is used for updating a preview image according to the image data output by the first target camera and the target zooming subsystem number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the preview image updating method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the preview image updating method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a mobile terminal, causes the mobile terminal to perform the steps of the preview image updating method according to the first aspect.
It is thus clear from the above that, this application is through when receiving the target zoom sub-coefficient of first target camera and second target camera does not output image data, be revised into controlling first target camera output image data with camera control information by controlling first target camera output image data and controlling second target camera output image data, can guarantee before switching first target camera to second target camera, the continuous output of the image data of first target camera to avoid follow-up in second target camera switching process, no image data output, and then improve preview image blocking phenomenon.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating an implementation flow of a preview image updating method according to an embodiment of the present application;
FIG. 2a is a non-scaled illustration of a preview image;
FIG. 2b is an enlarged illustration of a preview image;
FIG. 2c is a reduced view of a preview image;
fig. 3 is a schematic flowchart of an implementation flow of a preview image updating method provided in the second embodiment of the present application;
fig. 4 is a schematic flowchart of an implementation flow of a preview image updating method provided in the third embodiment of the present application;
fig. 5 is a schematic structural diagram of a preview image updating apparatus according to a fourth embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application;
fig. 7 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or a touchpad).
In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, which is a schematic view of an implementation flow of a preview image updating method provided in an embodiment of the present application, where the preview image updating method is applied to a mobile terminal, as shown in the figure, the preview image updating method may include the following steps:
step 101, if a first target zoom factor of a first target camera is received, starting the first target camera, and controlling the first target camera to output image data.
The first target zoom factor is a zoom factor used for instructing to start a first target camera, and the first target camera is a camera to be started by the mobile terminal when the first target zoom factor is received. The mobile terminal may output image data of the first target camera after the first target camera is started.
And 102, if the target scaling sub-coefficient of the first target camera is received, determining the camera control information as controlling the first target camera to output image data and controlling the second target camera to output image data.
Wherein the target scaling sub-coefficient is determined according to a first target scaling coefficient and a second target scaling coefficient, the second target camera is a camera that is switched with the first target camera when receiving the second target scaling coefficient, the second target scaling coefficient is used to instruct the mobile terminal to be switched from the first target camera to the second target camera, that is, the second target scaling coefficient is a scaling coefficient used to instruct the mobile terminal to be switched from the first target camera to the second target camera, the first target camera and the second target camera are located on the same surface of the housing of the mobile terminal, that is, the first target camera and the second target camera are two cameras that are disposed on the same surface of the housing of the mobile terminal and are independent of each other, for example, both the first target camera and the second target camera are disposed on the front surface of the mobile terminal (that is, the surface where the display screen of the mobile terminal is located), or both disposed on the back side of the mobile terminal (i.e., the side opposite to the side on which the display screen is disposed).
The first target camera and the second target camera have different view-finding ranges, that is, the target zoom factor of the first target camera is different from the target zoom factor of the second target camera, and the zoom factor can also be understood as a zoom multiple for zooming the cameras, and the view-finding range of the cameras is changed, for example, the first target camera is a wide-angle camera, the second target camera is a telephoto camera, the zoom multiple of the wide-angle camera is 1 to 5 times, the zoom multiple of the telephoto camera is 5 to 60 times, and in the process of switching the zoom multiple from 1 to 6 times, the wide-angle camera needs to be switched to the telephoto camera when the zoom multiple is 5 times.
At least two different scaling factors (for example, 0.6x, 1x, 2x, 5x, 10x, 0.6 times, 1x 1 times, 2x 2 times, 5x 5 times, 10x 10 times) may be preset according to the type of the camera integrated on the mobile terminal, and are used for implementing zooming of the camera and zooming of the preview image, where the first target scaling factor and the second target scaling factor are scaling factors of the at least two different scaling factors, the preview image may be an image displayed on a preview interface of the camera, the zooming of the preview image may be zooming of image content in the preview interface, and is an unscaled example of the preview image as shown in fig. 2a, an enlarged example of the preview image as shown in fig. 2b, and a reduced example of the preview image as shown in fig. 2 c.
The target scaling sub-coefficient is a scaling sub-coefficient used in the process of switching the first target scaling coefficient to the second target scaling coefficient, and by adding the scaling sub-coefficient in the switching process, the problem of discontinuous preview images in the scaling process caused by directly switching the first target scaling coefficient to the second target scaling coefficient can be solved, so that a user can conveniently watch the gradual change effect of the preview images in the switching process. For example, the first target scaling factor is 2 times, the second target scaling factor is 5 times, the preview image may be enlarged by switching the target scaling factor from 2 times to 5 times, and the target sub-scaling factor may be 2.6 times, that is, when the preview image is enlarged, the target sub-scaling factor is greater than the first target scaling factor and smaller than the second target scaling factor; the first target scaling factor is 6 times, the second target scaling factor is 5 times, the preview image can be reduced by switching the target scaling factor from 6 times to 5 times, and the target sub-scaling factor can be 5.6 times, that is, when the preview image is reduced, the target sub-scaling factor is smaller than the first target scaling factor and larger than the second target scaling factor.
The camera control information is used for instructing the camera to acquire or output image data and updating a preview image of the camera according to the image data.
The image data output by the first target camera refers to the image data collected by the first target camera, the image data output by the second target camera refers to the image data collected by the second target camera, and the image data refers to a set of numerical values of gray values of each pixel for generating an image to be displayed.
And 103, if the first target camera outputs image data and the second target camera does not output image data, modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, and obtaining the modified camera control information.
The second target camera is not started or is not started successfully, and the modified camera control information refers to control of the first target camera to output the image data.
The mobile terminal determines that a second target camera is to be started when receiving a target scaling sub-coefficient of a first target camera, and at the moment, the camera control information can be determined to control the first target camera to output image data and control the second target camera to output image data.
And step 104, updating a preview image according to the image data output by the first target camera and the target zooming sub-system number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface.
Since the modified camera control information is used for controlling the first target camera to output the image data, it is not necessary to wait for acquiring the image data of the second target camera, and a new preview image can be generated directly according to the image data output by the first target camera and the target zoom sub-coefficient, and the preview image currently displayed on the preview interface is updated to the new preview image, so as to update the preview image of the camera, for example, fig. 2a is a preview image when the zoom coefficient of the first target camera is 1 time, and the target zoom sub-coefficient is 1.2 times, so that a new preview image generated according to the image data output by the first target camera and the target zoom sub-coefficient 1.2 times is shown in fig. 2 b.
According to the embodiment of the application, when the target scaling sub-coefficient of the first target camera is received and the second target camera does not output image data, the output image data of the first target camera and the output image data of the second target camera are modified into the output image data of the first target camera according to the camera control information, so that the continuous output of the image data of the first target camera can be ensured before the first target camera is switched to the second target camera, the phenomenon that no image data is output in the switching process of the second target camera is avoided, and the phenomenon of image sticking of the preview image is improved.
Referring to fig. 3, which is a schematic view of an implementation flow of a preview image updating method provided in the second embodiment of the present application, where the preview image updating method is applied to a mobile terminal, as shown in the figure, the preview image updating method may include the following steps:
step 301, if a first target zoom factor of a first target camera is received, starting the first target camera, and controlling the first target camera to output image data.
The step is the same as step 101, and reference may be made to the related description of step 101, which is not described herein again.
Step 302, if the target zoom sub-coefficient of the first target camera is received, determining the camera control information as controlling the first target camera to output image data and controlling the second target camera to output image data.
The step is the same as step 102, and reference may be made to the related description of step 102, which is not repeated herein.
Step 303, if the first target camera has output image data and the second target camera has not output image data, modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, obtaining modified camera control information, and starting the second target camera at the background to control the second target camera to output image data.
When the mobile terminal receives the target scaling sub-coefficient of the first target camera, the second target camera is determined to be started, the camera control information is modified to control the first target camera to output image data, the updating of the current preview image of the system can be deceived to still depend on the first target camera and not depend on the second target camera in the process, meanwhile, the second target camera is started independently in the background to complete the operation (namely various parameters needing to be loaded in the starting process) involved in the starting process of the second target camera, namely, the second target camera is started in advance before the second target scaling coefficient is switched, the phenomenon that the preview image is blocked and the like due to the fact that various parameters need to be loaded in the starting process is avoided when the second target scaling coefficient is switched.
Optionally, after controlling the second target camera to output the image data, the method further includes:
acquiring starting mark information of a second target camera;
if the starting mark information of the second target camera is the first mark information, the modified camera control information is modified from controlling the first target camera to output image data to control the first target camera and controlling the second target camera to output image data, and the first mark information is used for indicating that the second target camera is successfully started;
and executing preset operation after the modified camera control information is modified from controlling the first target camera to output the image data to control the first target camera to output the image data and controlling the second target camera to output the image data.
The start flag information of the second target camera is used to indicate whether the second target camera is successfully started, the start flag information of the second target camera includes first flag information and second flag information, the first flag information is used to indicate that the second target camera is successfully started, the second flag information is used to indicate that the second target camera is failed to be started, the first flag information and the second flag information are two different flag information, for example, the first flag information is 1, the second flag information is 0, or the first flag information is true, and the second flag information is false.
If the start mark information of the second target camera is the second mark information, it is determined that the second target camera may fail to be started, the second target camera may be continuously started in the background, and the second target camera is controlled to output image data until the start mark information of the second target camera is detected to be the first mark information.
The preset operation may refer to a preset operation, including but not limited to operations such as auto focus, auto exposure, and image fusion.
And step 304, updating a preview image according to the image data output by the first target camera and the target zooming sub-system number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface.
The step is the same as step 104, and reference may be made to the related description of step 104, which is not described herein again.
Step 305, if the second target scaling factor is received, acquiring a first target image according to the second target scaling factor and the image data output by the first target camera, and acquiring a second target image according to the second target scaling factor and the image data output by the second target camera.
Before the second target zoom factor is received, the second target camera is successfully started in the background, namely various parameters required to be loaded in the starting process are successfully loaded, so that the preview image can be timely updated when the second target zoom factor is received, and the gradual change effect of the preview image is realized.
And step 306, displaying the second target image without displaying the first target image, wherein displaying the second target image means updating the preview image into the second target image.
The updating of the preview image to the second target image may be understood as displaying the second target image on the preview interface, and taking the second target image as the preview image.
After the first target image and the second target image are acquired, because the first target camera and the second target camera are at different positions of the same surface of the mobile terminal shell, the first target image and the second target image have field angle deviation, and the second target image is displayed on a preview interface of the camera by controlling the mobile terminal without displaying the first target image, so that when the second target zoom factor is received, the image with jump field angle is discarded, and the gradual change effect of the preview image is continuous.
According to the embodiment of the application, when the camera control information is modified to control the first target camera to output the image data, the second target camera is started at the background, so that the hardware limitation (namely the limitation of an image data channel) of the mobile terminal can be avoided when the gradual change effect of the preview image is realized, and the image with a jump field angle is discarded when the second target zoom factor is received, so that the image sticking phenomenon of the preview image can be improved, and the gradual change effect of the preview image is continuous.
Referring to fig. 4, which is a schematic view of an implementation flow of a preview image updating method provided in the third embodiment of the present application, where the preview image updating method is applied to a mobile terminal, as shown in the figure, the preview image updating method may include the following steps:
step 401, if a first target zoom factor of a first target camera is received, starting the first target camera, and controlling the first target camera to output image data.
The step is the same as step 101, and reference may be made to the related description of step 101, which is not described herein again.
Step 402, determining a second target scaling factor.
The second target zoom factor is a zoom factor for instructing the mobile terminal to switch the first target camera to the second target camera, and switching to the second target camera may be understood as updating the preview image using image data output by the second target camera.
Optionally, determining the second target scaling factor comprises:
and if the zooming operation is detected on the preview interface, determining a second target zooming coefficient according to the zooming operation.
In this embodiment, a target zoom factor that needs to be subjected to camera switching may be marked in advance, when a zoom operation on a preview image displayed on a preview interface is detected, all zoom factors corresponding to the start to the end of the zoom operation may be obtained, and if there is a zoom factor that needs to be subjected to camera switching in all zoom factors, it is determined that the zoom factor that needs to be subjected to camera switching in all zoom factors is a second target zoom factor. The zoom operation includes, but is not limited to, adjusting a zoom control bar, a pinch operation or a pinch operation of two hands on the preview image, and the like.
Step 403, determining a target scaling sub-coefficient according to the first target scaling coefficient and the second target scaling coefficient.
The target scaling sub-coefficient is located between the first target scaling coefficient and the second target scaling coefficient, so that the target scaling sub-coefficient can be determined according to the first target scaling coefficient and the second target scaling coefficient, the second target camera is started in advance before the mobile terminal receives the second target scaling coefficient, various parameters required for starting the second target camera are loaded in advance, and the preview image is updated in time when the second target scaling coefficient is received.
Optionally, determining the target scaling sub-coefficient according to the first target scaling coefficient and the second target scaling coefficient includes:
dividing the first target scaling coefficient and the second target scaling coefficient into N parts to obtain N-1 scaling sub-coefficients, wherein N is an integer greater than 1;
from the N-1 scaling sub-coefficients, a target scaling sub-coefficient is determined.
In order to display the gradual effect of the preview image during the zooming process of the preview image, the first target zoom factor and the second target zoom factor can be divided into N parts, N-1 zoom sub-factors are added during the zooming process, and the preview image is updated when each zoom sub-factor is received. Wherein the N-1 scaling sub-coefficients may refer to N-1 division points or division points between the first target scaling coefficient and the second target scaling coefficient. Alternatively, dividing the first target scaling factor and the second target scaling factor into N may refer to equally dividing the first target scaling factor and the second target scaling factor into N.
It should be noted that if the value of N is too small, the effect of gradual change of the preview image is not obvious, and if the value of N is too large, since image data acquired by the camera is needed when the preview image is updated, and the acquisition time interval of the image data is fixed, a part of the zoom sub-system number is covered and cannot be received, the value of N may be set according to an actual experience value, for example, the value of N is 15.
Optionally, after determining the target scaling sub-number, the present embodiment further includes:
if the first target scaling coefficient is smaller than the second target scaling coefficient, sequentially sending all the alternative scaling coefficients to the hardware abstraction layer at intervals of preset time according to a sequence from small to large, and updating the preview image according to the alternative scaling coefficients and image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one alternative scaling coefficient; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer from small to large, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient, wherein all the alternative scaling coefficients comprise N-1 scaling sub-coefficients and a second target scaling coefficient;
if the first target scaling coefficient is larger than the second target scaling coefficient, sequentially sending all the alternative scaling coefficients to the hardware abstraction layer at intervals of preset time according to a sequence from large to small, and updating the preview image according to the alternative scaling coefficients and image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one alternative scaling coefficient; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer from big to small, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient.
If the first target scaling coefficient is smaller than the second target scaling coefficient, determining that the process of switching from the first target scaling coefficient to the second target scaling coefficient is the process of amplifying the preview image, and in order to better display the gradual effect of the process of amplifying the preview image, sequentially sending all the alternative scaling coefficients to the hardware abstraction layer in the order from small to large so as to realize the gradual amplification effect on the preview image; if the first target scaling coefficient is larger than the second target scaling coefficient, it is determined that the process of switching from the first target scaling coefficient to the second target scaling coefficient is a process of reducing the preview image, and in order to better display the gradual effect of the process of reducing the preview image, all the alternative scaling coefficients can be sequentially sent to the hardware abstraction layer in the order from large to small, so as to achieve the gradual reduction effect on the preview image.
In order to reduce the probability of being covered when sending alternative scaling factors to the hardware abstraction layer, all alternative scaling factors may be sent to the hardware abstraction layer in turn, the first way: sending all the alternative scaling coefficients to the hardware abstraction layer in sequence at intervals of preset time, for example, N is 15, there are 15 alternative scaling coefficients (14 scaling sub-coefficients and a second target scaling coefficient), the preset time is 33ms, and one alternative scaling coefficient is sent to the hardware abstraction layer every 33 ms; the second mode is as follows: because the preview image is updated in real time, the camera is required to acquire image data in real time and send the image data to the hardware abstraction layer, when sending one image data to the hardware abstraction layer, an alternative scaling coefficient and the image data can be sent to the hardware abstraction layer at the same time, so that the alternative scaling coefficient is prevented from being covered.
The sequentially sending all the candidate scaling coefficients to the hardware abstraction layer at intervals of preset time may refer to controlling a camera application program in the mobile terminal to send all the candidate scaling coefficients to the Framework layer at intervals of preset time, where each candidate scaling coefficient is received by the Framework layer, and then sending the received one candidate scaling coefficient to the hardware abstraction layer.
Sending a candidate scaling factor and image data corresponding to the candidate scaling factor to the hardware abstraction layer at the same time may mean that the camera application program sends a candidate scaling factor and image data corresponding to the candidate scaling factor to the Framework layer at the same time, and the Framework layer sends the candidate scaling factor and image data corresponding to the candidate scaling factor to the hardware abstraction layer. The simultaneous transmission of one candidate scaling factor and the image data corresponding to the candidate scaling factor can be realized by storing the candidate scaling factor in meta information of the image data, which is tag information of the image data and stores various information related to the image data.
In this embodiment, when the camera application sends the alternative scaling factor to the frame layer, if the frame layer receives an alternative scaling factor but does not receive the image data request information, the alternative scaling factor is covered, and in order to reduce the probability that the alternative scaling factor is covered, in the first manner, the preset time may be set as the time interval for the camera to acquire image data, because the camera application sends an image data request information to the frame layer every time the camera acquires an image data. The image data request information may be understood as request information for triggering the camera to acquire image data, and is generally generated by automatically triggering an acquisition time interval of the image data (i.e., a time interval for the camera to acquire the image data).
Step 404, if the target scaling sub-coefficient of the first target camera is received, determining that the camera control information is to control the first target camera to output image data and to control the second target camera to output image data.
The step is the same as step 102, and reference may be made to the related description of step 102, which is not repeated herein.
Step 405, if the first target camera outputs image data and the second target camera does not output image data, modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, obtaining the modified camera control information, starting the second target camera at the background, and controlling the second target camera to output image data.
The step is the same as step 303, and reference may be made to the related description of step 303, which is not described herein again.
And step 406, updating a preview image according to the image data output by the first target camera and the target zooming sub-system number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface.
The step is the same as step 104, and reference may be made to the related description of step 104, which is not described herein again.
Step 407, if the second target scaling factor is received, obtaining a first target image according to the second target scaling factor and the image data output by the first target camera, and obtaining a second target image according to the second target scaling factor and the image data output by the second target camera.
The step is the same as step 305, and reference may be made to the related description of step 305, which is not described herein again.
Step 408, displaying the second target image without displaying the first target image, wherein displaying the second target image means updating the preview image to the second target image.
The step is the same as step 306, and reference may be made to the related description of step 306, which is not described herein again.
According to the embodiment of the application, the zooming coefficient can be increased in the zooming process by dividing the first target zooming coefficient and the second target zooming coefficient by N, so that the gradual change effect of the preview image in the zooming process is realized.
Fig. 5 is a schematic structural diagram of a preview image updating apparatus according to a fourth embodiment of the present application, and only a part related to the embodiment of the present application is shown for convenience of description.
The preview image updating apparatus includes:
the output control module 51 is configured to start the first target camera and control the first target camera to output image data if the first target zoom factor of the first target camera is received;
an information determining module 52, configured to determine that the camera control information is to control the first target camera to output image data and to control the second target camera to output image data if a target scaling sub-coefficient of the first target camera is received, where the target scaling sub-coefficient is determined according to a first target scaling coefficient and a second target scaling coefficient, and the second target scaling coefficient is a scaling coefficient used for instructing switching from the first target camera to the second target camera;
an information modification module 53, configured to modify the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data if the first target camera has output image data and the second target camera has not output image data, so as to obtain modified camera control information;
and an image updating module 54, configured to update a preview image according to the image data output by the first target camera and the target zoom sub-system number based on the modified camera control information, where the preview image is an image displayed on the preview interface.
Optionally, the information modifying module 53 is further configured to:
starting a second target camera at the background and controlling the second target camera to output image data;
accordingly, the preview image updating apparatus further includes:
the target obtaining module is used for obtaining a first target image according to the second target scaling factor and the image data output by the first target camera and obtaining a second target image according to the second target scaling factor and the image data output by the second target camera if the second target scaling factor is received;
and the display control module is used for displaying the second target image and not displaying the first target image, wherein the step of displaying the second target image is to update the preview image into the second target image.
Optionally, the preview image updating apparatus further includes:
the mark acquisition module is used for acquiring starting mark information of the second target camera;
the information processing module is used for modifying the modified camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data if the starting mark information of the second target camera is the first mark information, and the first mark information is used for indicating that the second target camera is successfully started;
and the operation execution module is used for executing preset operation after the modified camera control information is modified from controlling the first target camera to output the image data to control the first target camera and controlling the second target camera to output the image data.
Optionally, the preview image updating apparatus further includes:
a first determining module, configured to determine a second target scaling factor;
and the second determining module is used for determining the target scaling sub-coefficient according to the first target scaling coefficient and the second target scaling coefficient.
Optionally, the second determining module is specifically configured to:
dividing the first target scaling coefficient and the second target scaling coefficient into N parts to obtain N-1 scaling sub-coefficients, wherein N is an integer greater than 1;
from the N-1 scaling sub-coefficients, a target scaling sub-coefficient is determined.
Optionally, the preview image updating apparatus further comprises:
the first sending module is used for sending all the alternative scaling coefficients to the hardware abstraction layer in sequence from small to large at intervals of preset time if the first target scaling coefficient is smaller than the second target scaling coefficient, and updating the preview image according to the alternative scaling coefficients and the image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one of the alternative scaling coefficients; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer from small to large, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient, wherein all the alternative scaling coefficients comprise N-1 scaling sub-coefficients and a second target scaling coefficient;
the second sending module is used for sending all the alternative scaling coefficients to the hardware abstraction layer in sequence from large to small at intervals of preset time if the first target scaling coefficient is larger than the second target scaling coefficient, and updating the preview image according to the alternative scaling coefficients and the image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one of the alternative scaling coefficients; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer from big to small, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient.
Optionally, the first determining module is specifically configured to:
and if the zooming operation is detected on the preview interface, determining a second target zooming coefficient according to the zooming operation.
The preview image updating apparatus provided in the embodiment of the present application can be applied to the foregoing method embodiment, and for details, refer to the description of the foregoing method embodiment, which is not described herein again.
Fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present application. The mobile terminal as shown in the figure may include: one or more processors 601 (only one shown); one or more input devices 602 (only one shown), one or more output devices 603 (only one shown), and memory 604. The processor 601, the input device 602, the output device 603, and the memory 604 are connected by a bus 605. The memory 604 is used for storing instructions, and the processor 601 is used for implementing the steps in the above-mentioned various embodiments of the preview image updating method when the instructions stored in the memory 604 are executed.
It should be understood that, in the embodiment of the present Application, the Processor 601 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 602 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. The output device 603 may include a display (LCD, etc.), speakers, a data transmission interface, and the like.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include non-volatile random access memory. For example, the memory 604 may also store device type information.
In a specific implementation, the processor 601, the input device 602, the output device 603, and the memory 604 described in this embodiment of the present application may execute the implementation described in the embodiment of the preview image updating method provided in this embodiment of the present application, or may execute the implementation described in the preview image updating apparatus described in the fourth embodiment of the present application, which is not described herein again.
Fig. 7 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present application. As shown in fig. 7, the mobile terminal 7 of this embodiment includes: one or more processors 70 (only one shown), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70. The processor 70, when executing the computer program 72, implements the steps in the various preview image update method embodiments described above.
The mobile terminal 7 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The mobile terminal may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is only an example of a mobile terminal 7 and does not constitute a limitation of the mobile terminal 7, and that it may comprise more or less components than those shown, or some components may be combined, or different components, e.g. the mobile terminal may further comprise input output devices, network access devices, buses, etc.
The processor 70 may be a central processing unit CPU, but may also be other general purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the mobile terminal 7, such as a hard disk or a memory of the mobile terminal 7. The memory 71 may also be an external storage device of the mobile terminal 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the mobile terminal 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the mobile terminal 7. The memory 71 is used for storing the computer program and other programs and data required by the mobile terminal. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps 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 technical solution. 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 application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/mobile terminal and method may be implemented in other ways. For example, the above-described apparatus/mobile terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple 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 application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
When the computer program product runs on a mobile terminal, the steps in the method embodiments can be realized when the mobile terminal executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A preview image updating method, comprising:
if a first target scaling factor of a first target camera is received, starting the first target camera and controlling the first target camera to output image data;
if a target scaling sub-coefficient of the first target camera is received, determining that camera control information is used for controlling the first target camera to output image data and controlling a second target camera to output image data, wherein the target scaling sub-coefficient is determined according to the first target scaling coefficient and the second target scaling coefficient, and the target scaling sub-coefficient is a scaling sub-coefficient used in the process of switching the first target scaling coefficient to the second target scaling coefficient; the second target zoom factor is a zoom factor for indicating switching from the first target camera to the second target camera;
if the first target camera outputs image data and the second target camera does not output image data, modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, and obtaining the modified camera control information; if the second target camera is not started or is not started successfully, determining that the second target camera does not output image data;
updating a preview image according to the image data output by the first target camera and the target zooming sub-system number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface;
when the camera control information is modified from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data, the method further comprises the following steps:
starting the second target camera at the background and controlling the second target camera to output image data;
correspondingly, after the preview image is updated according to the image data output by the first target camera and the target scaling sub-coefficient, the method further comprises the following steps:
if the second target scaling factor is received, acquiring a first target image according to the second target scaling factor and the image data output by the first target camera, and acquiring a second target image according to the second target scaling factor and the image data output by the second target camera;
displaying the second target image without displaying the first target image, wherein displaying the second target image means updating the preview image to the second target image.
2. The preview image update method of claim 1, after controlling the second target camera to output image data, further comprising:
acquiring starting mark information of the second target camera;
if the start mark information of the second target camera is first mark information, the modified camera control information is modified from controlling the first target camera to output image data to control the first target camera and controlling the second target camera to output image data, and the first mark information is used for indicating that the second target camera is successfully started;
and executing preset operation after the modified camera control information is modified from controlling the first target camera to output image data to control the first target camera to output image data and controlling the second target camera to output image data.
3. The preview image update method of claim 1 or 2, before determining that the camera control information is to control the first target camera to output the image data and to control the second target camera to output the image data if the target zoom sub-coefficient of the first target camera is received, further comprising:
determining the second target scaling factor;
and determining the target scaling sub-coefficient according to the first target scaling coefficient and the second target scaling coefficient.
4. The preview image update method of claim 3, wherein said determining the target zoom factor based on the first target zoom factor and the second target zoom factor comprises:
dividing the first target scaling coefficient and the second target scaling coefficient into N parts to obtain N-1 scaling sub-coefficients, wherein N is an integer greater than 1;
determining the target scaling sub-coefficient from the N-1 scaling sub-coefficients.
5. The preview image update method of claim 4, further comprising, after determining the target zoom factor:
if the first target scaling coefficient is smaller than the second target scaling coefficient, sequentially sending all the alternative scaling coefficients to the hardware abstraction layer at intervals of preset time according to a sequence from small to large, and updating the preview image according to the alternative scaling coefficients and image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one alternative scaling coefficient; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer according to a descending order, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient, wherein all the alternative scaling coefficients comprise the N-1 scaling sub-coefficients and the second target scaling coefficient;
if the first target scaling coefficient is larger than the second target scaling coefficient, sequentially sending all the alternative scaling coefficients to the hardware abstraction layer at intervals of the preset time according to a sequence from large to small, and updating the preview image according to the alternative scaling coefficients and image data received by the hardware abstraction layer at the current moment when the hardware abstraction layer receives one of the alternative scaling coefficients; or sequentially sending each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient to the hardware abstraction layer from big to small, and updating the preview image according to each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient when the hardware abstraction layer receives each alternative scaling coefficient and the image data corresponding to each alternative scaling coefficient.
6. The preview image update method of claim 3, wherein said determining the second target scaling factor comprises:
and if the zooming operation is detected on the preview interface, determining the second target zooming coefficient according to the zooming operation.
7. A preview image updating apparatus, characterized in that the preview image updating apparatus comprises:
the output control module is used for starting the first target camera and controlling the first target camera to output image data if a first target scaling coefficient of the first target camera is received;
the information determining module is used for determining camera control information as controlling the first target camera to output image data and controlling the second target camera to output image data if a target scaling sub-coefficient of the first target camera is received, wherein the target scaling sub-coefficient is determined according to the first target scaling coefficient and the second target scaling coefficient, and the target scaling sub-coefficient is a scaling sub-coefficient used in the process of switching the first target scaling coefficient to the second target scaling coefficient; the second target zoom factor is a zoom factor for indicating switching from the first target camera to the second target camera;
the information modification module is used for modifying the camera control information from controlling the first target camera to output image data and controlling the second target camera to output image data to control the first target camera to output image data if the first target camera outputs image data and the second target camera does not output image data, so as to obtain the modified camera control information; if the second target camera is not started or is not started successfully, determining that the second target camera does not output image data;
the image updating module is used for updating a preview image according to the image data output by the first target camera and the target zooming subsystem number based on the modified camera control information, wherein the preview image is an image displayed on a preview interface;
the information modification module is further configured to:
starting the second target camera at the background and controlling the second target camera to output image data;
accordingly, the preview image updating apparatus further includes:
the target obtaining module is used for obtaining a first target image according to the second target scaling factor and the image data output by the first target camera and obtaining a second target image according to the second target scaling factor and the image data output by the second target camera if the second target scaling factor is received;
and a display control module, configured to display the second target image and not display the first target image, where displaying the second target image is to update the preview image to the second target image.
8. A mobile terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the preview image update method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the preview image update method of any one of claims 1 to 6.
CN202010966422.XA 2020-09-15 2020-09-15 Preview image updating method and device, mobile terminal and storage medium Active CN112055156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010966422.XA CN112055156B (en) 2020-09-15 2020-09-15 Preview image updating method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010966422.XA CN112055156B (en) 2020-09-15 2020-09-15 Preview image updating method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112055156A CN112055156A (en) 2020-12-08
CN112055156B true CN112055156B (en) 2022-08-09

Family

ID=73602811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010966422.XA Active CN112055156B (en) 2020-09-15 2020-09-15 Preview image updating method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112055156B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650363B (en) * 2020-12-18 2023-07-21 华为技术有限公司 Image display method and electronic equipment
CN114866680B (en) * 2021-02-03 2024-02-02 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980644A (en) * 2014-04-14 2015-10-14 华为技术有限公司 Shooting method and device
CN106303258A (en) * 2016-09-19 2017-01-04 深圳市金立通信设备有限公司 A kind of image pickup method based on dual camera and terminal
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium
CN110506416A (en) * 2018-07-27 2019-11-26 华为技术有限公司 A kind of method and terminal of terminal switching camera
CN111107265A (en) * 2019-12-25 2020-05-05 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200101207A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device and method for modifying magnification of image using multiple cameras

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980644A (en) * 2014-04-14 2015-10-14 华为技术有限公司 Shooting method and device
CN106303258A (en) * 2016-09-19 2017-01-04 深圳市金立通信设备有限公司 A kind of image pickup method based on dual camera and terminal
CN110506416A (en) * 2018-07-27 2019-11-26 华为技术有限公司 A kind of method and terminal of terminal switching camera
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium
CN111107265A (en) * 2019-12-25 2020-05-05 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN112055156A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
US11956528B2 (en) Shooting method using target control, electronic device, and storage medium
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
US11334210B2 (en) Method for window adjustment, mobile terminal, and computer-readable storage medium
CN110457963B (en) Display control method, display control device, mobile terminal and computer-readable storage medium
CN112055156B (en) Preview image updating method and device, mobile terminal and storage medium
CN111597029B (en) Data processing method and device, electronic equipment and storage medium
CN113721807B (en) Information display method and device, electronic equipment and storage medium
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
CN112188097B (en) Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
CN111190677A (en) Information display method, information display device and terminal equipment
CN107770845B (en) mobile hotspot management method and device, terminal and storage medium
CN111142650B (en) Screen brightness adjusting method, screen brightness adjusting device and terminal
CN109298907B (en) Application program display method, application program display device and terminal
CN109873980B (en) Video monitoring method and device and terminal equipment
US20240045583A1 (en) Page display method, electronic device and storage medium
WO2021068766A1 (en) Image display method, image display apparatus, and mobile terminal
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
WO2022228314A1 (en) Content display method and apparatus, electronic device, and readable storage medium
CN110688035B (en) Photo album processing method, photo album processing device and mobile terminal
CN110874730B (en) Information processing method, information processing device and mobile terminal
CN112328351A (en) Animation display method, animation display device and terminal equipment
CN110875875B (en) Electronic red packet message detection method and device and terminal equipment
CN110502182B (en) Operation processing method and device, mobile terminal 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
GR01 Patent grant
GR01 Patent grant