CN112565589B - Photographing preview method and device, storage medium and electronic equipment - Google Patents

Photographing preview method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112565589B
CN112565589B CN202011275562.9A CN202011275562A CN112565589B CN 112565589 B CN112565589 B CN 112565589B CN 202011275562 A CN202011275562 A CN 202011275562A CN 112565589 B CN112565589 B CN 112565589B
Authority
CN
China
Prior art keywords
image
main
camera
preview
shooting
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
CN202011275562.9A
Other languages
Chinese (zh)
Other versions
CN112565589A (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.)
Beijing Aixin Technology Co ltd
Original Assignee
Beijing Aixin 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 Beijing Aixin Technology Co ltd filed Critical Beijing Aixin Technology Co ltd
Priority to CN202011275562.9A priority Critical patent/CN112565589B/en
Publication of CN112565589A publication Critical patent/CN112565589A/en
Priority to PCT/CN2021/130199 priority patent/WO2022100677A1/en
Application granted granted Critical
Publication of CN112565589B publication Critical patent/CN112565589B/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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • 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

Landscapes

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

Abstract

The embodiment of the application provides a photographing preview method, a photographing preview device, a storage medium and electronic equipment, wherein the photographing preview method comprises the following steps: acquiring a shooting instruction; cutting out a first preview image from an auxiliary shooting image collected by an auxiliary camera in response to a shooting instruction, wherein the field angle corresponding to the first preview image is the same as the field angle corresponding to a first main shooting image collected by a main camera; the first preview image is displayed. According to the embodiment of the application, the cutting of the field angle is carried out through the auxiliary shooting image collected by the auxiliary camera with the larger field angle, so that the first preview image obtained through cutting is utilized to preview and display, the mobile terminal can still display the picture when entering the high-resolution shooting mode, the continuous display of the preview picture is further realized, and the user experience is improved.

Description

