CN117157989A - Photographing method, mobile terminal and readable storage medium - Google Patents
Photographing method, mobile terminal and readable storage medium Download PDFInfo
- Publication number
- CN117157989A CN117157989A CN202180096946.0A CN202180096946A CN117157989A CN 117157989 A CN117157989 A CN 117157989A CN 202180096946 A CN202180096946 A CN 202180096946A CN 117157989 A CN117157989 A CN 117157989A
- Authority
- CN
- China
- Prior art keywords
- image data
- target
- cameras
- target image
- mobile terminal
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000004590 computer program Methods 0.000 claims description 9
- 238000007499 fusion processing Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 42
- 230000006870 function Effects 0.000 description 20
- 230000008569 process Effects 0.000 description 17
- 238000004891 communication Methods 0.000 description 13
- 239000003086 colorant Substances 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 238000010295 mobile communication Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 3
- 239000002131 composite material Substances 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 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
- 230000007704 transition Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 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
- 230000010354 integration Effects 0.000 description 1
- 238000012544 monitoring process 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
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Telephone Function (AREA)
Abstract
The application provides a photographing method, which comprises the steps of controlling at least two cameras to collect image data; comparing the characteristic information of the image data acquired by the cameras, and determining the daily mark image data with the characteristic information superior to the characteristic information of the image data acquired by other cameras; and displaying the month mark image data on a preview interface of the mobile terminal. The application also includes a mobile terminal and a readable storage medium. Compared with the method for acquiring the image by only adopting one camera, the method and the device can avoid the situation that the current shooting effect is poor due to the fact that the image acquired by one camera is unclear, and improve the shooting effect of the mobile terminal.
Description
The present application relates to the field of communications technologies, and in particular, to a photographing method, a mobile terminal, and a readable storage medium.
Along with the development of technology, the mobile terminal has more and more functions and better photographing effect. For example, in order to improve the photographing effect, more and more cameras are arranged on the mobile terminal. Even if a plurality of cameras are arranged on the mobile terminal, in the photographing process, generally, one camera is fixedly adopted to output an image based on the selected photographing mode, and the purpose of improving the photographing effect is achieved by setting different photographing modes and adopting different modes to output the image. In the course of conception and implementation of the present application, the inventors found that at least the following problems exist: the mode that adopts one of them camera output image, the camera gathers some influence factors that probably based on the camera in-process, leads to the image of gathering in the twinkling of an eye unclear, often needs the condition of repeatedly shooting many times this moment, influences the effect of shooing.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
Aiming at the technical problems, the application provides a photographing method, a mobile terminal and a readable storage medium, so that photographing effect is improved.
In order to solve the technical problems, the present application provides a photographing method, which is applied to a mobile terminal, and includes:
controlling at least two cameras to acquire image data;
comparing the characteristic information of the image data acquired by the cameras, and determining target image data with the characteristic information superior to that of the image data acquired by other cameras;
and displaying the target image data on a preview interface of the mobile terminal.
Optionally, the mobile terminal to which the method is applied includes a folding screen, the folding screen has at least two foldable screens, and at least two cameras are respectively disposed on the two screens.
Optionally, the characteristic information of the image data includes at least one of a number of target objects, a target object position, a target object sharpness, a target object brightness, and an image resolution.
Optionally, the means for comparing the characteristic information of the image data collected by all the cameras and determining the target image data with the characteristic information superior to the characteristic information of the image data collected by other cameras includes at least one of the following:
Comparing the number of target objects in the image data of all cameras, and determining the image data with the maximum number of target objects as the target image data;
comparing the positions of target objects in the image data of all cameras, and determining the image data of the target object position at the preset position of a preview interface as the target image data;
comparing the object definition in the image data of all cameras, and determining the image data with the clearest object definition as the object image data;
comparing the brightness of the target object in the image data of all cameras, and determining the image data with the brightest brightness of the target object as the target image data;
comparing the image resolution of the image data of all cameras, and determining the image data with the highest image resolution as the target image data.
Optionally, the step of comparing the feature information of the image data collected by all the cameras and determining the target image data with the feature information superior to the feature information of the image data collected by other cameras includes:
comparing the number of target objects in the image data of all cameras, wherein optionally, the characteristic information comprises the number of target objects;
When the number of the target objects in all the image data is consistent, taking the image data with display characteristics superior to those of the image data acquired by other cameras as the target image data, optionally, the characteristic information can also comprise display characteristics, and optionally, the display characteristics comprise at least one of the display position of the target object, the display definition of the target object, the display brightness of the target object and the image resolution.
Optionally, the step of comparing the feature information of the image data collected by all the cameras and determining the target image data with feature information better than the feature information of the image data collected by other cameras may further include:
when the number of the target objects is inconsistent, acquiring target image data with the maximum target number;
identifying target objects of the target image data and other image data acquired by other cameras;
and if the target object in the other image data is inconsistent with the target object of the target image data, updating the target image data by adopting the image data synthesized by the other image data and the target image data.
Optionally, the step of updating the target image data using the image data synthesized by the other image data and the target image data includes:
Acquiring non-overlapping areas of the other image data relative to the target image data;
splicing the image data of the non-coincident region to a splicing position corresponding to the target image data;
and taking the spliced image data as the target image data.
Optionally, the step of stitching the image data of the non-overlapping region to a stitching location corresponding to the target image data includes:
aligning the image data of the non-overlapping region with the splicing position of the target image data;
and adjusting the image characteristics of the splicing position between the target image data and the image data of the non-coincident region so that the similarity of the splicing position is greater than or equal to a preset threshold value.
Optionally, the image features include at least one of texture and/or color, and the similarity is determined based on at least one of texture differences and/or color differences.
Optionally, after the step of displaying the target image data on the preview interface of the mobile terminal, the method may further include:
identifying a target object at a preset position of the preview interface;
and outputting adjustment prompt information when the target object at the preset position is incomplete.
Optionally, the adjusting prompt information includes a prompt information for rotating a folding angle of a folding screen of the mobile terminal and/or a prompt information for adjusting a position of the mobile terminal.
The application also provides a photographing method, which comprises the following steps:
controlling at least two cameras to acquire image data;
identifying a target object of the image data acquired by the camera;
when the target objects are inconsistent, generating target image data according to the image data acquired by all cameras;
and displaying the target image data on a preview interface of the mobile terminal.
Optionally, the step of generating the target image data according to the image data acquired by all the cameras includes:
acquiring non-overlapping areas which are not overlapped with image data acquired by the target camera in the image data acquired by other cameras;
aligning the non-coincident region to a splicing position of image data acquired by the target camera;
adjusting the image characteristics of the splicing positions so that the similarity of the splicing positions is greater than or equal to a preset threshold value;
target image data is generated based on the adjusted image data.
Optionally, the step of generating the target image data based on the adjusted image data includes:
Performing fusion processing on the splicing position based on the adjusted image data;
the target image data is generated based on the processed image data.
The application also provides a mobile terminal, comprising: the system comprises a memory and a processor, wherein the memory stores a photographing program, and the photographing program realizes the steps of any one of the methods when being executed by the processor.
The application also provides a computer storage medium storing a computer program which, when executed by a processor, implements the steps of any of the methods described above.
As described above, the photographing method of the present application is applied to a mobile terminal, and at least two cameras are controlled to collect image data during photographing; then, determining target image data with characteristic information superior to that of the image data acquired by other cameras based on the characteristic information of the image data acquired by the cameras; and displaying the target image data on a preview interface of the mobile terminal. Based on the fact that better image data are selected from the image data acquired by at least two cameras to serve as final display images, compared with the fact that only one camera is adopted to acquire images, the method and the device can avoid the situation that the shooting effect is poor when the image acquired by the camera is unclear, and the shooting effect of the mobile terminal is improved.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application;
fig. 3 is a flowchart of a photographing method according to the first embodiment;
fig. 4 is a schematic structural diagram of an embodiment of a mobile terminal according to the first embodiment;
fig. 5 is a schematic structural diagram of another embodiment of a mobile terminal according to the first embodiment;
fig. 6 is a schematic structural view of still another embodiment of the mobile terminal according to the first embodiment
Fig. 7 is a detailed flowchart of an embodiment of step S20 of the photographing method according to the second embodiment;
Fig. 8 is a detailed flowchart of an embodiment of step S26 of the photographing method according to the third embodiment;
fig. 9 is a flowchart of a photographing method according to the fourth embodiment;
fig. 10 is a flowchart of a photographing method according to the fifth embodiment.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying 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 element defined by the phrase "comprising one … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element, and furthermore, elements having the same name in different embodiments of the application may have the same meaning or may have different meanings, the particular meaning of which is to be determined by its interpretation in this particular embodiment or by further combining the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by 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 "at … …" or "responsive to a determination", depending on the context. Furthermore, 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" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; 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 in some way inherently mutually exclusive.
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, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order 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 stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
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 phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S10 and S20 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S20 first and then execute S10 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Mobile terminals may be implemented in a variety of forms. For example, mobile terminals described in the present application may include mobile terminals such as cell phones, tablet computers, notebook computers, palm computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, wearable devices, smart bracelets, pedometers, and stationary terminals such as digital TVs, desktop computers, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand 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 a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal 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 structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, optionally, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the 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 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (General Packet Radio Service ), CDMA2000 (Code Division Multiple Access, CDMA 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change 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 talk 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 (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (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 graphics 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 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone 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 the audio signal.
The mobile terminal 100 may also include 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 and a proximity sensor, optionally, the ambient light sensor may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
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 (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 to 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, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) 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 the touch azimuth of the user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. Alternatively, 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, mouse, joystick, etc., as specifically not limited herein.
Alternatively, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and the processor 110 then provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (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 an external device 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 an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, and alternatively, the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory 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 running 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; alternatively, the processor 110 may integrate an application processor and a modem processor, the application processor processing primarily the operating system, user interface, application programs, etc., and the modem processor processing primarily the 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 the respective components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through 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 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 will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present application, where the communication network system is an LTE system of a general mobile communication 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, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Alternatively, the UE201 may be the terminal 100 described above, which is not described here again.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. Alternatively, the eNodeB2021 may connect with other enodebs 2022 over a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access for the UE201 to the EPC 203.
EPC203 may include MME (Mobility Management Entity ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, pgw (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function, policy and tariff function entity) 2036, and so on. Optionally, MME2031 is a control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present application is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above-mentioned mobile terminal hardware structure, communication network system, and example technology, generally, one of the cameras is used to output an image, and the camera may be based on some influencing factors (such as shake) of the camera during the process of capturing the image, so that the image captured instantaneously is unclear, and at this time, the situation that multiple times of capturing is often required, or, based on the limited range that one camera can capture, the shooting position needs to be continuously adjusted to capture the range that the user wants to capture, so that the image that is lost instantaneously is easily missed, and the shooting effect is affected.
First embodiment:
referring to fig. 3, a first embodiment of a photographing method is provided in the present application, which includes the following steps:
step S10, controlling at least two cameras to acquire image data;
step S20, comparing the characteristic information of the image data acquired by the cameras, and determining target image data with the characteristic information superior to that of the image data acquired by other cameras;
And step S30, displaying the target image data on a preview interface of the mobile terminal.
The embodiment is applied to a mobile terminal, and at least two cameras are arranged on the mobile terminal, optionally, at least two cameras are located at different positions of the same screen of the mobile terminal, as shown in fig. 4, the cameras 11 are distributed in the horizontal direction of the display screen 1, and the positions of the images collected by the cameras 11 are different, or the viewing angles of the collected images are different, or the collected viewing field ranges are different. Alternatively, as shown in fig. 5, at least two cameras 11 are located on different screens of the mobile terminal, the display screen 1 of the mobile terminal includes a main screen, a sub-screen and a side screen, the cameras 11 are disposed on the main screen and the side screen, and at least two cameras 11 can collect images at different angles. Alternatively, as shown in fig. 6, the mobile terminal includes a folding screen 1, where the folding screen 1 has at least two foldable screens, and at least two cameras 11 are respectively disposed on the two screens. It can be understood that when the mobile terminal in this embodiment has the above structure, the photographing function of this embodiment can be implemented, and hereinafter, the mobile terminal includes a folding screen, and the cameras are respectively disposed on different foldable screens of the folding screen for illustration.
When a mobile terminal receives a photographing instruction, controlling at least two cameras to collect image data, wherein the two cameras collect the image data, and determining target image data with characteristic information superior to characteristic information of image data collected by other cameras based on different positions of the cameras, different visual angles or different visual field ranges of the cameras; and then displaying the target image data on a preview interface of the mobile terminal. The at least two cameras collect images (optionally, the images can be collected simultaneously or not simultaneously, for example, the images can be collected respectively in a preset shorter time, or the images can be collected simultaneously or not, the instructions for triggering the collection can be identical or can be multiple), so that the probability of the collected image data with better image effect is increased, and the influence of some influence factors on the photographing effect caused by influence of some cameras on the photographing result is reduced. Therefore, the user can quickly acquire target image data, further quickly shoot images, quickly acquire instant images, then compare the acquired data based on at least two cameras respectively to obtain image data with the best effect to generate images, the user does not need to repeatedly shoot, the shooting effect is good, and shooting experience is improved.
Optionally, the image data collected by at least two cameras are image data with different field of view ranges or image data with different view angles, so that the image data collected by each camera is at least partially different, in some embodiments, the image data collected by the cameras may be spliced to form an image with a wider field of view range, for example, in a camera shot, and the shooting position may be omitted from being adjusted back and forth.
Optionally, in this embodiment, at least two cameras are used to collect image data, and the display effect of the picture can be improved by selecting target image data with better display effect as the original data of the picture. And selecting target image data with better display effect based on the characteristic information of the image data acquired by each camera, wherein the characteristic information of the image data comprises at least one of the number of target objects, the position of the target objects, the definition of the target objects, the brightness of the target objects and the resolution of the images.
Optionally, the selecting mode of the target image data includes at least one of the following modes by comparing the characteristic information of the image data collected by all the cameras, wherein the mode of determining the target image data with the characteristic information superior to the characteristic information of the image data collected by other cameras includes:
And (I) comparing the number of target objects in the image data of all cameras, and determining the image data with the maximum number of target objects as the target image data.
That is, the feature information of the image data is the number of target objects, for example, when shooting people, the target image data is determined according to the number of people, especially in a big photo, each camera is set based on the position, the number of people that can be acquired is different, in this embodiment, the image data acquired by the camera with the largest number of target objects is used as the target image data, and then displayed on the preview interface, so that when shooting photos, a plurality of cameras act, the probability of acquiring all target objects is improved, and the purpose of the photo combination can be achieved without adjusting the position, and the shooting effect is improved.
Secondly, comparing the positions of target objects in the image data of all cameras, and determining the image data of the positions of the target objects at the preset positions of a preview interface as the target image data;
optionally, the feature information of the image data is a target object position, such as a display position of the target object relative to a preview interface. If the target object is a person, identifying whether the position of the target object is a preset position (middle position or optimal display position such as middle next two grid positions and the like) of the preview interface, taking image data of the target object position at the preset position of the preview interface as target image data, and displaying the target image data on the preview interface, so that a picture formed based on the preview data of the preview interface is better in display effect of the person, and photographing effect is improved.
And thirdly, comparing the object definition in the image data of all cameras, and determining the image data with the clearest object definition as the object image data.
Optionally, when the feature information of the image data is the object definition, if the object is a person, the clearest image data is used as the object image data by identifying the definition of the person in the image data collected by each camera, so that when the object image data is displayed in the preview interface, a clear display effect is achieved, and the photographing effect is improved.
And fourthly, comparing the brightness of the target object in the image data of all cameras, and determining the image data with the brightest brightness of the target object as the target image data.
Optionally, when the feature information of the image data is brightness of a target object, if the target object is a person, comparing brightness of the person in the image data collected by each camera, and taking the image data with the brightest brightness as the target image data, so that when the target image data is displayed in the preview interface, a display effect of the target object is improved, and a photographing effect is improved.
And fifthly, comparing the image resolutions of the image data of all cameras, and determining the image data with the highest image resolution as the target image data.
Optionally, the feature information of the image data is image resolution of the image data, by comparing resolutions of the image data collected by the cameras, when the image data with the highest resolution is used as the target image data, and the target image data is displayed in the preview interface, the displayed image data has high resolution, so that the display effect of the image is improved, and a better photographing effect is achieved.
Optionally, the comparing the characteristic information of the image data collected by the camera with the characteristic information in the step of determining the target image data with the characteristic information better than the characteristic information of the image data collected by other cameras may be based on the setting by the user, or may also be determined based on the shooting type, for example, before step S20, the shooting type is obtained, the characteristic information is determined according to the shooting type, and then the characteristic information of the image data collected by each camera is compared, so as to determine the target image data with the characteristic information better than the characteristic information of the image data collected by other cameras. That is, the feature information may be different based on different settings of the user or different based on the photographing type, and thus, different feature information acquires the target image data in different manners.
If the shooting type is a person, giving a higher weight to the number of target objects or the positions of the target objects, preferentially comparing the number of the target objects or the positions of the target objects in the image data of each camera, and then determining the image data with the maximum number of the target objects as the target image data; and/or image data of the target object position at a preset position of a preview interface. When a person is photographed, the photographing purpose is mainly to display the person, so that target image data is determined based on the number of target objects and the positions of the target objects, the obtained image data meets the requirements of users, and the photographing effect is improved.
If the shooting type is a scene, the characteristic information such as the object definition or the image resolution is given higher weight, the image data with the clearest object definition is determined as the object image data by comparing the object definition or the image resolution in the image data of each camera, and/or the image data with the highest image resolution is determined as the object image data. Because the saliency of the scenery is different from that of the person, the display effect of the scenery can be improved by acquiring an image with higher definition or higher image resolution, so that the photographing effect of the scenery is improved.
According to the embodiment, the characteristic information corresponding to different shooting types is different, or the characteristic information corresponding to different settings of the user is different, so that in the shooting process, image data which meets the requirements can be correspondingly acquired as target image data based on different requirements, the acquisition probability of better image display effect is improved, and the shooting effect is improved.
Optionally, the target image data may also be determined in combination with at least two of the above-mentioned number of target objects, target object position, target object sharpness, target object brightness and image resolution. Optionally, the number of target objects, the target object position, the target object definition, the target object brightness and the image resolution are correspondingly provided with weights, and the target image data is preferentially determined based on the weights. And if the number of the target objects is the largest, determining target image data according to the number of the target objects, if the number of the target objects is a plurality of the target image data, determining the target image data according to the characteristic information with the weight smaller than the number of the target objects, and if the number of the target objects is smaller than the number of the target objects, determining the target image data according to the position corresponding to the target.
Alternatively, the respective weights corresponding to the feature information may be determined or generated based on user settings, or based on user usage habits or big data analysis, or may be different based on different shooting scenes.
Alternatively, the present embodiment may be applied to all photographing modes, or may be applied only to a group photo mode and/or a panoramic mode.
In this embodiment, at least two cameras are controlled to collect image data during photographing; then, determining target image data with characteristic information superior to that of the image data acquired by other cameras based on the characteristic information of the image data acquired by the cameras; and displaying the target image data on a preview interface of the mobile terminal. Based on selecting better image data from the image data acquired by at least two cameras as a final display image, compared with the case that only one camera is adopted to acquire the image, the embodiment can avoid the situation that the image acquired by one camera is unclear and the current shooting effect is poor, and the shooting effect of the embodiment is better.
Second embodiment:
referring to fig. 7, the step of determining target image data with characteristic information superior to characteristic information of image data collected by other cameras based on the first embodiment, optionally, includes:
Step S21, comparing the number of target objects in the image data of all cameras, wherein optionally, the characteristic information comprises the number of target objects;
step S22, judging whether the number of target objects in all the image data is consistent;
if so, that is, if the number of target objects in all the image data is consistent, step 23 is executed, and the image data with display characteristics superior to those of the image data acquired by other cameras is used as the target image data.
Optionally, the feature information may further include a display feature, and optionally, the display feature includes at least one of a display position of the target object, a display definition of the target object, a display brightness of the target object, and an image resolution.
In this embodiment, the feature information includes the number of target objects, and by comparing the number of target objects in the image data of all the cameras, it is determined whether the number of target objects acquired by each of the cameras is consistent. If the number of the cameras is 10, or the same number is all determined by identifying the number of the target objects when the 10 persons are in the group photo. If so, it is indicated that all cameras select the combined frames in the picture, or the number of people selected by each camera frame in the picture is consistent, and at this time, the target image data for final display cannot be determined by the number of target objects.
Based on this, the feature information in the present embodiment may further include display features such as at least one of a display position of the target object, a display sharpness of the target object, a display brightness of the target object, and an image resolution. When the target image data cannot be acquired through the number of target objects, the target image data is determined through the display characteristics. Such as image data at a preset position of the preview interface based on the display position of the target object, as target image data. Or based on the image data with the highest display definition of the target object as the target image data, or based on the image data with the brightest display brightness or highest image resolution of the target object as the target image data.
Therefore, the embodiment determines the target image data based on the number of target objects in combination with the display characteristics, and makes the display effect of the target objects better while meeting the requirement of the number of target objects.
Optionally, if not, that is, when the number of the target objects is inconsistent, executing step S24 to obtain the target image data with the largest target number;
step S25, identifying the target image data and target objects of other image data acquired by other cameras;
And step S26, if the target object in the other image data is inconsistent with the target object of the target image data, updating the target image data by adopting the image data synthesized by the other image data and the target image data.
It should be noted that, the target object inconsistency refers to that the target object in the target image data does not correspond to the target object in other image data one by one, for example, the target image data has an a member, a B member, and a C member, and the other image data has an a member and a D member, and optionally, the D member is the target object inconsistent with the target image data. The present embodiment can identify each of the target objects by face recognition technology.
In the process of the assembly, if the number of the target objects is inconsistent, the following situations generally exist:
first, the image data collected by at least one camera includes all the persons, and the image data collected by at least one camera includes only part of the persons (i.e. part of the persons are not framed in the picture). E.g. 10 persons in a group, whereas the image data of one camera comprises 10 persons and the image data of the other camera comprises 7 persons.
Second, the image data collected by all cameras only contains part of the group photo persons, and the number of people collected by each camera is different and has overlapped part of the group photo persons. If 10 persons are combined, 8 persons are collected by one camera, and 7 persons are collected by the other camera.
Thirdly, the image data collected by all cameras only comprise part of the group photo personnel, the number of people collected by each camera is different, and no overlapping people exist. If 10 persons are combined, one camera captures 5 persons, and the other camera captures 5 other persons.
In some alternative embodiments, the image data with the largest number of target objects is taken as target image data to ensure that the largest number of target objects are contained in the captured image.
In some alternative embodiments, in order to further improve the shooting effect, more or even all target objects are shot in the image, if the number of the target objects is inconsistent by comparing the image data acquired by the cameras, face recognition is started, whether the target objects of other image data acquired by other cameras except the target image data are consistent with the target objects in the target image data is identified, other objects inconsistent with the target objects in the target image data are determined, and the target image data is updated by adopting the image data synthesized by the other image data and the target image data.
In this embodiment, if the number of the target objects is inconsistent, the image data with the largest number of the target objects may be compared with other image data, and there may be some target objects that are not framed in the frame, and in order to ensure that the photo taking is completed, the other image data and the target image data are combined to form more complete target image data, so that the photo taking effect is improved by displaying the photo taking with more complete numbers of people in the preview interface of the mobile terminal.
Third embodiment:
referring to fig. 8, the step of updating the target image data with the image data synthesized by the other image data and the target image data may further include:
step S261, acquiring a non-overlapping area of the other image data relative to the target image data;
step S262, splicing the image data of the non-overlapping area to a splicing position corresponding to the target image data;
and step S263, taking the spliced image data as the target image data.
When it is determined that the other image data has another object different from the target object in the target image data, it is interpreted that a non-overlapping region exists between the other image data and the target image data. That is, the non-overlapping area refers to an area with different data contents in the image data collected by each camera.
Scanning each image data to obtain a non-overlapping region and an overlapping region, wherein the boundary position between the overlapping region and the non-overlapping region is the splicing position, then carrying out matting processing on the non-overlapping region in other data, splicing the non-overlapping region to the splicing position corresponding to the target image data, completing splicing of the image data, and then taking the spliced image data as the target image data to be displayed on a preview interface of the mobile terminal.
Optionally, the step of stitching the image data of the non-overlapping region to a stitching location corresponding to the target image data includes:
aligning the image data of the non-overlapping region with the splicing position of the target image data;
and adjusting the image characteristics of the splicing position between the target image data and the image data of the non-coincident region so that the similarity of the splicing position is greater than or equal to a preset threshold value.
In order to enable the spliced images to be fused and natural, in the process of splicing the images, after the image data of the non-overlapping area are aligned to the corresponding positions of the target image data, the image textures and/or colors of the splicing positions are adjusted, so that the similarity of the splicing positions is similar.
Optionally, the image features include at least one of texture and/or color, and the similarity is determined based on at least one of texture differences and/or color differences. The smaller the texture difference and/or the smaller the color difference, the greater the similarity of the splice locations.
In an embodiment, the similarity is determined based on a difference value of colors or textures corresponding to at least one point divided by the splicing position, and if the difference value of colors or textures corresponding to up to a preset number of points in the splicing position is smaller than a preset difference value, the similarity of the splicing position is determined to be greater than or equal to the preset threshold.
In some embodiments, the similarity is determined based on a sum of difference values of colors and/or textures corresponding to at least one point of the splice location division. If the color and/or texture difference value of the point corresponding to one camera and the color and/or texture difference value of the point corresponding to the other camera are obtained, the texture difference and/or the color difference are added to be used as comparison values, for example, the absolute value difference value C= |Ti1-Ti2|+|Ci1-Ci2| of the texture and/or the image color of the ith point of one camera and the ith point of the other camera is smaller, and the similarity is more similar.
In the specific adjustment process, adjusting according to the color difference or the texture difference, for example, adjusting the color of the non-overlapping area in the other data by taking the color in the target image data as a reference, so that the difference between the color of the target image data and the color of the non-overlapping area of the other data is minimized; or, taking the texture in the target image data as a reference, adjusting the texture of the non-overlapping area in the other data, so that the difference between the texture of the target image data and the texture of the non-overlapping area of the other data is minimized, and image stitching is realized.
Optionally, after adjusting the image features of the stitching position between the target image data and the image data of the non-overlapping region, fusing the stitching position. And if the splicing position is subjected to natural transition fusion processing, fusing the non-overlapping region with the target image data, and improving the display effect of the image.
According to the embodiment, the non-overlapping area of the image data collected by other cameras and the target image data is spliced into the target image data, so that the display view angle of the image data displayed on the preview interface is wider, and the photographing effect of the combined photo is improved.
Fourth embodiment:
referring to fig. 9, the step of displaying the target image data on the preview interface of the mobile terminal according to the present embodiment may further include:
step S40, identifying a target object at a preset position of the preview interface;
and S50, outputting adjustment prompt information when the target object at the preset position is incomplete.
Alternatively, the preset position may be an edge position, or other positions.
Optionally, the adjusting prompt information includes a prompt information for rotating a folding angle of a folding screen of the mobile terminal and/or a prompt information for adjusting a position of the mobile terminal.
The following description is made by taking the target object as an example:
in order to avoid that part of human body is not selected into the preview interface in a frame manner, so that part of human body only collects part of human body and the photographing effect is affected, the embodiment forms the target image data based on the embodiments, after the preview interface of the mobile terminal displays the target image data, identifies a target object at a preset position of the preview interface (generally, the target object at the edge of the preview interface only collects part of the position), and if the target object at the preset position is identified to be incomplete, outputs adjustment prompt information.
Optionally, in this embodiment, whether only a part of the face is collected is identified by using a face recognition manner, or whether only a part of the body is collected is identified by using a human body identification manner, so as to determine that the target object is incomplete.
Optionally, in the embodiment of the folding screen, when the target object at the preset position is incomplete, the range acquired by the camera may be adjusted by prompting the user to rotate the folding angle of the folding screen, so as to re-execute the above embodiments to regenerate the target image data on the preview interface. It should be noted that, after the folding angle of the folding screen is adjusted, the image range collected by the cameras located on the two screens can be adjusted, so that the overlapping area is reduced, the collection viewing angles of the two cameras are increased, and the target object at the preset position can be collected to a complete image. It can be understood that if the camera is a front camera, the folding angle is prompted to be increased, that is, the folding screen is unfolded. If the camera is a rear camera, prompting to reduce the folding angle, namely folding the folding screen.
In the non-folding screen embodiment, when the target object at the preset position is incomplete, the user can be prompted to adjust the position of the mobile terminal, so that the distance between the camera and the target object is more, the field of view range of the camera is enlarged, and the target object at the preset position can be acquired into a complete image.
Fifth embodiment:
referring to fig. 10, the present application further provides a photographing method, which includes:
step S210, controlling at least two cameras to acquire image data;
step S220, identifying a target object of the image data acquired by the camera;
step S230, when the target objects are inconsistent, generating target image data according to the image data acquired by all cameras;
and step S240, displaying the target image data on a preview interface of the mobile terminal.
It should be noted that, the inconsistency of the target objects means that the target objects in the image data collected by at least one camera are not in one-to-one correspondence with the target objects in the image data collected by other cameras, for example, the image data collected by the first camera has a member a, a member B and a member C, and the image data collected by the second camera has a member a and a member D.
When the target objects in the image data collected by the cameras are in one-to-one correspondence, the target objects are consistent, for example, the image data collected by the first camera is provided with an A member, a B member and a C member, and the image data collected by the second camera is also provided with the A member, the B member and the C member.
Optionally, the present embodiment identifies whether the target objects in the image data acquired by the cameras are consistent through a face recognition technology.
When the target objects are consistent, the target image data may be determined based on the display characteristics of the image data, for example, the image data with the display characteristics being better than those of the image data acquired by other cameras is taken as the target image data, and optionally, the characteristic information may further include the display characteristics, where the display characteristics include at least one of the display position of the target object, the display definition of the target object, the display brightness of the target object, and the image resolution.
The application scene of the embodiment is the same as that of the first embodiment, except that after controlling at least two cameras to collect image data, the embodiment directly identifies target objects in the image data collected by each camera, and judges whether the target objects collected by each camera are consistent. When the target objects are inconsistent, the following cases (taking the synopsis as an example) exist:
1. the number of target objects is the same, but all cameras collect part of people, and non-repeated people exist in the collected people. If 10 persons are combined, 5 persons are included in the image data of one camera, and 5 persons are included in the image data of the other camera.
2. The number of target objects is different, but all cameras collect part of the personnel. If 10 persons are combined, 6 persons are included in the image data of one camera, and 8 persons, optionally only four persons, are included in the image data of the other camera.
Based on the above, when the target objects are inconsistent, the target image data is generated according to the image data acquired by all cameras, so that when the target image data is displayed on the preview interface, more pictures of the target objects are presented, and when the target image is generated based on the preview data of the preview interface, an image with better photographing effect can be obtained, for example, when the target image is combined, a more complete photographing position of a combined camera can be obtained more easily, and the user does not need to move the position of the adjustment terminal back and forth.
Sixth embodiment:
the present embodiment is based on the fifth embodiment, and optionally, the step of generating the target image data according to the image data acquired by all the cameras includes:
acquiring non-overlapping areas which are not overlapped with image data acquired by the target camera in the image data acquired by other cameras;
aligning the non-coincident region to a splicing position of image data acquired by the target camera;
Adjusting the image characteristics of the splicing positions so that the similarity of the splicing positions is greater than or equal to a preset threshold value;
target image data is generated based on the adjusted image data.
When the fact that the target objects collected by the cameras are inconsistent is determined, the fact that all the cameras collect only part of the target objects is indicated, and at the moment, the images collected by the cameras are spliced to form more complete target image data.
Optionally, when the image data collected by each camera does not have the overlapping area, each image data is directly spliced to obtain the target image data.
Optionally, if the image data collected by each camera is identical, it is indicated that each image data has an overlapping area and a non-overlapping area. Image data acquired by a target camera is predetermined, then image data acquired by other cameras are scanned, a non-overlapping area which is not overlapped with the image data acquired by the target camera is acquired, and then the non-overlapping area is aligned to a splicing position of the image data acquired by the target camera. Optionally, a boundary position between a non-overlapping region of the image data and the overlapping region is the stitching position.
Alternatively, the non-overlapping areas of the other cameras may be processed in a matting manner.
In order to enable the spliced images to be fused and natural, in the process of splicing the images, after the image data of the non-overlapping area are aligned to the corresponding positions of the image data acquired by the target camera, adjusting the image textures and/or colors of the spliced positions, so that the similarity of the spliced positions is similar.
Optionally, the image features include at least one of texture and/or color, and the similarity is determined based on at least one of texture differences and/or color differences. The smaller the texture difference and/or the smaller the color difference, the greater the similarity of the splice locations.
In an embodiment, the similarity is determined based on a difference value of colors or textures corresponding to at least one point divided by the splicing position, and if the difference value of colors or textures corresponding to up to a preset number of points in the splicing position is smaller than a preset difference value, the similarity of the splicing position is determined to be greater than or equal to the preset threshold.
In some embodiments, the similarity is determined based on a sum of difference values of colors and/or textures corresponding to at least one point of the splice location division. If the color and/or texture of the point corresponding to one camera and the difference value of the point and the texture corresponding to the other camera are obtained, the difference value of the texture difference and/or the color difference is added to be used as a comparison value, for example, the smaller the absolute value difference value C= |Ti1-Ti2|+|Ci1-Ci2| of the texture and/or the image color of the ith point of the one camera and the ith point of the other camera is, the more similar the similarity is.
In a specific adjustment process, adjusting according to the color difference or the texture difference, for example, adjusting the color of the non-overlapping area in the other data by taking the color in the target image data as a reference, so that the difference between the color of the target image data and the color of the non-overlapping area of the other data is minimized; or, taking the texture in the target image data as a reference, adjusting the texture of the non-overlapping area in the other data, so that the difference between the texture of the target image data and the texture of the non-overlapping area of the other data is minimized, and image stitching is realized.
Optionally, the step of generating the target image data based on the adjusted image data includes: performing fusion processing on the splicing position based on the adjusted image data; the target image data is generated based on the processed image data. And after adjusting the image characteristics of the splicing position between the target image data and the image data of the non-coincident region, fusing the splicing position. And if the splicing position is subjected to natural transition fusion processing, fusing the non-overlapping region with the target image data, and improving the display effect of the image.
Optionally, the target camera in this embodiment may be set by a user, and if the user realizes that the camera 1 is set as a main camera and the other cameras are auxiliary cameras, after the image data is collected, the image data collected by the other cameras are spliced into the image data collected by the main camera.
Or, the target camera may be determined based on the acquired image resolution, for example, a camera corresponding to image data with high image resolution is the target camera, and an image with low image resolution is the other cameras.
In the image stitching process, the stitching position is processed, so that the stitched images are displayed naturally, and the display effect of the images is improved.
The application also provides a mobile terminal, which comprises a memory and a processor, wherein the memory stores a photographing program, and the photographing program is executed by the processor to realize the steps of the photographing method in any embodiment.
The application also provides a readable storage medium, on which a photographing program is stored, which when executed by a processor implements the steps of the photographing method in any of the above embodiments.
Embodiments of the present application also provide a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method as in the various possible embodiments described above.
The embodiment of the application also provides a chip, which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory, so that the device provided with the chip executes the method in the various possible implementation manners.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or 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 of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part 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. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, 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 a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid State Disk (SSD)), among others.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (13)
- A photographing method applied to a mobile terminal, the method comprising:controlling at least two cameras to acquire image data;comparing the characteristic information of the image data acquired by the cameras, and determining target image data of which the characteristic information is better than that of the image data acquired by other cameras;and displaying the target image data on a preview interface of the mobile terminal.
- The method of claim 1, wherein the characteristic information of the image data includes at least one of a number of target objects, a target object position, a target object sharpness, a target object brightness, and an image resolution.
- The method of claim 2, wherein the comparing the characteristic information of the image data collected by all the cameras to determine the mode of the characteristic information being superior to the target image data of the characteristic information of the image data collected by other cameras comprises at least one of the following:Comparing the number of target objects in the image data of all cameras, and determining the image data with the maximum number of target objects as the target image data;comparing the positions of target objects in the image data of all cameras, and determining the image data of the target object position at the preset position of a preview interface as the target image data;comparing the object definition in the image data of all cameras, and determining the image data with the clearest object definition as the object image data;comparing the brightness of the target object in the image data of all cameras, and determining the image data with the brightest brightness of the target object as the target image data;comparing the image resolution of the image data of all cameras, and determining the image data with the highest image resolution as the target image data.
- A method according to any one of claims 1 to 3, wherein the step of comparing the characteristic information of the image data collected by all the cameras and determining target image data whose characteristic information is superior to that of the image data collected by other cameras comprises:Comparing the number of target objects in the image data of all cameras;and when the number of target objects in all the image data is consistent, taking the image data with display characteristics superior to those of the image data acquired by other cameras as the target image data.
- The method of claim 4, wherein the step of comparing the characteristic information of the image data collected by all the cameras and determining the target image data whose characteristic information is superior to that of the image data collected by other cameras further comprises:when the number of the target objects is inconsistent, acquiring target image data with the maximum target number;identifying target objects of the target image data and other image data acquired by other cameras;and if the target object in the other image data is inconsistent with the target object of the target image data, updating the target image data by adopting the image data synthesized by the other image data and the target image data.
- The method of claim 5, wherein the step of updating the target image data with the image data synthesized from the other image data and the target image data comprises:Acquiring non-overlapping areas of the other image data relative to the target image data;splicing the image data of the non-coincident region to a splicing position corresponding to the target image data;and taking the spliced image data as the target image data.
- The method of claim 6, wherein stitching the image data of the non-overlapping region to a stitching location corresponding to the target image data comprises:aligning the image data of the non-overlapping region with the splicing position of the target image data;and adjusting the image characteristics of the splicing position between the target image data and the image data of the non-coincident region so that the similarity of the splicing position is greater than or equal to a preset threshold value.
- The method according to any one of claims 1 to 3, further comprising, after the step of displaying the target image data on a preview interface of the mobile terminal:identifying a target object at a preset position of the preview interface;and outputting adjustment prompt information when the target object at the preset position is incomplete.
- A photographing method, characterized in that the photographing method comprises:Controlling at least two cameras to acquire image data;identifying a target object of the image data acquired by the camera;when the target objects are inconsistent, generating target image data according to the image data acquired by all cameras;and displaying the target image data on a preview interface of the mobile terminal.
- The method of claim 9, wherein the step of generating the target image data from image data acquired by all of the cameras comprises:acquiring non-overlapping areas which are not overlapped with image data acquired by the target camera in the image data acquired by other cameras;aligning the non-coincident region to a splicing position of image data acquired by the target camera;adjusting the image characteristics of the splicing positions so that the similarity of the splicing positions is greater than or equal to a preset threshold value;target image data is generated based on the adjusted image data.
- The method of claim 10, wherein the step of generating target image data based on the adjusted image data comprises:performing fusion processing on the splicing position based on the adjusted image data;The target image data is generated based on the processed image data.
- A mobile terminal, the mobile terminal comprising: memory, a processor, optionally a photo taking program stored on the memory, which when executed by the processor, implements the steps of the photo taking method according to any of claims 1 to 11.
- A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the photographing method according to any of claims 1 to 11.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/097994 WO2022252158A1 (en) | 2021-06-02 | 2021-06-02 | Photographing method, mobile terminal and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117157989A true CN117157989A (en) | 2023-12-01 |
Family
ID=84322721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202180096946.0A Pending CN117157989A (en) | 2021-06-02 | 2021-06-02 | Photographing method, mobile terminal and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117157989A (en) |
WO (1) | WO2022252158A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117496208B (en) * | 2023-12-29 | 2024-03-29 | 山东朝辉自动化科技有限责任公司 | Method for acquiring stockpiling information in stock yard in real time |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331504B (en) * | 2016-09-30 | 2020-03-17 | 北京小米移动软件有限公司 | Shooting method and device |
JP2018185240A (en) * | 2017-04-26 | 2018-11-22 | 大成建設株式会社 | Position specifying device |
CN107172296A (en) * | 2017-06-22 | 2017-09-15 | 维沃移动通信有限公司 | A kind of image capturing method and mobile terminal |
CN110807759B (en) * | 2019-09-16 | 2022-09-06 | 上海甜里智能科技有限公司 | Method and device for evaluating photo quality, electronic equipment and readable storage medium |
CN112312042A (en) * | 2020-10-30 | 2021-02-02 | 维沃移动通信有限公司 | Display control method, display control device, electronic equipment and storage medium |
-
2021
- 2021-06-02 CN CN202180096946.0A patent/CN117157989A/en active Pending
- 2021-06-02 WO PCT/CN2021/097994 patent/WO2022252158A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022252158A1 (en) | 2022-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
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 | |
CN108322647B (en) | Panoramic image shooting method, mobile terminal and computer readable storage medium | |
CN107959795B (en) | Information acquisition method, information acquisition equipment and computer readable storage medium | |
CN107040723B (en) | Imaging method based on double cameras, mobile terminal and storage medium | |
CN108419008B (en) | Shooting method, terminal and computer readable storage medium | |
CN107240072B (en) | Screen brightness adjusting method, terminal and computer readable storage medium | |
CN109120858B (en) | Image shooting method, device, equipment and storage 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 | |
CN112995467A (en) | Image processing method, mobile terminal and storage medium | |
CN112188082A (en) | High dynamic range image shooting method, shooting device, terminal and storage medium | |
CN113542610A (en) | Shooting method, mobile terminal and storage medium | |
CN112511741A (en) | Image processing method, mobile terminal and computer storage medium | |
CN110177207B (en) | Backlight image shooting method, mobile terminal and computer readable storage medium | |
CN112135060B (en) | Focusing processing method, mobile terminal and computer storage medium | |
CN107743198B (en) | Photographing method, terminal and storage medium | |
CN113347364A (en) | Moon image shooting method and device and computer readable storage medium | |
CN113347372A (en) | Shooting light supplement method, mobile terminal and readable storage medium | |
CN109510941B (en) | Shooting processing method and device and computer readable storage medium | |
CN117157989A (en) | Photographing method, mobile terminal and readable storage medium | |
CN108495033B (en) | Photographing regulation and control method and device and computer readable storage medium | |
CN114143471B (en) | Image processing method, system, mobile terminal and computer readable storage medium | |
CN113572916B (en) | Shooting method, terminal equipment and storage medium | |
CN112422813B (en) | Image blurring method, terminal 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 |