CN108737739B - Preview picture acquisition method, preview picture acquisition device and electronic equipment - Google Patents

Preview picture acquisition method, preview picture acquisition device and electronic equipment Download PDF

Info

Publication number
CN108737739B
CN108737739B CN201810622435.8A CN201810622435A CN108737739B CN 108737739 B CN108737739 B CN 108737739B CN 201810622435 A CN201810622435 A CN 201810622435A CN 108737739 B CN108737739 B CN 108737739B
Authority
CN
China
Prior art keywords
preview picture
camera
preview
picture
frame number
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.)
Expired - Fee Related
Application number
CN201810622435.8A
Other languages
Chinese (zh)
Other versions
CN108737739A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810622435.8A priority Critical patent/CN108737739B/en
Publication of CN108737739A publication Critical patent/CN108737739A/en
Application granted granted Critical
Publication of CN108737739B publication Critical patent/CN108737739B/en
Expired - Fee Related 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/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

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

Abstract

The application provides a preview picture acquisition method, a preview picture acquisition device, electronic equipment and a computer readable storage medium, wherein the preview picture acquisition method comprises the following steps: acquiring a first preview picture currently acquired by the tele-camera and a second preview picture currently acquired by the wide-angle camera; according to the second preview picture, predicting the ambient brightness of the long-focus camera in a preview picture which is collected by a preset frame number away from the first preview picture; adjusting the exposure of the tele camera according to the ambient brightness; and acquiring a preview picture with a preset frame number away from the first preview picture by using the tele camera with the adjusted exposure. According to the method and the device, the preview picture acquired by the long-focus camera can meet the real-time requirement, and the user experience can be further improved.

Description

