CN111107265B - Image processing method and device, computer readable medium and electronic equipment - Google Patents

Image processing method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN111107265B
CN111107265B CN201911355870.XA CN201911355870A CN111107265B CN 111107265 B CN111107265 B CN 111107265B CN 201911355870 A CN201911355870 A CN 201911355870A CN 111107265 B CN111107265 B CN 111107265B
Authority
CN
China
Prior art keywords
camera shooting
image
current
shooting assembly
assembly
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
CN201911355870.XA
Other languages
Chinese (zh)
Other versions
CN111107265A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911355870.XA priority Critical patent/CN111107265B/en
Publication of CN111107265A publication Critical patent/CN111107265A/en
Application granted granted Critical
Publication of CN111107265B publication Critical patent/CN111107265B/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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Abstract

The present disclosure relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a computer-readable medium, and an electronic device. The method comprises the following steps: acquiring a current focusing parameter corresponding to a first camera shooting assembly, and identifying a numerical range of the current focusing parameter; when the current focusing parameter is identified to be in a first transformation range, activating a second camera shooting assembly corresponding to the first transformation range; and acquiring a current image acquired by the first camera shooting assembly, performing super-sampling processing on the current image to generate a replacement image, and displaying the replacement image. The method can avoid the problem of image quality reduction of the preview image caused by focal length conversion, and improve the image display effect.

Description