Photographing preview method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of mobile terminal photographing, in particular to a photographing preview method, a photographing preview device, a storage medium and electronic equipment.
Background
At present, pixels of a camera of a Mobile terminal are becoming larger (for example, the pixels of the camera of the Mobile terminal may be one hundred million pixels, etc.), and when a user uses a high-resolution camera (for example, a one hundred million pixels camera, etc.) to take a picture, due to an influence of a transmission rate of a Mobile Industry Processor Interface (MPI), a frame rate is low, so that a requirement that a human eye views a video at the lowest level cannot be met.
Therefore, it is a general practice that, in photographing preview, preview can be performed using a low-resolution image (for example, an image of 1200 ten thousand pixels), and when a user clicks a moment of photographing, a high-resolution photographing mode can be switched, but since a frame rate of a high-resolution image (for example, an image of one hundred million pixels, etc.) is low, it does not transmit the high-resolution image to a display screen for preview. Therefore, generally, the screen of the mobile terminal is suddenly blacked or animated, and after the photographing is finished, the image is switched to the low-resolution image to continue the preview.
In the process of implementing the invention, the inventor finds that the following problems exist in the prior art: at the moment of taking a picture and before and after taking a picture, the preview picture of the mobile terminal cannot be continuously displayed, so that the problem of influencing the user experience is caused.
Disclosure of Invention
An embodiment of the application aims to provide a photographing preview method, a photographing preview device, a storage medium and electronic equipment, so as to solve the problem that user experience is influenced in the prior art.
In a first aspect, an embodiment of the present application provides a photographing preview method, where the photographing preview method is applied to a mobile terminal, the mobile terminal includes a main camera and an auxiliary camera, a field angle of the auxiliary camera is greater than a field angle of the main camera, and the photographing preview method includes: acquiring a shooting instruction; cutting out a first preview image from an auxiliary shooting image collected by an auxiliary camera in response to a shooting instruction, wherein the field angle corresponding to the first preview image is the same as the field angle corresponding to a first main shooting image collected by a main camera; the first preview image is displayed.
Therefore, the embodiment of the application cuts the angle of view through the sub-camera image collected from the sub-camera with the larger angle of view, so that the first cut preview image is used for preview display, the mobile terminal can still display the picture when entering the high-resolution shooting mode, the continuous display of the preview picture is realized, and the user experience is improved.
In one possible embodiment, before the capturing instruction is acquired or after the first preview image is displayed, the photographing preview method further includes: acquiring a second main shooting image, wherein the second main shooting image is acquired by a main camera or obtained after the first main shooting image is compressed, and the resolution of the second main shooting image is smaller than that of the first main shooting image; the second main shot image is displayed.
Therefore, the embodiment of the present application can use the second main shooting image as the preview image before the shooting instruction is not acquired.
In one possible embodiment, before the capturing instruction is acquired, or after the first preview image is displayed, the photographing preview method further includes: continuously cutting the sub-shooting image collected by the sub-camera to obtain a second preview image, wherein the field angle corresponding to the second preview image is the same as the field angle corresponding to the second main-shooting image, and the resolution of the second main-shooting image is smaller than that of the first main-shooting image; the second preview image is continuously displayed.
Therefore, the embodiment of the present application may use the second preview image as the preview image before the shooting instruction is not acquired.
In one possible embodiment, before the capturing instruction is acquired, the photographing preview method further includes: and adjusting the camera shooting parameters of the main camera and/or the auxiliary camera so that the second main camera image collected by the main camera and the auxiliary camera image collected by the auxiliary camera are consistent in appearance and feel.
Therefore, the embodiment of the application can enable the paintings of the main camera and the auxiliary camera to be consistent by adjusting the camera shooting parameters, so that the first preview image cut out from the auxiliary shot image is not different in appearance of a user, and the user experience is improved.
In one possible embodiment, the imaging parameters include any one or more of exposure, white balance, and focus.
In one possible embodiment, the mobile terminal stores a mapping relationship between coordinates of a vertex of the first main shot image and coordinates of a target point corresponding to the vertex of the first main shot image in the sub shot image, cuts out the first preview image from the sub shot image shot by the sub camera, and comprises: acquiring coordinates of a vertex of the first main shooting image; determining the coordinates of the target point according to the coordinates and the mapping relation of the vertex; determining the position of a target area corresponding to the first preview image from the secondary shot image according to the coordinates of the target point; and cutting out the first preview image from the secondary shooting image according to the position of the target area.
Therefore, the embodiment of the application can accurately realize the cutting of the first preview image through the mapping relation.
In a second aspect, an embodiment of the present application provides a shooting preview device, where the shooting preview device is applied to a mobile terminal, the mobile terminal includes a main camera and a sub-camera, a field angle of the sub-camera is greater than a field angle of the main camera, and the shooting preview device includes: the acquisition module is used for acquiring a shooting instruction; the cutting module is used for responding to a shooting instruction and cutting a first preview image from a secondary shooting image shot by a secondary camera, wherein the angle of view corresponding to the first preview image is the same as the angle of view corresponding to a first main shooting image shot by a main camera; and the display module is used for displaying the first preview image.
In a possible embodiment, the acquiring module is further configured to acquire a second main photographic image, where the second main photographic image is acquired by the main camera or obtained after the first main photographic image is compressed, and a resolution of the second main photographic image is smaller than a resolution of the first main photographic image; and the display module is also used for displaying the second main shot image.
In a possible embodiment, the cropping module is further configured to crop the sub-shot image collected by the sub-camera continuously to obtain a second preview image, where a field angle corresponding to the second preview image is the same as a field angle corresponding to the second main-shot image, and a resolution of the second main-shot image is smaller than a resolution of the first main-shot image; and the display module is also used for continuously displaying the second preview image.
In a possible embodiment, the photographing preview device further includes an adjusting module, configured to adjust a camera parameter of the main camera and/or a camera parameter of the sub camera, so that a second main-shot image captured by the main camera and a sub-shot image captured by the sub camera are consistent in appearance and feel.
In one possible embodiment, the imaging parameters include any one or more of exposure, white balance, and focus.
In a possible embodiment, the mobile terminal stores a mapping relationship between coordinates of a vertex of the first main shot image and coordinates of a target point corresponding to the vertex of the first main shot image in the sub-shot image, and the cropping module is configured to: acquiring coordinates of a vertex of the first main shooting image; determining the coordinates of the target point according to the coordinates and the mapping relation of the vertex; determining the position of a target area corresponding to the first preview image from the secondary shot image according to the coordinates of the target point; and cutting out the first preview image from the secondary shooting image according to the position of the target area.
In a third aspect, an embodiment of the present application provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program performs the method according to the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the method of the first aspect or any of the alternative implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
In order to make the aforementioned objects, features and advantages of the present embodiments more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 shows a flowchart of a photo preview method provided in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a back side of a mobile terminal according to an embodiment of the present application;
fig. 3 shows a block diagram of a photo preview device according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not construed as indicating or implying relative importance.
At present, when shooting preview, the mobile terminal does not preview the image with the maximum resolution shot by the camera.
For example, at the time of previewing, since the resolution of an image captured by a camera of the mobile terminal is already much greater than that of a display screen of the mobile terminal, the mobile terminal can perform previewing by using a low-resolution image of 1200 ten thousand pixels. Subsequently, if the user chooses to capture a one-hundred-million-pixel high-resolution image, but the transmission rate is reduced due to the limited bandwidth of the transmission pipeline, so that the frame rate of the one-hundred-pixel image is less than 30 frames. Meanwhile, the frame rate of the display screen of the mobile terminal is 60 frames, and the picture seen by the user is also intermittent at this time.
Therefore, it is common practice to set the screen of the mobile terminal to black or add a scene animation at the moment of photographing, so as to avoid the above problems. And after the photographing is finished, switching to the low-resolution image to continue previewing.
However, the preview screen of the mobile terminal is interrupted at the moment of photographing and before and after photographing due to setting the screen of the mobile terminal to black or adding a scene animation, thereby causing a problem of affecting user experience.
Based on this, the embodiment of the application provides a photographing preview scheme, which includes obtaining a photographing instruction, obtaining the photographing instruction, and cutting out a first preview image from an auxiliary photographing image collected by an auxiliary camera in response to the photographing instruction, where a field angle corresponding to the first preview image is the same as a field angle corresponding to a first main photographing image collected by a main camera, and displaying the first preview image.
Therefore, the embodiment of the application cuts the angle of view through the sub-camera image collected from the sub-camera with the larger angle of view, so that the first cut preview image is used for preview display, the mobile terminal can still display the picture when entering the high-resolution shooting mode, the continuous display of the preview picture is realized, and the user experience is improved.
Referring to fig. 1, fig. 1 shows a flowchart of a photo preview method according to an embodiment of the present application. The photographing preview method shown in fig. 1 is applicable to a mobile terminal, the mobile terminal includes a main camera and a sub-camera, and a field angle of the sub-camera is larger than a field angle of the main camera, the photographing preview method includes:
in step S110, before the shooting instruction is not acquired, the mobile terminal displays the first image.
It should be understood that the first image may be a second main shot image, or may be a second preview image cut out continuously from a sub-shot image captured by a sub-camera, where a field angle corresponding to the second preview image is the same as a field angle of the second main shot image, and a content of the second preview image is the same as a content of the second main shot image, and the embodiment of the present application is not limited to this.
It should also be understood that the specific type of the main camera and the specific type of the sub camera may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, please refer to fig. 2, fig. 2 shows a schematic diagram of a back side of a mobile terminal according to an embodiment of the present application. The mobile terminal shown in fig. 2 includes a tele camera 210, a wide camera 220, and an ultra wide camera 230. Wherein, the main camera in this application embodiment can be wide-angle camera 220 to and vice camera in this application embodiment can be super wide-angle camera 230.
It should also be understood that the main camera may be referred to as a first camera, and the sub-camera may also be referred to as a second camera, and the embodiments of the present application are not limited thereto.
In addition, it should be noted that although the mobile terminal has three cameras as an example, those skilled in the art should understand that the mobile terminal may have more or less cameras as long as the mobile terminal has one sub-camera with a larger field angle than the main camera.
It should also be understood that in the case of a mobile terminal having at least two sub-cameras with a larger field angle than the main camera, the sub-camera in the embodiment of the present application may be any one of the at least two sub-cameras.
It should also be understood that the second main shot image may be acquired by the main camera, or may be obtained by performing resolution compression processing on the first main shot image, and the resolution of the second main shot image is smaller than that of the first main shot image.
For example, in the case where the maximum resolution of the main camera of the mobile terminal is one hundred million pixels, the second main camera image may be an image of 1200 ten thousand pixels obtained after compression processing of an image of one hundred million pixels.
In order to facilitate understanding of the embodiments of the present application, the following description will be given by way of specific examples.
Alternatively, before the photographing instruction is not acquired, the mobile terminal acquires the second main shot image, and the mobile terminal displays the second main shot image.
Therefore, the embodiment of the present application can use the second main shooting image as the preview image before the shooting instruction is not acquired.
Optionally, before the shooting instruction is not acquired, the mobile terminal acquires a second main shooting image acquired by the main camera and a secondary shooting image acquired by the secondary camera, and the mobile terminal can continuously cut out a second preview image from the secondary shooting image. The angle of view corresponding to the second preview image is the same as the angle of view corresponding to the second main shooting image, and the resolution of the second main shooting image is smaller than that of the first main shooting image. And displaying the second preview image by the mobile terminal.
It should be understood that the specific resolution of the first main shooting image and the specific resolution of the second main shooting image can be set according to actual needs, as long as the resolution of the first main shooting image is ensured to be greater than that of the second main shooting image, and the embodiment of the present application is not limited thereto.
For example, the resolution of the first main-shot image may be 1.08 million pixels, and the resolution of the second main-shot image may be 1200 million pixels.
Therefore, the embodiment of the present application may use the second preview image as the preview image before the shooting instruction is not acquired.
It should be further noted that the specific process of the mobile terminal cutting out the second preview image from the sub-shot image is similar to the specific process of the mobile terminal cutting out the first preview image from the sub-shot image captured by the sub-camera, which can be specifically referred to the following description of the mobile terminal cutting out the first preview image from the sub-shot image captured by the sub-camera, and is not repeated herein.
In step S120, the mobile terminal obtains a shooting instruction.
Specifically, in the case that the user clicks to take a picture, the mobile terminal acquires a shooting instruction.
And step S130, responding to the shooting instruction, and cutting out the first preview image from the auxiliary shooting image collected by the auxiliary camera by the mobile terminal. The corresponding field angle of the first preview image is the same as the field angle corresponding to the first main shooting image collected by the main camera, and the content of the first preview image is the same as that of the first main shooting image.
Specifically, the mobile terminal may enter a high resolution shooting mode before acquiring the shooting instruction. Meanwhile, the mobile terminal may open the sub camera (the sub camera is not opened in the existing preview mode), and adjust the camera parameters of the main camera and/or the camera parameters of the sub camera so that the main camera images (e.g., the first main camera image and the second main camera image, etc.) collected by the main camera and the sub camera images collected by the sub camera are identical in appearance (e.g., brightness, color, etc. appear identical), so that since manufacturers, batches, or models of the two cameras are different, the pictures of the images collected by the two cameras seen by the user are identical by adjusting the camera parameters of the two cameras. And after the shooting instruction is acquired, the mobile terminal can cut out the first preview image from the secondary shooting image shot by the secondary camera.
For example, in the case that the main camera is a wide-angle camera and the sub-camera is an ultra-wide-angle camera, if it is predicted that the high-resolution photographing mode will be entered, the mobile terminal may turn on the ultra-wide-angle camera and adjust the camera parameters of the main camera and/or the camera parameters of the sub-camera, so that the main photographed image captured by the main camera and the sub-photographed image captured by the sub-camera are visually consistent. And because the resolution ratio and the frame rate of super wide angle camera can satisfy the video demand of watching of people's eye, it can not influence the demonstration promptly, so, can cut out wide angle camera's visual angle from the image that super wide angle camera gathered.
It should be noted that, since the display capability of the display screen of the mobile terminal (for example, the display capability of 200 ten thousand pixels) is much smaller than the capture capability of the camera (for example, the capture capability of 1000 ten thousand pixels or more), the first preview image that is cut out is displayed without being perceived as abnormal by the user.
In addition, it should be further noted that, although the above is described by taking as an example that the mobile terminal may adjust the camera shooting parameters of the main camera and/or the sub camera before the mobile terminal enters the high resolution shooting mode, it should be understood by those skilled in the art that the mobile terminal may also execute the relevant scheme in other modes, and the embodiments of the present application are not limited thereto.
For example, when the mobile terminal enters the high-resolution photographing mode, the mobile terminal may turn on the ultra-wide-angle camera and set the photographing parameters of the main camera and the photographing parameters of the sub-camera to the same photographing parameters.
It should be understood that specific parameters included in the imaging parameters may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the imaging parameters may include any one or more of exposure, white balance, and focus.
It should also be understood that the specific process of the mobile terminal adjusting the camera shooting parameters of the main camera and/or the camera shooting parameters of the sub-camera may also be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, under the condition that the main camera is a wide-angle camera and the sub-camera is a super wide-angle camera and the camera parameters include exposure time, if the photosensitive capability of the super wide-angle camera is slightly worse than that of the wide-angle camera, the mobile terminal can adjust the exposure time of the wide-angle camera and the exposure time of the super wide-angle camera, so that the exposure time of the super wide-angle camera is longer than that of the super wide-angle camera, and the brightness of the image collected by the wide-angle camera is consistent with that of the image collected by the super wide-angle camera.
It should also be understood that the specific process of cutting out the first preview image from the secondary captured image acquired by the secondary camera by the mobile terminal may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
Alternatively, since the mobile terminal may store a mapping relationship between coordinates of a vertex of a main shot image (e.g., a first main shot image or a second main shot image, etc.) at different focal lengths and coordinates of a target point corresponding to the vertex in the main shot image in a sub-shot image, when determining current focal lengths of two cameras, the mobile terminal may acquire the coordinates of the vertex of the first main shot image, query the mapping relationship according to the coordinates of the vertex of the first main shot image and the current focal length, thereby acquiring the coordinates of the target point corresponding to the vertex, further determine a position of a target area corresponding to the first preview image from the sub-shot image according to the coordinates of the target point corresponding to the vertex, and further trim the first preview image from the sub-shot image according to the position of the target area.
For example, under the condition that the focal length of the main camera and the focal length of the sub camera are both the first focal length and the first main camera image and the sub camera image are both rectangular, the mobile terminal can acquire coordinates of four vertexes of the first main camera image, query a mapping relation according to the coordinates of the four vertexes and the first focal length, acquire coordinates of four target points corresponding to all the vertexes under the first focal length, further determine the position of a target area corresponding to the first preview image from the sub camera image according to the coordinates of the four target points, and further trim the first preview image from the sub camera image according to the position of the target area.
It should be understood that the obtaining process of the mapping relationship may be set according to actual requirements, and the embodiment of the present application is not limited thereto.
For example, the focal length of the main camera and the focal length of the sub camera are both the focal length f 1 In the situation of the prior art, the main camera and the auxiliary camera can be used for shooting the same checkerboard, the checkerboard is the area which is finally displayed by the two cameras, and the checkerboard just fills the shooting area of the main camera. Because the two cameras shoot the same scene, and the checkerboard can be identified by different colors or numbers, the position of the same scene in the images shot by the two cameras can be calibrated, and then the two cameras are at the focal length f 1 The corresponding mapping relationship can be determined. And, for the focal length f 2 Focal length f 3 Etc., all according to the focal length f 1 To obtain the focal length f 2 Corresponding mapping relation and focal length f 3 Corresponding mapping relationships, etc.
Note that, here, the focal length f is stored in the mobile terminal n Corresponding mapping relation and focal length f n+2 Mapping relation of corresponding mapping relation and no storage focal length f n+1 In the case of the corresponding mapping relationship, if the focal length f is determined at this time n+1 The corresponding mapping relationship can be determined according to the focal length f n Corresponding mapping relation and focal length f n+2 The corresponding mapping relation and interpolation algorithm can obtain the focal length f n+1 And (4) corresponding mapping relation.
It should be understood that the specific algorithm of the interpolation algorithm may be set according to actual requirements, and the embodiments of the present application are not limited thereto.
For example, the interpolation algorithm may be a bilinear interpolation method, a bicubic interpolation method, or the like.
It should also be understood that the focal length f is a function of n Corresponding mapping relation and focal length f n+2 Obtaining the focal length f by corresponding mapping relation and interpolation algorithm n+1 Concrete method of corresponding mapping relationThe program may also be set according to actual requirements, and the embodiments of the present application are not limited to this.
In step S140, the mobile terminal displays the first preview image.
Therefore, the first preview image can be displayed at the moment of photographing, so that photographing preview can be realized before and after photographing and at the moment of photographing, continuous display of a preview picture is realized, and user experience is improved.
And step S150, after the photographing is finished, the mobile terminal displays a second image.
It should be understood that the second image may be a second main shot image, and may also be a second preview image cut out from a sub-shot image captured by a sub-camera, where a field angle corresponding to the second preview image is the same as a field angle of the second main shot image, and a content of the second preview image is the same as a content of the second main shot image, and the embodiment of the present application is not limited thereto.
It should also be understood that the related description of the second main shot image in step S150 can refer to the related description before, and is not repeated herein.
In order to facilitate understanding of the embodiments of the present application, the following description is given by way of specific examples.
Optionally, after the photographing is completed, the mobile terminal may acquire the second main shot image, and the mobile terminal displays the second main shot image.
For example, the mobile terminal may display the second main shot image before or after photographing is completed. And at the moment of photographing, the mobile terminal can display the first preview image.
Optionally, after the photographing is completed, the mobile terminal may continue to perform clipping processing on the secondary photographed image acquired by the secondary camera to obtain a second preview image. The field angle corresponding to the second preview image is the same as the field angle corresponding to the second main shooting image, and the resolution of the second main shooting image is smaller than that of the first main shooting image. And continuously displaying the second preview image by the mobile terminal.
For example, the mobile terminal may display the second preview image before or after the photographing is completed. And at the moment of photographing, the mobile terminal can display the first preview image.
Therefore, the embodiment of the application cuts the angle of view through the auxiliary camera image collected by the auxiliary camera with the larger angle of view, so that the first cut preview image is utilized to preview and display, the mobile terminal can still display the picture when entering the high-resolution photographing mode, the continuous display of the preview picture is realized, and the user experience is improved.
It should be understood that the above photo preview method is only exemplary, and those skilled in the art can make various modifications, modifications or variations according to the above method and also fall within the scope of the present application.
Referring to fig. 3, fig. 3 shows a structural block diagram of a photo preview device 300 according to an embodiment of the present application, it should be understood that the photo preview device 300 corresponds to the above method embodiment and can perform various steps related to the above method embodiment, and specific functions of the photo preview device 300 can be referred to the above description, and detailed descriptions are appropriately omitted here to avoid repetition. The photo preview device 300 includes at least one software function module that can be stored in a memory in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the photo preview device 300. Specifically, the photographing preview device 300 is applied to a mobile terminal, the mobile terminal includes a main camera and a sub camera, a field angle of the sub camera is greater than a field angle of the main camera, and the photographing preview device 300 includes:
an obtaining module 310, configured to obtain a shooting instruction; the cutting module 320 is configured to cut out a first preview image from an auxiliary shooting image collected by an auxiliary camera in response to a shooting instruction, where a field angle corresponding to the first preview image is the same as a field angle corresponding to a first main shooting image collected by a main camera; the display module 330 is configured to display the first preview image.
In a possible embodiment, the obtaining module 310 is further configured to obtain a second main shot image, where the second main shot image is acquired by the main camera or obtained after the first main shot image is compressed, and a resolution of the second main shot image is smaller than a resolution of the first main shot image; the display module 330 is further configured to display the second main shot image.
In a possible embodiment, the cropping module 320 is further configured to crop the sub-shot image collected by the sub-camera continuously to obtain a second preview image, where a field angle corresponding to the second preview image is the same as a field angle corresponding to the second main-shot image, and a resolution of the second main-shot image is smaller than a resolution of the first main-shot image; the display module 330 is further configured to continuously display the second preview image.
In a possible embodiment, the photographing preview apparatus 300 further includes an adjusting module (not shown) configured to adjust the camera parameters of the main camera and/or the camera parameters of the sub-camera, so that the second main-shot image captured by the main camera and the sub-shot image captured by the sub-camera are consistent in appearance.
In one possible embodiment, the imaging parameters include any one or more of exposure, white balance, and focus.
In a possible embodiment, the mobile terminal stores a mapping relationship between coordinates of a vertex of the first main shot image and coordinates of a target point corresponding to the vertex of the first main shot image in the sub-shot image, and the cropping module 320 is configured to: acquiring coordinates of a vertex of the first main shooting image; determining the coordinates of the target point according to the coordinates and the mapping relation of the vertex; determining the position of a target area corresponding to the first preview image from the secondary shot image according to the coordinates of the target point; and cutting out the first preview image from the secondary shooting image according to the position of the target area.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and redundant description is not repeated here.
Fig. 4 shows a block diagram of an electronic device 400 according to an embodiment of the present application. Electronic device 400 may include a processor 410, a communication interface 420, a memory 430, and at least one communication bus 440. Wherein the communication bus 440 is used to enable direct connection communication of these components. The communication interface 420 in the embodiment of the present application is used for communicating signaling or data with other devices. The processor 410 may be an integrated circuit chip having signal processing capabilities. The Processor 410 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 410 may be any conventional processor or the like.
The Memory 430 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 430 stores computer readable instructions, which when executed by the processor 410, the electronic device 400 may perform the steps of the above-described method embodiments.
The electronic device 400 may further include a memory controller, an input-output unit, an audio unit, and a display unit.
The memory 430, the memory controller, the processor 410, the peripheral interface, the input/output unit, the audio unit, and the display unit are electrically connected to each other directly or indirectly, so as to implement data transmission or interaction. For example, these components may be electrically coupled to each other via one or more communication buses 440. The processor 410 is used to execute executable modules stored in the memory 430. Also, the electronic device 400 is configured to perform the following method: acquiring a shooting instruction; responding to a shooting instruction, cutting out a first preview image from an auxiliary shooting image collected by an auxiliary camera, wherein the angle of view corresponding to the first preview image is the same as the angle of view corresponding to a first main shooting image collected by a main camera; the first preview image is displayed.
The input and output unit is used for providing input data for a user to realize the interaction of the user and the server (or the local terminal). The input/output unit may be, but is not limited to, a mouse, a keyboard, and the like.
The audio unit provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
The display unit provides an interactive interface (e.g. a user interface) between the electronic device and a user or for displaying image data to a user reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations simultaneously generated from one or more positions on the touch display, and the sensed touch operations are sent to the processor for calculation and processing.
It will be appreciated that the configuration shown in fig. 4 is merely illustrative and that the electronic device 400 may include more or fewer components than shown in fig. 4 or may have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
The present application also provides a storage medium having a computer program stored thereon, which, when executed by a processor, performs the method of the method embodiments.
The present application also provides a computer program product which, when run on a computer, causes the computer to perform the method of the method embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The photographing preview method is applied to a mobile terminal, the mobile terminal comprises a main camera and a sub camera, the field angle of the sub camera is larger than that of the main camera, and the photographing preview method comprises the following steps:
acquiring a shooting instruction;
cutting out a first preview image from an auxiliary shooting image collected by an auxiliary camera in response to the shooting instruction, wherein the angle of view corresponding to the first preview image is the same as the angle of view corresponding to a first main shooting image collected by a main camera;
displaying the first preview image;
the mobile terminal stores a mapping relation between coordinates of a vertex of the first main shooting image and coordinates of a target point corresponding to the vertex of the first main shooting image in the auxiliary shooting image under different focal lengths, and the cutting of the first preview image from the auxiliary shooting image collected by the auxiliary camera comprises the following steps:
acquiring the coordinates of the vertex of the first main shooting image and the current focal length;
determining the coordinates of the target point according to the mapping relation corresponding to the coordinates of the vertex and the current focal length;
determining the position of a target area corresponding to the first preview image from the secondary shot image according to the coordinates of the target point;
and cutting out the first preview image from the sub-shot image according to the position of the target area.
2. The photo preview method according to claim 1, wherein before the capturing of the photographing instruction or after the displaying of the first preview image, the photo preview method further comprises:
acquiring a second main shooting image, wherein the second main shooting image is acquired by the main camera or obtained after the first main shooting image is compressed, and the resolution of the second main shooting image is smaller than that of the first main shooting image;
and displaying the second main shooting image.
3. The photo preview method according to claim 1, wherein before the capturing of the photographing instruction or after the displaying of the first preview image, the photo preview method further comprises:
continuously cutting the sub-shot image collected by the sub-camera to obtain a second preview image, wherein the field angle corresponding to the second preview image is the same as the field angle corresponding to the second main-shot image, and the resolution of the second main-shot image is smaller than that of the first main-shot image;
and continuously displaying the second preview image.
4. The photo preview method according to claim 1, wherein before the capturing of the photographing instruction, the photo preview method further comprises:
and adjusting the camera shooting parameters of the main camera and/or the auxiliary camera so that the second main camera image collected by the main camera and the auxiliary camera image collected by the auxiliary camera are consistent in appearance and feel.
5. The photograph preview method according to claim 4, wherein the image pickup parameters include any one or more of exposure, white balance and focus.
6. The utility model provides a preview device takes a picture which characterized in that, preview device takes a picture is applied to mobile terminal, mobile terminal includes main camera and vice camera, the angle of vision of vice camera is greater than the angle of vision of main camera, preview device takes a picture includes:
the acquisition module is used for acquiring a shooting instruction;
the cutting module is used for responding to the shooting instruction and cutting a first preview image from a secondary shooting image collected by the secondary camera, wherein the field angle corresponding to the first preview image is the same as the field angle corresponding to a first main shooting image collected by the main camera;
the display module is used for displaying the first preview image;
the mobile terminal stores a mapping relation between the coordinates of the vertex of the first main shooting image and the coordinates of a target point corresponding to the vertex of the first main shooting image in the auxiliary shooting image under different focal lengths, and the clipping module is used for: acquiring the coordinates of the vertex of the first main shooting image and the current focal length; determining the coordinates of the target point according to the mapping relation corresponding to the coordinates of the vertex and the current focal length; determining the position of a target area corresponding to the first preview image from the secondary shot image according to the coordinates of the target point; and cutting out the first preview image from the secondary shot image according to the position of the target area.
7. The photographing preview device of claim 6, wherein the obtaining module is further configured to obtain a second main photographic image, where the second main photographic image is acquired by the main camera or obtained after compressing the first main photographic image, and a resolution of the second main photographic image is smaller than a resolution of the first main photographic image; the display module is further configured to display the second main shot image.
8. The photographing preview device according to claim 6, wherein the cropping module is further configured to crop the sub-photographic image collected by the sub-camera continuously to obtain a second preview image, wherein a field angle corresponding to the second preview image is the same as a field angle corresponding to a second main-photographic image, and a resolution of the second main-photographic image is smaller than a resolution of the first main-photographic image; the display module is further configured to continuously display the second preview image.
9. The photographing preview device of claim 6, further comprising an adjusting module, configured to adjust the camera parameters of the main camera and/or the camera parameters of the sub-camera, so that the second main-shot image captured by the main camera and the sub-shot image captured by the sub-camera are consistent in appearance.
10. The photographing preview device according to claim 9, wherein the photographing parameters include any one or more of exposure, white balance, and focus.
11. A storage medium having stored thereon a computer program which, when executed by a processor, executes the photo preview method according to any one of claims 1 to 5.
12. An electronic device, characterized in that the electronic device comprises: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the photo preview method of any of claims 1-5.
CN202011275562.9A 2020-11-13 2020-11-13 Photographing preview method and device, storage medium and electronic equipment Active CN112565589B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011275562.9A CN112565589B (en) 2020-11-13 2020-11-13 Photographing preview method and device, storage medium and electronic equipment
PCT/CN2021/130199 WO2022100677A1 (en) 2020-11-13 2021-11-12 Picture preview method and apparatus, and storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011275562.9A CN112565589B (en) 2020-11-13 2020-11-13 Photographing preview method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112565589A CN112565589A (en) 2021-03-26
CN112565589B true CN112565589B (en) 2023-03-31