Preview picture acquisition method, preview picture acquisition device and electronic equipment
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a preview image acquisition method, a preview image acquisition device, electronic equipment and a computer-readable storage medium.
Background
Many electronic equipment on the existing market, for example, the cell-phone all possesses wide angle camera and long focus camera simultaneously, and wherein, long focus camera is fit for very much shooting portrait and long shot close-up, consequently, under many circumstances, the user all can use long focus camera to shoot.
After the user opens the telephoto camera, for shooting a relatively beautiful picture, the electronic device is generally moved to find a relatively beautiful angle of the shooting main body, or the user opens the telephoto camera for shooting when moving (such as riding and running), so that the external environment brightness corresponding to each frame of preview picture collected by the telephoto camera is different. In order to match the brightness of each frame of preview picture with the brightness of the external environment, a commonly used method at present is: after the long-focus camera collects a frame of preview picture, the brightness of the external environment at the moment is detected, and then the brightness of the frame of preview picture is adjusted according to the brightness of the external environment. Because the preview picture needs to be further processed after the preview picture is acquired by the traditional method, the preview picture of the camera cannot meet the real-time requirement, and the user experience is not good.
Disclosure of Invention
In view of this, the present application provides a preview image collecting method, a preview image collecting device, an electronic device, and a computer readable storage medium, which can enable a preview image collected by a telephoto camera to meet a real-time requirement, thereby further improving user experience.
The application provides a preview image acquisition method, which is applied to electronic equipment, wherein the electronic equipment comprises a tele camera and a wide camera, and the preview image acquisition method comprises the following steps:
acquiring a first preview picture currently acquired by the tele-camera and a second preview picture currently acquired by the wide-angle camera;
according to the second preview picture, predicting the ambient brightness of the long-focus camera in a preview picture which collects a preset number of frames away from the first preview picture;
adjusting the exposure of the telephoto camera according to the ambient brightness;
and acquiring a preview picture with a preset frame number away from the first preview picture by using the tele camera with the adjusted exposure.
The second aspect of the present application provides a preview picture collecting device, which is applied to an electronic device, wherein the electronic device comprises a telephoto camera and a wide-angle camera, and the preview picture collecting device comprises:
the preview image acquisition module is used for acquiring a first preview image currently acquired by the tele camera and a second preview image currently acquired by the wide camera;
the environment brightness prediction module is used for predicting the environment brightness of the long-focus camera in a preview picture which is collected by a preset frame number away from the first preview picture according to the second preview picture;
the exposure adjusting module is used for adjusting the exposure of the telephoto camera according to the environment brightness;
and the tele image acquisition module is used for acquiring a preview image with a preset frame number away from the first preview image by using the tele camera with the adjusted exposure.
A third aspect of the present application provides an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of the first aspect as described above.
A fifth aspect of the present application provides a computer program product comprising a computer program which, when executed by one or more processors, performs the steps of the method of the first aspect as described above.
From the above, the application provides a preview picture collecting method, which is applied to electronic equipment, wherein the electronic equipment comprises a wide-angle camera and a tele camera, and firstly, a first preview picture currently collected by the tele camera and a second preview picture currently collected by the wide camera are obtained; because the wide-angle camera can shoot a larger angle, the ambient brightness of the long-focus camera in the preview picture with the preset frame number away from the first preview picture can be predicted according to the second preview picture collected by the wide-angle camera; secondly, adjusting the exposure of the telephoto camera according to the predicted environment brightness; and finally, acquiring a preview picture with a preset frame number away from the first preview picture by using the tele-camera with the adjusted exposure. Therefore, according to the technical scheme provided by the application, the ambient brightness corresponding to the preview picture to be acquired by the tele camera needs to be predicted in advance, then the exposure of the tele camera is adjusted according to the predicted ambient brightness, and the preview picture is acquired by the tele camera after the exposure is adjusted.
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 flow chart illustrating an implementation of a preview picture collecting method according to an embodiment of the present application;
fig. 2(a) is a schematic diagram of a first preview screen provided in a first embodiment of the present application;
fig. 2(b) is a schematic diagram of a second preview screen provided in the first embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of another preview screen acquiring method provided in the second embodiment of the present application;
fig. 4(a) is an interface schematic diagram for displaying a preview screen according to a second embodiment of the present application;
fig. 4(b) is a schematic interface diagram for displaying a preview screen according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a preview screen capturing apparatus according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth 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.
The preview screen capturing method provided by the embodiment of the application can be applied to electronic equipment, and exemplarily, the electronic equipment includes but is not limited to: smart phones, tablet computers, learning machines, intelligent wearable devices, and the like.
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.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the electronic devices 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 devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, an electronic device that includes a display and a touch-sensitive surface is described. However, it should be understood that the electronic device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The electronic device 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 electronic device 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.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to explain the technical solution of the present application, the following description will be given by way of specific examples.
Example one
The preview image acquisition method provided in the first embodiment of the present application is described below, and the preview image acquisition method provided in the first embodiment of the present application is applied to an electronic device, where the electronic device includes two cameras, namely a telephoto camera and a wide-angle camera. Referring to fig. 1, a method for acquiring a preview image in an embodiment of the present application includes:
in step S101, a first preview picture currently acquired by a telephoto camera and a second preview picture currently acquired by a wide-angle camera are acquired;
in this embodiment of the application, before the step S101, the electronic device may detect whether the tele camera is started (for example, may detect whether the tele camera is started by a user after the user starts a camera application), and if it is detected that the tele camera is started, the wide camera is started; or the telephoto camera and the wide-angle camera may be simultaneously started when it is detected that the user starts the camera application program, and the starting modes of the telephoto camera and the wide-angle camera are not limited in the present application.
In the embodiment of the present application, a camera application may be developed based on a camera2.0 architecture, so that the camera application may support simultaneous operation of a tele camera and a wide camera. Camera2.0 is a camera development program based on an Android operating system, so that a camera application program can support multiple cameras to work simultaneously and process each frame of preview picture acquired by each camera, the traditional camera development program is based on a camera1.0 architecture, the camera application program designed based on the camera1.0 architecture can only support one camera to work at the same time, and the processing of data cannot reach the control of a frame level, and can only reach a stream level. According to the technical scheme, the telephoto camera and the wide-angle camera need to work simultaneously, so that a camera application program can be developed based on a camera2.0 architecture.
In step S102, according to the second preview image, predicting the ambient brightness of the telephoto camera in acquiring a preview image with a preset number of frames away from the first preview image;
in this embodiment of the application, a first preview picture currently acquired by the tele-camera and a second preview picture currently acquired by the wide-angle camera need to be acquired, and because an angle that the wide-angle camera can capture is large, the ambient brightness of the tele-camera when acquiring a preview picture distant from the first preview picture by a preset number of frames can be predicted according to the second preview picture currently acquired by the wide-angle camera.
In this embodiment of the application, the predicting, according to the second preview image, the ambient brightness of the telephoto camera in acquiring a preview image which is a preset number of frames away from the first preview image may include: acquiring the moving direction and the moving speed of the electronic equipment; searching an image area corresponding to a preview image which is acquired by the telephoto camera and is away from the first preview image by a preset frame number in the second preview image according to the moving direction and the moving speed; and predicting the ambient brightness of the long-focus camera in the process of collecting the preview picture with the preset frame number away from the first preview picture according to the brightness value of each pixel point in the image area.
In order to more intuitively describe the above technical solutions provided by the embodiments of the present application, a method for predicting ambient brightness is described below with reference to fig. 2. As shown in fig. 2(a), a first preview picture currently acquired by a tele camera, and a second preview picture currently acquired by a wide camera, in order to predict the ambient brightness of the tele camera when acquiring preview pictures away from the first preview picture by a preset number of frames, a moving direction and a moving speed of the electronic device may be first acquired by using a gyro sensor in the electronic device; then, according to the moving direction and the moving speed, the image region corresponding to the preview image acquired by the telephoto camera and having a preset frame number from the first preview image is searched in the second preview image, and in addition, in order to ensure that the image region corresponding to the preview image having the preset frame number from the first preview image can be searched in the second preview image, the preset frame number may be set to a smaller value, for example, 1 frame or 2 frames (the camera application based on the camera2.0 architecture may control the image acquired by the camera to be accurate to the frame level), as shown in fig. 2(b), the image region framed by the frame 201 is the image region corresponding to the first preview image, and then according to the moving direction and the moving speed of the electronic device, the image region corresponding to the preview image acquired by the telephoto camera and having the preset frame number from the first image is searched in the second preview image As shown in fig. 2(b), the image area framed by the frame 202 may be determined as the image area corresponding to the preview image acquired by the telephoto camera and separated from the first preview image by the preset number of frames; finally, according to the brightness value of each pixel point in the image region framed by the frame 202, the ambient brightness of the telephoto camera when acquiring the preview picture with the preset number of frames away from the first preview picture is predicted.
In this embodiment of the application, the predicting, according to the brightness value of each pixel point in the image region, the ambient brightness of the telephoto camera when acquiring the preview picture which is a preset number of frames away from the first preview picture may include: acquiring an average brightness value of the image area, wherein the average brightness value is an average value of brightness values of all pixel points in the image area; then, the ambient brightness of the telephoto camera when acquiring the preview screen with the preset number of frames from the first preview screen is predicted according to the average brightness value (correspondence information between the average brightness value of the image and the ambient brightness may be obtained in advance through a large number of tests and stored in a memory of the electronic device, and after the average brightness value of the image area is obtained, the corresponding ambient brightness may be obtained according to the correspondence information).
In step S103, adjusting an exposure amount of the telephoto camera according to the ambient brightness;
in this embodiment of the application, after the ambient brightness is obtained, the exposure amount of the telephoto camera may be adjusted according to the ambient brightness.
Specifically, a correspondence table including correspondence information between ambient brightness and a telephoto camera exposure amount may be obtained in advance, and the correspondence table is stored in a memory of the electronic device, where each ambient brightness corresponds to one telephoto camera exposure amount; correspondingly, the adjusting the exposure of the telephoto camera according to the ambient brightness comprises: and searching the exposure of the telephoto camera corresponding to the environment brightness according to the corresponding relation table, and adjusting the exposure of the telephoto camera according to the searched exposure of the telephoto camera.
In step S104, a long-focus camera after the exposure amount is adjusted is used for collecting a preview picture with a preset frame number away from the first preview picture;
in order to describe the above-mentioned preview screen capturing method provided in the embodiment of the present application more intuitively, the following illustrates the above-mentioned steps S101 to S104:
assuming that the acquired first preview picture is a first frame picture acquired by the telephoto camera in step S101, and the acquired second preview picture is a second frame picture acquired by the wide-angle camera, and the preset frame number is 1 frame in step S102, the ambient brightness of the telephoto camera at the time of acquiring a preview picture (i.e., a second frame picture acquired by the telephoto camera) which is a preset frame number from the first preview picture is predicted from the second preview picture (i.e., a first frame picture acquired by the wide-angle camera), and the exposure amount of the telephoto camera is adjusted based on the ambient brightness predicted in step S102, and the second frame picture acquired by the telephoto camera is acquired by using the exposure amount adjusted telephoto camera in step S104.
According to the technical scheme provided by the first embodiment of the application, the ambient brightness corresponding to the preview picture to be acquired by the tele camera needs to be predicted in advance, then the exposure of the tele camera is adjusted according to the predicted ambient brightness, and the preview picture is acquired by the tele camera after the exposure is adjusted.
Example two
Another preview image acquisition method provided in the second embodiment of the present application is described below, and the preview image acquisition method provided in the second embodiment of the present application is applied to an electronic device, where the electronic device includes two cameras, namely a telephoto camera and a wide-angle camera. Referring to fig. 3, a method for acquiring a preview image in an embodiment of the present application includes:
in step S301, a first preview picture currently acquired by a telephoto camera and a second preview picture currently acquired by a wide-angle camera are acquired;
in step S302, according to the second preview image, predicting the ambient brightness of the telephoto camera in acquiring a preview image with a preset number of frames away from the first preview image;
in step S303, adjusting an exposure amount of the telephoto camera according to the ambient brightness;
in the second embodiment of the present application, the steps S301 to S303 are performed in the same manner as the steps S101 to S103 in the first embodiment, and specific reference may be made to the description of the first embodiment, which is not repeated herein.
In step S304, a long focus camera with an adjusted exposure amount is used to collect a preview image with a preset frame number from the first preview image, and the wide angle camera is used to collect a preview image with a preset frame number from the second preview image;
in the second embodiment of the present application, in order to implement processing on the whole preview picture acquired by the telephoto camera, the preview picture acquired by the wide-angle camera needs to be continuously acquired, and the ambient brightness of the preview picture to be acquired by the telephoto camera is continuously predicted by using the preview picture acquired by the wide-angle camera. Therefore, in step S304, it is also necessary to obtain a preview picture acquired by the wide camera by a preset frame number from the second preview picture, and in order to implement processing of the whole preview picture acquired by the telephoto camera, after step S304, the first preview picture and the second preview picture may be updated, and the step S302 may be executed again until the user finishes acquiring the preview picture by the telephoto camera, where the updated first preview picture is a preview picture acquired by the telephoto camera by the preset frame number from the first preview picture after the exposure amount is adjusted, and the updated second preview picture is a preview picture acquired by the wide camera by the preset frame number from the second preview picture.
In step S305, simultaneously displaying a preview image acquired by the telephoto camera with a preset frame number from the first preview image and a preview image acquired by the wide-angle camera with a preset frame number from the second preview image on a display screen of the electronic device;
in the second embodiment of the present application, the preview images collected by the telephoto camera and the wide-angle camera may be simultaneously displayed on a display screen of the electronic device. For example, the upper half of the display screen may display a preview picture collected by the telephoto camera, and the lower half of the display screen may display a preview picture collected by the wide-angle camera, as shown in fig. 4 (a); alternatively, the preview image collected by the telephoto camera and the preview image collected by the wide-angle camera may be displayed on a display screen in a picture-in-picture manner, as shown in fig. 4(b), and how to display the preview image is not limited in the embodiment of the present application.
Compared with the traditional scheme, the technical scheme provided by the second application embodiment avoids processing the preview picture after the preview picture is acquired, and can enable the preview picture acquired by the tele-camera to meet the real-time requirement.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
A third embodiment of the present application provides a preview screen capturing apparatus, which is applied to an electronic device including a telephoto camera and a wide-angle camera, and for convenience of description, only the parts related to the present application are shown, as shown in fig. 5, the preview screen capturing apparatus 500 includes,
a preview image obtaining module 501, configured to obtain a first preview image currently acquired by the telephoto camera and a second preview image currently acquired by the wide-angle camera;
an ambient brightness prediction module 502, configured to predict, according to the second preview picture, an ambient brightness of a preview picture of the tele camera at a preset frame number away from the first preview picture;
an exposure adjusting module 503, configured to adjust an exposure amount of the telephoto camera according to the ambient brightness;
and a tele image acquisition module 504, configured to acquire a preview image with a preset frame number away from the first preview image by using the tele camera with the adjusted exposure amount.
Optionally, the ambient brightness prediction module 502 includes:
a speed obtaining unit, configured to obtain a moving direction and a moving speed of the electronic device;
an image area obtaining unit, configured to search, in the second preview picture, an image area corresponding to a preview picture that is a preset number of frames away from the first preview picture and acquired by the telephoto camera according to the moving direction and the moving speed;
and the brightness prediction unit is used for predicting the ambient brightness of the long-focus camera in the preview picture which collects the preset frame number away from the first preview picture according to the brightness value of each pixel point in the image area.
Optionally, the electronic device stores a correspondence table, where the correspondence table includes correspondence information between ambient brightness and exposure of the telephoto camera, and each ambient brightness corresponds to one exposure of the telephoto camera;
accordingly, the exposure adjustment module 503 is specifically configured to:
and searching the exposure of the telephoto camera corresponding to the environment brightness according to the corresponding relation table, and adjusting the exposure of the telephoto camera according to the searched exposure of the telephoto camera.
Optionally, the preview screen capturing apparatus 500 further includes:
the long-focus starting detection module is used for detecting whether the long-focus camera is started or not;
and the wide-angle opening module is used for opening the wide-angle camera if the telephoto camera is started.
Optionally, the preview screen capturing apparatus 500 further includes:
the wide-angle image acquisition module is used for acquiring a preview image with a preset frame number away from the second preview image by using the wide-angle camera;
and the preview picture display module is used for simultaneously displaying a preview picture which is acquired by the telephoto camera and is a preset frame number away from the first preview picture and a preview picture which is acquired by the wide-angle camera and is a preset frame number away from the second preview picture on a display screen of the electronic equipment.
Optionally, the preview screen capturing apparatus 500 further includes:
an updating module, configured to update the first preview picture and the second preview picture, where the updated first preview picture is a preview picture acquired by a telephoto camera after exposure adjustment and separated from the first preview picture by a preset frame number, and the updated second preview picture is a preview picture acquired by the wide-angle camera and separated from the second preview picture by the preset frame number;
and a returning module, configured to return to the ambient brightness prediction module 502 after the updating module finishes updating the first preview screen and the second preview screen.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Example four
Fig. 6 is a schematic view of an electronic device provided in the fourth embodiment of the present application. As shown in fig. 6, the electronic apparatus 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60 executes the computer program 62 to implement the steps in the above-mentioned embodiments of the preview screen capturing method, such as steps S101 to S104 shown in fig. 1. Alternatively, the processor 60 executes the computer program 62 to implement the functions of the modules/units in the device embodiments, such as the modules 501 to 504 shown in fig. 5.
Illustratively, the computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the electronic device 6. For example, the computer program 62 may be divided into a preview image acquisition module, an ambient brightness prediction module, an exposure adjustment module, and a tele image acquisition module, and each module has the following specific functions:
acquiring a first preview picture currently acquired by the tele-camera and a second preview picture currently acquired by the wide-angle camera;
according to the second preview picture, predicting the ambient brightness of the long-focus camera in a preview picture which collects a preset number of frames away from the first preview picture;
adjusting the exposure of the telephoto camera according to the ambient brightness;
and acquiring a preview picture with a preset frame number away from the first preview picture by using the tele camera with the adjusted exposure.
The electronic device 6 may be a computing device such as a smart phone, a tablet computer, a learning machine, and an intelligent wearable device. The electronic device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, 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 61 may be an internal storage unit of the electronic device 6, such as a hard disk or a memory of the electronic device 6. The memory 61 may be an external storage device of the electronic device 6, 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 provided in the electronic device 6. Further, the memory 61 may include both an internal storage unit and an external storage device of the electronic device 6. The memory 61 is used for storing the computer program and other programs and data required by the electronic device. The above-mentioned memory 61 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 functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement 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 implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/electronic device are merely illustrative, and for example, the division of the above modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present 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 described above, 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 may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the embodiments of the methods described above. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned 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 signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may include 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 that does not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above 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 (8)