Image processing method and device, computer readable medium and electronic equipment
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a computer-readable medium, and an electronic device.
Background
With the continuous upgrade of the camera hardware equipment and the continuous development of the image processing technology, more cameras, such as double cameras, triple cameras, quadruple cameras and quintuple cameras, are mounted on intelligent terminal equipment, such as mobile phones and tablet computers. Due to the limitation of hardware equipment, most mobile phones and tablet computers adopt digital zooming during shooting. When the user operates to send a zoom instruction and reaches a zoom multiple critical point of one camera, switching to another camera. The zooming mode easily causes the zooming process to be not smooth enough, the images are blurred temporarily in the switching process, the image quality change is large, and the use experience of a user is influenced.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide an image processing method, an image processing apparatus, a computer-readable medium, and an electronic device, which can improve image quality during zooming of an image pickup assembly.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, there is provided an image processing method including:
acquiring a current focusing parameter corresponding to a first camera shooting assembly, and identifying a numerical range of the current focusing parameter;
when the current focusing parameter is identified to be in a first transformation range, activating a second camera shooting assembly corresponding to the first transformation range; and
and acquiring a current image acquired by the first camera shooting assembly, performing super-sampling processing on the current image to generate a replacement image, and displaying the replacement image.
According to a second aspect of the present disclosure, there is provided an image processing apparatus comprising:
the focusing parameter reading module is used for acquiring a current focusing parameter corresponding to the first camera shooting assembly and identifying a numerical range of the current focusing parameter;
the camera shooting component switching module is used for activating a second camera shooting component corresponding to a first conversion range when the current focusing parameter is identified to be in the first conversion range; and
and the replacement image generation module is used for acquiring the current image acquired by the first camera shooting assembly, performing super-sampling processing on the current image to generate a replacement image and displaying the replacement image.
According to a third aspect of the present disclosure, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the image processing method described above.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the image processing method described above.
According to the image processing method provided by the embodiment of the disclosure, the current focusing parameter of the camera shooting assembly is judged in real time, when the current focusing parameter is within the first conversion range, the second camera shooting assembly corresponding to the first conversion range is activated, and the current image acquired by the first camera shooting assembly is subjected to oversampling processing to obtain the alternative image, so that the alternative image subjected to the oversampling processing is displayed in a preset interface, the problem of image quality reduction of the preview image caused by focal length conversion is avoided, and the image display effect is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 schematically illustrates a flow diagram of an image processing method in an exemplary embodiment of the disclosure;
FIG. 2 schematically illustrates a schematic diagram of the selection of supersampling method pixels in an exemplary embodiment of the disclosure;
FIG. 3 schematically illustrates a flow diagram of an image processing method in an exemplary embodiment of the disclosure;
FIG. 4 is a schematic diagram schematically illustrating a current image captured by a first camera assembly in an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an alternative image generated after super-sampling a current image in an exemplary embodiment of the present disclosure;
fig. 6 schematically illustrates a composition diagram of an image processing apparatus in an exemplary embodiment of the present disclosure;
fig. 7 schematically shows a structural diagram of a computer system of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The existing intelligent mobile terminal equipment, such as a mobile phone, a tablet personal computer and the like, is generally configured with two camera components, such as a main camera and a telephoto camera; alternatively, the electronic device is also configured with three, four, or five camera assemblies. Due to hardware limitations, optical zoom is typically employed between cameras. In taking pictures or videos, it is usually the case that a single camera module works alone, for example, the main camera works alone or the telephoto camera works alone. When a user operates to trigger a zooming instruction and reaches a zooming multiple critical point, the working states of the long-focus camera and the main shooting lens are exchanged; for example, when the close shot is switched to the long shot, the telephoto camera is changed from the suspended state to the ready state, the current parameters of the telephoto camera are set according to the focal length information of the main camera lens, and the telephoto lens is replaced to collect images and output the images to the preview interface. When the main camera is switched to the long-focus camera, only the long-focus camera is pre-focused, the switching process can be briefly blurred, the zooming process is not smooth enough, the display image in the preview interface can be suddenly changed, the image quality change is large, the display effect is poor, and the user experience is influenced.
In view of the above-described drawbacks and deficiencies of the prior art, an image processing method is provided in the present exemplary embodiment. Referring to fig. 1, the image processing method described above may include the steps of:
s11, acquiring a current focusing parameter corresponding to the first camera shooting assembly, and identifying a numerical range of the current focusing parameter;
s12, when the current focusing parameter is identified to be in a first transformation range, activating a second camera shooting assembly corresponding to the first transformation range;
and S13, acquiring the current image acquired by the first camera assembly, carrying out super-sampling processing on the current image to generate a replacement image, and displaying the replacement image.
In the image processing method provided by this exemplary embodiment, on one hand, the current focusing parameter of the camera shooting assembly is judged in real time, and when the current focusing parameter is within the first conversion range, the second camera shooting assembly corresponding to the first conversion range is activated, and the second camera shooting assembly starts to acquire an image according to the current focusing parameter, so that the two camera shooting assemblies can smoothly switch the preview interfaces during switching, and no blur occurs. On the other hand, the current image collected by the first camera shooting assembly is subjected to super-sampling processing to obtain the replacement image, so that the replacement image subjected to super-sampling processing is displayed in a preset interface, the problem that the image quality of the preview image is reduced due to focal length conversion is avoided, and the image display effect is improved.
Hereinafter, each step of the image processing method in the present exemplary embodiment will be described in more detail with reference to the drawings and examples.
Step S11, acquiring a current focusing parameter corresponding to the first camera module, and identifying a value range of the current focusing parameter.
In the present exemplary embodiment, when a user takes a picture or a video using a camera application in the electronic device, the current focusing parameters of the camera assembly can be acquired in real time in a preview state. For example, the electronic device is configured with at least two camera assemblies, such as: the first camera shooting component is a main camera with higher pixel configuration, the second camera shooting component is a wide-angle camera, the third camera shooting component is a super wide-angle camera, and the fourth camera shooting component is a macro camera and the like.
If the current preview interface is the current image acquired by the first camera shooting assembly on the current scene, the current focusing parameters can be read in real time. When the user operates the variable focal length in the preview interface, the numerical range of the current focusing parameter can be determined in real time. For example, the digital zoom range of the first camera assembly is 1 to 5 times; the digital zoom range of the second camera shooting component is 5 times to 10 times; the digital zoom range of the third camera assembly is 10-20 times. In addition, the transformation range among all the camera modules can be configured in advance; for example, the first transformation range corresponds to the first camera shooting assembly and the second camera shooting assembly, and the first transformation range is 4 times to 6 times; the second transformation range corresponds to the second camera shooting assembly and the third camera shooting assembly, and is 8.5-11 times; and so on. The specific conversion range may be set according to the camera module actually mounted on the electronic device, and this disclosure is not particularly limited thereto.
And step S12, when it is identified that the current focusing parameter is within a first transformation range, activating a second camera module corresponding to the first transformation range.
In this exemplary embodiment, when the electronic device initially starts only the first camera shooting assembly, after recognizing that the current focusing parameter is within the first transformation range, the second camera shooting assembly corresponding to the first transformation range may be activated, and the second camera shooting assembly starts to capture the current image corresponding to the current scene.
For example, pipeline may be configured for the first camera component and the second camera component at the hardware abstraction layer; and configuring a surface view for the first camera shooting assembly and the second camera shooting assembly respectively at the application layer to acquire corresponding preview data. And each camera shooting assembly respectively collects images, and transmits the images to corresponding faceview by using the pipeline corresponding to each camera shooting assembly, so that multi-path preview is realized. And determining which image pickup assembly corresponding preview view is displayed according to the current zoom multiple. For example, in the above-described embodiment, only the preview view of the first camera assembly is currently displayed, and although the second camera assembly is turned on, the image captured by the second camera assembly is not currently displayed in the preview view.
And step S13, acquiring the current image acquired by the first camera assembly, performing super-sampling processing on the current image to generate a replacement image, and displaying the replacement image.
In this exemplary embodiment, when the second camera shooting assembly is started, the current image collected by the first camera shooting assembly may be subjected to super-sampling processing, so as to generate a substitute image with a higher resolution after the super-sampling processing, and display the substitute image in the preview view. For example, the current image shown in fig. 4 is subjected to super sampling processing to generate a replacement image shown in fig. 5. Therefore, when the zoom critical point between the first camera shooting assembly and the second camera shooting assembly is close to, the image in the preview interface can have higher image quality, the change difference of the image when the first camera shooting assembly is switched to the second camera shooting assembly is reduced, so that the image collected by the second camera shooting assembly is replaced by the image after supersampling in a certain focal length conversion range when the first camera shooting assembly and the second camera shooting assembly are switched, the zooming process is more natural and smooth, and a better preview effect is realized.
For example, the above-mentioned super-sampling of the current image may be performed by a bicubic interpolation method. For example, referring to fig. 2, for the current image, the values of 16 pixels (a00, a01 … a33) around the pixel P in the current image may be selected as the parameter references of the pixel values corresponding to the replacement image. Specifically, the formula may include:
Figure BDA0002335903730000061
wherein r, c are pixel positions of rows and columns, PijIs the corresponding pixel value. Wherein i, j is 1, 2, 3, 4.
The super-resolution calculation formula comprises:
Figure BDA0002335903730000062
wherein, aijIs a super-resolution factor calculated byLagrangian equations may be utilized:
Figure BDA0002335903730000063
Figure BDA0002335903730000064
where s is a set super-resolution coefficient, and different values may be specifically set according to the actual processing capability of the electronic device. For example, s-ceil () may be configured to return an integer value having a magnitude greater than or equal to the value in parentheses, resulting in ai,bjThen, the matrix operation obtains aijMatrix, creating a high resolution image. Specifically, the formula may include:
Figure BDA0002335903730000071
the oversampling by the bicubic interpolation method can be realized by adopting the means of the prior art, and the specific contents of the process of the other side of the disclosure are not repeated. In other exemplary embodiments of the present disclosure, the current image may also be super-sampled by using a bilinear interpolation method, for example, values of the nearest four pixel points in the current image are selected as parameter references of pixel values corresponding to the replacement image. Specifically, the specifically executed super sampling method may be determined according to the resolution of the current image, or the specification of the first camera assembly. For example, the CPU of the electronic device may identify and analyze the current image and determine the type of oversampling method specifically used based on the identification result.
Based on the above, in the present exemplary embodiment, referring to fig. 3, the method described above may further include:
and step S14, when the current focusing parameter is identified to exceed the first conversion range and to be in a second zooming range corresponding to the second camera shooting assembly, displaying the current image collected by the second camera shooting assembly.
In the present exemplary embodiment, the first transformation range may have a certain overlap region with the zoom factor range of the first image capturing assembly and the zoom factor range of the second image capturing assembly, as in the example described in the above embodiment. When the focusing multiple corresponding to the current touch operation of the user is recognized to exceed the zoom multiple range corresponding to the first camera shooting assembly, exceed the first conversion range at the same time and be in the second zoom range of the second camera shooting assembly, the current image corresponding to the second camera shooting assembly can be directly switched and displayed. For example, displaying the surfview (view) corresponding to the second camera assembly in the preview view acquires the corresponding preview data. The second camera shooting assembly is started, and a corresponding preview image is generated in real time according to the zooming operation of the user and is not displayed in the preview interface of the electronic equipment. Therefore, such an operation can make the view switching smoother.
In addition, after the current zoom multiple exceeds the first conversion range, the image collected by the first camera shooting assembly is not needed, and the first camera shooting assembly can be subjected to sleep, suspension or closing operation. Thereby reducing power consumption.
Furthermore, in other exemplary embodiments of the present disclosure, the method described above may further include: and when the current focusing parameter is identified to be in the overlapping range, carrying out fusion processing on the replacement image and the current image acquired by the second camera shooting assembly to obtain a fusion image, and displaying the fusion image.
For example, if the current zoom factor is 5.5, the current zoom factor is within the first variable range while being within the zoom range of the second camera assembly. Since the second camera shooting assembly is started and collects images at the moment, image fusion processing is carried out on the replacement images generated by collecting the images based on the first camera shooting assembly and the current images collected by the second camera shooting assembly according to the current zoom multiple, and the poor areas in the replacement images are supplemented by the current images collected by the second camera shooting assembly. And the fused image is output and displayed in the preview view, so that the quality of the image displayed in the preview view is improved. For example, in order to ensure the speed of the image fusion process, the image fusion may adopt a fusion method based on weighted average. Alternatively, a pyramid transform-based fusion algorithm or the like may also be employed.
In addition, in other exemplary embodiments of the present disclosure, after the second camera shooting assembly is started, the first camera shooting assembly and the second camera shooting assembly may be synchronized, so that the second camera shooting assembly and the first camera shooting assembly synchronously capture a current image corresponding to a current scene.
For example, the CPU of the electronic device may simultaneously send the synchronization control signals to the first camera shooting assembly and the second camera shooting assembly, respectively, so that the first camera shooting assembly and the second camera shooting assembly can synchronously acquire the current image corresponding to the current scene after receiving the control signals. Alternatively, the first image pickup unit may transmit the synchronization signal to the second image pickup unit. Therefore, when the focal length is changed and the first camera shooting assembly is switched to the second camera shooting assembly, the image content in the preview interface is ensured to be accurate.
In other exemplary embodiments of the present disclosure, after activating the second camera assembly, the method may further include: acquiring a first shooting parameter corresponding to the current image acquired by the first camera shooting assembly, and adjusting the first shooting parameter based on a preset rule to acquire a second shooting parameter so that the second camera shooting assembly executes the second shooting parameter.
For example, there is a certain difference between the first camera shooting component and the second camera shooting component in hardware, and in order to ensure consistency of image display effects in the preview interface before and after switching of the camera shooting components, the second shooting parameters corresponding to the second camera shooting component can be adjusted according to the current first shooting parameters of the first camera shooting component. For example, the photographing parameters may include: focus, background blurring, sensitivity, exposure compensation, white balance, and the like. A parameter comparison table of the corresponding relationship between the first shooting parameter of the first camera shooting assembly and the second shooting parameter of the second camera shooting assembly can be established in advance, so that the current second shooting parameter can be determined by using the first shooting parameter.
In this exemplary embodiment, after the user enters the camera application, the first camera shooting component and the second camera shooting component may also be started at the same time, and pipeline and surface view may be configured for the first camera shooting component and the second camera shooting component, respectively. And each camera shooting assembly respectively collects images, and transmits the images to corresponding faceview by using the pipeline corresponding to each camera shooting assembly, so that multi-path preview is realized. And displaying the current image acquired by the corresponding camera shooting assembly on a preview interface according to the current focusing parameter, and hiding the current image acquired by the other camera shooting assembly.
According to the image processing method provided by the embodiment of the disclosure, the transformation range is set for the zooming of the camera shooting assembly, so that when the current zooming parameter of the camera shooting assembly enters the preset transformation range, the corresponding camera shooting assembly is activated to start image acquisition, but the image acquisition is not displayed in the preview interface. Meanwhile, a certain overlapping range is reserved between the control conversion range and the zooming ranges of the two camera assemblies, so that after the current zooming parameter enters a preset conversion range, the image acquired by the current camera assembly is subjected to super-sampling processing, and when the current zooming parameter controlled by a user is in the conversion range, the current image acquired by the first camera assembly is subjected to super-sampling processing to generate a replacement image. And when the current zoom parameter controlled by the user exceeds the conversion range and is within the zoom range corresponding to the second camera shooting assembly, displaying the current image collected by the second camera shooting assembly. Therefore, the first camera shooting assembly and the second camera shooting assembly have the problems of image blurring and blocking when the focal length of the zoom switching is changed to the critical point, the zooming process is smooth and clear, the image quality is improved, and the user can take pictures with high quality.
It is to be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to an exemplary embodiment of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Further, as shown in fig. 6, an image processing apparatus 60 is provided in an embodiment of the present example, and includes: a focusing parameter reading module 601, a camera assembly switching module 602 and a replacement image generating module 603. Wherein the content of the first and second substances,
the focusing parameter reading module 601 may be configured to obtain a current focusing parameter corresponding to the first camera module, and identify a value range of the current focusing parameter.
The camera module switching module 602 may be configured to activate a second camera module corresponding to a first transformation range when the current focusing parameter is identified to be within the first transformation range.
The alternative image generating module 603 may be configured to obtain a current image acquired by the first camera component, perform super-sampling processing on the current image to generate an alternative image, and display the alternative image.
In one example of the present disclosure, the image processing apparatus 60 further includes: the camera assembly switches the display module (not shown in the figure).
The camera shooting assembly switching display module can be used for displaying a current image acquired by the second camera shooting assembly when the current focusing parameter is identified to exceed the first conversion range and to be in a second zooming range corresponding to the second camera shooting assembly.
In one example of the present disclosure, the image processing apparatus 60 may include: a first camera assembly hibernation module (not shown).
The first camera assembly hibernation module may be configured to perform a shutdown or hibernation operation on the first camera assembly.
In one example of the present disclosure, the image processing apparatus 60 may include: and a fusion processing module. (not shown in the figure).
The fusion processing module may be configured to, when it is identified that the current focusing parameter is within the overlap range, perform fusion processing on the replacement image and the current image acquired by the second camera assembly to obtain a fusion image, and display the fusion image. Wherein the first transformation range and a second zoom range corresponding to the second camera assembly comprise an overlapping range.
In one example of the present disclosure, the image processing apparatus 60 may include: a synchronization processing module (not shown in the figure).
The synchronization processing module may be configured to synchronize the first camera shooting component and the second camera shooting component when activating the second camera shooting component corresponding to the first transformation range, so that the second camera shooting component and the first camera shooting component synchronously acquire a current image corresponding to a current scene.
In one example of the present disclosure, the image processing apparatus 60 may include: a photographing parameter adjusting module (not shown in the drawings).
The shooting parameter adjusting module may be configured to acquire a first shooting parameter corresponding to the current image acquired by the first camera shooting component, and adjust the first shooting parameter based on a preset rule to acquire a second shooting parameter, so that the second camera shooting component executes the second shooting parameter.
In one example of the present disclosure, the image processing apparatus 60 may include: a display control module (not shown).
The display control module can be used for simultaneously starting the first camera shooting assembly and the second camera shooting assembly, displaying a current image acquired by the corresponding camera shooting assembly on a preview interface according to the current focusing parameter, and hiding the current image acquired by the other camera shooting assembly.
The details of each module in the image processing apparatus are already described in detail in the corresponding image processing method, and therefore, the details are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
FIG. 7 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 700 of the electronic device shown in fig. 7 is only an example, and should not bring any limitation to the function and the scope of the application of the embodiment of the present invention. Electronic devices such as cell phones, tablet computers, and the like.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for system operation are also stored. The CPU 701, the ROM702, and the RAM 703 are connected to each other via a bus 704. An Input/Output (I/O) interface 705 is also connected to the bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the embodiment of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. 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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
It should be noted that, as another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below. For example, the electronic device may implement the steps shown in fig. 1.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (7)