Family

ID=75042383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011275562.9A Active CN112565589B (en) 2020-11-13 2020-11-13 Photographing preview method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112565589B (en)
WO (1) WO2022100677A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565589B (en) * 2020-11-13 2023-03-31 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment
CN113473018B (en) * 2021-07-01 2023-10-31 百果园技术(新加坡)有限公司 Video shooting method and device, shooting terminal and storage medium
CN113676673B (en) * 2021-08-10 2023-06-16 广州极飞科技股份有限公司 Image acquisition method, image acquisition system and unmanned equipment
CN116051368B (en) * 2022-06-29 2023-10-20 荣耀终端有限公司 Image processing method and related device
CN116095512B (en) * 2022-07-15 2024-04-02 荣耀终端有限公司 Photographing method of terminal equipment and related device
CN115379118B (en) * 2022-08-26 2024-04-05 维沃移动通信有限公司 Camera switching method and device, electronic equipment and readable storage medium
CN115696063A (en) * 2022-09-13 2023-02-03 荣耀终端有限公司 Photographing method and electronic equipment
CN117835077A (en) * 2022-09-27 2024-04-05 华为终端有限公司 Shooting method, electronic equipment and medium
CN115334227B (en) * 2022-10-18 2024-01-19 菲特(天津)检测技术有限公司 Gear image acquisition device and method, gear image acquisition method and electronic equipment
CN117729320A (en) * 2024-02-07 2024-03-19 荣耀终端有限公司 Image display method, device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108605087A (en) * 2017-01-26 2018-09-28 华为技术有限公司 Photographic method, camera arrangement and the terminal of terminal

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7859588B2 (en) * 2007-03-09 2010-12-28 Eastman Kodak Company Method and apparatus for operating a dual lens camera to augment an image
KR101701852B1 (en) * 2010-12-29 2017-02-13 엘지전자 주식회사 Mobile terminal and method for controlling the same
KR101796481B1 (en) * 2011-11-28 2017-12-04 삼성전자주식회사 Method of eliminating shutter-lags with low power consumption, camera module, and mobile device having the same
KR102120764B1 (en) * 2013-09-16 2020-06-09 엘지전자 주식회사 Portable device and method for controlling the same
CN106791378A (en) * 2016-11-29 2017-05-31 广东欧珀移动通信有限公司 Control method, control device and electronic installation
CN106341612A (en) * 2016-11-29 2017-01-18 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN107277371A (en) * 2017-07-27 2017-10-20 青岛海信移动通信技术股份有限公司 A kind of method and device in mobile terminal amplification picture region
CN107566742B (en) * 2017-10-27 2020-05-22 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN107707824B (en) * 2017-10-27 2020-07-31 Oppo广东移动通信有限公司 Shooting method, shooting device, storage medium and electronic equipment
CN108513070B (en) * 2018-04-04 2020-09-04 维沃移动通信有限公司 Image processing method, mobile terminal and computer readable storage medium
KR102661614B1 (en) * 2019-02-11 2024-04-29 삼성전자주식회사 Screen providing method and electronic device supporting the same
CN110072056B (en) * 2019-05-10 2022-02-01 北京迈格威科技有限公司 Data processing method and device based on multiple camera modules
CN111010510B (en) * 2019-12-10 2021-11-16 维沃移动通信有限公司 Shooting control method and device and electronic equipment
CN112565589B (en) * 2020-11-13 2023-03-31 北京爱芯科技有限公司 Photographing preview method and device, storage medium and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108605087A (en) * 2017-01-26 2018-09-28 华为技术有限公司 Photographic method, camera arrangement and the terminal of terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ARM9的便携式内窥镜系统设计与实现;孟祥贵;《电子技术应用》;20081006;全文 *