1. The preview picture acquisition method is applied to electronic equipment, wherein the electronic equipment comprises a tele camera and a wide camera, and the preview picture acquisition method comprises the following steps:
acquiring a first preview picture currently acquired by the tele-camera and a second preview picture currently acquired by the wide-angle camera;
according to the second preview picture, predicting the ambient brightness of the long-focus camera in a preview picture which is collected by a preset frame number away from the first preview picture;
adjusting the exposure of the tele camera according to the ambient brightness;
acquiring a preview picture with a preset frame number away from the first preview picture by using a tele camera with adjusted exposure;
the predicting the ambient brightness of the long-focus camera in the preview picture which is collected by a preset frame number away from the first preview picture according to the second preview picture comprises the following steps:
acquiring the moving direction and the moving speed of the electronic equipment by using a gyroscope sensor;
searching an image area corresponding to a preview image which is acquired by the tele camera and is away from the first preview image by a preset frame number in the second preview image according to the moving direction and the moving speed;
and predicting the ambient brightness of the long-focus camera in the process of collecting the preview picture with the preset frame number away from the first preview picture according to the brightness value of each pixel point in the image area.
2. The method for capturing the preview screen according to claim 1, wherein the electronic device stores a correspondence table, the correspondence table including correspondence information between ambient brightness and exposure of the telephoto camera, wherein each ambient brightness corresponds to one exposure of the telephoto camera;
correspondingly, the adjusting the exposure of the telephoto camera according to the ambient brightness comprises:
and searching the exposure of the long-focus camera corresponding to the ambient brightness according to the corresponding relation table, and adjusting the exposure of the long-focus camera according to the searched exposure of the long-focus camera.
3. The method for capturing preview pictures according to claim 1, wherein before the capturing the first preview picture currently captured by the tele camera and the second preview picture currently captured by the wide camera, the method further comprises:
detecting whether the long-focus camera is started or not;
and if the long-focus camera is started, the wide-angle camera is started.
4. The preview screen capturing method according to claim 1, wherein the preview screen capturing method further comprises:
acquiring a preview picture with a preset frame number away from the second preview picture by using the wide-angle camera;
and simultaneously displaying a preview picture which is acquired by the telephoto camera and is a preset frame number away from the first preview picture and a preview picture which is acquired by the wide-angle camera and is a preset frame number away from the second preview picture on a display screen of the electronic equipment.
5. The preview screen capturing method according to any one of claims 1 to 4, wherein the preview screen capturing method further comprises:
updating the first preview picture and the second preview picture, wherein the updated first preview picture is a preview picture which is acquired by a telephoto camera after the exposure is adjusted and is a preset frame number away from the first preview picture, and the updated second preview picture is a preview picture which is acquired by the wide-angle camera and is a preset frame number away from the second preview picture;
and returning to execute the step of predicting the ambient brightness of the long-focus camera in the preview picture with the preset frame number away from the first preview picture according to the second preview picture and the subsequent steps.
6. The utility model provides a preview picture collection system which characterized in that is applied to electronic equipment, electronic equipment includes tele camera and wide camera, preview picture collection system includes:
the preview image acquisition module is used for acquiring a first preview image currently acquired by the tele camera and a second preview image currently acquired by the wide camera;
the ambient brightness prediction module is used for predicting the ambient brightness of the long-focus camera in a preview picture which is acquired by a preset frame number away from the first preview picture according to the second preview picture;
the exposure adjusting module is used for adjusting the exposure of the tele camera according to the ambient brightness;
the tele image acquisition module is used for acquiring a preview image which is away from the first preview image by a preset frame number by using the tele camera after the exposure is adjusted;
wherein the ambient brightness prediction module comprises:
the speed acquisition unit is used for acquiring the moving direction and the moving speed of the electronic equipment by utilizing a gyroscope sensor;
an image area obtaining unit, configured to search, in the second preview picture, an image area corresponding to a preview picture that is a preset number of frames away from the first preview picture and acquired by the tele camera according to the moving direction and the moving speed;
and the brightness prediction unit is used for predicting the ambient brightness of the long-focus camera in the preview picture which collects the preset frame number away from the first preview picture according to the brightness value of each pixel point in the image area.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 5 are implemented when the computer program is executed by the processor.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810622435.8A 2018-06-15 2018-06-15 Preview picture acquisition method, preview picture acquisition device and electronic equipment Expired - Fee Related CN108737739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810622435.8A CN108737739B (en) 2018-06-15 2018-06-15 Preview picture acquisition method, preview picture acquisition device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810622435.8A CN108737739B (en) 2018-06-15 2018-06-15 Preview picture acquisition method, preview picture acquisition device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108737739A CN108737739A (en) 2018-11-02
CN108737739B true CN108737739B (en) 2021-01-08

Family

ID=63929740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810622435.8A Expired - Fee Related CN108737739B (en) 2018-06-15 2018-06-15 Preview picture acquisition method, preview picture acquisition device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108737739B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729266A (en) * 2018-12-25 2019-05-07 努比亚技术有限公司 A kind of image capturing method, terminal and computer readable storage medium
CN110266983A (en) * 2019-06-30 2019-09-20 联想(北京)有限公司 A kind of image processing method, equipment and storage medium
US11409434B2 (en) 2019-06-30 2022-08-09 Lenovo (Beijing) Co., Ltd. Image collection and processing method, apparatus, and storage medium
CN110505411B (en) * 2019-09-03 2021-05-07 RealMe重庆移动通信有限公司 Image shooting method and device, storage medium and electronic equipment
CN112640421A (en) * 2020-03-18 2021-04-09 深圳市大疆创新科技有限公司 Exposure method, exposure device, shooting equipment, movable platform and storage medium
CN113873177A (en) * 2020-06-30 2021-12-31 北京小米移动软件有限公司 Multi-view shooting method and device, electronic equipment and storage medium
CN112312034B (en) * 2020-10-29 2023-02-21 北京小米移动软件有限公司 Exposure method and device of image acquisition module, terminal equipment and storage medium
CN114520870B (en) * 2020-11-20 2023-06-20 华为技术有限公司 Display method and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877004B2 (en) * 2006-03-03 2011-01-25 Olympus Imaging Corp. Imaging apparatus and imaging method
WO2011029203A1 (en) * 2009-09-14 2011-03-17 Viion Systems Inc. Saccadic dual-resolution video analytics camera
JP2016092609A (en) * 2014-11-05 2016-05-23 オリンパス株式会社 Imaging device and control method of imaging device
US10291842B2 (en) * 2015-06-23 2019-05-14 Samsung Electronics Co., Ltd. Digital photographing apparatus and method of operating the same
KR102446442B1 (en) * 2015-11-24 2022-09-23 삼성전자주식회사 Digital photographing apparatus and the operating method for the same
CN106385541A (en) * 2016-09-30 2017-02-08 虹软(杭州)科技有限公司 Method for realizing zooming through wide-angle photographing component and long-focus photographing component

