CN115002347A - Image processing method, intelligent terminal and storage medium - Google Patents
Image processing method, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN115002347A CN115002347A CN202210583044.6A CN202210583044A CN115002347A CN 115002347 A CN115002347 A CN 115002347A CN 202210583044 A CN202210583044 A CN 202210583044A CN 115002347 A CN115002347 A CN 115002347A
- Authority
- CN
- China
- Prior art keywords
- image data
- image
- target
- preset
- preview
- 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 26
- 238000012545 processing Methods 0.000 claims abstract description 45
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000000007 visual effect Effects 0.000 claims abstract description 9
- 238000004590 computer program Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 8
- 238000007726 management method Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/2628—Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The application provides an image processing method, an intelligent terminal and a storage medium, wherein the image processing method comprises the following steps: when a photographing and/or shooting instruction is received, the image sensor is switched to a full-pixel reading mode to acquire first image data; cutting the first image data according to a target zoom multiple and/or an image visual angle of a preview interface to obtain second image data; and performing preset processing on the second image data to obtain a target image. The method and the device have the advantages that the images acquired under various zooming data can achieve high definition and high definition, and the display effect of the zoomed images is improved.
Description
Technical Field
The present application relates to the field of image technologies, and in particular, to an image processing method, an intelligent terminal, and a storage medium.
Background
The application of taking pictures and/or making a video recording of the intelligent terminal is an application with more use. In order to meet the requirements of users in different scenes, the photographing and/or shooting functions of the intelligent terminal are more and more perfect. Such as by zooming. In some implementations, the camera module of the intelligent terminal adopts digital zooming, and the digital zooming refers to clipping and/or amplifying image information by the intelligent terminal processor through a software algorithm.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: when the zoom multiple is larger, after the image is cut, the pixel points are cut too much, so that the imaging definition is low and the effect is poor.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides an image processing method, an intelligent terminal and a storage medium, so that an image still has high definition after being zoomed by a large zoom factor.
In order to solve the above technical problem, the present application provides an image processing method, which can be applied to an intelligent terminal, and the method includes the following steps:
s10: when a photographing and/or shooting instruction is received, the image sensor is switched to a full-pixel reading mode to acquire first image data;
s20: cutting the first image data according to the target zoom multiple and/or the image visual angle of the preview interface to obtain second image data;
s30: and performing preset processing on the second image data to obtain a target image.
Optionally, the preset processing is pixel interpolation processing, and may also be other processing of image data.
Optionally, step S20 includes:
reordering the pixel points in the first image data to obtain first image data in a Bayer arrangement mode;
and cutting the first image data in the Bayer arrangement mode according to the target zoom factor and/or the image visual angle of the preview interface to obtain second image data.
Optionally, step S20 includes: and cutting the first image data according to the target zoom multiple and a preset zoom mode to obtain the second image data, wherein the preset zoom mode is the same as the zoom mode of the preview image in the preview interface.
Optionally, step S20 includes: and acquiring each first pixel point of a preview image of the preview interface, acquiring a second pixel point matched with the first pixel point in the first image data, and cutting the first image data according to the position information of the second pixel point to acquire the second image data.
Optionally, step S30 includes:
and performing preset processing on the second image data according to a target resolution and the current image resolution of the second image data to form a target image matched with the target resolution.
Optionally, before step S10, the method further includes:
step S40, when receiving the trigger operation, controlling the image sensor to collect the third image data in a merging and reading mode;
step S50, performing clipping processing on the third image data according to the target zoom multiple to obtain fourth image data, and performing preset processing on the fourth image data to obtain preview image data of the preset interface;
step S60, displaying the preview image data in the preview interface.
Optionally, the step of performing cropping processing on the third image data according to the target zoom factor includes:
and cutting the third image data according to the target scaling multiple and the position of the target object in each frame of the third image data, so that the deviation value of the target object in each frame of the third image data is smaller than or equal to a preset deviation value.
Optionally, the step of cropping the third image data according to the target zoom factor and the position of the target object in the third image data per frame so that the deviation value of the target object in the third image data per frame is less than or equal to a preset deviation value includes:
identifying a location of a target object in the third image data per frame;
and determining a target area according to the target scaling factor by taking the position of the target object as a center, taking other areas except the target area as cutting areas, and cutting the cutting areas.
Optionally, before step S10, the method further includes:
when a zooming instruction is received, determining a zooming multiple according to the zooming instruction;
when the zoom factor is greater than or equal to a preset threshold, the step S50 is executed.
The application also provides an intelligent terminal, including: the image processing method comprises a memory and a processor, wherein the memory stores an image processing program, and the image processing program realizes the steps of any one of the image processing methods when being executed by the processor.
The present application also provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, performs the steps of the image processing method as set forth in any one of the above.
The image processing method of the present application includes the steps of: when a photographing and/or shooting instruction is received, the image sensor is switched to a full-pixel reading mode to acquire first image data; then, cutting the first image data according to the target zoom multiple to obtain second image data, and finally, performing preset processing on the second image data to form a target image matched with the resolution of a display interface; the image sensor outputs all collected pixel points in a full-pixel reading mode, so that the number of the pixel points in the first image data is large, when the first image data is cut according to the target zoom multiple, the number of the pixel points in the obtained second image data is also large, therefore, a small amount of pixel interpolation can be carried out on the second image data to obtain a target image corresponding to the target zoom multiple, the pixel interpolation is less, and the image definition is higher. Therefore, by the technical scheme, the image acquired under various zoom data can achieve high definition and high definition, and the display effect of the zoomed image is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, 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 diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
fig. 2 is a diagram illustrating a communication network system architecture according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an image processing method according to the first embodiment;
fig. 4 is a flowchart illustrating an image processing method according to a second embodiment;
fig. 5 is a flowchart illustrating an image processing method according to a third embodiment;
fig. 6 is a flowchart illustrating an image processing method according to the fourth embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the statement that an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the processes, methods, articles, or apparatuses that comprise the element, and that elements, features, or elements having the same designation in different embodiments of the application may or may not have the same meaning as that of the other elements in the embodiment illustrated and/or described in further detail in connection with the context of that embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then perform S10 in specific implementations, which should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may include smart terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes the components of the mobile terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, can collect touch operations of a user (e.g., operations of a user on the touch panel 1071 or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory) thereon or nearby and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown) and holds some user-specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
Referring to fig. 3, the image processing method according to the embodiment includes:
step S10: when a photographing and/or shooting instruction is received, the image sensor is switched to a full-pixel reading mode to acquire first image data;
step S20: cutting the first image data according to the target zoom multiple and/or the image visual angle of the preview interface to obtain second image data;
step S30: and performing preset processing on the second image data to obtain a target image.
The preset processing in this embodiment may be pixel interpolation processing, or may be other processing of image data.
The image processing method can be applied to intelligent terminals and can also be applied to other terminals capable of executing photographing, such as cameras, video cameras and the like. The embodiment takes a mobile intelligent terminal as an example to describe a specific processing procedure.
Along with the improvement of the life quality of people, people use intelligent terminals to leave the demand of beautiful things in the twinkling of an eye more and more frequently. Therefore, the photographing and/or photographing applications of the smart terminal are more frequently used applications. In order to meet the requirements of users in different scenes, the photographing and/or shooting functions of the intelligent terminal are more and more improved. Such as by zooming to capture different views or zooming in on the image. The zooming mode of the camera module of the intelligent terminal adopts digital zooming, and the digital zooming refers to cutting and/or amplifying image information by an intelligent terminal processor through a software algorithm. In some implementations, the image output of the image sensor of the camera is generally in a Binning mode (Binning is an image reading mode in which charges induced by adjacent pixels are added and combined to a certain value, and the sum is output as one pixel). Based on more image pixels, the Binning mode is adopted to output the image, so that the image definition can be kept, pixel points can be reduced, and the overlarge image is avoided.
When a user needs to enlarge an image, the image output by the image sensor is cut according to the zoom factor, and then the acquired image is interpolated to obtain the enlarged image. However, since the number of pixels of the image read in the binning mode is relatively small, and the number of pixels after clipping is smaller, in order to obtain the image with the display resolution of the display interface, the clipped image also needs to be interpolated, and since the interpolation is calculated based on adjacent pixels, for example, the difference between the adjacent pixels is an average value, the more interpolation in the image is, the more distortion the image is formed, and thus, the lower the definition of the image is.
The embodiment is a solution proposed based on the problems of image distortion and low definition in the related art.
In this embodiment, when a photographing and/or photographing instruction is received, the image sensor is switched to a full-pixel readout mode to acquire first image data.
Optionally, the smart terminal of this embodiment is a high-pixel camera, the sensor of the high-pixel camera includes 64M or 48M, and the image sensor includes a binning readout mode and a full size readout mode (full-pixel readout mode). Alternatively, the binning readout mode refers to four-in-one, nine-in-one, and sixteen-in-one modes, that is, four pixels or 9 pixels adjacent to each other are combined into one pixel to output image data. The Full size reading mode refers to reading all pixels, namely, reading the number of pixels if the image sensor collects a plurality of pixel points, and not combining the pixels. For example, in a 48M image sensor, the binning is 12M and the full size is 48M.
When the intelligent terminal of the embodiment takes a picture or shoots, the image sensor is controlled to output the collected image data in the full-pixel reading mode instead of outputting the image data in the binning mode, and the image data read out in the full-pixel reading mode is adopted based on the image sensor, so that the obtained first image data has more and dense pixel points.
And then, the first image data is cut according to the target zoom multiple and/or the image view angle of the preview interface, and more pixel points are obtained in the second image data relative to the cut pixel points of the image output in the binding mode, so that when the second image data is subjected to preset processing, fewer pixel points need to be inserted, and the less values are inserted in the pixels of the second image data, the clearer the image is, therefore, the target image obtained in the embodiment still has higher definition after the zooming of the larger zoom multiple is realized, and the display effect of the image zooming is improved.
Optionally, based on the image processing method of the present embodiment, a specific image processing procedure is illustrated as follows:
for example, in the related art, if the binning mode is used to output image data, if the display resolution of the display interface is 4000 × 3000, the binning mode is a four-in-one mode, and the output pixel is also 4000 × 3000. Then zoom5 times, pixels of 4000 × 3000 are clipped to become pixels of 800 × 600, in order to make the clipped image fit the display interface to achieve the zoom5 times magnification effect, the pixels of 800 × 600 need to be interpolated to obtain pixels of 4000 × 3000, and at this time, the image displayed on the display interface has the zoom5 times effect of the original output image. In this example, 3200 × 2400 pixels (pixels are the average value of two adjacent pixels in the original image) need to be inserted into 800 × 600 pixels, and the sharpness of the obtained image decreases as the number of inserted pixel values increases.
The present embodiment outputs image data in a full-pixel readout mode. Assume that the display resolution of the display interface is still 4000 × 3000, and the pixels of the image data output in the full-pixel readout mode are more than those in the binning mode, for example, the output pixels are 16000 × 12000. Similarly, zoom5 times, 16000 12000 pixels are clipped to 3200 2400 pixels. Similarly, in order to fit the clipped image to the display interface to achieve zoom5 times, it is necessary to interpolate 3200 × 2400 pixels to obtain 4000 × 3000 pixels, and in this case, when the image is displayed on the display interface, there is an effect of zooming 5 times the original output image. It should be noted that, in this example, 800 × 600 pixels need to be inserted into 3200 × 2400 pixels, and the smaller the number of inserted pixel values (compared to the related art of binning mode output), the sharper the image is, and therefore, the image enlarged by zoom still has higher sharpness, and the display effect of zooming the image is improved in this embodiment.
That is, the larger the resolution of the image data read out by the image sensor, the more effective pixel values of the zoom-in image, the less interpolation of the zoom-in image can be made, and thus, the higher the sharpness of the image can be made.
Alternatively, in some embodiments, the image sensor is switched to the full pixel readout mode whenever a photograph and/or image capture instruction is received. Or, in some embodiments, when a photographing and/or shooting instruction is received, the image sensor is set to a binning output mode, and if a zoom operation triggered by a user based on a preview interface is received, a zoom multiple is obtained, and then whether the image sensor needs to be switched to a full-pixel reading mode when a click photographing is performed is determined according to the zoom multiple. Optionally, in this embodiment, when the zoom multiple is greater than the preset multiple, the image sensor is switched to the full-pixel readout mode, so that it is avoided that the small zoom multiple also adopts the full-pixel readout mode, which affects the image output efficiency.
Optionally, in some embodiments, the smart terminal includes an image sensor, and when receiving a camera application opening instruction, outputs an image in a binding output mode of the image sensor, and displays the image in a preview interface. And if receiving a zooming operation triggered by a user based on a preview interface, switching the image sensor to be in a full-pixel reading mode when the user triggers a photographing and/or shooting control, so that the frozen image is output based on the full-pixel reading mode. The image in the preview interface is output in a binding mode, so that the image in the preview interface can be displayed and updated quickly, and the shot image can be output based on the full-pixel reading mode and has higher definition.
Optionally, the intelligent terminal may include two image sensors, one of the image sensors outputs image data in a binning mode, and the other outputs image data in a full-pixel readout mode, where the preview data of the preview interface is the image data output in the binning mode, and when the photographing and/or shooting control is triggered, the image data output in the full-pixel readout mode is used to form the target image. In this embodiment, when it is determined that the zoom magnification is greater than the preset magnification, the image data output in the full-pixel readout mode may be used to generate a target image for photographing and/or shooting.
Optionally, in this embodiment, the manner of cropping the first image data output by the image sensor in the full-pixel readout mode includes, but is not limited to, the following two manners: such as cropping according to a target zoom factor or cropping according to an image perspective of the preview interface.
Optionally, after determining a zoom factor (also a zoom factor) that a user wants to zoom, the first image data may be directly cropped according to the target zoom factor and a preset zoom mode to obtain the second image data. Optionally, the preset scaling manner may be a manner specified by a scaling rule set by the intelligent terminal. The preset zooming mode can also be the same zooming mode as the zooming mode of the preview image in the preview interface.
It can be understood that, during the photographing or shooting process, the user selects the view angle or the image content of the image through the preview image in the preview interface, and therefore, in order to ensure that the finally imaged target image is consistent with the preview image in the preview interface, when the first image data output in full pixels is cropped, the image cropped based on the first image data needs to be consistent with the preview image displayed in the preview interface according to the zoom mode of the preview image in the preview interface and the target zoom multiple (the preview image in the preview interface is an image enlarged by zoom, and the image content and the image view angle in the preview interface are the image content and the image view angle of the target image).
Optionally, the intelligent terminal may directly perform clipping according to an image viewing angle of the preview interface. Optionally, after the user zooms an image based on the preview interface, the preview image data in the preview interface is a zoomed image, and at this time, the first image data may be cut according to the image information in the preview interface. In an implementation example, each first pixel point of the preview image of the preview interface is obtained, a second pixel point in the first image data, which is matched with the first pixel point, is obtained, and the first image data is cut according to the position information of the second pixel point, so that the second image data is obtained.
Optionally, an image view angle of the preview interface is determined based on each pixel point of a preview image displayed in the preview interface, then the first image data is cut according to the image view angle of the preview interface, and an image view angle of the second image data obtained after collection is consistent with the image view angle of the preview interface, that is, the image view angle of the final target image is consistent with the image view angle in the preview interface, so that imaging of the target image is the same as imaging in the preview interface, deviation between the final imaged target image and the image of the preview interface is avoided, and a photographing effect is improved.
In an optional embodiment, the step of cropping the first image data according to the target zoom factor and/or the image viewing angle of the preview interface to obtain the second image data includes:
reordering the pixel points in the first image data to obtain first image data in a Bayer arrangement mode;
and cutting the first image data in the Bayer arrangement mode according to the target zoom factor and/or the image visual angle of the preview interface to obtain second image data.
Optionally, in order to reduce the occupied space of the camera, the image sensor of the high-pixel camera of the present embodiment adopts a 4-cell structure. That is, the first image data output in the full-pixel readout mode is image data arranged in 4-cell pixels. Therefore, in order to obtain a complete image pixel, the present embodiment needs to rearrange the pixel points in the first image data by an algorithm, and convert the rearranged pixel points into the first image data in the normal bayer arrangement mode, so as to restore all colors of the image. Optionally, the algorithms include an AI RMSC algorithm and/or a HW RMSC algorithm (pixel reordering algorithm).
In the embodiment, when a photographing and/or shooting instruction is received, the image sensor is switched to a full-pixel reading mode to acquire first image data; then, the first image data is cut according to the target zoom multiple and/or the image visual angle of the preview interface to obtain second image data; and then, carrying out preset processing on the second image data to obtain a target image. The method comprises the steps that the first image data are images output in a full-pixel reading mode and are dense in pixels, and the pixels of the second image data obtained after the first image data are cut based on the target scaling multiple or the image view angle of the preview interface are still more, so that the resolution requirement of the display interface can be met only by performing a small amount of interpolation processing on the second image data, the effective pixels of the target image are more, the definition of the target image is high, and the display effect of the scaled image is improved.
Second embodiment
Referring to fig. 4, the present embodiment provides an image processing method based on the first embodiment, and the method further provides a detailed embodiment of step S30 based on the first embodiment. Optionally, step S30 includes:
step S31, performing preset processing on the second image data according to a target resolution and a current image resolution of the second image data to form a target image matching the target resolution.
The preset processing in this embodiment may be pixel interpolation processing, or may be other processing of image data.
Optionally, the target resolution may be a display resolution of a display interface of the intelligent terminal, or the target resolution may also be a target image resolution set by a user (for example, setting a size of a photographed image), or the target resolution may also be the same as an image resolution output by the image sensor binding mode.
In this embodiment, the resolution of the second image data obtained by cutting the first image data according to the target zoom factor is small, and the occupation ratio in the display interface is small, at this time, the resolution of the second image data needs to be increased by performing a difference value between adjacent pixels on the second image data, so that the preview interface is occupied by the second image data, and an image enlarging effect is achieved.
Optionally, the resolution of the target image and the target resolution match means that the resolutions are the same. And if the target resolution is the display resolution of the display interface of the intelligent terminal, performing interpolation processing on the second image data to enable the resolution of the second image data to reach the display resolution, and displaying the second image data in the display interface at the moment so that no blank interface is left in the display interface. If the target resolution is the target image resolution set by the user, determining a pixel value to be inserted according to the difference between the target image resolution and the current resolution of the second image data, and further performing interpolation processing on the second image data to make the resolution of the interpolated second image data consistent with the target image resolution set by the user, so that an image with a size desired by the user can be obtained.
Optionally, in this embodiment, the manner of performing interpolation processing on the second image data includes, but is not limited to, the following manner, such as a manner of inserting an average value or a preset value among adjacent pixels. If the average value of two adjacent pixels is calculated, the average value is inserted into the position between the two adjacent pixels, or the average value of pixel points in a preset area is calculated, and then the average value is inserted between every two pixel points in the preset area.
Third embodiment
Referring to fig. 5, the present embodiment is based on all the above embodiments. Before triggering a photographing or shooting instruction, a user needs to open a camera application, trigger a camera to collect an image, display the collected preview image in a preview interface of the intelligent terminal, determine which image at a moment is the image needing to be stored through the preview image, and further enable the intelligent terminal to form a target image of the image through triggering the photographing or shooting instruction.
Based on the fact that the preview image in the preview interface is updated in real time, in order to enable the preview image in the preview interface to be output quickly, the image sensor generally outputs the image quickly in a binding mode, and then the image is displayed in the preview interface. In the embodiment, the preview image is output in the binning mode, so that the user can quickly check the photographing effect. That is, before step S10, the image processing method further includes:
step S40, when receiving the trigger operation, controlling the image sensor to collect the third image data in a merging and reading mode;
step S50, performing clipping processing on the third image data according to the target zoom multiple to obtain fourth image data, and performing preset processing on the fourth image data to obtain preview image data of the preset interface;
step S60, displaying the preview image data in the preview interface.
The preset processing in this embodiment may be pixel interpolation processing, or may be other processing of image data.
Optionally, the triggering operation is an opening operation of a camera application based on the intelligent terminal by the user. When receiving a turn-on operation of the camera application, turning on the camera, controlling the camera, and controlling an image sensor of the camera to output image data in a merged readout mode (i.e., a binding mode) to obtain the third image data.
Optionally, if it is detected that the user executes a zoom operation based on the preview interface, a target zoom multiple corresponding to the zoom operation is obtained, and then the third image data is clipped according to the target zoom multiple, so as to obtain clipped fourth image data. In order to enable the cut fourth image data to be displayed in the whole area of the preview interface, the fourth image data is subjected to preset processing according to the display resolution of the preview interface to obtain preview image data, and the preview image data is displayed in the preview interface. In this way, the zoomed image is displayed in the preview interface. Thus, the image data is output based on the binning mode, and the processing speed is high.
Optionally, upon receiving a trigger operation, the image sensor is controlled to acquire third image data in a merged readout mode. At this time, if the user performs an amplification operation based on the preview interface, that is, the intelligent terminal receives a zoom instruction, acquiring a zoom multiple based on the zoom instruction, and judging whether the zoom multiple is greater than or equal to a preset threshold value; and when the zoom multiple is greater than or equal to a preset threshold value, executing step S50.
Fourth embodiment
Referring to fig. 6, the present embodiment is based on the third embodiment. When the zoom factor of the image is larger than a certain value and the clipping position is different based on each frame, the image continuously updated in the preview interface along with the time is shaken, that is, the preview interface is shaken. In order to preview image shake in the mode preview interface, in this embodiment, when the third image data is subjected to the cropping processing, an Ultra Zoom EIS (Ultra Zoom anti-shake algorithm) is started to realize anti-shake of a preview image at a high magnification.
Optionally, the step of performing cropping processing on the third image data according to the target zoom factor includes:
step S51, cropping the third image data according to the target zoom factor and the position of the target object in each frame of the third image data, so that the deviation value of the target object in each frame of the third image data is less than or equal to a preset deviation value.
And determining a cutting area according to the target zoom multiple and the position of the target object before uploading each frame of the third image data to a preview interface from the beginning of opening the camera, and then cutting along the cutting area. Optionally, the position of the target object and the determination of the clipping area are determined in a unified manner, so that when each frame of the third image data is uploaded, it can be ensured that the deviation value of the target object in each frame of the third image data relative to the target object in other frames of the third image data is less than or equal to the preset deviation value. In this way, the preview image viewed by the user through the preview interface has no shake, and the effect of preventing shake of the preview image at high magnification is achieved.
Optionally, in some embodiments, the step of cropping the third image data according to the target zoom factor and the position of the target object in the third image data per frame so that the deviation value of the target object in the third image data per frame is smaller than or equal to a preset deviation value includes:
identifying a location of a target object in the third image data per frame;
and determining a target area according to the target scaling factor by taking the position of the target object as a center, taking other areas except the target area as cutting areas, and cutting the cutting areas.
That is, before the third image data is acquired, the position of the target object in the third image data is identified, then the position of the target object is taken as the center, the target area is determined by combining the target zoom factor and the preset frame selection rule, then the target area is taken as the image area, and other areas outside the target area are taken as the cutting area, and the cutting area is cut out to obtain the fourth image data. Optionally, the target object may be a position of a person or a face position, or the target object is image data corresponding to a center position of the third image data; or the target object is image data corresponding to a mark position displayed in the preview interface, optionally, the mark position is used for indicating an area that a user wants to enlarge, and optionally, the mark position is movable. Optionally, the preset selection rule includes that the target object is always located at a specific position or a middle position of the preview interface. The cropping area of the target object in each frame of the fourth image data after the position of the target object in the first frame of the fourth image data is determined on the basis of the preview interface is determined. Or determining a reserved area around the target object based on the size of the preview interface, and further determining the target area (or the cutting area).
Optionally, the present embodiment employs an Ultra Zoom EIS (Ultra Zoom anti-shake algorithm) to process the third image data. Optionally, the image perspective of the third image data is greater than the image perspective of the fourth image data, so that the third image data has a space for selecting a clipping position, and thus, in this embodiment, a suitable clipping position may be selected according to the position of the target object, so that the target object in the preview image displayed on the preview interface is within a preset range of the preview interface, and thus, the preview image does not shake.
In other embodiments, to reduce the Ultra Zoom EIS operation, the third image data may be initially cropped to reduce the image data input to the Ultra Zoom EIS algorithm. Optionally, the determining, with the position of the target object as the center, a target area according to the target zoom factor, taking another area outside the target area as a clipping area, and clipping the clipping area includes:
primarily cutting the third image data according to the target scaling multiple and the target object;
and determining a target area corresponding to the target object according to the third image data subjected to preliminary cutting by taking the position of the target object as a center according to a preset cutting rule, taking other areas except the target area as cutting areas, and cutting the cutting areas.
Optionally, the third image data is subjected to preliminary clipping based on the target zoom factor to obtain third image data with a smaller resolution. Optionally, the image perspective of the preliminarily cropped third image data is still larger than the image perspective zoomed according to the target zoom factor, that is, the image perspective of the preliminarily cropped third image data is larger than the image perspective of the fourth image data. For example, assuming that the target zoom factor is 5 times, the image data cropped at the zoom factor of 5 should be 1/5 of the third image data, and when the third image data is preliminarily cropped, the third image data is cropped in 1/4 or 1/3 of the third image data, so that the image angle after preliminary cropping is larger than the image angle after cropping at the target zoom factor.
Optionally, after the preliminary cropping is performed, the image data is cropped to obtain fourth image data with a smaller deviation value by identifying the position of the target object in the preliminary cropped third image data of each frame, centering on the position of the target object, and then determining a target area according to a preset cropping rule. Optionally, the target object is the same as the target object in the foregoing embodiment, and details are not repeated here.
In this embodiment, the preliminarily cut third image data is input to the Ultra Zoom EIS algorithm, so that the operation of the Ultra Zoom EIS algorithm on the third image data can be reduced, the image output efficiency is improved, and the display effect is improved.
The embodiment of the present application further provides an intelligent terminal, where the intelligent terminal includes a memory and a processor, and the memory stores an image processing program, and the image processing program is executed by the processor to implement the steps of the image processing method in any of the above embodiments.
The present application further provides a computer-readable storage medium, on which an image processing program is stored, and the image processing program, when executed by a processor, implements the steps of the image processing method in any of the above embodiments.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the embodiments of the image processing method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk) as above, and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (10)
1. An image processing method, characterized in that the method comprises:
step S10: receiving a photographing and/or shooting instruction, and switching an image sensor into a full-pixel reading mode to acquire first image data;
step S20: cutting the first image data according to the target zoom multiple and/or the image visual angle of the preview interface to obtain second image data;
step S30: and performing preset processing on the second image data to obtain a target image.
2. The method according to claim 1, wherein the preset processing is pixel interpolation processing; and/or the presence of a gas in the gas,
step S20 includes: reordering the pixel points in the first image data to obtain first image data in a Bayer arrangement mode; and cutting the first image data in the Bayer arrangement mode according to the target zoom factor and/or the image visual angle of the preview interface to obtain second image data.
3. The method of claim 1, wherein step S20 includes:
cutting the first image data according to the target zoom multiple and a preset zoom mode to obtain the second image data, wherein the preset zoom mode is the same as the zoom mode of the preview image in the preview interface; and/or the presence of a gas in the gas,
and acquiring each first pixel point of a preview image of the preview interface, acquiring a second pixel point matched with the first pixel point in the first image data, and cutting the first image data according to the position information of the second pixel point to acquire the second image data.
4. The method of claim 1, wherein step S30 includes:
and performing preset processing on the second image data according to a target resolution and the current image resolution of the second image data to form a target image matched with the target resolution.
5. The method according to any one of claims 1 to 4, wherein step S10 is preceded by:
step S40, when receiving the trigger operation, controlling the image sensor to collect the third image data in a merging and reading mode;
step S50, performing clipping processing on the third image data according to the target zoom multiple to obtain fourth image data, and performing preset processing on the fourth image data to obtain preview image data of the preset interface;
step S60, displaying the preview image data in the preview interface.
6. The method of claim 5, wherein the step of cropping the third image data according to the target zoom factor comprises:
and cutting the third image data according to the target scaling multiple and the position of the target object in each frame of the third image data, so that the deviation value of the target object in each frame of the third image data is smaller than or equal to a preset deviation value.
7. The method of claim 6, wherein the step of cropping the third image data according to the target zoom factor and the position of the target object in the third image data per frame so that the deviation value of the target object in the third image data per frame is less than or equal to a preset deviation value comprises:
identifying a location of a target object in the third image data per frame;
and determining a target area according to the target zoom factor by taking the position of the target object as a center, taking other areas except the target area as a cutting area, and cutting the cutting area.
8. The method of claim 5, wherein prior to step S10, the method further comprises:
when a zooming instruction is received, determining a zooming multiple according to the zooming instruction;
when the zoom factor is greater than or equal to a preset threshold, the step S50 is executed.
9. An intelligent terminal, characterized in that, intelligent terminal includes: memory, a processor, wherein the memory has stored thereon an image processing program which, when executed by the processor, implements the steps of the image processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210583044.6A CN115002347B (en) | 2022-05-26 | 2022-05-26 | Image processing method, intelligent terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210583044.6A CN115002347B (en) | 2022-05-26 | 2022-05-26 | Image processing method, intelligent terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115002347A true CN115002347A (en) | 2022-09-02 |
CN115002347B CN115002347B (en) | 2023-10-27 |
Family
ID=83029775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210583044.6A Active CN115002347B (en) | 2022-05-26 | 2022-05-26 | Image processing method, intelligent terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115002347B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117252956A (en) * | 2023-09-04 | 2023-12-19 | 深圳市经纬线科技有限公司 | Image editing method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286750A (en) * | 2018-09-21 | 2019-01-29 | 重庆传音科技有限公司 | A kind of Zooming method and a kind of intelligent terminal based on intelligent terminal |
CN111770275A (en) * | 2020-07-02 | 2020-10-13 | 维沃移动通信有限公司 | Shooting method and device, electronic equipment and readable storage medium |
US20210281669A1 (en) * | 2018-11-28 | 2021-09-09 | Vivo Mobile Communication Co., Ltd. | Shooting method and terminal |
CN114007011A (en) * | 2021-10-26 | 2022-02-01 | 希姆通信息技术(上海)有限公司 | Output mode switching method and system based on camera |
-
2022
- 2022-05-26 CN CN202210583044.6A patent/CN115002347B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286750A (en) * | 2018-09-21 | 2019-01-29 | 重庆传音科技有限公司 | A kind of Zooming method and a kind of intelligent terminal based on intelligent terminal |
US20210281669A1 (en) * | 2018-11-28 | 2021-09-09 | Vivo Mobile Communication Co., Ltd. | Shooting method and terminal |
CN111770275A (en) * | 2020-07-02 | 2020-10-13 | 维沃移动通信有限公司 | Shooting method and device, electronic equipment and readable storage medium |
CN114007011A (en) * | 2021-10-26 | 2022-02-01 | 希姆通信息技术(上海)有限公司 | Output mode switching method and system based on camera |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117252956A (en) * | 2023-09-04 | 2023-12-19 | 深圳市经纬线科技有限公司 | Image editing method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN115002347B (en) | 2023-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10810720B2 (en) | Optical imaging method and apparatus | |
CN108900790B (en) | Video image processing method, mobile terminal and computer readable storage medium | |
CN106937039B (en) | Imaging method based on double cameras, mobile terminal and storage medium | |
CN107820014B (en) | Shooting method, mobile terminal and computer storage medium | |
CN107948530B (en) | Image processing method, terminal and computer readable storage medium | |
CN107040723B (en) | Imaging method based on double cameras, mobile terminal and storage medium | |
CN107133939A (en) | A kind of picture synthesis method, equipment and computer-readable recording medium | |
CN111885307B (en) | Depth-of-field shooting method and device and computer readable storage medium | |
CN113179374A (en) | Image processing method, mobile terminal and storage medium | |
CN113179370A (en) | Photographing method, mobile terminal and readable storage medium | |
CN112511741A (en) | Image processing method, mobile terminal and computer storage medium | |
CN112367443A (en) | Photographing method, mobile terminal and computer-readable storage medium | |
CN111447371A (en) | Automatic exposure control method, terminal and computer readable storage medium | |
CN115002347B (en) | Image processing method, intelligent terminal and storage medium | |
CN112135045A (en) | Video processing method, mobile terminal and computer storage medium | |
CN107360378B (en) | Exposure control method, mobile terminal and computer storage medium | |
CN111866391B (en) | Video shooting method and device and computer readable storage medium | |
CN108055470A (en) | A kind of method of focusing, terminal and storage medium | |
CN113676658A (en) | Photographing method, mobile terminal and readable storage medium | |
CN114900613A (en) | Control method, intelligent terminal and storage medium | |
CN114143471A (en) | Image processing method, system, mobile terminal and computer readable storage medium | |
CN113572916A (en) | Shooting method, terminal device and storage medium | |
CN113542605A (en) | Camera shooting control method, mobile terminal and storage medium | |
CN107959793B (en) | Image processing method, terminal and storage medium | |
CN113572964A (en) | Image processing method, mobile terminal and 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 |