1. An image processing method, comprising:
acquiring a current focusing parameter corresponding to a first camera shooting assembly, and identifying a numerical range of the current focusing parameter;
when the current focusing parameter is identified to be in a first transformation range, activating a second camera shooting assembly corresponding to the first transformation range; synchronizing the first camera shooting assembly and the second camera shooting assembly so that the second camera shooting assembly and the first camera shooting assembly synchronously acquire a current image corresponding to a current scene; acquiring a first shooting parameter corresponding to the current image acquired by the first camera shooting assembly, and adjusting the first shooting parameter based on a preset rule to acquire a second shooting parameter so that the second camera shooting assembly executes the second shooting parameter; and
acquiring a current image acquired by the first camera shooting assembly, performing super-sampling processing on the current image to generate a replacement image, and displaying the replacement image;
and when the current focusing parameter is identified to exceed the first conversion range and to be in a second zooming range corresponding to the second camera shooting assembly, displaying a current image collected by the second camera shooting assembly.
2. The method of claim 1, further comprising:
and executing the closing or sleeping operation on the first camera shooting assembly.
3. The method of claim 1, wherein the first transformation range includes an overlap range with a second zoom range corresponding to the second camera assembly, the method further comprising:
and when the current focusing parameter is identified to be in the overlapping range, carrying out fusion processing on the replacement image and the current image acquired by the second camera shooting assembly to obtain a fusion image, and displaying the fusion image.
4. The method of claim 1, further comprising:
and simultaneously starting the first camera shooting assembly and the second camera shooting assembly, displaying a current image acquired by the corresponding camera shooting assembly on a preview interface according to the current focusing parameter, and hiding the current image acquired by the other camera shooting assembly.
5. An image processing apparatus method, comprising:
the focusing parameter reading module is used for acquiring a current focusing parameter corresponding to the first camera shooting assembly and identifying a numerical range of the current focusing parameter;
the camera shooting component switching module is used for activating a second camera shooting component corresponding to a first conversion range when the current focusing parameter is identified to be in the first conversion range;
the synchronous processing module is used for synchronizing the first camera shooting assembly and the second camera shooting assembly when activating the second camera shooting assembly corresponding to the first conversion range so as to enable the second camera shooting assembly and the first camera shooting assembly to synchronously acquire a current image corresponding to a current scene;
the shooting parameter adjusting module is used for acquiring a first shooting parameter corresponding to the current image acquired by the first camera shooting assembly and adjusting the first shooting parameter based on a preset rule to acquire a second shooting parameter so as to enable the second camera shooting assembly to execute the second shooting parameter; and
the replacement image generation module is used for acquiring a current image acquired by the first camera shooting assembly, performing super-sampling processing on the current image to generate a replacement image and displaying the replacement image;
and the camera shooting component switching and displaying module is used for displaying the current image acquired by the second camera shooting component when the current focusing parameter is identified to exceed the first conversion range and to be in a second zooming range corresponding to the second camera shooting component.
6. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the image processing method of any one of claims 1 to 4.
7. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the image processing method according to any one of claims 1 to 4.
CN201911355870.XA 2019-12-25 2019-12-25 Image processing method and device, computer readable medium and electronic equipment Active CN111107265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355870.XA CN111107265B (en) 2019-12-25 2019-12-25 Image processing method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355870.XA CN111107265B (en) 2019-12-25 2019-12-25 Image processing method and device, computer readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111107265A CN111107265A (en) 2020-05-05
CN111107265B true CN111107265B (en) 2021-10-22