Also Published As

Publication number Publication date
WO2022100677A1 (en) 2022-05-19
CN112565589A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112565589B (en) Photographing preview method and device, storage medium and electronic equipment
US11563897B2 (en) Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information
US10334153B2 (en) Image preview method, apparatus and terminal
JP6388673B2 (en) Mobile terminal and imaging method thereof
JP5592006B2 (en) 3D image processing
KR102229811B1 (en) Filming method and terminal for terminal
JP2016528772A (en) Image processing method, image processing apparatus, and terminal
CN107277375B (en) Self-photographing method and mobile terminal
JP6727989B2 (en) Image processing apparatus and control method thereof
CN109040596B (en) Method for adjusting camera, mobile terminal and storage medium
JP2019012881A (en) Imaging control device and control method of the same
TWI520604B (en) Image pickup device and image preview system and image preview method thereof
US11610293B2 (en) Image processing apparatus and image processing method
WO2022111330A1 (en) Image stitching method and apparatus for multi-camera device, storage medium, and terminal
TWI613904B (en) Stereo image generating method and electronic apparatus utilizing the method
WO2015143857A1 (en) Photograph synthesis method and terminal
WO2016123850A1 (en) Photographing control method for terminal, and terminal
CN112508820A (en) Image processing method and device and electronic equipment
CN107087114B (en) Shooting method and device
CN112804451B (en) Method and system for photographing by utilizing multiple cameras and mobile device
JP7468391B2 (en) Image capture device and image capture processing method
CN109862286B (en) Image display method, device, equipment and computer storage medium
JP2018046478A (en) Image processing apparatus
TWI228915B (en) Digital zooming method
CN116132820A (en) Shooting method and device 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