Also Published As

Publication number Publication date
CN108737739A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108737739B (en) Preview picture acquisition method, preview picture acquisition device and electronic equipment
CN111726533B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN108965835B (en) Image processing method, image processing device and terminal equipment
CN111880712B (en) Page display method and device, electronic equipment and storage medium
CN109118447B (en) Picture processing method, picture processing device and terminal equipment
CN109144370B (en) Screen capturing method, device, terminal and computer readable medium
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN110457963B (en) Display control method, display control device, mobile terminal and computer-readable storage medium
CN112188097B (en) Photographing method, photographing apparatus, terminal device, and computer-readable storage medium
CN112911147B (en) Display control method, display control device and electronic equipment
CN109359582B (en) Information searching method, information searching device and mobile terminal
CN110166696B (en) Photographing method, photographing device, terminal equipment and computer-readable storage medium
CN111190677A (en) Information display method, information display device and terminal equipment
US11770603B2 (en) Image display method having visual effect of increasing size of target image, mobile terminal, and computer-readable storage medium
CN109358927B (en) Application program display method and device and terminal equipment
CN109873980B (en) Video monitoring method and device and terminal equipment
CN107360361B (en) Method and device for shooting people in backlight mode
CN111710315B (en) Image display method, image display device, storage medium and electronic equipment
CN112333441A (en) Camera detection method and device and electronic equipment
CN112055156A (en) Preview image updating method and device, mobile terminal and storage medium
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
CN115599484A (en) Screen capturing method, screen capturing device, screen capturing equipment and computer storage medium
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN111796733B (en) Image display method, image display device and electronic equipment
CN113873168A (en) Shooting method, shooting device, electronic equipment and 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210108