Family

ID=70424905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355870.XA Active CN111107265B (en) 2019-12-25 2019-12-25 Image processing method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111107265B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970438B (en) * 2020-08-03 2022-06-28 Oppo广东移动通信有限公司 Zoom processing method and device, equipment and storage medium
CN112055156B (en) * 2020-09-15 2022-08-09 Oppo(重庆)智能科技有限公司 Preview image updating method and device, mobile terminal and storage medium
CN114866680B (en) * 2021-02-03 2024-02-02 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN113452915A (en) * 2021-06-29 2021-09-28 展讯通信(天津)有限公司 Camera switching method and electronic equipment
CN115706850B (en) * 2021-08-12 2024-04-05 荣耀终端有限公司 Image shooting method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980644A (en) * 2014-04-14 2015-10-14 华为技术有限公司 Shooting method and device
CN107277360A (en) * 2017-07-17 2017-10-20 惠州Tcl移动通信有限公司 A kind of dual camera switching carries out method, mobile terminal and the storage device of zoom
CN108391035A (en) * 2018-03-26 2018-08-10 华为技术有限公司 A kind of image pickup method, device and equipment
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6789682B2 (en) * 2016-06-13 2020-11-25 キヤノン株式会社 Imaging device, its control method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980644A (en) * 2014-04-14 2015-10-14 华为技术有限公司 Shooting method and device
CN107277360A (en) * 2017-07-17 2017-10-20 惠州Tcl移动通信有限公司 A kind of dual camera switching carries out method, mobile terminal and the storage device of zoom
CN108391035A (en) * 2018-03-26 2018-08-10 华为技术有限公司 A kind of image pickup method, device and equipment
CN110351487A (en) * 2019-08-26 2019-10-18 Oppo广东移动通信有限公司 Control method, control device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111107265A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111107265B (en) Image processing method and device, computer readable medium and electronic equipment
CN111885294B (en) Shooting method, device and equipment
CN111510618B (en) Zooming method and electronic equipment applying same
CN108737738B (en) Panoramic camera and exposure method and device thereof
CN108337445A (en) Photographic method, relevant device and computer storage media
CN110809101B (en) Image zooming processing method and device, electronic equipment and storage medium
JP5950678B2 (en) Imaging apparatus, control method, and program
CN111641777A (en) Image processing method, image processing apparatus, image processor, electronic device, and storage medium
CN110493525A (en) Zoom image determines method and device, storage medium, terminal
CN109923850B (en) Image capturing device and method
CN113347334B (en) Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium
CN112770042B (en) Image processing method and device, computer readable medium, wireless communication terminal
CN110868547A (en) Photographing control method, photographing control device, electronic equipment and storage medium
CN112532808A (en) Image processing method and device and electronic equipment
US9288398B2 (en) Action control device, action control method, imaging device, and program to reduce focus lag
CN110855957B (en) Image processing method and device, storage medium and electronic equipment
CN114255177B (en) Exposure control method, device, equipment and storage medium in imaging
JP2020136774A (en) Image processing apparatus for detecting motion vector, control method of the same, and program
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN114286007A (en) Image processing circuit, image processing method, electronic device, and readable storage medium
CN113905170A (en) Zoom control method, device, storage medium and electronic device
CN115118871B (en) Shooting pixel mode switching method, shooting pixel mode switching system, terminal equipment and storage medium
CN114866680B (en) Image processing method, device, storage medium and electronic equipment
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN115514895B (en) Image anti-shake method, apparatus, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant