WO2023122906A1 - Image processing method, intelligent terminal and storage medium - Google Patents

Image processing method, intelligent terminal and storage medium Download PDF

Info

Publication number
WO2023122906A1
WO2023122906A1 PCT/CN2021/141771 CN2021141771W WO2023122906A1 WO 2023122906 A1 WO2023122906 A1 WO 2023122906A1 CN 2021141771 W CN2021141771 W CN 2021141771W WO 2023122906 A1 WO2023122906 A1 WO 2023122906A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
image
target
display
information
Prior art date
Application number
PCT/CN2021/141771
Other languages
French (fr)
Chinese (zh)
Inventor
赵玮
Original Assignee
深圳传音控股股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Priority to PCT/CN2021/141771 priority Critical patent/WO2023122906A1/en
Publication of WO2023122906A1 publication Critical patent/WO2023122906A1/en

Links

Images

Definitions

  • the present application relates to the technical field of image processing, and in particular to an image processing method, a smart terminal and a storage medium.
  • the close-up can be shot through the smart terminal, and the distant view can be shot.
  • a smart terminal such as a mobile phone to shoot a distant view, such as shooting the moon through a mobile phone
  • most photographers often adjust the brightness of the entire shooting picture according to their own visual experience, resulting in poor quality of the final picture taken, such as The captured picture is overexposed.
  • the inventor found at least the following problems: the photographer adjusts the brightness of the entire shooting picture according to his visual experience, which makes the quality of the picture obtained by shooting poor.
  • the main purpose of this application is to provide an image processing method, smart terminal and storage medium, aiming to solve the problem that the photographer adjusts the brightness of the entire shooting picture according to his visual experience, resulting in poor quality of the picture obtained by shooting.
  • the application provides an image processing method, the image processing method includes the following steps:
  • the S20 step includes:
  • the preset shooting conditions include at least one of the following conditions:
  • the display brightness of the target object is less than or equal to a preset brightness
  • the light-dark scale factor of the target object is less than or equal to a preset scale factor.
  • step S21 includes at least one of the following:
  • the target state information that does not meet the corresponding preset shooting conditions in the state information is the display brightness, reduce the overall display brightness of the image, and/or reduce the display brightness of the target object in the image ;
  • the target state information that does not meet the corresponding preset shooting conditions in the state information is the light-dark scale factor, reduce the light-dark scale factor of the target object and/or the image, or obtain the target from a preset gallery object graph, and replace the target object in the image according to the target object graph.
  • step S20 the following steps are also included:
  • step S30 includes:
  • the current environment information is obtained, and a background image for replacing the background of the target object is obtained from the preset gallery according to the environment information;
  • the method also includes the following steps:
  • step S60 when the object on the preview interface is the target object, execute step S10; and/or,
  • step S70 includes at least one of the following:
  • the object in the preview interface When the object in the preview interface is not the target object, obtain the vector diagram of the target object from the preset gallery, and output the selection interface of the vector diagram of the target object, based on the selection interface received
  • the selection instruction determines the target vector diagram, and displays the target vector diagram in the target display area of the image
  • the object on the preview interface When the object on the preview interface is not the target object, obtain current environment information, obtain a vector diagram of the target object from a preset gallery according to the environment information, and display the vector diagram on the the target display area of the image;
  • the object in the preview interface When the object in the preview interface is not the target object, then obtain the display information of the image in the preview interface, obtain the vector diagram of the target object from a preset gallery according to the display information, and store the obtained image
  • the target vector diagram is displayed in the target display area of the image, or, when the object in the preview interface is not the target object, the vector diagram to be displayed of the target object is obtained from the preset gallery, and the The display information of the image of the preview interface, and adjust the display information of the vector diagram to be displayed according to the display information, so as to obtain the vector diagram of the target object, and display the target vector diagram on the image target display area;
  • the object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, obtain the vector diagram of the target object from the preset gallery, and display the vector diagram on the the target display area of the image;
  • the present application also provides an image processing method, the image processing method comprising the following steps:
  • step S300 including:
  • the object on the preview interface includes the target object
  • acquire the displayed area of the target object to determine the target display area of the target object to be displayed.
  • step S300 further include:
  • an object to be adjusted in the image on the preview interface is determined according to the adjustment instruction, and a display position of the object is adjusted based on the adjustment instruction, wherein the object includes the target object.
  • the present application also provides an image processing terminal.
  • the image processing terminal includes: a memory, a processor, and an image processing program stored in the memory and operable on the processor.
  • the image processing program is executed by the When executed by the processor, the steps of the above-mentioned image processing method are realized.
  • the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are implemented.
  • the present application obtains the state information of the target object in the preview interface; adjusts the display information of the target object according to the state information of the target object, and/or adjusts the display information of the image according to the state information of the target object.
  • FIG. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application
  • FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application.
  • Fig. 3 is a schematic diagram of the hardware structure of the controller 140 shown according to the first embodiment
  • Fig. 4 is a schematic diagram of a hardware structure of a network node 150 shown according to the first embodiment
  • FIG. 5 is a schematic diagram of a hardware structure of a network node 160 shown according to the first embodiment
  • FIG. 6 is a schematic diagram of the hardware structure of the controller 170 shown according to the second embodiment
  • FIG. 7 is a schematic diagram of a hardware structure of a network node 180 according to a second embodiment
  • Fig. 8 is a schematic flowchart of an image processing method according to the first embodiment
  • Fig. 9 is a schematic flowchart of adjusting display information of an image in the image processing method shown according to the first embodiment
  • Fig. 10 is an interface diagram of adjusting the light-dark ratio coefficient of the image processing method according to the first embodiment of the present invention.
  • Fig. 11 is a schematic flowchart of an image processing method according to a second embodiment
  • Fig. 12 is an interface diagram of changing the background of the target object in the image processing method according to the second embodiment of the present invention.
  • Fig. 13 is a schematic flowchart of an image processing method according to a third embodiment
  • Fig. 14 is a schematic flowchart of an image processing method according to a fourth embodiment.
  • first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information.
  • first information may also be called second information, and similarly, second information may also be called first information.
  • second information may also be called first information.
  • the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination”.
  • the singular forms "a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.
  • A, B, C means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C
  • A, B or C or "A, B and/or C” means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
  • the words “if”, “if” as used herein may be interpreted as “at” or “when” or “in response to determining” or “in response to detecting”.
  • the phrases “if determined” or “if detected (the stated condition or event)” could be interpreted as “when determined” or “in response to the determination” or “when detected (the stated condition or event) )” or “in response to detection of (a stated condition or event)”.
  • step codes such as S10 and S20 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order.
  • S20 will be executed first, followed by S10, etc., but these should be within the scope of protection of this application.
  • Smart terminals can be implemented in various forms.
  • the smart terminals described in this application may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, Smart terminals such as wearable devices, smart bracelets, and pedometers, as well as fixed terminals such as digital TVs and desktop computers.
  • PDA Personal Digital Assistant
  • PMP portable media players
  • navigation devices Smart terminals such as wearable devices, smart bracelets, and pedometers
  • Smart terminals such as wearable devices, smart bracelets, and pedometers
  • fixed terminals such as digital TVs and desktop computers.
  • a mobile terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
  • FIG. 1 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application.
  • the mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, an A /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components.
  • RF Radio Frequency, radio frequency
  • the radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station.
  • 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.
  • the radio frequency unit 101 can also communicate with the network and other devices through wireless communication.
  • the above wireless communication can 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, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, 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), TDD-LTE (Time Division Duplexing-Long Term Evolution, time-division duplex long-term evolution) and 5G, etc.
  • GSM Global System of Mobile communication, Global System for Mobile Communications
  • GPRS General Packet Radio Service
  • CDMA2000 Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access, Time Division Synchro
  • WiFi is a short-distance wireless transmission technology.
  • the mobile terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access.
  • Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the mobile terminal, and can be completely omitted as required without changing the essence of the invention.
  • the audio output unit 103 can store the audio received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 when the mobile terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like.
  • the audio data is converted into an audio signal and output as sound.
  • the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 may include a speaker, a buzzer, and the like.
  • the A/V input unit 104 is used to receive audio or video signals.
  • the A/V input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or The image data of the video is processed.
  • 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 media) or sent 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 operating modes, and can process such sound as audio data.
  • the processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in case of a phone call mode.
  • the microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
  • the mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the mobile terminal 100 moves to the ear. panel 1061 and/or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
  • the display unit 106 is used to display information input by the 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 (Organic Light-Emitting Diode, OLED), or the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 107 may include a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it.
  • the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072 .
  • other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
  • the touch panel 1071 may cover the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event.
  • the corresponding visual output is provided on the display panel 1061 .
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated.
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100 .
  • an external device 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 with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more.
  • the interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
  • the memory 109 can be used to store software programs as well as various data.
  • the memory 109 can mainly include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one function required application program (such as a sound playback function, an image playback function, etc.) etc.
  • the storage data area can be Store data (such as audio data, phone book, etc.) created according to the use of the mobile phone.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor.
  • the application processor mainly processes operating systems, user interfaces, and application programs, etc.
  • the demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
  • the mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components.
  • a power supply 111 (such as a battery) for supplying power to various components.
  • the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
  • the mobile terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
  • the following describes the communication network system on which the mobile terminal of the present application is based.
  • FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application.
  • the communication network system is an LTE system of general mobile communication technology.
  • 201 E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
  • E-UTRAN Evolved UMTS Terrestrial Radio Access Network
  • EPC Evolved Packet Core, Evolved Packet Core Network
  • the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
  • E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on.
  • the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
  • a backhaul for example, X2 interface
  • EPC203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data Network Gateway) 2035 and PCRF (Policy and Charging Rules Function, Policy and Charging Functional Entity) 2036, etc.
  • MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management.
  • HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information about service features and data rates.
  • PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
  • the IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
  • IMS IP Multimedia Subsystem, IP Multimedia Subsystem
  • LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems.
  • the network system (such as 5G), etc., is not limited here.
  • FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in the present application.
  • the controller 140 includes: a memory 1401 and a processor 1402, the memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1403 , and the communication interface 1403 may be connected to the processor 1402 through a bus 1404 .
  • the processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140 .
  • FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in the present application.
  • the network node 150 includes: a memory 1501 and a processor 1502, the memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the head node in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1503 , and the communication interface 1503 may be connected to the processor 1502 through a bus 1504 .
  • the processor 1502 can control the communication interface 1503 to realize the functions of receiving and sending of the network node 150 .
  • FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in the present application.
  • the network node 160 includes: a memory 1601 and a processor 1602, the memory 1601 is used to store program instructions, and the processor 1602 is used to call the program instructions in the memory 1601 to execute the steps performed by the intermediate node and the tail node in the first method embodiment above, The implementation principles and beneficial effects are similar, and will not be repeated here.
  • the foregoing controller further includes a communication interface 1603 , and the communication interface 1603 may be connected to the processor 1602 through a bus 1604 .
  • the processor 1602 can control the communication interface 1603 to realize the functions of receiving and sending of the network node 160 .
  • FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in the present application.
  • the controller 170 includes: a memory 1701 and a processor 1702, the memory 1701 is used to store program instructions, and the processor 1702 is used to call the program instructions in the memory 1701 to execute the steps performed by the controller in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in the present application.
  • the network node 180 includes: a memory 1801 and a processor 1802, the memory 1801 is used to store program instructions, and the processor 1802 is used to invoke the program instructions in the memory 1801 to execute the steps performed by the head node in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
  • the above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium.
  • the above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps.
  • a computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • DSL digital subscriber line
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
  • FIG. 8 is a schematic flowchart of an image processing method according to a first embodiment.
  • the image processing method includes the following steps:
  • the target object is an object whose object distance is greater than a preset distance.
  • the status information includes display brightness and/or a ratio coefficient of light and dark.
  • this embodiment can be applied to shooting objects whose object distance is greater than a preset distance, that is, shooting distant objects.
  • the target object can be the moon, distant birds, distant mountains and rivers, and distant buildings, etc.
  • To obtain the state information of the target object in the preview interface first collect the image of the preview interface, and then perform identification and analysis on the target object in the image to obtain the display brightness and/or light-dark ratio coefficient of the target object.
  • the acquisition of the light-dark ratio coefficient of the target object can be obtained directly based on the target object displayed in the image to determine the light-dark ratio curve of the target object, or obtained by obtaining the pixel value of the target object displayed in the image greater than or equal to the first preset
  • the first number of pixel values (indicating bright pixels), the second number of pixel values smaller than the first preset pixel value (indicating dark pixels), and the ratio of the first number to the second number is obtained to determine the target object
  • the light and dark scale factor The first number of pixel values (indicating bright pixels), the second number of pixel values smaller than the first preset pixel value (indicating dark pixels), and the ratio of the first number to the second number is obtained to determine the target object The light and dark scale factor.
  • FIG. 9 is a schematic flowchart of adjusting the display information of an image in the image processing method according to the first embodiment, and step S20 includes the following steps:
  • the target state information that does not meet the corresponding preset shooting conditions is determined from the state information, such as display brightness, light-dark scale coefficient or display brightness and light-dark scale coefficient, and adjusted according to the target state information adjust the display information of the target object in a targeted manner based on the target state information that the target object in the image does not meet the shooting conditions, adjust the display information of the target object to optimize the display of the target object, and/or, according to the target state information
  • the determined adjustment manner adjusts the display information of the image, so as to optimize the display of the target object by adjusting the display information of the image.
  • the preset shooting condition can be at least one of the following conditions:
  • the display brightness of the target object is less than or equal to a preset brightness
  • the light-dark scale factor of the target object is less than or equal to a preset scale factor.
  • step S21 includes:
  • the target state information that does not meet the corresponding preset shooting conditions in the state information is the display brightness, reduce the overall display brightness of the image, and/or reduce the display brightness of the target object in the image ;
  • the target state information that does not meet the corresponding preset shooting conditions in the state information is the light-dark scale coefficient
  • the target object graph is acquired from the library, and the target object in the image is replaced according to the target object graph.
  • the target status information that does not meet the corresponding preset shooting conditions in the status information is the display brightness
  • FIG. 10 is an interface diagram for adjusting the light and dark scale coefficient of the image processing method according to the first embodiment of the present invention.
  • picture A is the original image
  • picture B is the image after reducing the scale factor of the target object and/or the image
  • picture B is the displayed image after the target object map replaces the target object in the image.
  • acquiring the status information of the target object in the preview interface may be understood as acquiring the status information of the target object in the image of the camera preview interface.
  • acquiring the status information of the target object in the image of the camera preview interface may be acquiring the status information of the target object in the image of the preview interface of the camera during shooting.
  • step S20 further include:
  • a shooting instruction is detected, and an image of the preview interface is acquired.
  • a shooting operation may be performed on the image after the display information is adjusted to obtain an image after the display information is adjusted , enabling higher quality images to be captured.
  • the display information of the target object is automatically adjusted through the display state to optimize The target object is displayed, and/or, the display information of the image is automatically adjusted through the display state to optimally display the target object and the entire image, thereby achieving the purpose of improving the shooting quality of the image.
  • FIG. 11 is a schematic flowchart of an image processing method according to a second embodiment.
  • step S20 it also includes:
  • the signal that the background of the target object is replaced can be obtained by receiving an instruction to replace the background of the target object on the preview interface or detecting a touch gesture with the background of the replaced target object.
  • step S30 includes:
  • the current environment information is obtained, and a background image for replacing the background of the target object is obtained from the preset gallery according to the environment information;
  • the environmental information may include at least one of location information, time information, and solar term information.
  • the current location information can be located by GPS, so as to determine the current city, scenic spot (seaside, mountains, grassland%) and so on through the location information.
  • a background image for replacing the background of the target object is obtained from a preset gallery according to the location information.
  • a landmark map or a scenic spot map of a location corresponding to the location information may be obtained as a background image for replacing the background of the target object.
  • FIG. 12 is an interface diagram of changing the background of the target object in the image processing method according to the second embodiment of the present invention.
  • Figure B is an image after reducing the scale factor of the target object and/or the image
  • Figure C is an image after changing the background of the target object based on Figure B.
  • the current date can be obtained directly, based on the current date to determine whether it is a holiday or is about to enter a holiday, holidays such as Mid-Autumn Festival, Spring Festival, National Day, Dragon Boat Festival, or based on the current date to determine the solar term Or about to enter solar terms, solar terms such as Lichun, Rain, Jingzhe, Vernal Equinox, Qingming, Grain Rain, Lixia, Xiaoman, Grain in Ear, Summer Solstice, Slight Heat, Great Heat, Beginning of Autumn, End of Heat, White Dew, Autumnal Equinox, Cold Dew, Frost's Descent, Lidong, Light Snow, Heavy Snow, Winter Solstice , Minor Cold, Great Cold. Further, the background image replacing the background of the target object is obtained from the preset library according to the holiday and/or the solar terms.
  • the region where the background of the target object is located is segmented to preserve the display effect of the target object.
  • the target object is the moon
  • the non-moon background area is segmented, the moon effect is preserved, and the non-moon background area supports automatic matching and user-defined effect replacement, such as urban architectural style, sea grassland style, skyline Starry sky style and festive atmosphere style, etc., to achieve the purpose of enhancing the scene effect displayed by the moon in the image.
  • the background image of the target object in the image on the preview interface is updated according to the target background image, and the overall display of the image can be optimized by fusing the target background image and the target object, thereby improving the display quality of the image.
  • the background image of the target object in the image of the preview interface can be updated according to the background image of the target obtained from the gallery.
  • the background image makes the shooting function more intelligent and diversified, and at the same time increases the fun of shooting and improves the shooting experience.
  • FIG. 13 is a schematic flowchart of an image processing method according to a third embodiment.
  • the method also includes the following steps:
  • step S60 when the object on the preview interface is the target object, execute step S10;
  • step S10 and subsequent step S20 By identifying the object in the image of the preview interface to determine that the object in the preview interface is the target object, perform step S10 and subsequent step S20 to optimize the display of the target object in the image, and/or optimize the display of the target object and The entire image; when it is determined that the object in the preview interface is not the target object, the vector image of the target object obtained from the preset gallery will be displayed on the image to make the shooting function more intelligent and diverse, and at the same time increase the fun of shooting. Improved shooting experience.
  • step S70 includes:
  • the object in the preview interface When the object in the preview interface is not the target object, obtain the vector diagram of the target object from a preset gallery, and output a selection interface of the vector diagram of the target object;
  • the target vector diagram is determined based on the selection instruction received by the selection interface, and the target vector diagram is displayed in the target display area of the image.
  • the target vector diagram is selected from the vector diagrams corresponding to the target object based on the selection interface , and display the target vector diagram at the target display position of the image to obtain the image containing the target object required by the user, making the shooting function more intelligent and diversified.
  • step S70 includes:
  • the environmental information may include at least one of location information, time information, and solar term information.
  • different position information, different time information, or different solar term information display different state information on the moon.
  • the current location information can be located by GPS, so as to determine the current city, scenic spot (seaside, mountains, grassland%) and so on through the location information.
  • the vector diagram of the replacement target object from the preset gallery according to the location information. For example, the vector diagram of the target object determined by the viewing angle of the location corresponding to the location information to the target object can be obtained as the vector diagram of the replacement target object. .
  • the current date can be obtained directly, based on the current date to determine whether it is a holiday or is about to enter a holiday, holidays such as Mid-Autumn Festival, Spring Festival, National Day, Dragon Boat Festival, or based on the current date to determine the solar term Or it is about to enter the solar terms, such as Lichun, Yushui, Jingzhe, Vernal Equinox, Qingming, Grain Rain, Lixia and Xiaoman. Then, according to the holidays and/or solar terms, the vector diagram of the substituting target object is obtained from the preset library.
  • the display integrity of the moon at different time information is different, for example, in the middle of the month, the moon is presented as a full moon, and at the beginning or end of the month, the moon is presented as a crescent or half moon.
  • the vector graphics of the target object in the preset gallery can be updated.
  • step S70 includes:
  • the object in the preview interface When the object in the preview interface is not the target object, then obtain the display information of the image in the preview interface, obtain the vector diagram of the target object from a preset gallery according to the display information, and store the obtained image
  • the target vector diagram is displayed in the target display area of the image; or,
  • the object in the preview interface When the object in the preview interface is not the target object, obtain the vector image to be displayed of the target object from the preset gallery, obtain the display information of the image in the preview interface, and according to the display information The display information of the vector diagram to be displayed is adjusted to obtain the vector diagram of the target object, and the target vector diagram is displayed in the target display area of the image.
  • the vector diagram of the target object is displayed in the target display area of the image.
  • the display information of the image on the preview interface such as display brightness
  • the scale factor of light and shade which can be adapted to the display information of the image to obtain the vector diagram of the target object from the preset gallery, so that the vector diagram of the target object can be directly displayed in the target display area in the image; or, the vector image of the target object can be obtained first
  • the vector diagram to be displayed is then adjusted according to the display information of the image, so that the vector diagram to be displayed after the display information is adjusted matches the display information of the image.
  • step S70 includes:
  • the object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, obtain the vector diagram of the target object from the preset gallery, and display the vector diagram on the the target display area of the said image; or,
  • the object on the preview interface is not the target object and an instruction to add the target object is received, obtain the vector diagram of the target object from a preset gallery, and display the vector diagram on the The target display area for the image.
  • the current shooting mode is determined.
  • the shooting mode is the moon shooting mode, that is, the remote shooting mode
  • the vector diagram of the target object is obtained, and the vector diagram is displayed in the target display area in the image; or, according to the user Requirements:
  • the identifier of the shooting mode can be preset to determine the current shooting mode. For example, when the identification value of the identifier is "00", it indicates that the current shooting mode is the normal shooting mode, that is, in the preview interface When the object is not the target object, the vector map of the target object is not automatically added for display; and/or, when the value of the identifier is "11", it indicates that the current shooting mode is the moon shooting mode, that is, in the preview interface
  • the vector diagram of the target object can be automatically added for display, for example, the vector diagram of the target object is obtained from the preset gallery, and the vector diagram is displayed in the target display area of the image.
  • the vector diagram of the target object is obtained from the preset gallery, and a selection interface of the vector diagram of the target object is output, and the target vector diagram is determined based on the selection instruction received in the selection interface , and display the target vector diagram in the target display area of the image, through the output selection interface of the vector diagram of the target object, by visualizing the vector diagram of the target object, according to the actual needs of the user, based on the selection interface from the target object corresponding Select the target vector map from the vector map, and display the target vector map at the target display position of the image to obtain the image containing the target object required by the user, making the shooting function more intelligent and diversified.
  • the object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, acquiring current environmental information;
  • step S10 and subsequent step S20 to optimize the display of the target object in the image , and/or, optimize the display of the target object and the entire image; when it is determined that the object in the preview interface is not the target object, display the vector map of the target object obtained from the preset gallery on the image, so that the shooting function is more intelligent and diverse At the same time, it increases the fun of shooting and improves the shooting experience.
  • FIG. 14 is a schematic flowchart of an image processing method according to a fourth embodiment.
  • the image processing method includes:
  • the display information includes the display brightness and/or the ratio factor of light and dark of the image.
  • the image on the preview interface may be collected first, and then the image may be identified and analyzed to obtain the display brightness and/or the ratio coefficient of light and dark of the image.
  • the target object to be displayed is the moon.
  • the light-dark ratio coefficient of the acquired image can be obtained directly based on the target object displayed in the image to determine the light-dark ratio curve of the target object, or obtained by obtaining a pixel value in the image greater than or equal to the first preset pixel value (indicating bright The first number of pixels), the second number of pixels whose value is smaller than the first preset pixel value (indicating dark pixels), and the ratio of the first number to the second number is obtained to determine the light and dark scale factor of the image.
  • the target object to be displayed is acquired according to the display information, and the target object whose display information is greater than or equal to the image may be directly acquired to be determined as the target object to be displayed.
  • the display information is the display brightness of the image
  • the target object greater than or equal to the display brightness of the image may be obtained from the preset gallery to determine the target object to be displayed; the display brightness of the target object and The difference between the display brightness of the image, and obtain the target object whose difference is greater than the first preset difference and the difference is smaller than the second preset difference from the preset gallery, so as to determine the target object to be displayed
  • the first preset difference is smaller than the second preset difference, so as to control the difference between the display brightness of the target object and the display brightness of the image within a reasonable range, and avoid causing the target object to be displayed to display
  • the target object is too prominent compared to the image, such as overexposure, resulting in poor overall display effect of the image, so that when the target object to be
  • the target object that is greater than or equal to the light and shade scale factor of the image can be obtained from the preset library to determine the target object to be displayed, so as to have light and shade texture details that match the image
  • the display effect of the target object and the entire image can be optimized to obtain a high-quality image
  • the difference between the light and dark scale coefficient of the target object and the light and dark scale coefficient of the image can also be obtained,
  • the difference between the light and dark scale coefficients is controlled within a reasonable range, so as to avoid the target object being too prominent when the target object to be displayed is displayed in the target display area of the image, resulting in poor overall display effect of the image.
  • the first and dark scale coefficients is controlled within a reasonable range, so as to avoid the target object being too prominent when the
  • the display information is the display brightness of the image and the light-dark scale factor
  • the object whose light-dark scale factor is greater than or equal to the light-dark scale factor of the image and whose display brightness is greater than or equal to the image display brightness can be obtained from the preset library.
  • the object is determined as the target object to be displayed, so as to further optimize the display effect of the target object and the entire image, and obtain a high-quality image.
  • step S200 in order to increase the fun of camera shooting and enrich the functions of camera shooting, step S200 includes:
  • the display state of the moon includes a crescent state, a half moon state, and a full moon state.
  • the target display area of each target object can be determined according to the corresponding display states of the at least two target objects. For example, when the target object is the moon, it can be determined according to the moon's Different display states determine the target display area of the moon respectively.
  • the display areas of the moon in different display states can be determined according to the display order of crescent state, half moon state and full moon state, so as to understand the moon from crescent state to full moon on the image
  • the state change process increases the fun of camera shooting and enriches the functions of camera shooting.
  • the moon phases based on the moon can be divided into 8 types: new moon (new moon), crescent moon (waning moon), first quarter moon, gibbous moon, full moon (full moon), gibbous moon, and last quarter moon As well as the waning moon (crescent crescent moon), the corresponding display state of January can be set in advance.
  • step S300 it also includes:
  • the object on the preview interface includes the target object
  • acquire the displayed area of the target object to determine it as the target display area of the target object.
  • the image of the preview interface By identifying the object in the image of the preview interface, it is clear whether the image contains the target object. If the object of the preview interface includes the target object, in order to avoid displaying at least two identical target objects in the image, for example, two moons are displayed in the image, The area displayed by the target object in the image can be obtained to determine the area as the target display area of the target object, so that when the target object to be displayed is displayed in the target display area, the target object to be displayed can cover the target object contained in the image target object so that only one target object is displayed in the image.
  • the target display area can be determined according to the confirmation instruction based on the confirmation instruction received by the preview interface, so that the target display area can be selectively determined according to the user's needs, so as to The purpose of displaying the target object in the target display area.
  • the display confirmation instruction may be triggered based on a user's touch operation corresponding to the display confirmation instruction on the preview interface.
  • step S300 further include:
  • the target object and the image are fused, so that after the fused image is processed by denoising, registration, etc., a clearer and natural image is obtained, and the quality of the image is improved.
  • step S300 further include:
  • an object to be adjusted in the image on the preview interface may be determined according to the adjustment instruction, and a display position of the object is adjusted based on the adjustment instruction.
  • the object includes a target object.
  • an adjustment command can be used to adjust the display area of the object in the image, such as the target object.
  • the object to be adjusted in the image of the preview interface is determined according to the adjustment instruction, and the object to be adjusted in the image of the preview interface can be determined by clicking the object in the image or long pressing the image in the image to determine the object to be adjusted in the image of the preview interface.
  • the specific implementation is not limited.
  • the display position of the object is adjusted based on the adjustment instruction.
  • the adjustment instruction is triggered by a long-press touch operation, long-press the selected object and move the object to the final displayed target display area to achieve the display of the adjusted object.
  • the purpose of the area when the adjustment instruction is triggered by the click operation, the object selected by the click operation, and the target display area finally displayed by the object is determined by the click operation, and then the object is displayed on the target display area determined by the click operation
  • the target display area is not limited in this embodiment.
  • the target object to be displayed is obtained according to the display information of the image in the preview interface, and the target object is displayed in the target display area of the image, so as to increase the fun of camera shooting and enrich the camera shooting experience. purpose of the function.
  • the embodiment of the present application also provides a smart terminal, the smart terminal includes a memory and a processor, and an image processing program is stored in the memory, and when the image processing program is executed by the processor, the steps of the image processing method in any of the foregoing embodiments are implemented.
  • An embodiment of the present application further provides a storage medium, on which an image processing program is stored, and when the image processing program is executed by a processor, the steps of the image processing method in any of the foregoing embodiments are implemented.
  • An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
  • the embodiment of the present application also provides a chip, including a memory and a processor.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
  • Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
  • the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
  • a computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • Usable media may be magnetic media, (eg, floppy disk, memory disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.

Abstract

Disclosed in the present application are an image processing method, an intelligent terminal and a storage medium. The method comprises: acquiring state information of a target object in a preview interface; and adjusting display information of the target object according to the state information of the target object, and/or adjusting display information of an image according to the state information of the target object. The method in the present invention may optimize the displaying of the target object in the image, and/or optimize the displaying of the target object and the whole image, thereby achieving the purpose of improving the shooting quality of the image.

Description

图像处理方法、智能终端及存储介质Image processing method, intelligent terminal and storage medium 技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法、智能终端及存储介质。The present application relates to the technical field of image processing, and in particular to an image processing method, a smart terminal and a storage medium.
背景技术Background technique
通过智能终端可对近景进行拍摄,可对远景进行拍摄。而当拍摄者通过智能终端如手机对远景进行拍摄时,如通过手机拍摄月亮,大多数的拍摄者往往依据自己的视觉感受调整整个拍摄画面的亮度,导致最终获得的图片拍摄质量较差,如拍摄的图片过于曝光。The close-up can be shot through the smart terminal, and the distant view can be shot. And when the photographer uses a smart terminal such as a mobile phone to shoot a distant view, such as shooting the moon through a mobile phone, most photographers often adjust the brightness of the entire shooting picture according to their own visual experience, resulting in poor quality of the final picture taken, such as The captured picture is overexposed.
在构思及实现本申请过程中,发明人发现至少存在如下问题:拍摄者根据的视觉感受调整整个拍摄画面的亮度,使得拍摄获得的图片质量较差。During the process of conceiving and implementing the present application, the inventor found at least the following problems: the photographer adjusts the brightness of the entire shooting picture according to his visual experience, which makes the quality of the picture obtained by shooting poor.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The foregoing description is provided to provide general background information and does not necessarily constitute prior art.
技术解决方案technical solution
本申请的主要目的在于提供一种图像处理方法、智能终端及存储介质,旨在解决拍摄者根据的视觉感受调整整个拍摄画面的亮度,使得拍摄获得的图片质量差的问题。The main purpose of this application is to provide an image processing method, smart terminal and storage medium, aiming to solve the problem that the photographer adjusts the brightness of the entire shooting picture according to his visual experience, resulting in poor quality of the picture obtained by shooting.
为实现上述目的,本申请提供的一种图像处理方法,所述图像处理方法包括以下步骤:In order to achieve the above object, the application provides an image processing method, the image processing method includes the following steps:
S10,获取预览界面中目标对象的状态信息;S10, acquiring status information of the target object in the preview interface;
S20,根据所述目标对象的状态信息调整所述目标对象的显示信息,和/或根据所述目标对象的状态信息调整图像的显示信息。S20. Adjust display information of the target object according to the state information of the target object, and/or adjust display information of an image according to the state information of the target object.
可选地,S20步骤包括:Optionally, the S20 step includes:
S21,获取所述状态信息中不满足对应的预设拍摄条件的目标状态信息,并根据所述目标状态信息确定调整方式;S21. Obtain target state information that does not meet the corresponding preset shooting conditions in the state information, and determine an adjustment method according to the target state information;
S22,根据所述调整方式调整所述目标对象的显示信息,和/或,根据所述调整方式调整所述图像的显示信息。S22. Adjust the display information of the target object according to the adjustment manner, and/or adjust the display information of the image according to the adjustment manner.
可选地,预设拍摄条件包括以下条件中的至少一个:Optionally, the preset shooting conditions include at least one of the following conditions:
在所述目标状态信息为显示亮度时,所述目标对象的显示亮度小于或者等于预设亮度;When the target state information is display brightness, the display brightness of the target object is less than or equal to a preset brightness;
在所述目标状态信息为明暗比例系数时,所述目标对象的明暗比例系数小于或者等于预设比例系数。When the target state information is a light-dark scale factor, the light-dark scale factor of the target object is less than or equal to a preset scale factor.
可选地,S21步骤包括以下至少一种:Optionally, step S21 includes at least one of the following:
在所述状态信息中不满足对应的预设拍摄条件的目标状态信息是所述显示亮度时,降低所述图像的整体显示亮度,和/或,降低所述图像中所述目标对象的显示亮度;When the target state information that does not meet the corresponding preset shooting conditions in the state information is the display brightness, reduce the overall display brightness of the image, and/or reduce the display brightness of the target object in the image ;
在所述状态信息中不满足对应预设拍摄条件的目标状态信息是所述明暗比例系数时,降低所述目标对象和/或所述图像的明暗比例系数,或者,从预设图库中获取目标对象图,并根据所述目标对象图替换所述图像中的所述目标对象。When the target state information that does not meet the corresponding preset shooting conditions in the state information is the light-dark scale factor, reduce the light-dark scale factor of the target object and/or the image, or obtain the target from a preset gallery object graph, and replace the target object in the image according to the target object graph.
可选地,步骤S20之后,还包括以下步骤:Optionally, after step S20, the following steps are also included:
S30,检测到更换所述目标对象背景的信号时,从预设图库中获取目标背景图;S30, when a signal for changing the background of the target object is detected, acquire the target background image from the preset gallery;
S40,根据所述目标背景图更新所述预览界面的图像中的所述目标对象的背景图,并融合所述目标背景图以及所述目标对象。S40. Update the background image of the target object in the image of the preview interface according to the target background image, and fuse the target background image and the target object.
可选地,S30步骤包括:Optionally, step S30 includes:
检测到更换所述目标对象背景的信号时,获取当前的环境信息,并根据所述环境信息从所述预设图库中获取替换所述目标对象背景的背景图;或者,When a signal to replace the background of the target object is detected, the current environment information is obtained, and a background image for replacing the background of the target object is obtained from the preset gallery according to the environment information; or,
在所述状态信息均满足对应的所述预设拍摄条件时,且检测到更换所述目标对象背景的信号时,输出替换所述目标对象背景的背景图的选择界面,根据所述选择界面接收到的选择指令确定替换所述目标对象背景的背景图。When the state information all satisfies the corresponding preset shooting conditions, and when a signal to replace the background image of the target object is detected, output a selection interface for replacing the background image of the background image of the target object, and receive according to the selection interface The selected command to determine the background image that replaces the background of the target object.
可选地,方法还包括以下步骤:Optionally, the method also includes the following steps:
S50,识别所述预览界面的图像中的对象;S50, identifying an object in the image of the preview interface;
S60,在所述预览界面的所述对象是所述目标对象时,执行S10步骤;和/或,S60, when the object on the preview interface is the target object, execute step S10; and/or,
S70,在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。S70. When the object on the preview interface is not the target object, acquire a vector diagram of the target object from a preset gallery, and display the vector diagram in a target display area of the image.
可选地,S70步骤包括以下至少一种:Optionally, step S70 includes at least one of the following:
在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并输出所述目标对象的矢量图的选择界面,基于所述选择界面接收到的选择指令确定目标矢量图,并将所述目标矢量图显示于所述图像的目标显示区域;When the object in the preview interface is not the target object, obtain the vector diagram of the target object from the preset gallery, and output the selection interface of the vector diagram of the target object, based on the selection interface received The selection instruction determines the target vector diagram, and displays the target vector diagram in the target display area of the image;
在所述预览界面的所述对象不是所述目标对象时,获取当前的环境信息,根据所述环境信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域;When the object on the preview interface is not the target object, obtain current environment information, obtain a vector diagram of the target object from a preset gallery according to the environment information, and display the vector diagram on the the target display area of the image;
在所述预览界面的所述对象不是所述目标对象时,则获取所述预览界面的图像的显示信息,根据所述显示信息从预设图库中获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域,或者,在所述预览界面的所述对象不是所述目标对象时,则从预设图库中获取所述目标对象的待显示矢量图,获取所述预览界面的图像的显示信息,并根据所述显示信息调节所述待显示矢量图的显示信息,以获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域;When the object in the preview interface is not the target object, then obtain the display information of the image in the preview interface, obtain the vector diagram of the target object from a preset gallery according to the display information, and store the obtained image The target vector diagram is displayed in the target display area of the image, or, when the object in the preview interface is not the target object, the vector diagram to be displayed of the target object is obtained from the preset gallery, and the The display information of the image of the preview interface, and adjust the display information of the vector diagram to be displayed according to the display information, so as to obtain the vector diagram of the target object, and display the target vector diagram on the image target display area;
在所述预览界面的所述对象不是所述目标对象,且在当前的拍摄模式为月亮拍摄模式时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域;The object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, obtain the vector diagram of the target object from the preset gallery, and display the vector diagram on the the target display area of the image;
在所述预览界面的所述对象不是所述目标对象,且接收到所述目标对象的添加指令时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。When the object on the preview interface is not the target object and an instruction to add the target object is received, obtain a vector diagram of the target object from a preset gallery, and display the vector diagram on the target object The target display area of the above image.
本申请还提供一种图像处理方法,所述图像处理方法包括以下步骤:The present application also provides an image processing method, the image processing method comprising the following steps:
S100,获取预览界面的图像的显示信息;S100, acquiring the display information of the image on the preview interface;
S200,根据所述显示信息获取待显示的目标对象;S200. Acquire a target object to be displayed according to the display information;
S300,将所述目标对象显示于所述图像的目标显示区域。S300. Display the target object in a target display area of the image.
可选地,S300步骤之前,包括:Optionally, before step S300, including:
获取所述显示信息大于或者等于图像的显示信息的目标对象,以确定为待显示的目标对象;Obtain a target object whose display information is greater than or equal to the display information of the image, so as to determine it as the target object to be displayed;
识别所述预览界面的图像中的对象;identifying objects in the image of the preview interface;
在所述预览界面的所述对象包括所述目标对象时,获取所述目标对象所显示的区域,以确定为所述待显示目标对象的所述目标显示区域。When the object on the preview interface includes the target object, acquire the displayed area of the target object to determine the target display area of the target object to be displayed.
可选地,S300步骤之后,还包括:Optionally, after step S300, further include:
在接收到调整指令时,根据调整指令确定预览界面的图像中待调整的对象,并基于所述调整指令调整所述对象的显示位置,其中,所述对象包括所述目标对象。When an adjustment instruction is received, an object to be adjusted in the image on the preview interface is determined according to the adjustment instruction, and a display position of the object is adjusted based on the adjustment instruction, wherein the object includes the target object.
本申请还提供一种图像处理终端,所述图像处理终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的图像处理程序,所述图像处理程序被所述处理器执行时实现如上述的图像处理方法的步骤。The present application also provides an image processing terminal. The image processing terminal includes: a memory, a processor, and an image processing program stored in the memory and operable on the processor. The image processing program is executed by the When executed by the processor, the steps of the above-mentioned image processing method are realized.
本申请还提供一种存储介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的图像处理方法的步骤。The present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are implemented.
本申请获取预览界面中目标对象的状态信息;根据所述目标对象的状态信息调整所述目标对象的显示信息,和/或根据所述目标对象的状态信息调整所述图像的显示信息。通过上述技术方案,可以实现优化目标对象显示,和/或,优化目标对象与整个图像显示,从而实现提高图像的拍摄质量的功能,解决拍摄者根据的视觉感受调整整个拍摄画面的亮度,使得拍摄获得的图片质量较差问题,进而提升了用户体验。The present application obtains the state information of the target object in the preview interface; adjusts the display information of the target object according to the state information of the target object, and/or adjusts the display information of the image according to the state information of the target object. Through the above technical solution, it is possible to optimize the display of the target object, and/or optimize the display of the target object and the entire image, thereby realizing the function of improving the shooting quality of the image, and solving the problem of adjusting the brightness of the entire shooting picture according to the visual experience of the photographer, so that the shooting The quality of the obtained pictures is poor, which in turn improves the user experience.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。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 accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the Under the premise, other drawings can also be obtained based on these drawings.
图1为实现本申请各个实施例的一种智能终端的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
图2为本申请实施例提供的一种通信网络系统架构图;FIG. 2 is a system architecture diagram of a communication network provided by an embodiment of the present application;
图3是根据第一实施例示出的控制器140的硬件结构示意图;Fig. 3 is a schematic diagram of the hardware structure of the controller 140 shown according to the first embodiment;
图4是根据第一实施例示出的网络节点150的硬件结构示意图;Fig. 4 is a schematic diagram of a hardware structure of a network node 150 shown according to the first embodiment;
图5是根据第一实施例示出的网络节点160的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of a network node 160 shown according to the first embodiment;
图6是根据第二实施例示出的控制器170的硬件结构示意图;FIG. 6 is a schematic diagram of the hardware structure of the controller 170 shown according to the second embodiment;
图7是根据第二实施例示出的网络节点180的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a network node 180 according to a second embodiment;
图8是根据第一实施例示出的图像处理方法的流程示意图;Fig. 8 is a schematic flowchart of an image processing method according to the first embodiment;
图9是根据第一实施例示出的图像处理方法中调整图像的显示信息的流程示意图;Fig. 9 is a schematic flowchart of adjusting display information of an image in the image processing method shown according to the first embodiment;
图10为本发明根据第一实施例示出的图像处理方法的调节明暗比例系数的界面图;Fig. 10 is an interface diagram of adjusting the light-dark ratio coefficient of the image processing method according to the first embodiment of the present invention;
图11是根据第二实施例示出的图像处理方法的流程示意图;Fig. 11 is a schematic flowchart of an image processing method according to a second embodiment;
图12为本发明根据第二实施例示出的图像处理方法的更换目标对象的背景的界面图;Fig. 12 is an interface diagram of changing the background of the target object in the image processing method according to the second embodiment of the present invention;
图13是根据第三实施例示出的图像处理方法的流程示意图;Fig. 13 is a schematic flowchart of an image processing method according to a third embodiment;
图14是根据第四实施例示出的图像处理方法的流程示意图。Fig. 14 is a schematic flowchart of an image processing method according to a fourth embodiment.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
本申请的实施方式Embodiment of this application
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the statement "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element. In addition, different implementations of the present application Components, features, and elements with the same name in the example may have the same meaning, or may have different meanings, and the specific meaning shall be determined based on the explanation in the specific embodiment or further combined with the context in the specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。本申请使用的术语“或”、“和/或”、“包括以下至少一个”等可被解释为包括性的,或意味着任一个或任何组合。例如,“包括以下至少一个:A、B、C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”,再如,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination". 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 should be further understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not exclude one or more other features, steps, operations, The existence, occurrence or addition of an element, component, item, species, and/or group. The terms "or", "and/or", "comprising at least one of" and the like used in this application may be interpreted as inclusive, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C", another example, " A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C". Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart in the embodiment of the present application are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential Instead, it may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".
需要说明的是,在本文中,采用了诸如S10、S20等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S20后执行S10等,但这些均应在本申请的保护范围之内。It should be noted that, in this article, step codes such as S10 and S20 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order. Those skilled in the art may, during specific implementation, S20 will be executed first, followed by S10, etc., but these should be within the scope of protection of this application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或者“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或者“单元”可以混合地使用。In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
智能终端可以以各种形式来实施。例如,本申请中描述的智能终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等智能终端,以及诸如数字TV、台式计算机等固定终端。Smart terminals can be implemented in various forms. For example, the smart terminals described in this application may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, Smart terminals such as wearable devices, smart bracelets, and pedometers, as well as fixed terminals such as digital TVs and desktop computers.
后续描述中将以移动终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。In the subsequent description, a mobile terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
请参阅图1,其为实现本申请各个实施例的一种移动终端的硬件结构示意图,该移动终端100可以包括:RF(Radio Frequency,射频)单元101、WiFi模块102、音频输出单元103、A/V(音频/视频)输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图1中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1 , which is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application. The mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, an A /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 1 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than those shown in the figure, or combine some components, or different components layout.
下面结合图1对移动终端的各个部件进行具体的介绍:Each component of the mobile terminal is specifically introduced below in combination with FIG. 1:
射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将基站的下行信息接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(Frequency Division Duplexing-Long Term Evolution,频分双工长期演进)、TDD-LTE(Time Division Duplexing-Long Term Evolution,分时双工长期演进)和5G等。The radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station. Generally, 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 can also communicate with the network and other devices through wireless communication. The above wireless communication can 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, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, 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), TDD-LTE (Time Division Duplexing-Long Term Evolution, time-division duplex long-term evolution) and 5G, etc.
WiFi属于短距离无线传输技术,移动终端通过WiFi模块102可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块102,但是可以理解的是,其并不属于移动终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102, which provides users with wireless broadband Internet access. Although Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the mobile terminal, and can be completely omitted as required without changing the essence of the invention.
音频输出单元103可以在移动终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将射频单元101或WiFi模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103可以包括扬声器、蜂鸣器等等。The audio output unit 103 can store the audio received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 when the mobile terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like. The audio data is converted into an audio signal and output as sound. Also, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
A/V输入单元104用于接收音频或视频信号。A/V输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或WiFi模块102进行发送。麦克风1042可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风1042接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。麦克风1042可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 104 is used to receive audio or video signals. The A/V input unit 104 may include a graphics processing unit (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 is used for still pictures or The image data of the video is processed. 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 media) or sent 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 operating modes, and can process such sound as audio data. The processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
移动终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。可选地,光传感器包括环境光传感器及接近传感器,可选地,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the mobile terminal 100 moves to the ear. panel 1061 and/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the 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 (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。可选地,用户输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置和触摸控制器两个部分。可选地,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。可选地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种,具体此处不做限定。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Optionally, other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
可选地,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1中,触控面板1071与显示面板1061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现移动终端的输入和输出功能,具体此处不做限定。Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event. The corresponding visual output is provided on the display panel 1061 . Although in FIG. 1, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元108用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端100和外部装置之间传输数据。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, an external device 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 with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,可选地,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a storage program area and a storage data area. Optionally, the storage program area can store an operating system, at least one function required application program (such as a sound playback function, an image playback function, etc.) etc.; the storage data area can be Store data (such as audio data, phone book, etc.) created according to the use of the mobile phone. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,可选地,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes operating systems, user interfaces, and application programs, etc. The demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
移动终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
尽管图1未示出,移动终端100还可以包括蓝牙模块等,在此不再赘述。Although not shown in FIG. 1 , the mobile terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
为了便于理解本申请实施例,下面对本申请的移动终端所基于的通信网络系统进行描述。In order to facilitate understanding of the embodiments of the present application, the following describes the communication network system on which the mobile terminal of the present application is based.
请参阅图2,图2为本申请实施例提供的一种通信网络系统架构图,该通信网络系统为通用移动通信技术的LTE系统,该LTE系统包括依次通讯连接的UE(User Equipment,用户设备)201,E-UTRAN(Evolved UMTS Terrestrial Radio Access Network,演进式UMTS陆地无线接入网)202,EPC(Evolved Packet Core,演进式分组核心网)203和运营商的IP业务204。Please refer to FIG. 2. FIG. 2 is a structure diagram of a communication network system provided by an embodiment of the present application. The communication network system is an LTE system of general mobile communication technology. ) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
可选地,UE201可以是上述终端100,此处不再赘述。Optionally, the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
E-UTRAN202包括eNodeB2021和其它eNodeB2022等。可选地,eNodeB2021可以通过回程(backhaul)(例如X2接口)与其它eNodeB2022连接,eNodeB2021连接到EPC203,eNodeB2021可以提供UE201到EPC203的接入。 E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on. Optionally, the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
EPC203可以包括MME(Mobility Management Entity,移动性管理实体)2031,HSS(Home Subscriber Server,归属用户服务器)2032,其它MME2033,SGW(Serving Gate Way,服务网关)2034,PGW(PDN Gate Way,分组数据网络网关)2035和PCRF(Policy and Charging Rules Function,政策和资费功能实体)2036等。可选地,MME2031是处理UE201和EPC203之间信令的控制节点,提供承载和连接管理。HSS2032用于提供一些寄存器来管理诸如归属位置寄存器(图中未示)之类的功能,并且保存有一些有关服务特征、数据速率等用户专用的信息。所有用户数据都可以通过SGW2034进行发送,PGW2035可以提供UE 201的IP地址分配以及其它功能,PCRF2036是业务数据流和IP承载资源的策略与计费控制策略决策点,它为策略与计费执行功能单元(图中未示)选择及提供可用的策略和计费 控制决策。EPC203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data Network Gateway) 2035 and PCRF (Policy and Charging Rules Function, Policy and Charging Functional Entity) 2036, etc. Optionally, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information about service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide UE 201 IP address allocation and other functions, PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
IP业务204可以包括因特网、内联网、IMS(IP Multimedia Subsystem,IP多媒体子系统)或其它IP业务等。The IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
虽然上述以LTE系统为例进行了介绍,但本领域技术人员应当知晓,本申请不仅仅适用于LTE系统,也可以适用于其他无线通信系统,例如GSM、CDMA2000、WCDMA、TD-SCDMA以及未来新的网络系统(如5G)等,此处不做限定。Although the LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems. The network system (such as 5G), etc., is not limited here.
图3为本申请提供的一种控制器140的硬件结构示意图。该控制器140包括:存储器1401和处理器1402,存储器1401用于存储程序指令,处理器1402用于调用存储器1401中的程序指令执行上述方法实施例一中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in the present application. The controller 140 includes: a memory 1401 and a processor 1402, the memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1403,该通信接口1403可以通过总线1404与处理器1402连接。处理器1402可以控制通信接口1403来实现控制器140的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1403 , and the communication interface 1403 may be connected to the processor 1402 through a bus 1404 . The processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140 .
图4为本申请提供的一种网络节点150的硬件结构示意图。该网络节点150包括:存储器1501和处理器1502,存储器1501用于存储程序指令,处理器1502用于调用存储器1501中的程序指令执行上述方法实施例一中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in the present application. The network node 150 includes: a memory 1501 and a processor 1502, the memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the head node in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1503,该通信接口1503可以通过总线1504与处理器1502连接。处理器1502可以控制通信接口1503来实现网络节点150的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1503 , and the communication interface 1503 may be connected to the processor 1502 through a bus 1504 . The processor 1502 can control the communication interface 1503 to realize the functions of receiving and sending of the network node 150 .
图5为本申请提供的一种网络节点160的硬件结构示意图。该网络节点160包括:存储器1601和处理器1602,存储器1601用于存储程序指令,处理器1602用于调用存储器1601中的程序指令执行上述方法实施例一中中间节点和尾节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。可选地,上述控制器还包括通信接口1603,该通信接口1603可以通过总线1604与处理器1602连接。处理器1602可以控制通信接口1603来实现网络节点160的接收和发送的功能。FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in the present application. The network node 160 includes: a memory 1601 and a processor 1602, the memory 1601 is used to store program instructions, and the processor 1602 is used to call the program instructions in the memory 1601 to execute the steps performed by the intermediate node and the tail node in the first method embodiment above, The implementation principles and beneficial effects are similar, and will not be repeated here. Optionally, the foregoing controller further includes a communication interface 1603 , and the communication interface 1603 may be connected to the processor 1602 through a bus 1604 . The processor 1602 can control the communication interface 1603 to realize the functions of receiving and sending of the network node 160 .
图6为本申请提供的一种控制器170的硬件结构示意图。该控制器170包括:存储器1701和处理器1702,存储器1701用于存储程序指令,处理器1702用于调用存储器1701中的程序指令执行上述方法实施例二中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in the present application. The controller 170 includes: a memory 1701 and a processor 1702, the memory 1701 is used to store program instructions, and the processor 1702 is used to call the program instructions in the memory 1701 to execute the steps performed by the controller in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
图7为本申请提供的一种网络节点180的硬件结构示意图。该网络节点180包括:存储器1801和处理器1802,存储器1801用于存储程序指令,处理器1802用于调用存储器1801中的程序指令执行上述方法实施例二中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in the present application. The network node 180 includes: a memory 1801 and a processor 1802, the memory 1801 is used to store program instructions, and the processor 1802 is used to invoke the program instructions in the memory 1801 to execute the steps performed by the head node in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。The above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk,SSD)等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
基于上述移动终端硬件结构以及通信网络系统,提出本申请各个实施例。Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.
第一实施例first embodiment
请参考图8,图8是根据第一实施例示出的图像处理方法的流程示意图。在本实施例中,图像处理方法包括以下步骤:Please refer to FIG. 8 , which is a schematic flowchart of an image processing method according to a first embodiment. In this embodiment, the image processing method includes the following steps:
S10,获取预览界面中目标对象的状态信息;S10, acquiring status information of the target object in the preview interface;
S20,根据所述目标对象的状态信息调整所述目标对象的显示信息,和/或根据所述目标对象的状态信息调整所述图像的显示信息;S20. Adjust the display information of the target object according to the state information of the target object, and/or adjust the display information of the image according to the state information of the target object;
可选地,所述目标对象为物距大于预设距离的物体。Optionally, the target object is an object whose object distance is greater than a preset distance.
可选地,所述状态信息包括显示亮度和/或明暗比例系数。Optionally, the status information includes display brightness and/or a ratio coefficient of light and dark.
可选地,本实施例中可应用于针对拍摄物距大于预设距离的物体,也即对远处的物体进行拍摄,如目标对象可以是月亮,远处的小鸟,远处的山川以及远处的建筑物等。Optionally, this embodiment can be applied to shooting objects whose object distance is greater than a preset distance, that is, shooting distant objects. For example, the target object can be the moon, distant birds, distant mountains and rivers, and distant buildings, etc.
获取预览界面中目标对象的状态信息,可先采集预览界面的图像后,对图像中的目标对象进行识别分析以获取目标对象的显示亮度和/或明暗比例系数。To obtain the state information of the target object in the preview interface, first collect the image of the preview interface, and then perform identification and analysis on the target object in the image to obtain the display brightness and/or light-dark ratio coefficient of the target object.
可选地,获取目标对象的明暗比例系数,可直接基于图像显示的目标对象,以确定目标对象明暗比例曲线获取得到,也可通过获取图像显示的目标对象中像素值大于或者等于第一预设像素值(表明亮的像素点)的第一数量,像素值小于第一预设像素值(表明暗的像素点)的第二数量,获取第一数量与第二数量的比值,以确定目标对象的明暗比例系数。Optionally, the acquisition of the light-dark ratio coefficient of the target object can be obtained directly based on the target object displayed in the image to determine the light-dark ratio curve of the target object, or obtained by obtaining the pixel value of the target object displayed in the image greater than or equal to the first preset The first number of pixel values (indicating bright pixels), the second number of pixel values smaller than the first preset pixel value (indicating dark pixels), and the ratio of the first number to the second number is obtained to determine the target object The light and dark scale factor.
作为一种可选的实施方式,请参考图9,图9是根据第一实施例示出的图像处理方法中调整图像的显示信息的流程示意图,步骤S20包括以下步骤:As an optional implementation manner, please refer to FIG. 9. FIG. 9 is a schematic flowchart of adjusting the display information of an image in the image processing method according to the first embodiment, and step S20 includes the following steps:
S21,获取所述状态信息中不满足对应的预设拍摄条件的目标状态信息,并根据所述目标状态信息确定调整方式;S21. Obtain target state information that does not meet the corresponding preset shooting conditions in the state information, and determine an adjustment method according to the target state information;
S22,根据所述调整方式调整所述目标对象的显示信息,和/或,根据所述调整方式调整所述图像的显示信息。S22. Adjust the display information of the target object according to the adjustment manner, and/or adjust the display information of the image according to the adjustment manner.
在本实施例中,从状态信息中确定不满足对应的预设拍摄条件的目标状态信息,目标状态信息如显示亮度、明暗比例系数或者显示亮度以及明暗比例系数,并根据目标状态信息确定的调整方式调整所述目标对象的显示信息,以实现有针对性地基于图像中目标对象不符合拍摄条件的目标状态信息,调整目标对象的显示信息以优化目标对象显示,和/或,根据目标状态信息确定的调整方式调整图像的显示信息,以通过调整图像的显示信息以优化目标对象显示。In this embodiment, the target state information that does not meet the corresponding preset shooting conditions is determined from the state information, such as display brightness, light-dark scale coefficient or display brightness and light-dark scale coefficient, and adjusted according to the target state information adjust the display information of the target object in a targeted manner based on the target state information that the target object in the image does not meet the shooting conditions, adjust the display information of the target object to optimize the display of the target object, and/or, according to the target state information The determined adjustment manner adjusts the display information of the image, so as to optimize the display of the target object by adjusting the display information of the image.
预设拍摄条件可以为以下条件中的至少一个:The preset shooting condition can be at least one of the following conditions:
在所述目标状态信息为显示亮度时,所述目标对象的显示亮度小于或者等于预设亮度;When the target state information is display brightness, the display brightness of the target object is less than or equal to a preset brightness;
在所述目标状态信息为明暗比例系数时,所述目标对象的明暗比例系数小于或者等于预设比例系数。When the target state information is a light-dark scale factor, the light-dark scale factor of the target object is less than or equal to a preset scale factor.
作为一种可选的实施方式,步骤S21包括:As an optional implementation manner, step S21 includes:
在所述状态信息中不满足对应的预设拍摄条件的目标状态信息是所述显示亮度时,降低所述图像的整体显示亮度,和/或,降低所述图像中所述目标对象的显示亮度;When the target state information that does not meet the corresponding preset shooting conditions in the state information is the display brightness, reduce the overall display brightness of the image, and/or reduce the display brightness of the target object in the image ;
和/或,在所述状态信息中不满足对应预设拍摄条件的目标状态信息是所述明暗比例系数时,降低所述目标对象和/或所述图像的明暗比例系数,或者,从预设图库中获取目标对象图,并根据所述目标对象图替换所述图像中的所述目标对象。And/or, when the target state information that does not meet the corresponding preset shooting conditions in the state information is the light-dark scale coefficient, reduce the light-dark scale coefficient of the target object and/or the image, or, from the preset The target object graph is acquired from the library, and the target object in the image is replaced according to the target object graph.
和/或,在状态信息中不满足对应的预设拍摄条件的目标状态信息是显示亮度时,表明目标对象曝光度过高,可降低目标对象的显示亮度和/或降低图像的整体显示亮度,降低目标对象的曝光度,使得图像中显示的目标对象更真实。And/or, when the target status information that does not meet the corresponding preset shooting conditions in the status information is the display brightness, it indicates that the exposure of the target object is too high, and the display brightness of the target object and/or the overall display brightness of the image can be reduced, Lowers the exposure of the target object so that the target object appears more realistically in the image.
和/或,在状态信息中不满足对应预设拍摄条件的目标状态信息是明暗比例系数时,表明明暗比例系数过大,图像中目标对象没有显示的细节,降低目标对象和/或图像的明暗比例系数,或者,从预设图库中获取目标对象图,并根据目标对象图替换图像中的目标对象,以增加图像中的细节。具体可参见图10,图10为本发明根据第一实施例示出的图像处理方法的调节明暗比例系数的界面图。可选地,图A为原始图像,图B为降低目标对象和/或图像的明暗比例系数后的图像,或者图B为目标对象图替换图像中的目标对象后所显示的图像。And/or, when the target state information that does not meet the corresponding preset shooting conditions in the state information is a light-dark scale factor, it indicates that the light-dark scale factor is too large, and the details of the target object in the image are not displayed, and the light-darkness of the target object and/or the image is reduced Scale factor, or, take the target object map from the preset gallery and replace the target object in the image according to the target object map to increase the details in the image. For details, please refer to FIG. 10 . FIG. 10 is an interface diagram for adjusting the light and dark scale coefficient of the image processing method according to the first embodiment of the present invention. Optionally, picture A is the original image, picture B is the image after reducing the scale factor of the target object and/or the image, or picture B is the displayed image after the target object map replaces the target object in the image.
可选地,获取预览界面中目标对象的状态信息,可理解为,获取相机预览界面的图像中目标对象的状态信息。Optionally, acquiring the status information of the target object in the preview interface may be understood as acquiring the status information of the target object in the image of the camera preview interface.
可选地,获取相机预览界面的图像中目标对象的状态信息,可以是获取相机在拍摄过程中预览界面的图像中目标对象的状态信息。Optionally, acquiring the status information of the target object in the image of the camera preview interface may be acquiring the status information of the target object in the image of the preview interface of the camera during shooting.
可选地,S20步骤之后,还包括:Optionally, after step S20, further include:
检测到拍摄指令,获取得到预览界面的图像。A shooting instruction is detected, and an image of the preview interface is acquired.
根据目标对象的状态信息调整目标对象的显示信息,和/或根据目标对象的状态信息调整图像的显示信息后,可对调整显示信息后的图像执行拍摄操作,以获取得到调整显示信息后的图像,使得拍摄获得较高质量的图像。After adjusting the display information of the target object according to the state information of the target object, and/or adjusting the display information of the image according to the state information of the target object, a shooting operation may be performed on the image after the display information is adjusted to obtain an image after the display information is adjusted , enabling higher quality images to be captured.
在本实施例公开的技术方案中,通过在获知相机预览界面的图像中目标对象的显示状态,如显示亮度和/或明暗比例系数的基础上,以通过显示状态自动调整目标对象显示信息以优化目标对象进行显示,和/或,以通过显示状态自动调整图像的显示信息以优化显示目标对象与整个图像,从而实现提高图像的拍摄质量的目的。In the technical solution disclosed in this embodiment, on the basis of knowing the display state of the target object in the image of the camera preview interface, such as the display brightness and/or the light-dark scale factor, the display information of the target object is automatically adjusted through the display state to optimize The target object is displayed, and/or, the display information of the image is automatically adjusted through the display state to optimally display the target object and the entire image, thereby achieving the purpose of improving the shooting quality of the image.
第二实施例second embodiment
请参考图11,图11是根据第二实施例示出的图像处理方法的流程示意图。在本实施例中,步骤S20之后,还包括:Please refer to FIG. 11 , which is a schematic flowchart of an image processing method according to a second embodiment. In this embodiment, after step S20, it also includes:
S30,检测到更换所述目标对象背景的信号时,从预设图库中获取目标背景图;S30, when a signal for changing the background of the target object is detected, acquire the target background image from the preset gallery;
S40,根据所述目标背景图更新所述预览界面的图像中的所述目标对象的背景图,并融合所述目标背景图以及所述目标对象。S40. Update the background image of the target object in the image of the preview interface according to the target background image, and fuse the target background image and the target object.
检测到更换目标对象的背景的信号,可通过在预览界面接收到更换目标对象的背景的指令获得或者检测到与替换目标对象的背景的触摸手势获得。The signal that the background of the target object is replaced can be obtained by receiving an instruction to replace the background of the target object on the preview interface or detecting a touch gesture with the background of the replaced target object.
作为一种可选的实施方式,步骤S30包括:As an optional implementation manner, step S30 includes:
检测到更换所述目标对象背景的信号时,获取当前的环境信息,并根据所述环境信息从所述预设图库中获取替换所述目标对象背景的背景图;或者,When a signal to replace the background of the target object is detected, the current environment information is obtained, and a background image for replacing the background of the target object is obtained from the preset gallery according to the environment information; or,
在所述状态信息均满足对应的所述预设拍摄条件时,且检测到更换所述目标对象背景的信号时,输出替换所述目标对象背景的背景图的选择界面,根据所述选择界面接收到的选择指令确定替换所述目标对象背景的背景图。When the state information all satisfies the corresponding preset shooting conditions, and when a signal to replace the background image of the target object is detected, output a selection interface for replacing the background image of the background image of the target object, and receive according to the selection interface The selected command to determine the background image that replaces the background of the target object.
可选地,环境信息可以包括位置信息、时间信息以及节气信息中的至少一个。获取当前的环境信息,在环境信息包括位置信息时,可通过GPS定位当前的位置信息,以通过位置信息确定当前所在的城市、风景点(海边、山川、草原...)等等。根据位置信息从预设图库中获取替换目标对象背景的背景图,示例性地,可获取与位置信息对应的地点的地标图或者风景区图,以作为替换目标对象背景的背景图。具体可参见图12,图12为本发明根据第二实施例示出的图像处理方法的更换目标对象的背景的界面图。可选地,图B为降低目标对象和/或图像的明暗比例系数后的图像,图C为基于图B更换目标对象的背景后的图像。Optionally, the environmental information may include at least one of location information, time information, and solar term information. Obtain the current environmental information. When the environmental information includes location information, the current location information can be located by GPS, so as to determine the current city, scenic spot (seaside, mountains, grassland...) and so on through the location information. A background image for replacing the background of the target object is obtained from a preset gallery according to the location information. For example, a landmark map or a scenic spot map of a location corresponding to the location information may be obtained as a background image for replacing the background of the target object. For details, please refer to FIG. 12 , which is an interface diagram of changing the background of the target object in the image processing method according to the second embodiment of the present invention. Optionally, Figure B is an image after reducing the scale factor of the target object and/or the image, and Figure C is an image after changing the background of the target object based on Figure B.
在环境信息包括时间信息和/或节气信息时,可直接获取当前日期,基于当前日期以确定是否处于节假日或者即将进入节假日,节假日如中秋、春节、国庆、端午,或者基于当前日期确定处于的节气或者即将进入节气,节气如立春、雨水、惊蛰、春分、清明、谷雨、立夏、小满、芒种、夏至、小暑、大暑、立秋、处暑、白露、秋分、寒露、霜降、立冬、小雪、大雪、冬至、小寒、大寒。进而根据节假日和/或节气从预设图库中获取替换标对象背景的背景图。When the environmental information includes time information and/or solar term information, the current date can be obtained directly, based on the current date to determine whether it is a holiday or is about to enter a holiday, holidays such as Mid-Autumn Festival, Spring Festival, National Day, Dragon Boat Festival, or based on the current date to determine the solar term Or about to enter solar terms, solar terms such as Lichun, Rain, Jingzhe, Vernal Equinox, Qingming, Grain Rain, Lixia, Xiaoman, Grain in Ear, Summer Solstice, Slight Heat, Great Heat, Beginning of Autumn, End of Heat, White Dew, Autumnal Equinox, Cold Dew, Frost's Descent, Lidong, Light Snow, Heavy Snow, Winter Solstice , Minor Cold, Great Cold. Further, the background image replacing the background of the target object is obtained from the preset library according to the holiday and/or the solar terms.
需要说明的是,通过图片背景分割技术,对目标对象的背景所在的区域进行分割,保留目标对象的显示效果。示例性地,在目标对象为月亮时,对非月亮的背景区域进行分割,保留月亮效果,对非月亮的背景区域支持自动匹配和用户自定义效果替换,如城市建筑风格、大海草原风格、天际星空风格以及节日氛围风格等,达到图像中的月亮显示的场景效果增强的目的。It should be noted that, by using the image background segmentation technology, the region where the background of the target object is located is segmented to preserve the display effect of the target object. For example, when the target object is the moon, the non-moon background area is segmented, the moon effect is preserved, and the non-moon background area supports automatic matching and user-defined effect replacement, such as urban architectural style, sea grassland style, skyline Starry sky style and festive atmosphere style, etc., to achieve the purpose of enhancing the scene effect displayed by the moon in the image.
最后,根据目标背景图更新预览界面的图像中的目标对象的背景图,可通过融合目标背景图以及目标对象以优化图像的整体显示,提高图像的显示质量。Finally, the background image of the target object in the image on the preview interface is updated according to the target background image, and the overall display of the image can be optimized by fusing the target background image and the target object, thereby improving the display quality of the image.
在本实施例公开的技术方案中,在拍摄过程中检测到预览界面的图像中对于目标对象背景的切换信号时,可根据从图库中获取的目标背景图更新预览界面的图像中的目标对象的背景图,使得拍摄功能更加智能化且多样化,同时增加了拍摄的趣味性、提升了拍摄体验。In the technical solution disclosed in this embodiment, when a switching signal for the background of the target object in the image of the preview interface is detected during the shooting process, the background image of the target object in the image of the preview interface can be updated according to the background image of the target obtained from the gallery. The background image makes the shooting function more intelligent and diversified, and at the same time increases the fun of shooting and improves the shooting experience.
第三实施例third embodiment
请参考图13,图13是根据第三实施例示出的图像处理方法的流程示意图。在本实施例中,方法还包括以下步骤:Please refer to FIG. 13 , which is a schematic flowchart of an image processing method according to a third embodiment. In this embodiment, the method also includes the following steps:
S50,识别所述预览界面的图像中的对象;S50, identifying an object in the image of the preview interface;
S60,在所述预览界面的所述对象是所述目标对象时,执行S10步骤;S60, when the object on the preview interface is the target object, execute step S10;
S70,在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。S70. When the object on the preview interface is not the target object, acquire a vector diagram of the target object from a preset gallery, and display the vector diagram in a target display area of the image.
通过识别预览界面的图像中的对象,以确定在预览界面的对象是目标对象时,执行步骤S10,以及后续的步骤S20,以优化显示图像中的目标对象,和/或,优化显示目标对象以及整个图像;确定在预览界面的对象不是目标对象时,将从预设图库中获取的目标对象的矢量图显示于图像,以使得拍摄功能更加智能化且多样化,同时增加了拍摄的趣味性、提升了拍摄体验。By identifying the object in the image of the preview interface to determine that the object in the preview interface is the target object, perform step S10 and subsequent step S20 to optimize the display of the target object in the image, and/or optimize the display of the target object and The entire image; when it is determined that the object in the preview interface is not the target object, the vector image of the target object obtained from the preset gallery will be displayed on the image to make the shooting function more intelligent and diverse, and at the same time increase the fun of shooting. Improved shooting experience.
作为一种可选的实施方式,步骤S70包括:As an optional implementation manner, step S70 includes:
在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并输出所述目标对象的矢量图的选择界面;When the object in the preview interface is not the target object, obtain the vector diagram of the target object from a preset gallery, and output a selection interface of the vector diagram of the target object;
基于所述选择界面接收到的选择指令确定目标矢量图,并将所述目标矢量图显示于所述图像的目标显示区域。The target vector diagram is determined based on the selection instruction received by the selection interface, and the target vector diagram is displayed in the target display area of the image.
在本实施例中,通过输出目标对象的矢量图的选择界面,以通过对目标对象的矢量图进行可视化方式,根据用户的实际需求,基于选择界面从目标对象对应的矢量图中选择目标矢量图,并将目标矢量图显示于图像的目标显示位置,以得到用户所需求的包含有目标对象的图像,使得拍摄功能更智能化且多样化。In this embodiment, by outputting the selection interface of the vector diagram of the target object, by visualizing the vector diagram of the target object, according to the actual needs of the user, the target vector diagram is selected from the vector diagrams corresponding to the target object based on the selection interface , and display the target vector diagram at the target display position of the image to obtain the image containing the target object required by the user, making the shooting function more intelligent and diversified.
作为一种可选的实施方式,步骤S70包括:As an optional implementation manner, step S70 includes:
在所述预览界面的所述对象不是所述目标对象时,获取当前的环境信息;When the object on the preview interface is not the target object, obtain current environment information;
根据所述环境信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。Acquiring the vector diagram of the target object from a preset gallery according to the environment information, and displaying the vector diagram in the target display area of the image.
可选地,环境信息可以包括位置信息、时间信息以及节气信息中的至少一个。Optionally, the environmental information may include at least one of location information, time information, and solar term information.
可选地,在目标对象为月亮时,不同位置信息、不同时间信息或者不同节气信息月亮显示的状态信息不同。Optionally, when the target object is the moon, different position information, different time information, or different solar term information display different state information on the moon.
获取当前的环境信息,在环境信息包括位置信息时,可通过GPS定位当前的位置信息,以通过位置信息确定当前所在的城市、风景点(海边、山川、草原...)等等。根据位置信息从预设图库中获取替换目标对象的矢量图,示例性地,可获取与位置信息对应的地点对于目标对象的观看角度确定的目标对象的矢量图,以作为替换目标对象的矢量图。Obtain the current environmental information. When the environmental information includes location information, the current location information can be located by GPS, so as to determine the current city, scenic spot (seaside, mountains, grassland...) and so on through the location information. Obtain the vector diagram of the replacement target object from the preset gallery according to the location information. For example, the vector diagram of the target object determined by the viewing angle of the location corresponding to the location information to the target object can be obtained as the vector diagram of the replacement target object. .
在环境信息包括时间信息和/或节气信息时,可直接获取当前日期,基于当前日期以确定是否处于节假日或者即将进入节假日,节假日如中秋、春节、国庆、端午,或者基于当前日期确定处于的节气或者即将进入节气,节气如立春、雨水、惊蛰、春分、清明、谷雨、立夏以及小满等。进而根据节假日和/或节气从预设图库中获取替换标目标对象的矢量图。示例性地,目标对象为月亮时,不同时间信息的月亮的显示完整性并不相同,如月中期,月亮呈满月方式呈现,在月初期或者月后期时,月亮呈月牙或者半月状方式呈现。When the environmental information includes time information and/or solar term information, the current date can be obtained directly, based on the current date to determine whether it is a holiday or is about to enter a holiday, holidays such as Mid-Autumn Festival, Spring Festival, National Day, Dragon Boat Festival, or based on the current date to determine the solar term Or it is about to enter the solar terms, such as Lichun, Yushui, Jingzhe, Vernal Equinox, Qingming, Grain Rain, Lixia and Xiaoman. Then, according to the holidays and/or solar terms, the vector diagram of the substituting target object is obtained from the preset library. For example, when the target object is the moon, the display integrity of the moon at different time information is different, for example, in the middle of the month, the moon is presented as a full moon, and at the beginning or end of the month, the moon is presented as a crescent or half moon.
可选地,预设图库中的目标对象的矢量图可进行更新。Optionally, the vector graphics of the target object in the preset gallery can be updated.
作为一种可选的实施方式,步骤S70包括:As an optional implementation manner, step S70 includes:
在所述预览界面的所述对象不是所述目标对象时,则获取所述预览界面的图像的显示信息,根据所述显示信息从预设图库中获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域;或者,When the object in the preview interface is not the target object, then obtain the display information of the image in the preview interface, obtain the vector diagram of the target object from a preset gallery according to the display information, and store the obtained image The target vector diagram is displayed in the target display area of the image; or,
在所述预览界面的所述对象不是所述目标对象时,则从预设图库中获取所述目标对象的待显示矢量图,获取所述预览界面的图像的显示信息,并根据所述显示信息调节所述待显示矢量图的显示信息,以获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域。When the object in the preview interface is not the target object, obtain the vector image to be displayed of the target object from the preset gallery, obtain the display information of the image in the preview interface, and according to the display information The display information of the vector diagram to be displayed is adjusted to obtain the vector diagram of the target object, and the target vector diagram is displayed in the target display area of the image.
在实际应用过程中,目标对象的矢量图显示于图像的目标显示区域,为使得能与图像的背景图相适配以优化图像的整体显示效果,可获取预览界面的图像的显示信息如显示亮度或者明暗比例系数,可适应于图像的显示信息从预设图库中获取目标对象的矢量图,以将目标对象的矢量图可直接显示于图像中的目标显示区域;或者,可先获取目标对象的待显示矢量图,后根据图像的显示信息调整待显示矢量图的显示信息,以使得调整显示信息后的待显示矢量图与图像的显示信息相适配。In the actual application process, the vector diagram of the target object is displayed in the target display area of the image. In order to adapt to the background image of the image to optimize the overall display effect of the image, the display information of the image on the preview interface, such as display brightness, can be obtained. Or the scale factor of light and shade, which can be adapted to the display information of the image to obtain the vector diagram of the target object from the preset gallery, so that the vector diagram of the target object can be directly displayed in the target display area in the image; or, the vector image of the target object can be obtained first The vector diagram to be displayed is then adjusted according to the display information of the image, so that the vector diagram to be displayed after the display information is adjusted matches the display information of the image.
作为一种可选的实施方式,步骤S70包括:As an optional implementation manner, step S70 includes:
在所述预览界面的所述对象不是所述目标对象,且在当前的拍摄模式为月亮拍摄模式时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域;或者,The object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, obtain the vector diagram of the target object from the preset gallery, and display the vector diagram on the the target display area of the said image; or,
在所述预览界面的所述对象不是所述目标对象时,且接收到所述目标对象的添加指令时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。When the object on the preview interface is not the target object and an instruction to add the target object is received, obtain the vector diagram of the target object from a preset gallery, and display the vector diagram on the The target display area for the image.
在实际应用过程中,为避免只要检测到预览界面的对象不包含目标对象时,直接获取目标对象的矢量图,并将矢量图显示于图像中的目标显示区域,可在预览界面的对象不包含目标对象时,确定当前的拍摄模式,在拍摄模式为月亮拍摄模式,也即远景拍摄模式时,才获取目标对象的矢量图,并将矢量图 显示于图像中的目标显示区域;或者,根据用户需求,接收到目标对象的添加指令时,获取目标对象的矢量图,并将矢量图显示于图像中的目标显示区域。In the actual application process, in order to avoid directly obtaining the vector diagram of the target object as long as it is detected that the object on the preview interface does not contain the target object, and display the vector diagram in the target display area in the image, you can select When the target object is used, the current shooting mode is determined. When the shooting mode is the moon shooting mode, that is, the remote shooting mode, the vector diagram of the target object is obtained, and the vector diagram is displayed in the target display area in the image; or, according to the user Requirements: When receiving an instruction to add a target object, obtain the vector diagram of the target object and display the vector diagram in the target display area of the image.
可选地,可预先设置拍摄模式的标识符以确定当前的拍摄模式,举例来说,在标识符的标识值为“00”时,表明当前的拍摄模式为普通拍摄模式,也即在预览界面的对象不是目标对象时,并不自动添加目标对象的矢量图进行显示;和/或,在标识符的标识值为“11”时,表明当前的拍摄模式为月亮拍摄模式,也即在预览界面的对象不是目标对象时,可自动添加目标对象的矢量图进行显示,如从预设图库中获取目标对象的矢量图,并将矢量图显示于所述图像的目标显示区域。Optionally, the identifier of the shooting mode can be preset to determine the current shooting mode. For example, when the identification value of the identifier is "00", it indicates that the current shooting mode is the normal shooting mode, that is, in the preview interface When the object is not the target object, the vector map of the target object is not automatically added for display; and/or, when the value of the identifier is "11", it indicates that the current shooting mode is the moon shooting mode, that is, in the preview interface When the target object is not the target object, the vector diagram of the target object can be automatically added for display, for example, the vector diagram of the target object is obtained from the preset gallery, and the vector diagram is displayed in the target display area of the image.
可选地,接收到目标对象的添加指令时,从预设图库中获取目标对象的矢量图,并输出所述目标对象的矢量图的选择界面,基于选择界面接收到的选择指令确定目标矢量图,并将目标矢量图显示于图像的目标显示区域,通过输出目标对象的矢量图的选择界面,以通过对目标对象的矢量图进行可视化方式,根据用户的实际需求,基于选择界面从目标对象对应的矢量图中选择目标矢量图,并将目标矢量图显示于图像的目标显示位置,以得到用户所需求的包含有目标对象的图像,使得拍摄功能更智能化且多样化。Optionally, when an instruction to add a target object is received, the vector diagram of the target object is obtained from the preset gallery, and a selection interface of the vector diagram of the target object is output, and the target vector diagram is determined based on the selection instruction received in the selection interface , and display the target vector diagram in the target display area of the image, through the output selection interface of the vector diagram of the target object, by visualizing the vector diagram of the target object, according to the actual needs of the user, based on the selection interface from the target object corresponding Select the target vector map from the vector map, and display the target vector map at the target display position of the image to obtain the image containing the target object required by the user, making the shooting function more intelligent and diversified.
此外,需要说明的是,上述的各种可选的实施方式中至少两个实施方式之间可进行组合,以形成新的实施方案,例如:In addition, it should be noted that at least two of the various optional implementations above can be combined to form new implementations, for example:
在所述预览界面的所述对象不是所述目标对象,且在当前的拍摄模式为月亮拍摄模式时,获取当前的环境信息;The object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, acquiring current environmental information;
根据所述环境信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。或者,Acquiring the vector diagram of the target object from a preset gallery according to the environment information, and displaying the vector diagram in the target display area of the image. or,
在所述预览界面的所述对象不是所述目标对象,且接收到所述目标对象的添加指令时,获取当前的环境信息;When the object on the preview interface is not the target object and an instruction to add the target object is received, obtain current environment information;
根据所述环境信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。Acquiring the vector diagram of the target object from a preset gallery according to the environment information, and displaying the vector diagram in the target display area of the image.
又如:Another example:
在所述预览界面的所述对象不是所述目标对象时,获取当前的环境信息;When the object on the preview interface is not the target object, obtain current environment information;
获取所述预览界面的图像的显示信息;Acquiring display information of images on the preview interface;
根据所述环境信息以及所述显示信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。Acquiring the vector diagram of the target object from a preset gallery according to the environment information and the display information, and displaying the vector diagram in the target display area of the image.
对于其他的多个实施方式之间的组合以形成的新的实施方案在此不再一一列举说明,上述可选实施例之间的结合仅是作为示例,并不构成对于本申请实施例提供的技术方案的限定,且实施方式之间组合的具体实现方式可参考上述的每个实施方式容易推知获得,在此不再赘述。The combination of other multiple implementations to form new implementations will not be listed here. The combination of the above-mentioned optional embodiments is only an example, and does not constitute a provision for the embodiment of the present application. The definition of the technical solution, and the specific implementation of the combination of the implementation manners can be easily deduced and obtained by referring to each of the above-mentioned implementation manners, and will not be repeated here.
在本实施例公开的技术方案中,通过识别预览界面的图像中的对象,以确定在预览界面的对象是目标对象时,执行步骤S10,以及后续的步骤S20,以优化显示图像中的目标对象,和/或,优化显示目标对象以及整个图像;确定在预览界面的对象不是目标对象时,将从预设图库中获取的目标对象的矢量图显示于图像,以使得拍摄功能更加智能化且多样化,同时增加了拍摄的趣味性、提升了拍摄体验。In the technical solution disclosed in this embodiment, by identifying the object in the image of the preview interface to determine that the object in the preview interface is the target object, perform step S10 and subsequent step S20 to optimize the display of the target object in the image , and/or, optimize the display of the target object and the entire image; when it is determined that the object in the preview interface is not the target object, display the vector map of the target object obtained from the preset gallery on the image, so that the shooting function is more intelligent and diverse At the same time, it increases the fun of shooting and improves the shooting experience.
第四实施例Fourth embodiment
请参考图14,图14是根据第四实施例示出的图像处理方法的流程示意图。在本实施例中,图像处理方法包括:Please refer to FIG. 14 , which is a schematic flowchart of an image processing method according to a fourth embodiment. In this embodiment, the image processing method includes:
S100,获取预览界面的图像的显示信息;S100, acquiring the display information of the image on the preview interface;
S200,根据所述显示信息获取待显示的目标对象;S200. Acquire a target object to be displayed according to the display information;
S300,将所述目标对象显示于所述图像的目标显示区域。S300. Display the target object in a target display area of the image.
显示信息包括图像的显示亮度和/或明暗比例系数。获取预览界面的图像的显示信息,可先采集预览界面的图像后,对图像进行识别分析以获取图像的显示亮度和/或明暗比例系数。The display information includes the display brightness and/or the ratio factor of light and dark of the image. To obtain the display information of the image on the preview interface, the image on the preview interface may be collected first, and then the image may be identified and analyzed to obtain the display brightness and/or the ratio coefficient of light and dark of the image.
可选地,在本实施例中,待显示的目标对象是月亮。Optionally, in this embodiment, the target object to be displayed is the moon.
可选地,获取图像的明暗比例系数,可直接基于图像显示的目标对象,以确定目标对象明暗比例曲线获取得到,也可通过获取图像中像素值大于或者等于第一预设像素值(表明亮的像素点)的第一数量,像素值小于第一预设像素值(表明暗的像素点)的第二数量,获取第一数量与第二数量的比值,以确定 图像的明暗比例系数。Optionally, the light-dark ratio coefficient of the acquired image can be obtained directly based on the target object displayed in the image to determine the light-dark ratio curve of the target object, or obtained by obtaining a pixel value in the image greater than or equal to the first preset pixel value (indicating bright The first number of pixels), the second number of pixels whose value is smaller than the first preset pixel value (indicating dark pixels), and the ratio of the first number to the second number is obtained to determine the light and dark scale factor of the image.
根据显示信息获取待显示的目标对象,可直接获取大于或者等于图像的显示信息的目标对象,以确定为待显示的目标对象。可选地,在显示信息为图像的显示亮度时,可从预设图库中获取大于或者等于图像的显示亮度的目标对象,以确定为待显示的目标对象;也可获取目标对象的显示亮度与图像的显示亮度之间的差值,并从预设图库中获取差值大于第一预设差值,且差值小于第二预设差值的目标对象,以确定为待显示的目标对象,可选地,第一预设差值小于第二预设差值,以将目标对象的显示亮度与图像的显示亮度之间的差值控制在合理的范围内,避免导致待显示的目标对象显示于图像的目标显示区域时,目标对象相较于图像过于突出如出现过曝现象,导致图像整体显示效果不佳,以使得将待显示的目标对象显示于图像中的目标显示区域时,可与图像更好融合获得较高质量的图像。The target object to be displayed is acquired according to the display information, and the target object whose display information is greater than or equal to the image may be directly acquired to be determined as the target object to be displayed. Optionally, when the display information is the display brightness of the image, the target object greater than or equal to the display brightness of the image may be obtained from the preset gallery to determine the target object to be displayed; the display brightness of the target object and The difference between the display brightness of the image, and obtain the target object whose difference is greater than the first preset difference and the difference is smaller than the second preset difference from the preset gallery, so as to determine the target object to be displayed, Optionally, the first preset difference is smaller than the second preset difference, so as to control the difference between the display brightness of the target object and the display brightness of the image within a reasonable range, and avoid causing the target object to be displayed to display In the target display area of the image, the target object is too prominent compared to the image, such as overexposure, resulting in poor overall display effect of the image, so that when the target object to be displayed is displayed in the target display area of the image, it can be compared with Images are better fused to obtain higher quality images.
在显示信息为图像的明暗比例系数时,可从预设图库中获取大于或者等于图像的明暗比例系数的目标对象,以确定为待显示的目标对象,以将具有与图像相匹配的明暗纹理细节的目标对象显示于图像的目标显示区域时,以优化目标对象与整个图像的显示效果,得到高质量的图像;也可获取目标对象的明暗比例系数与图像的明暗比例系数之间的差值,并从预设图库中获取差值大于第三预设差值,且差值小于第四预设差值的目标对象,以确定为待显示的目标对象,以将目标对象的明暗比例系数与图像的明暗比例系数之间的差值控制在合理的范围内,避免导致待显示的目标对象显示于图像的目标显示区域时,目标对象过于突出,导致图像整体显示效果不佳,可选地,第三预设差值小于第四预设差值。When the display information is the light and shade scale factor of the image, the target object that is greater than or equal to the light and shade scale factor of the image can be obtained from the preset library to determine the target object to be displayed, so as to have light and shade texture details that match the image When the target object is displayed in the target display area of the image, the display effect of the target object and the entire image can be optimized to obtain a high-quality image; the difference between the light and dark scale coefficient of the target object and the light and dark scale coefficient of the image can also be obtained, And obtain the target object whose difference value is greater than the third preset difference value and the difference value is smaller than the fourth preset difference value from the preset gallery to determine as the target object to be displayed, so as to compare the light and dark scale coefficient of the target object with the image The difference between the light and dark scale coefficients is controlled within a reasonable range, so as to avoid the target object being too prominent when the target object to be displayed is displayed in the target display area of the image, resulting in poor overall display effect of the image. Optionally, the first The three preset differences are smaller than the fourth preset difference.
可以理解的是,在显示信息为图像的显示亮度以及明暗比例系数时,可从预设图库中获取明暗比例系数大于或者等于图像的明暗比例系数,且显示亮度大于或者等于图像的显示亮度的目标对象,以确定为待显示的目标对象,以进一步优化目标对象与整个图像的显示效果,得到高质量的图像。It can be understood that when the display information is the display brightness of the image and the light-dark scale factor, the object whose light-dark scale factor is greater than or equal to the light-dark scale factor of the image and whose display brightness is greater than or equal to the image display brightness can be obtained from the preset library. The object is determined as the target object to be displayed, so as to further optimize the display effect of the target object and the entire image, and obtain a high-quality image.
作为一种可选的实施方式,在实际应用过程中,为增加相机拍摄的趣味性以及丰富相机拍摄的功能,步骤S200包括:As an optional implementation manner, in the actual application process, in order to increase the fun of camera shooting and enrich the functions of camera shooting, step S200 includes:
根据显示信息获取待显示的不同显示状态的至少两个目标对象。Acquiring at least two target objects in different display states to be displayed according to the display information.
在目标对象为月亮时,月亮的显示状态包括月牙状态、半月状态以及满月状态。将至少两个目标对象显示于目标显示区域,可先按照至少两个目标对象分别对应的显示状态确定每个目标对象的目标显示区域,示例性地,假设目标对象为月亮时,可按照月亮的不同显示状态分别确定月亮的目标显示区域,可选地,可按照月牙状态、半月状态以及满月状态的显示顺序确定不同显示状态的月亮的显示区域,以便于在图像上了解月亮由月牙状态到满月状态的变化过程,增加相机拍摄的趣味性以及丰富相机拍摄的功能。When the target object is the moon, the display state of the moon includes a crescent state, a half moon state, and a full moon state. To display at least two target objects in the target display area, the target display area of each target object can be determined according to the corresponding display states of the at least two target objects. For example, when the target object is the moon, it can be determined according to the moon's Different display states determine the target display area of the moon respectively. Optionally, the display areas of the moon in different display states can be determined according to the display order of crescent state, half moon state and full moon state, so as to understand the moon from crescent state to full moon on the image The state change process increases the fun of camera shooting and enriches the functions of camera shooting.
可选地,在目标对象为月亮时,基于月亮的月相可分为8种:新月(朔)、娥眉月(残月)、上弦月、凸月、望月(满月)、凸月、下弦月以及残月(娥眉月),可预先设置一月相对应一显示状态。Optionally, when the target object is the moon, the moon phases based on the moon can be divided into 8 types: new moon (new moon), crescent moon (waning moon), first quarter moon, gibbous moon, full moon (full moon), gibbous moon, and last quarter moon As well as the waning moon (crescent crescent moon), the corresponding display state of January can be set in advance.
作为一种可选的实施方式,步骤S300之前,还包括:As an optional implementation manner, before step S300, it also includes:
识别所述预览界面的图像中的对象;identifying objects in the image of the preview interface;
在所述预览界面的所述对象包括所述目标对象时,获取所述目标对象所显示的区域,以确定为所述目标对象的所述目标显示区域。When the object on the preview interface includes the target object, acquire the displayed area of the target object to determine it as the target display area of the target object.
通过识别预览界面的图像中的对象,以明确图像是否包含有目标对象,若预览界面的对象包括目标对象,为避免图像中显示至少两个相同的目标对象,例如,图像中显示两个月亮,可获取图像中目标对象所显示的区域,以将该区域确定为目标对象的目标显示区域,从而将待显示的目标对象显示于目标显示区域时,可将待显示的目标对象覆盖图像中包含的目标对象,以使得图像中只显示一个目标对象。By identifying the object in the image of the preview interface, it is clear whether the image contains the target object. If the object of the preview interface includes the target object, in order to avoid displaying at least two identical target objects in the image, for example, two moons are displayed in the image, The area displayed by the target object in the image can be obtained to determine the area as the target display area of the target object, so that when the target object to be displayed is displayed in the target display area, the target object to be displayed can cover the target object contained in the image target object so that only one target object is displayed in the image.
容易理解的是,在预览界面的对象不包括目标对象时,可基于预览界面接收到的确认指令时,根据确认指令确定目标显示区域,达到根据用户的需求可选择性地确定目标显示区域,以将目标对象显示于目标显示区域置的目的。It is easy to understand that when the objects in the preview interface do not include the target object, the target display area can be determined according to the confirmation instruction based on the confirmation instruction received by the preview interface, so that the target display area can be selectively determined according to the user's needs, so as to The purpose of displaying the target object in the target display area.
可选地,显示确认指令,可以是基于预览界面用户通过与显示确认指令对应的触摸操作基于触发。Optionally, the display confirmation instruction may be triggered based on a user's touch operation corresponding to the display confirmation instruction on the preview interface.
可选地,步骤S300之后,还包括:Optionally, after step S300, further include:
融合所述目标对象以及所述图像,以使得融合后的图像经过去噪、配准等处理后,获得更加清晰、自然的图像,提高图像的质量。The target object and the image are fused, so that after the fused image is processed by denoising, registration, etc., a clearer and natural image is obtained, and the quality of the image is improved.
可选地,步骤S300后,还包括:Optionally, after step S300, further include:
在接收到调整指令时,可根据调整指令确定预览界面的图像中待调整的对象,并基于所述调整指令调整所述对象的显示位置,可选地,对象包括目标对象。When an adjustment instruction is received, an object to be adjusted in the image on the preview interface may be determined according to the adjustment instruction, and a display position of the object is adjusted based on the adjustment instruction. Optionally, the object includes a target object.
将目标对象显示于图像的目标显示区域后,为便于获取得到用户所需求的图像,可通过调整指令以对图像中的对象如目标对象进行显示区域的调整。After the target object is displayed in the target display area of the image, in order to obtain the image required by the user, an adjustment command can be used to adjust the display area of the object in the image, such as the target object.
可选地,根据调整指令确定预览界面的图像中待调整的对象,可通过单击图像中的对象或者长按确定图像中的图像,以确定预览界面的图像中待调整的对象,对此步骤具体实现不做限定。Optionally, the object to be adjusted in the image of the preview interface is determined according to the adjustment instruction, and the object to be adjusted in the image of the preview interface can be determined by clicking the object in the image or long pressing the image in the image to determine the object to be adjusted in the image of the preview interface. The specific implementation is not limited.
可选地,基于调整指令调整对象的显示位置,可在调整指令为长按触摸操作触发时,通过长按选中的对象,并将对象移动至最终显示的目标显示区域,以达到调整对象的显示区域的目的,也可在调整指令为单击操作触发时,通过单击操作选中的对象,并通过单击操作确定通过对象最终显示的目标显示区域,进而将对象显示于通过单击操作确定的目标显示区域,本实施例对此不做限定。Optionally, the display position of the object is adjusted based on the adjustment instruction. When the adjustment instruction is triggered by a long-press touch operation, long-press the selected object and move the object to the final displayed target display area to achieve the display of the adjusted object The purpose of the area, when the adjustment instruction is triggered by the click operation, the object selected by the click operation, and the target display area finally displayed by the object is determined by the click operation, and then the object is displayed on the target display area determined by the click operation The target display area is not limited in this embodiment.
在本实施例公开的技术方案中,根据预览界面中图像的显示信息获取待显示的目标对象,并将目标对象显示于图像的目标显示区域,以达到增加相机拍摄的趣味性以及丰富相机拍摄的功能的目的。In the technical solution disclosed in this embodiment, the target object to be displayed is obtained according to the display information of the image in the preview interface, and the target object is displayed in the target display area of the image, so as to increase the fun of camera shooting and enrich the camera shooting experience. purpose of the function.
本申请实施例还提供一种智能终端,智能终端包括存储器、处理器,存储器上存储有图像处理程序,图像处理程序被处理器执行时实现上述任一实施例中的图像处理方法的步骤。The embodiment of the present application also provides a smart terminal, the smart terminal includes a memory and a processor, and an image processing program is stored in the memory, and when the image processing program is executed by the processor, the steps of the image processing method in any of the foregoing embodiments are implemented.
本申请实施例还提供一种存储介质,存储介质上存储有图像处理程序,图像处理程序被处理器执行时实现上述任一实施例中的图像处理方法的步骤。An embodiment of the present application further provides a storage medium, on which an image processing program is stored, and when the image processing program is executed by a processor, the steps of the image processing method in any of the foregoing embodiments are implemented.
在本申请实施例提供的智能终端和计算机可读存储介质的实施例中,可以包含任一上述图像处理方法实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不再做赘述。In the embodiments of the smart terminal and the computer-readable storage medium provided in the embodiments of the present application, all the technical features of any of the above-mentioned image processing method embodiments may be included, and the expansion and explanation of the description are basically the same as those of the above-mentioned method embodiments. No more details here.
本申请实施例还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。An embodiment of the present application further provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
本申请实施例还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。The embodiment of the present application also provides a chip, including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the above various possible implementation modes. Methods.
可以理解,上述场景仅是作为示例,并不构成对于本申请实施例提供的技术方案的应用场景的限定,本申请的技术方案还可应用于其他场景。例如,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It can be understood that the above scenario is only 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 can also be applied to other scenarios. For example, those skilled in the art know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the methods of the embodiments of the present application can be adjusted, combined and deleted according to actual needs.
本申请实施例设备中的单元可以根据实际需要进行合并、划分和删减。Units in the device in the embodiment of the present application may be combined, divided and deleted according to actual needs.
在本申请中,对于相同或相似的术语概念、技术方案和/或应用场景描述,一般只在第一次出现时进行详细描述,后面再重复出现时,为了简洁,一般未再重复阐述,在理解本申请技术方案等内容时,对于在后未详细描述的相同或相似的术语概念、技术方案和/或应用场景描述等,可以参考其之前的相关详细描述。In this application, descriptions of the same or similar terms, concepts, technical solutions and/or application scenarios are generally only described in detail when they appear for the first time, and when they appear repeatedly later, for the sake of brevity, they are generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions and/or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
在本申请中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In this application, the description of each embodiment has its own emphasis. For the parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The various technical features of the technical solution of the present application can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be regarded as the scope described in this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机 可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. A computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device including a server, a data center, and the like integrated with one or more available media. Usable media may be magnetic media, (eg, floppy disk, memory disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (13)

  1. 一种图像处理方法,其中,所述图像处理方法包括以下步骤:An image processing method, wherein the image processing method comprises the following steps:
    S10,获取预览界面中目标对象的状态信息;S10, acquiring status information of the target object in the preview interface;
    S20,根据所述目标对象的状态信息调整所述目标对象的显示信息,和/或根据所述目标对象的状态信息调整图像的显示信息。S20. Adjust display information of the target object according to the state information of the target object, and/or adjust display information of an image according to the state information of the target object.
  2. 如权利要求1所述的图像处理方法,其中,所述S20步骤包括:The image processing method according to claim 1, wherein the S20 step comprises:
    S21,获取所述状态信息中不满足对应的预设拍摄条件的目标状态信息,并根据所述目标状态信息确定调整方式;S21. Obtain target state information that does not meet the corresponding preset shooting conditions in the state information, and determine an adjustment method according to the target state information;
    S22,根据所述调整方式调整所述目标对象的显示信息,和/或,根据所述调整方式调整所述图像的显示信息。S22. Adjust the display information of the target object according to the adjustment manner, and/or adjust the display information of the image according to the adjustment manner.
  3. 如权利要求2所述的图像处理方法,其中,所述预设拍摄条件包括以下条件中的至少一个:The image processing method according to claim 2, wherein the preset shooting conditions include at least one of the following conditions:
    在所述目标状态信息为显示亮度时,所述目标对象的显示亮度小于或者等于预设亮度;When the target state information is display brightness, the display brightness of the target object is less than or equal to a preset brightness;
    在所述目标状态信息为明暗比例系数时,所述目标对象的明暗比例系数小于或者等于预设比例系数。When the target state information is a light-dark scale factor, the light-dark scale factor of the target object is less than or equal to a preset scale factor.
  4. 如权利要求3所述的图像处理方法,其中,所述S21步骤包括以下至少一种:The image processing method according to claim 3, wherein said S21 step comprises at least one of the following:
    在所述状态信息中不满足对应的预设拍摄条件的目标状态信息是所述显示亮度时,降低所述图像的整体显示亮度,和/或,降低所述图像中所述目标对象的显示亮度;When the target state information that does not meet the corresponding preset shooting conditions in the state information is the display brightness, reduce the overall display brightness of the image, and/or reduce the display brightness of the target object in the image ;
    在所述状态信息中不满足对应预设拍摄条件的目标状态信息是所述明暗比例系数时,降低所述目标对象和/或所述图像的明暗比例系数,或者,从预设图库中获取目标对象图,并根据所述目标对象图替换所述图像中的所述目标对象。When the target state information that does not meet the corresponding preset shooting conditions in the state information is the light-dark scale factor, reduce the light-dark scale factor of the target object and/or the image, or obtain the target from a preset gallery object graph, and replace the target object in the image according to the target object graph.
  5. 如权利要求1至4中任一项所述的方法,其中,所述步骤S20之后,还包括以下步骤:The method according to any one of claims 1 to 4, wherein, after the step S20, further comprising the following steps:
    S30,检测到更换所述目标对象背景的信号时,从预设图库中获取目标背景图;S30, when a signal for changing the background of the target object is detected, acquire the target background image from the preset gallery;
    S40,根据所述目标背景图更新所述预览界面的图像中的所述目标对象的背景图,并融合所述目标背景图以及所述目标对象。S40. Update the background image of the target object in the image of the preview interface according to the target background image, and fuse the target background image and the target object.
  6. 如权利要求5所述的图像处理方法,其中,所述S30步骤包括:The image processing method according to claim 5, wherein said S30 step comprises:
    检测到更换所述目标对象背景的信号时,获取当前的环境信息,并根据所述环境信息从所述预设图库中获取替换所述目标对象背景的背景图;或者,When a signal to replace the background of the target object is detected, the current environment information is obtained, and a background image for replacing the background of the target object is obtained from the preset gallery according to the environment information; or,
    在所述状态信息均满足对应的所述预设拍摄条件时,且检测到更换所述目标对象背景的信号时,输出替换所述目标对象背景的背景图的选择界面,根据所述选择界面接收到的选择指令确定替换所述目标对象背景的背景图。When the state information all satisfies the corresponding preset shooting conditions, and when a signal to replace the background image of the target object is detected, output a selection interface for replacing the background image of the background image of the target object, and receive according to the selection interface The selected command to determine the background image that replaces the background of the target object.
  7. 如权利要求1至4中任一项所述的方法,其中,所述方法还包括以下步骤:The method according to any one of claims 1 to 4, wherein said method further comprises the steps of:
    S50,识别所述预览界面的图像中的对象;S50, identifying an object in the image of the preview interface;
    S60,在所述预览界面的所述对象是所述目标对象时,执行S10步骤;和/或,S60, when the object on the preview interface is the target object, execute step S10; and/or,
    S70,在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域S70, when the object on the preview interface is not the target object, acquire a vector diagram of the target object from a preset gallery, and display the vector diagram in the target display area of the image
  8. 如权利要求7所述的图像处理方法,其中,所述S70步骤包括以下至少一种:The image processing method according to claim 7, wherein the S70 step comprises at least one of the following:
    在所述预览界面的所述对象不是所述目标对象时,从预设图库中获取所述目标对象的矢量图,并输出所述目标对象的矢量图的选择界面,基于所述选择界面接收到的选择指令确定目标矢量图,并将所述目标矢量图显示于所述图像的目标显示区域;When the object in the preview interface is not the target object, obtain the vector diagram of the target object from the preset gallery, and output the selection interface of the vector diagram of the target object, based on the selection interface received The selection instruction determines the target vector diagram, and displays the target vector diagram in the target display area of the image;
    在所述预览界面的所述对象不是所述目标对象时,获取当前的环境信息,根据所述环境信息从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域;When the object on the preview interface is not the target object, obtain current environment information, obtain a vector diagram of the target object from a preset gallery according to the environment information, and display the vector diagram on the the target display area of the image;
    在所述预览界面的所述对象不是所述目标对象时,则获取所述预览界面的图像的显示信息,根据所述显示信息从预设图库中获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域,或者,在所述预览界面的所述对象不是所述目标对象时,则从预设图库中获取所述目标对象的待显示矢量图,获取所述预览界面的图像的显示信息,并根据所述显示信息调节所述待显示矢量图的显示信 息,以获取所述目标对象的矢量图,并将所述目标矢量图显示于所述图像的目标显示区域;When the object in the preview interface is not the target object, then obtain the display information of the image in the preview interface, obtain the vector diagram of the target object from a preset gallery according to the display information, and store the obtained image The target vector diagram is displayed in the target display area of the image, or, when the object in the preview interface is not the target object, the vector diagram to be displayed of the target object is obtained from the preset gallery, and the The display information of the image of the preview interface, and adjust the display information of the vector diagram to be displayed according to the display information, so as to obtain the vector diagram of the target object, and display the target vector diagram on the image target display area;
    在所述预览界面的所述对象不是所述目标对象,且在当前的拍摄模式为月亮拍摄模式时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域;The object on the preview interface is not the target object, and when the current shooting mode is the moon shooting mode, obtain the vector diagram of the target object from the preset gallery, and display the vector diagram on the the target display area of the image;
    在所述预览界面的所述对象不是所述目标对象,且接收到所述目标对象的添加指令时,从预设图库中获取所述目标对象的矢量图,并将所述矢量图显示于所述图像的目标显示区域。When the object on the preview interface is not the target object and an instruction to add the target object is received, obtain a vector diagram of the target object from a preset gallery, and display the vector diagram on the target object The target display area of the above image.
  9. 一种图像处理方法,其中,所述图像处理方法包括以下步骤:An image processing method, wherein the image processing method comprises the following steps:
    S100,获取预览界面的图像的显示信息;S100, acquiring the display information of the image on the preview interface;
    S200,根据所述显示信息获取待显示的目标对象;S200. Acquire a target object to be displayed according to the display information;
    S300,将所述目标对象显示于所述图像的目标显示区域。S300. Display the target object in a target display area of the image.
  10. 如权利要求9所述的图像处理方法,其中,所述S300步骤之前,包括:The image processing method according to claim 9, wherein, before the step S300, comprising:
    获取所述显示信息大于或者等于图像的显示信息的目标对象,以确定为待显示的目标对象;Obtain a target object whose display information is greater than or equal to the display information of the image, so as to determine it as the target object to be displayed;
    识别所述预览界面的图像中的对象;identifying objects in the image of the preview interface;
    在所述预览界面的所述对象包括所述目标对象时,获取所述目标对象所显示的区域,以确定为所述待显示目标对象的所述目标显示区域。When the object on the preview interface includes the target object, acquire the displayed area of the target object to determine the target display area of the target object to be displayed.
  11. 如权利要求9所述的图像处理方法,其中,所述S300步骤之后,还包括:The image processing method according to claim 9, wherein, after the step S300, further comprising:
    在接收到调整指令时,根据调整指令确定预览界面的图像中待调整的对象,并基于所述调整指令调整所述对象的显示位置,其中,所述对象包括所述目标对象。When an adjustment instruction is received, an object to be adjusted in the image on the preview interface is determined according to the adjustment instruction, and a display position of the object is adjusted based on the adjustment instruction, wherein the object includes the target object.
  12. 一种智能终端,其中,所述智能终端包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的图像处理程序,所述图像处理程序被所述处理器执行时实现如权利要求1所述的图像处理方法的步骤。An intelligent terminal, wherein the intelligent terminal includes: a memory, a processor, and an image processing program stored in the memory and operable on the processor, when the image processing program is executed by the processor The steps of the image processing method as claimed in claim 1 are realized.
  13. 一种存储介质,其中,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1所述的图像处理方法的步骤。A storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the image processing method according to claim 1 are realized.
PCT/CN2021/141771 2021-12-27 2021-12-27 Image processing method, intelligent terminal and storage medium WO2023122906A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/141771 WO2023122906A1 (en) 2021-12-27 2021-12-27 Image processing method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/141771 WO2023122906A1 (en) 2021-12-27 2021-12-27 Image processing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023122906A1 true WO2023122906A1 (en) 2023-07-06

Family

ID=86996840

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141771 WO2023122906A1 (en) 2021-12-27 2021-12-27 Image processing method, intelligent terminal and storage medium

Country Status (1)

Country Link
WO (1) WO2023122906A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566752A (en) * 2017-10-31 2018-01-09 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable storage medium
CN108040209A (en) * 2017-12-20 2018-05-15 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111629146A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
CN113411498A (en) * 2021-06-17 2021-09-17 深圳传音控股股份有限公司 Image shooting method, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566752A (en) * 2017-10-31 2018-01-09 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable storage medium
CN108040209A (en) * 2017-12-20 2018-05-15 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN111629146A (en) * 2020-05-27 2020-09-04 腾讯科技(深圳)有限公司 Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium
CN113411498A (en) * 2021-06-17 2021-09-17 深圳传音控股股份有限公司 Image shooting method, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
WO2022166765A1 (en) Image processing method, mobile terminal and storage medium
WO2023005060A1 (en) Image capture method, mobile terminal and storage medium
CN114371803B (en) Operation method, intelligent terminal and storage medium
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN113194197A (en) Interaction method, terminal and storage medium
CN113596231B (en) Screen-throwing display control method, device and computer readable storage medium
WO2023010705A1 (en) Data processing method, mobile terminal, and storage medium
CN113301253A (en) Auxiliary shooting method of astronomical image, mobile terminal and storage medium
CN113268298A (en) Application display method, mobile terminal and readable storage medium
WO2023122906A1 (en) Image processing method, intelligent terminal and storage medium
WO2022252158A1 (en) Photographing method, mobile terminal and readable storage medium
WO2023108444A1 (en) Image processing method, intelligent terminal, and storage medium
CN112532786B (en) Image display method, terminal device, and storage medium
CN115205436A (en) Self-adaptive constellation mapping method, equipment and computer readable storage medium
CN115134527A (en) Processing method, intelligent terminal and storage medium
CN114706549A (en) Display method, intelligent terminal and storage medium
WO2023015774A1 (en) Switching method, mobile terminal, and storage medium
CN108418947B (en) Method and device for playing file containing audio and computer readable storage medium
CN107566745B (en) Shooting method, terminal and computer readable storage medium
WO2022133967A1 (en) Photographing method, and terminal and computer storage medium
WO2023102934A1 (en) Data processing method, intelligent terminal and storage medium
WO2023097671A1 (en) Image processing method, intelligent terminal, and storage medium
WO2023108443A1 (en) Image processing method, smart terminal and storage medium
WO2023202468A1 (en) Display method, smart terminal and storage medium
WO2023050413A1 (en) Image processing method, intelligent terminal, and storage medium