WO2018045961A1 - 一种图片处理方法及终端、存储介质 - Google Patents

一种图片处理方法及终端、存储介质 Download PDF

Info

Publication number
WO2018045961A1
WO2018045961A1 PCT/CN2017/100696 CN2017100696W WO2018045961A1 WO 2018045961 A1 WO2018045961 A1 WO 2018045961A1 CN 2017100696 W CN2017100696 W CN 2017100696W WO 2018045961 A1 WO2018045961 A1 WO 2018045961A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
image
images
unit
terminal
Prior art date
Application number
PCT/CN2017/100696
Other languages
English (en)
French (fr)
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 努比亚技术有限公司
Publication of WO2018045961A1 publication Critical patent/WO2018045961A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Definitions

  • the present invention relates to image processing technologies, and in particular, to a picture processing method, a terminal, and a storage medium.
  • the entire picture is displayed according to the same picture attribute, or a third-party application is used to perform preset color processing on a picture, and it is impossible to set different picture attributes for different objects in one picture, when the user needs When multiple colors of a picture are used, multiple processing is required to achieve the operation, and the operation is complicated.
  • the embodiment of the present invention is to provide a picture processing method, a terminal, and a storage medium, which can implement multiple color processing on a picture.
  • An embodiment of the present invention provides a picture processing method, including:
  • the first image is acquired by the image sensor, and detecting whether the color processing function is turned on;
  • the responding to the setting instruction, the responding to the setting instruction, setting at least two color data to the first image, and adjusting the first image according to the at least two color data Color, corresponding to at least two second images including:
  • At least two color data are respectively set for the at least one region to obtain the at least two second images.
  • the acquiring a setting instruction includes:
  • the method further includes:
  • the method further includes:
  • the embodiment of the invention provides a terminal, including:
  • a receiving unit configured to receive a shooting instruction
  • the collecting unit is configured to collect the first image when the receiving unit receives the shooting instruction
  • a detecting unit configured to detect whether a color processing function is enabled
  • An acquiring unit configured to acquire a setting instruction when the detecting unit detects that the color processing function is turned on;
  • the adjusting unit is configured to set at least two color data to the first image in response to the setting instruction acquired by the acquiring unit, and adjust the first collected by the collecting unit according to the at least two color data
  • the color of the image corresponds to at least two second images.
  • the adjusting unit is configured to determine at least one area in the first image collected by the collecting unit in response to the setting instruction acquired by the acquiring unit, and to determine at least one area in the at least one area At least two color data are set, corresponding to the at least two second images.
  • the terminal further includes: a display unit;
  • the display unit is configured to display a color selection control of the first image collected by the collection unit based on a first operation of the user;
  • the acquiring unit is configured to set the at least two color data to the first image collected by the collecting unit based on a second operation of the color selection control that is displayed on the display unit, and generate the Set the instructions.
  • the display unit is further configured to: when the adjusting unit adjusts the color of the first image collected by the collecting unit according to the at least two color data, display a setting adjustment preview interface;
  • the adjustment preview interface is configured to display at least two second images obtained by adjusting the color spectrum and color brightness of the first image.
  • the display unit is further configured to display the at least two second images after the adjustment unit adjusts to obtain at least two second images; or, the at least two The second image is stitched into a Flash animation for display.
  • the embodiment of the invention further provides a terminal, including:
  • a memory configured to store an executable program
  • a processor configured to: when executing an executable program stored in the memory, implement the following operations:
  • the processor is further configured to: when executing the executable program stored in the memory, implement the following operations:
  • At least two color data are respectively set for the at least one region to obtain the at least two second images.
  • the processor is further configured to: when executing the executable program stored in the memory, implement the following operations:
  • the processor is further configured to: when executing the executable program stored in the memory, implement the following operations:
  • the adjustment preview interface is configured to display at least two second images, the at least two The second image is obtained after the first image is adjusted by color spectrum and color brightness.
  • the processor is further configured to: when executing the executable program stored in the memory, implement the following operations:
  • the at least two second images are obtained, the at least two second images are displayed; or the at least two second images are spliced into one animation for display.
  • Embodiments of the present invention provide a storage medium storing an executable program, and when the executable program is executed by a processor, the following operations are implemented:
  • At least two color data are respectively set for the at least one region to obtain the at least two second images.
  • the adjustment preview interface is configured to display at least two second images obtained by adjusting the color spectrum and color brightness of the first image.
  • the at least two second images are spliced into one animation for display.
  • the terminal can perform different color processing on the same image at the same time, multiple color processing effects are obtained at one time, and multiple color processing of the image is realized, and the operation is simple (one-click implementation), and has many A variety of colors to achieve special effects, thus ensuring the rendering of the picture.
  • FIG. 1 is a schematic structural diagram of hardware of an optional terminal for implementing various embodiments of the present invention
  • 2 is a communication system that the mobile terminal of the present invention can operate
  • FIG. 3 is a flowchart 1 of a picture processing method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of an exemplary color setting interface according to an embodiment of the present invention.
  • FIG. 5 is a second flowchart of a picture processing method according to an embodiment of the present disclosure.
  • FIG. 6 is an exemplary first image preview diagram according to an embodiment of the present invention.
  • FIG. 7 is an exemplary second image display diagram according to an embodiment of the present invention.
  • FIG. 8 is a display diagram of an exemplary second image composed of a Flash animation according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram 2 of a terminal according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram 3 of a terminal according to an embodiment of the present invention.
  • the focus obtaining apparatus may be a terminal, such as a computer or a mobile terminal, and the like, which can use a browser.
  • the mobile terminal can be implemented in various forms.
  • the terminals described in the present invention may include, for example, mobile phones, smart phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), navigation devices, and the like.
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • PDAs personal digital assistants
  • PADs tablet computers
  • PMPs portable multimedia players
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • the mobile terminal 1 is a schematic diagram showing the hardware structure of an optional mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 1 may include an audio/video (A/V) input unit 120, a memory 160, and a controller 180.
  • A/V audio/video
  • the mobile terminal 1 may further include a wireless communication unit 110, a user input unit 130, a sensing unit 140, an output unit 150, an interface unit 170, and a power supply.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that allow mobile terminal 1 to be Radio communication between line communication systems or networks.
  • the wireless communication unit 110 may include at least one of the mobile communication module 112, the wireless internet module 113, the short-range communication module 114, and the location information module 115.
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wireless Broadband (Wibro), Worldwide Interoperability for Microwave Access (Wimax), High Speed Downlink Packet Access (HSDPA), etc. .
  • the short range communication module 114 is a module for supporting short range communication.
  • Some examples of short-range communication technology include Bluetooth TM, a radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, etc. TM.
  • the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
  • a typical example of a location information module is a Global Positioning System (GPS) module.
  • GPS Global Positioning System
  • the GPS module calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information based on longitude, latitude, and altitude.
  • the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite. Further, the GPS module can calculate the speed information by continuously calculating the current position information in real time.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 that processes image data of still pictures or video obtained by an image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 151.
  • Image frames processed by camera 121 may be stored in memory 160 (or The transmission is performed in the other storage medium or via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the sensing unit 140 detects the current state of the mobile terminal 1 (eg, the open or closed state of the mobile terminal 1), the location of the mobile terminal 1, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 1, and the mobile terminal.
  • the orientation of 1, the acceleration or deceleration movement and direction of the mobile terminal 1, and the like, and generates a command or signal for controlling the operation of the mobile terminal 1.
  • the sensing unit 140 can sense whether the slide type phone is turned on or off.
  • the sensing unit 140 can detect whether the power supply unit 190 provides power or whether the interface unit 170 is coupled to an external device.
  • Sensing unit 140 may include proximity sensor 141 which will be described below in connection with a touch screen.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 1.
  • the 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 having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user using the mobile terminal 1 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identification Module (USIM), and the like.
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 1 via a port or other connection device.
  • the interface unit 170 can be configured to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one of the mobile terminals 1 or Multiple components may alternatively be used to transfer data between the mobile terminal and an external device.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 1 or may be used as a variety of command signals allowed to be input from the base to be transmitted to the mobile The path to the terminal.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display unit 151 and the like.
  • the display unit 151 can display information processed in the mobile terminal 1. For example, when the mobile terminal 1 is in the phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 1 is in the video call mode or the image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function as an input device and an output device.
  • the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 1 may comprise two or more display units (or other display devices), for example, the mobile terminal may comprise an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the memory 160 can store a software program that is processed and controlled by the controller 180. And so on, or data that has been output or is about to be output (for example, a phone book, a message, a still image, a video, etc.) can be temporarily stored. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 1 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180.
  • the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • Software code can be used by The software application (or program) written in a suitable programming language is implemented, and the software code can be stored in the
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal 1 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • Such communication systems may use different air interfaces and/or physical layers.
  • air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications System
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
  • a CDMA wireless communication system may include a plurality of mobile terminals 1, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the BS 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 may include multiple BSCs 2750.
  • Each BS 270 can serve one or more partitions (or regions), with each partition covered by a multi-directional antenna or an antenna pointing in a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz) and many more).
  • BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
  • BTS Base Transceiver Subsystem
  • the term "base station” can be used to generally mean a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as multiple cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 1 operating within the system.
  • BT broadcast transmitter
  • GPS Global Positioning System
  • a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
  • the GPS module which is the location information module 115 shown in Figure 1, is typically configured to cooperate with the satellite 300 to obtain the desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • the BS 270 receives reverse link signals from various mobile terminals 1.
  • the mobile terminal 1 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular BS 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 1.
  • An embodiment of the present invention provides a picture processing method. As shown in FIG. 3, the method may include:
  • the first image is acquired by the image sensor, and detecting whether the color processing function is turned on.
  • the focus method provided by the embodiment of the present invention is implemented in a scene in which a photograph is taken on a terminal.
  • an image sensor is disposed on the terminal, and the terminal acquires a first image by using an image sensor, where the first image is previewed on the display screen of the terminal after the camera application on the terminal is started. Image.
  • the user uses the terminal to take a photo.
  • the terminal clicks on the camera application to open the camera application, that is, when the terminal receives the shooting instruction, the terminal performs the first image collection on the target object through the image sensor.
  • whether the terminal detects whether the color processing function is enabled may be implemented by detecting whether the image capturing unit of the terminal starts the color processing function; before detecting whether the image collecting unit needs to enable the color processing function, the terminal may first detect whether the detecting terminal is If the terminal is currently in the running state, the terminal is currently in the working state; at this time, it can be further detected whether the image capturing unit of the terminal is in the standby preparation state, and when the image capturing unit of the terminal is in the standby preparation state, It is detected whether the image acquisition unit of the terminal needs to enable the color processing function.
  • the image acquisition unit may be a camera located on the terminal, for example, a front camera or a rear camera of the terminal device, and the preferred image acquisition unit is a front camera of the mobile phone.
  • the terminal in the embodiment of the present invention may be, for example, a mobile terminal, or may be an electronic device having a camera function, such as a smart phone, an iPad, or a camera, which is not limited in the embodiment of the present invention.
  • a terminal also called a terminal device, is a device in the computer network that is at the outermost periphery of the network, and is mainly used for inputting user information and outputting processing results.
  • a terminal In the early computer systems, because the computer host was expensive, a host would generally have multiple terminals, and the terminals themselves did not have The computing power is only responsible for the work of inputting and outputting information, and the calculation and processing are performed by the host.
  • a personal computer can run a program called a terminal emulator to mimic the work of a terminal.
  • mobile terminals such as mobile phones, PADs
  • the terminal can not only undertake the work of input and output, but also perform certain calculations and processing to realize part of the system functions.
  • the object to be photographed may be any object, and preferably may be an object in motion, for example, a person in motion or an animal in motion, etc., in this case, the motion state of the obtained object to be photographed may be an object in motion.
  • the state of motion may be information about the moving object such as the motion trajectory and the moving speed of the moving object, which can characterize the running state of the object in motion.
  • a mobile terminal is a device that can be used on the move, and broadly includes a mobile phone, a notebook, a tablet, a POS, and even an on-board computer. However, in most cases, it refers to a mobile phone or a smartphone with a variety of application functions and a tablet.
  • networks and technologies in the direction of more and more broadband, the mobile communication industry will move toward a real era of mobile information.
  • the processing power of mobile terminals has already had powerful processing capabilities, and mobile terminals are changing from simple call tools to an integrated information processing platform. This also adds a broader space for development of mobile terminals.
  • Mobile terminals have evolved over the decades with the development of mobile communications as simple communication devices.
  • Mobile intelligent terminals are transformed into key portals and major innovation platforms for Internet services in a short period of time, new media, e-commerce and information service platforms, the most important hub for Internet resources, mobile network resources and environmental interaction resources, and their operating systems and processing.
  • the chip has even become the strategic commanding height of the entire information and communication technology industry today.
  • the mobile intelligent terminal can be referred to as an intelligent terminal for short.
  • the mobile intelligent terminal has the ability to access the Internet, and is usually equipped with various operating systems, and can customize various functions according to user requirements.
  • Smart terminals commonly found in life include mobile smart terminals, in-vehicle smart terminals, smart TVs, wearable devices, and the like.
  • the terminal After the terminal detects whether the color processing function is enabled, there are two kinds of detection results, one is that the terminal detects that the color processing function is turned on, and the other is that the terminal detects that the color processing function is not turned on.
  • the terminal When the terminal detects that the color processing function is turned on, the terminal can perform color processing on the first image, and the color data is set before the color processing is performed. Therefore, when the color processing function is detected, the terminal is detected. Get the setup instructions.
  • the setting instruction in the embodiment of the present invention is used to indicate setting color data.
  • the process of acquiring the setting instruction by the terminal is: displaying a color selection control of the first image based on the first operation of the user; and setting at least two color data on the first image based on the second operation acting on the color selection control, generating the Set the instructions.
  • the terminal when the terminal is to perform color processing on the first image in the preview frame, based on the operation (first operation) of the user to open the photo setting, the terminal sets the photo in the interface of the first image.
  • the color selection control is displayed, and the user clicks the color selection control (second operation) to set the color data that is to be color-processed for the first image (by clicking the corresponding color and brightness).
  • the terminal may perform multiple different color processing on the first image, that is, the terminal may set at least two color data on the first image.
  • the setting instruction in the embodiment of the present invention may be sent by the user to the terminal, and the setting instruction may be formed by the interface of the image capturing unit of the user's touch terminal, and the user may take the picture according to the image collecting unit.
  • the color data is processed by the color data to generate a picture, thereby ensuring the effect of the taken picture;
  • the color data set by the user includes at least two types, and the at least two color data are different, and the actual shooting is performed.
  • the user can add color data that the user thinks is suitable for the current shooting scene according to the actual required color.
  • the color data can be used in advance in the terminal, and is directly selected for use at the moment; Or the color data may be added by the user when the user is currently taking a picture.
  • the setting of the color data is not limited in the embodiment of the present invention.
  • the terminal may set at least two color data of the first image (the currently processed image) to be color-converted according to the setting instruction according to the setting instruction, and according to the The at least two color data adjusts the color of the first image to obtain at least two second images.
  • the terminal may perform color processing on a part of the first image, or may perform color processing on all of the first image. Moreover, the terminal can perform a color processing on the first image while obtaining at least two types of color processed pictures of the first image, that is, at least two second images.
  • the terminal in the embodiment of the present invention may read the value of the first CbCr in the to-be-processed area in the first image, and adjust the value of the CbCr to correspond to one of the at least two color data.
  • the second CbCr value is sufficient; of course, CbCr can be replaced with other color spaces such as RGB and YUV.
  • the terminal changes the first CbCr in the first region of the first image from 15.16 to the second CbCr, that is, 70.50, to obtain a second image in which the first region changes from red to green.
  • the embodiment of the invention provides a picture processing method and a terminal.
  • the first image is captured by the image sensor, and whether the color processing function is enabled is detected; when the color processing function is detected, the setting instruction is acquired; Responding to the setting instruction, setting at least two color data for the first image, and adjusting the color of the first image according to the at least two color data, obtaining There are two second images.
  • the terminal can perform different color processing on the same image at the same time, a plurality of color processing effects are obtained at one time, and multiple color processing of the image is realized, and the operation is simple (one-click implementation), and has many A variety of colors to achieve special effects, thus ensuring the rendering of the picture.
  • An embodiment of the present invention provides a picture processing method. As shown in FIG. 5, the method may include:
  • the first image is acquired by the image sensor, and detecting whether the color processing function is turned on.
  • the terminal may perform all color processing on the first image at a time, or perform multiple color processing on a part of the area.
  • the terminal sets at least two color data, and adjusts the color of the at least one region of the first image according to the at least two color data by using the following manner;
  • the terminal increases the color spectrum and the color brightness, and stores in the terminal device; the terminal selects at least two target color spectrums and target color brightness (at least two color data) from the color spectrum and the color, and uses at least two target color spectrums and The target color brightness adjusts the color of at least one region of the first image.
  • the user can select to display in the color setting interface of the first image of the terminal.
  • the user can select the spectrum and brightness that he wants to set from the added chromatogram and brightness to get the target color spectrum and the target color brightness.
  • the user can select at least two desired target color spectrums and target color brightness through the camera interface of the touch terminal, or the user can actively add at least two color chromatograms and color brightness that he or she desires.
  • the terminal when the terminal adjusts the color of the first image according to the at least two color data, the terminal may display a setting adjustment preview interface; wherein the adjustment preview interface is configured to display the first image after the color spectrum and the color brightness adjustment At least two second images.
  • S205 Display at least two second images.
  • the terminal may display the at least two second images for the user to select the image that he/she needs to use. Obtaining a special effect of directly saving the at least two second images to complete multiple color processing of one picture.
  • each of the second images is color-processed with a partial color of a portion of the first image.
  • the terminal After the terminal completes at least two color data adjustments of the first image, after the terminal obtains at least two second images, since the terminal completes at least two second images of multiple color processing of one picture, the terminal is The at least two second images may be sequentially displayed when the preset time period arrives to form a Flash animation of different colors to achieve an animated color special effect.
  • each second image is color-processed with a partial color of the first image by using different colors, and the mobile phone can also splicing the four second images to form a Flash animation.
  • the display effect diagram of the Flash animation is the scroll display of the above four second images.
  • the embodiment of the invention provides a picture processing method and a terminal.
  • the first image is captured by the image sensor, and whether the color processing function is enabled is detected; when the color processing function is detected, the setting instruction is acquired;
  • the setting instruction is acquired;
  • at least two color data are set for the first image, and the color of the first image is adjusted according to the at least two color data to obtain at least two second images.
  • the embodiment of the present invention provides a terminal 1, which may include:
  • the receiving unit 11 is configured to receive a shooting instruction
  • the collecting unit 10 is configured to acquire the first image through the image sensor when the receiving unit 11 receives the shooting instruction.
  • the detecting unit 12 is configured to detect whether the color processing function is turned on.
  • the obtaining unit 13 is configured to acquire a setting instruction when the detecting unit 12 detects that the color processing function is turned on.
  • the adjusting unit 14 is configured to set at least two color data to the first image collected by the collecting unit 10 in response to the setting instruction acquired by the acquiring unit 13, and adjust the according to the at least two color data.
  • the color of the first image is obtained to obtain at least two second images.
  • the adjusting unit 14 is configured to determine at least one area in the first image collected by the collecting unit 10 in response to the setting instruction acquired by the acquiring unit 13; The regions respectively set at least two color data to obtain the at least two second images.
  • the terminal 1 further includes: a display unit 15.
  • the display unit 15 is configured to display a color selection control of the first image collected by the collection unit 10 based on a first operation of the user.
  • the obtaining unit 13 is configured to set the at least two colors on the first image collected by the collecting unit 10 based on a second operation configured as the color selection control displayed by the display unit 15 Data, generating the set instruction.
  • the display unit 15 is further configured to: when the adjusting unit 14 adjusts the color of the first image collected by the collecting unit 10 according to the at least two color data, display a setting adjustment preview interface;
  • the adjustment preview interface is configured to display at least two second images obtained by adjusting the color spectrum and color brightness of the first image.
  • the display unit 15 is further configured to: after the adjusting unit 14 adjusts to obtain at least two second images, display the at least two second images; or, the at least two second images Splicing is displayed as a Flash animation.
  • the terminal in the embodiment of the present invention may be an electronic device having a shooting function or provided with a camera, such as a mobile phone, a tablet computer, or a camera.
  • the adjusting unit 14 , the obtaining unit 13 , the detecting unit 12 , and the mobile unit 16 may be implemented by the processor 16 located on the terminal 1 , specifically Central processing unit (CPU), microprocessor (MPU), digital Implemented by a signal processor (DSP) or a field programmable gate array (FPGA), etc.
  • the receiving unit 11 can be implemented by the receiver 17 on the terminal 1
  • the collecting unit 10 can be implemented by the camera 18 on the terminal 1
  • the display unit 15 can be implemented by the terminal 1.
  • the upper display 19 is implemented.
  • the terminal 1 can further include a memory 110.
  • the memory 110 can be connected to the processor 16 through a system bus 111.
  • the memory 110 is configured to store an executable program, the program code includes computer operating instructions, and the memory 110 It can be implemented as a high speed RAM memory, and is also implemented to include a non-volatile memory, such as at least one disk storage.
  • the memory 110 and the processor 16 in Fig. 11 will be described.
  • the memory 110 is configured to store an executable program
  • the processor 16 configured to perform the following operations when executing the executable program stored in the memory 110:
  • the processor 16 is further configured to perform the following operations by executing an executable program stored in the memory 110:
  • At least two color data are respectively set for the at least one region to obtain the at least two second images.
  • the processor 16 is further configured to perform the following operations by executing an executable program stored in the memory 110:
  • the setting instructions are generated by at least two color data.
  • the processor 16 is further configured to perform the following operations by executing an executable program stored in the memory 110:
  • the adjustment preview interface is configured to display at least two second images obtained by adjusting the color spectrum and color brightness of the first image.
  • the processor 16 is further configured to perform the following operations by executing an executable program stored in the memory 110:
  • the at least two second images are spliced into one animation for display.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be stored in a bootable computer or other programmable data processing
  • the apparatus is readable in a computer readable memory in a particular manner such that instructions stored in the computer readable memory produce an article of manufacture comprising instruction means implemented in one or more flows and/or block diagrams of the flowchart The function specified in the box or in multiple boxes.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the embodiment of the invention discloses a picture processing method, which can implement multiple color processing on a picture, and the operation is simple, thereby ensuring the rendering effect of the picture.
  • the method includes: when receiving the shooting instruction, collecting the first through the image sensor And detecting whether the color processing function is turned on; acquiring a setting instruction when detecting the color processing function is turned on; setting at least two color data for the first image in response to the setting instruction, and adjusting the first image according to the at least two color data Color, get at least two second images.
  • the embodiment of the invention also provides a terminal and a storage medium.

Abstract

本发明实施例公开了一种图片处理方法,方法包括:当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能;当检测到开启色彩处理功能时,获取设置指令;响应设置指令,对第一图像设置至少两种色彩数据,并根据至少两种色彩数据调整第一图像的色彩,得到至少两个第二图像。本发明实施例还同时提供了一种终端和存储介质。

Description

一种图片处理方法及终端、存储介质
相关申请的交叉引用
本申请基于申请号为201610806466.X、申请日为2016年9月6日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的内容在此引入本申请作为参考。
技术领域
本发明涉及图像处理技术,尤其涉及一种图片处理方法及终端、存储介质。
背景技术
近年来,随着互联网技术和移动通信网络技术的飞速发展,手机、平板电脑等许多智能终端都具有拍照功能,用户在使用智能终端进行拍照之后,往往会对照片进行修改,例如,用户通过使用智能终端拍摄照片之后,可以通过图像处理软件对拍摄的照片进行修改,以改变照片的对比度、饱和度及颜色等图片属性,从而可以使得拍摄的照片更加美观。
相关技术中,将整张图片按照相同的图片属性进行显示,或者借助第三方应用对一张图片进行预设色彩处理,而无法对一张图片中不同的物体设置不同的图片属性,当用户需要一张图片的多种色彩效果时,需要进行多次处理才能实现,操作比较复杂。
发明内容
为解决上述技术问题,本发明实施例期望提供一种图片处理方法及终端、存储介质,能够实现对图片的多种色彩处理。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种图片处理方法,包括:
当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能;
当检测到开启所述色彩处理功能时,获取设置指令;
响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
在上述方案中,所述响应所述设置指令,所述响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像,包括:
响应所述设置指令,在所述第一图像中确定至少一个区域;
对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
在上述方案中,所述获取设置指令,包括:
基于第一操作,显示所述第一图像的色彩选择控件;
基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
在上述方案中,所述方法还包括:
当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
在上述方案中,所述得到至少两个第二图像之后,所述方法还包括:
显示所述至少两个第二图像;或者,将所述至少两个第二图像拼接为一个动画进行显示。
本发明实施例提供了一种终端,包括:
接收单元,配置为接收拍摄指令;
采集单元,配置为当接收单元接收到拍摄指令时,采集第一图像,
检测单元,配置为检测是否开启色彩处理功能;
获取单元,配置为当所述检测单元检测到开启所述色彩处理功能时,获取设置指令;
调整单元,配置为响应所述获取单元获取的所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述采集单元采集的所述第一图像的色彩,对应得到至少两个第二图像。
在上述终端中,所述调整单元,具体配置为响应所述获取单元获取的所述设置指令,在所述采集单元采集的所述第一图像中确定至少一个区域;对所述至少一个区域分别设置至少两个色彩数据,对应得到所述至少两个第二图像。
在上述终端中,所述终端还包括:显示单元;
所述显示单元,配置为基于用户的第一操作,显示所述采集单元采集的所述第一图像的色彩选择控件;
所述获取单元,具体配置为基于作用于所述显示单元显示的所述色彩选择控件的第二操作,对所述采集单元采集的所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
在上述终端中,所述显示单元,还配置为当所述调整单元根据所述至少两种色彩数据调整所述采集单元采集的所述第一图像的色彩时,显示设置调节预览界面;其中,所述调节预览界面用于显示所述第一图像经过色彩谱和色彩亮度调节后得到的至少两个第二图像。
在上述终端中,所述显示单元,还配置为所述调整单元调整后得到至少两个第二图像之后,显示所述至少两个第二图像;或者,将所述至少两 个第二图像拼接为一个Flash动画进行显示。
本发明实施例还提供了一种终端,包括:
存储器,配置为存储可执行程序;
处理器,配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
当检测到开启所述色彩处理功能时,获取设置指令;
响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
上述方案中,所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
响应所述设置指令,在所述第一图像中确定至少一个区域;
对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
上述方案中,所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
基于第一操作,显示所述第一图像的色彩选择控件;
基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
上述方案中,所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;
其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个 第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
上述方案中,所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
得到至少两个第二图像之后,显示所述至少两个第二图像;或者,将所述至少两个第二图像拼接为一个动画进行显示。
本发明实施例提供一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现以下操作:
当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
当检测到开启所述色彩处理功能时,获取设置指令;
响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
上述方案中,所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
响应所述设置指令,在所述第一图像中确定至少一个区域;
对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
上述方案中,所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
基于第一操作,显示所述第一图像的色彩选择控件;
基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
上述方案中,所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置 调节预览界面;
其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
上述方案中,所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
所述得到至少两个第二图像之后,显示所述至少两个第二图像;或者,
将所述至少两个第二图像拼接为一个动画进行显示。
通过本发明实施例,由于终端可以对同一个图像同时进行不同的色彩处理,一次性得到多种色彩处理效果,实现了对图片的多种色彩处理,且操作简洁(一键实现),具有多种色彩实现特效,从而保证了图片的呈现效果。
附图说明
图1为实现本发明各个实施例一种可选的终端的硬件结构示意图;
图2为本发明的移动终端能够操作的通信系统;
图3为本发明实施例提供的一种图片处理方法的流程图一;
图4为本发明实施例提供的示例性的色彩设置界面图;
图5为本发明实施例提供的一种图片处理方法的流程图二;
图6为本发明实施例提供的示例性的第一图像预览图;
图7为本发明实施例提供的示例性的第二图像显示图;
图8为本发明实施例提供的示例性的第二图像组成Flash动画的显示图;
图9为本发明实施例提供的一种终端的结构示意图一;
图10为本发明实施例提供的一种终端的结构示意图二;
图11为本发明实施例提供的一种终端的结构示意图三。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
需要说明的是,本发明实施例提供的一种焦点获取装置可以为终端,例如计算机或移动终端等可以使用浏览器的电子设备。
其中,移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。
图1为实现本发明各个实施例一种可选的移动终端的硬件结构示意,移动终端1可以包括音频/视频(A/V)输入单元120、存储器160和控制器180。
在一个实施例中,根据对移动终端的功能需求,如图1所示,移动终端1还可以包括无线通信单元110、用户输入单元130、感测单元140、输出单元150、接口单元170和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。
无线通信单元110通常包括一个或多个组件,其允许移动终端1与无 线通信系统或网络之间的无线电通信。例如,无线通信单元110可以包括移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、无线宽带(Wibro)、全球微波互联接入(Wimax)、高速下行链路分组接入(HSDPA)等等。
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块的典型示例是全球定位系统(GPS)模块。根据当前的技术,GPS模块计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块能够通过实时地连续计算当前位置信息来计算速度信息。
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或 其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。
感测单元140检测移动终端1的当前状态,(例如,移动终端1的打开或关闭状态)、移动终端1的位置、用户对于移动终端1的接触(即,触摸输入)的有无、移动终端1的取向、移动终端1的加速或减速移动和方向等等,并且生成用于控制移动终端1的操作的命令或信号。例如,当移动终端1实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。感测单元140可以包括接近传感器141将在下面结合触摸屏来对此进行描述。
接口单元170用作至少一个外部装置与移动终端1连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端1的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为“识别装置”)可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端1连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1内的一个或 多个元件或者可以用于在移动终端和外部装置之间传输数据。
另外,当移动终端1与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端1的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151等等。
显示单元151可以显示在移动终端1中处理的信息。例如,当移动终端1处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端1处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状,以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端1可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。
存储器160可以存储由控制器180执行的处理和控制操作的软件程序 等等,或者可以暂时地存储己经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端1可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任 何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。
至此,己经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。
如图1中所示的移动终端1可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。
参考图2,CDMA无线通信系统可以包括多个移动终端1、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC 280被构造为与公共电话交换网络(PSTN)290形成接口。MSC 280还被构造为与可以经由回程线路耦接到BS 270的BSC 275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC 2750。
每个BS 270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS 270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS 270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz 等等)。
分区与频率分配的交叉可以被称为CDMA信道。BS 270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语“基站”可以用于笼统地表示单个BSC 275和至少一个BS 270。基站也可以被称为“蜂窝站”。或者,特定BS 270的各分区可以被称为多个蜂窝站。
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端1。在图2中,示出了几个全球定位系统(GPS)卫星300,卫星300帮助定位多个移动终端1中的至少一个。
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。作为图1中所示的位置信息模块115的GPS模块通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。
作为无线通信系统的一个典型操作,BS 270接收来自各种移动终端1的反向链路信号。移动终端1通常参与通话、消息收发和其它类型的通信。特定BS 270接收的每个反向链路信号被在特定BS 270内进行处理。获得的数据被转发给相关的BSC 275。BSC提供通话资源分配和包括BS 270之间的软切换过程的协调的移动管理功能。BSC 275还将接收到的数据路由到MSC 280,其提供用于与PSTN 290形成接口的额外的路由服务。类似地,PSTN 290与MSC 280形成接口,MSC与BSC 275形成接口,并且BSC 275相应地控制BS 270以将正向链路信号发送到移动终端1。
基于上述移动终端硬件结构以及通信系统,提出本发明实施例。
本发明实施例提供了一种图片处理方法,如图3所示,该方法可以包括:
S101、当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能。
需要说明的是,本发明实施例提供的一种对焦方法是在终端上进行拍照的场景下实现的。
需要说明的是,本发明实施例中的终端上设置有图像传感器,该终端通过图像传感器采集第一图像,其中,第一图像为终端上的相机应用启动后,在终端的显示屏幕上预览到的图像。
在本发明实施例中,用户使用终端进行拍照,当用户点击相机应用,打开相机应用时,即终端接收到拍摄指令时,该终端通过图像传感器对目标对象进行第一图像的采集。
需要说明的是,终端检测是否开启色彩处理功能可以是通过检测终端的图像采集单元是否开启色彩处理功能来实现的;在终端检测图像采集单元是否需要开启色彩处理功能之前,可以先检测检测终端是否处于开机运行状态,若终端当前处于开机运行状态,可以说明终端当前处于工作状态;此时,可以进一步检测终端的图像采集单元是否处于待机准备状态,当终端的图像采集单元处于待机准备状态时可以检测终端的图像采集单元是否需要开启色彩处理功能。图像采集单元可以是位于终端上的照相机,例如可以是终端设备的前置摄像头或者后置摄像头,优选的图像采集单元为手机的前置摄像头。
可选的,本发明实施例中的终端例如可以是移动终端,或例如可以是智能手机、iPad、照相机等具有拍照功能的电子设备,本发明实施例不作限制。
终端也称终端设备,是计算机网络中处于网络最外围的设备,主要用于用户信息的输入以及处理结果的输出等。在早期计算机系统中,由于计算机主机昂贵,因此一个主机一般会配置多个终端,这些终端本身不具备 计算能力,仅仅承担信息输入输出的工作,运算和处理均由主机来完成。在个人计算机时代,个人计算机可以运行称为终端仿真器的程序来模仿一个终端的工作。随着移动网络的发展,移动终端(如手机、PAD)等得到了广泛的应用。此时,终端不仅能承担输入输出的工作,同时也能进行一定的运算和处理,实现部分系统功能。待拍摄物体可以是任何物体,优选的可以是运动中的物体,例如可以是运动中的人或者运动中的动物等,此时,获取得到的待拍摄物体的运动状态就可以是运动中的物体的运动状态,可以是运动中的物体的运动轨迹和运动速度等能够表征运动中物体运行状态的关于运动中的物体的信息。
移动终端是指可以在移动中使用的设备,广义的讲包括手机、笔记本、平板电脑、POS机,甚至包括车载电脑。但是,大部分情况下是指手机或者具有多种应用功能的智能手机以及平板电脑。随着网络和技术朝着越来越宽带化的方向的发展,移动通信产业将走向真正的移动信息时代。另一方面,随着集成电路技术的飞速发展,移动终端的处理能力已经拥有了强大的处理能力,移动终端正在从简单的通话工具变为一个综合信息处理平台。这也给移动终端增加了更加宽广的发展空间。移动终端作为简单通信设备伴随移动通信发展已有几十年的历史。移动智能终端几乎在一瞬之间转变为互联网业务的关键入口和主要创新平台,新型媒体、电子商务和信息服务平台,互联网资源、移动网络资源与环境交互资源的最重要枢纽,其操作系统和处理器芯片甚至成为当今整个信息和通信技术产业的战略制高点。移动智能终端可以简称为智能终端,移动智能终端拥有接入互联网能力,通常搭载各种操作系统,可根据用户需求定制化各种功能。生活中常见的智能终端包括移动智能终端、车载智能终端、智能电视、可穿戴设备等。
S102、当检测到开启色彩处理功能时,获取设置指令。
终端检测是否开启色彩处理功能之后,检测结果有两种,一种为终端检测到开启了色彩处理功能,一种为终端检测到没有开启色彩处理功能。而当终端检测到开启色彩处理功能时,该终端就可以对第一图像进行色彩处理了,在进行色彩处理之前,要先进行色彩数据的设置,因此,当检测到开启色彩处理功能时,终端获取设置指令。
需要说明的是,本发明实施例中的设置指令用于指示设置色彩数据。
例如,终端获取设置指令的过程为:基于用户的第一操作,显示第一图像的色彩选择控件;基于作用于色彩选择控件的第二操作,对第一图像设置至少两种色彩数据,生成该设置指令。
也就是说,如图4所示,当终端要对预览框中的第一图像进行色彩处理时,基于用户打开拍照设置的操作(第一操作),终端在第一图像的界面中的拍照设置中显示出色彩选择控件,用户点击该色彩选择控件(第二操作),设置想要对第一图像进行色彩处理的色彩数据(通过点击相应的颜色和亮度来进行)。
需要说明的是,在本发明实施例中,终端可以对第一图像进行多种不同色彩处理,即终端可以对第一图像设置至少两种色彩数据。
也就是说,本发明实施例中的设置指令可以是用户主动发送给终端的,该设置指令可以是通过用户触控终端的图像采集单元的界面形成的,用户可以根据图像采集单元拍摄图片时用户的意愿选择是否图像采集单元的色彩处理功能,之后在开启图像采集单元的色彩处理功能后可以主动触控色彩处理按钮,并在显示出来的界面中用户可以自行设置图像采集单元的色彩处理数据,并在拍摄图片时使用该色彩数据对第一图像进行色彩处理,并生成图片,从而保证拍摄的图片的效果;用户设置的色彩数据包括至少两种,这至少两种色彩数据不同,在实际拍摄时可以同时采用至少两种色彩数据进行色彩处理,最终得到拍摄出来的图片中的色彩光谱和色彩亮度 包括至少两种。这样,用户在使用终端拍摄图片的时候,可以根据实际的需求的色彩,添加设置用户自己认为适合当前拍摄场景的色彩数据,这个色彩数据可以是用于预先设置在终端中,此刻直接选择使用;或者这个色彩数据可以是用户当前拍摄图片时自定义添加进去的,例如色彩数据的设置本发明实施例不作限制。
S103、响应设置指令,对第一图像设置至少两种色彩数据,并根据该至少两种色彩数据调整第一图像的色彩,得到至少两个第二图像。
终端在获取设置指令之后,该终端就可以根据该设置指令,在第一图像(当前处理的图像)的色彩设置界面设置想要对第一图像进行色彩变换的至少两个色彩数据了,并根据该至少两种色彩数据调整第一图像的色彩,得到至少两个第二图像。
需要说明的是,在本发明实施例中,终端可以对第一图像的一部分进行色彩处理,也可以对第一图像的全部进行色彩处理。而且,终端可以对第一图像进行一种色彩的处理,同时得到第一图像的至少两种类型的色彩处理图片,即至少两个第二图像。
例如,本发明实施例中的终端可以通过读取第一图像中的待处理区域中的第一CbCr的值,并将该CbCr的值调整为与至少两种色彩数据中的一种色彩数据对应的第二CbCr值即可;当然,CbCr可以替换为其他色彩空间,如RGB和YUV。
示例性的,终端将第一图像的第一区域中的第一CbCr从15.16改为第二CbCr,即70.50,则得到了第一区域从红色变为绿色的第二图像。
本发明实施例提供了一种图片处理方法及终端,当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能;当检测到开启色彩处理功能时,获取设置指令;响应设置指令,对第一图像设置至少两种色彩数据,并根据至少两种色彩数据调整第一图像的色彩,得到至 少两个第二图像。采用上述技术实现方案,由于终端可以对同一个图像同时进行不同的色彩处理,一次性得到多种色彩处理效果,实现了对图片的多种色彩处理,且操作简洁(一键实现),具有多种色彩实现特效,从而保证了图片的呈现效果。
本发明实施例提供了一种图片处理方法,如图5所示,该方法可以包括:
S201、当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能。
本步骤的详细过程的描述与前续实施例中的S101的描述过程一致,此处不再赘述。
S202、当检测到开启色彩处理功能时,获取设置指令。
本步骤的详细过程的描述与前续实施例中的S102的描述过程一致,此处不再赘述。
S203、响应设置指令,在第一图像中确定至少一个区域。
S204、对至少一个区域分别设置至少两个色彩数据,得到至少两个第二图像。
需要说明的是,终端可以每次对第一图像进行全部的色彩处理,也可以对部分区域进行多种色彩处理。
例如,终端设置至少两种色彩数据,并根据至少两种色彩数据对应的调节第一图像的至少一个区域的色彩可以通过以下方式来实现;
终端增加色彩谱和色彩亮度,并存储在终端设备中;终端从色彩谱和色彩中选择至少两种目标色彩谱和目标色彩亮度(至少两种色彩数据),并使用至少两种目标色彩谱和目标色彩亮度调节第一图像的至少一个区域的色彩。
例如,此时用户可以在终端的第一图像的色彩设置界面中选择显示出 来的之前设置好的色彩谱和色彩亮度得到目标色彩谱和目标色彩亮度;或者,之前设置好的色彩谱和色彩亮度中没有用户想要选择的色彩谱和色彩亮度,此时用户可以点击第一图像中的色彩设置界面中的增加按钮,并在对应的编辑框中添加自己想要添加的色谱和亮度得到色彩谱和色彩亮度,并将添加的色彩谱和色彩亮度保存至终端中;之后,用户可以从添加的色谱和亮度中选择自己想要设置的光谱和亮度得到目标色彩谱和目标色彩亮度。
用户可以通过触控终端的拍照界面来选择至少两种自己想要的目标色彩谱和目标色彩亮度,或者用户可以主动添加自己想要的至少两种色彩色谱和色彩亮度。
可选地,当终端根据至少两种色彩数据调整第一图像的色彩时,该终端可以显示设置调节预览界面;其中,该调节预览界面用于显示第一图像经过色彩谱和色彩亮度调节后得到的至少两个第二图像。
需要说明的是,本实施例中与其他实施例中相同步骤或概念的解释可以参照S103中的描述,此处不再赘述。
S205、显示至少两个第二图像。
在终端完成了第一图像的至少两个色彩数据调节,该终端得到了至少两个第二图像之后,该终端可以将该至少两个第二图像显示出来,供用户选择自己需要的图片进行使用,获取直接保存该至少两个第二图像,完成一张图片的多种色彩处理的特效。
示例性的,假设用户在使用手机对狗狗进行拍照时,如图6所示,得到了第一图像(狗狗)的预览图,如图7所示,当终端经过色彩处理得到了4张色彩处理后的第二图像,每张第二图像都是采用不同色彩对第一图像的部分区域进行色彩处理的。
S206、将至少两个第二图像拼接为一个Flash动画进行显示。
在终端完成了第一图像的至少两个色彩数据调节,该终端得到了至少两个第二图像之后,由于终端完成一张图片的多种色彩处理的至少两个第二图像,因此,上述终端可以在预设时间段到达时,依次显示该至少两个第二图像,形成不同色彩的Flash动画,达到动画色彩特效。
示例性的,假设用户在使用手机对狗狗进行拍照时,如图6所示,得到了第一图像(狗狗)的预览图,如图7所示,当终端经过色彩处理得到了4张色彩处理后的第二图像,每张第二图像都是采用不同色彩对第一图像的部分区域进行色彩处理的,手机还可以将4张第二图像拼接起来形成Flash动画。如图8所示,Flash动画的显示效果图为上述4张第二图像滚动显示。
本发明实施例提供了一种图片处理方法及终端,当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能;当检测到开启色彩处理功能时,获取设置指令;响应设置指令,对第一图像设置至少两种色彩数据,并根据至少两种色彩数据调整第一图像的色彩,得到至少两个第二图像。采用上述技术实现方案,由于终端可以对同一个图像同时进行不同的色彩处理,一次性得到多种色彩处理效果,实现了对图片的多种色彩处理,且操作简洁(一键实现),具有多种色彩实现特效,从而保证了图片的呈现效果。
如图9所示,本发明实施例提供了一种终端1,该终端1可以包括:
接收单元11,配置为接收拍摄指令;
采集单元10,配置为当接收单元11接收到拍摄指令时,通过图像传感器采集第一图像。
检测单元12,配置为检测是否开启色彩处理功能。
获取单元13,配置为当所述检测单元12检测到开启所述色彩处理功能时,获取设置指令。
调整单元14,配置为响应所述获取单元13获取的所述设置指令,对所述采集单元10采集的所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,得到至少两个第二图像。
可选的,所述调整单元14,具体配置为响应所述获取单元13获取的所述设置指令,在所述采集单元10采集的所述第一图像中确定至少一个区域;对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
可选的,基于图9,如图10所示,所述终端1还包括:显示单元15。
所述显示单元15,配置为基于用户的第一操作,显示所述采集单元10采集的所述第一图像的色彩选择控件。
所述获取单元13,具体配置为基于作配置为所述显示单元15显示的所述色彩选择控件的第二操作,对所述采集单元10采集的所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
可选的,所述显示单元15,还配置为当所述调整单元14根据所述至少两种色彩数据调整所述采集单元10采集的所述第一图像的色彩时,显示设置调节预览界面;其中,所述调节预览界面用于显示所述第一图像经过色彩谱和色彩亮度调节后得到的至少两个第二图像。
可选的,所述显示单元15,还配置为所述调整单元14调整后得到至少两个第二图像之后,显示所述至少两个第二图像;或者,将所述至少两个第二图像拼接为一个Flash动画进行显示。
可选的,本发明实施例中的终端可以为具有拍摄功能或设置有摄像头的电子设备,例如,手机、平板电脑或是照相机等。
如图11所示的终端的一个可选的硬件结构示意图,在实际应用中,上述调整单元14、获取单元13、检测单元12和移动单元16可由位于终端1上的处理器16实现,具体为中央处理器(CPU)、微处理器(MPU)、数字 信号处理器(DSP)或现场可编程门阵列(FPGA)等实现,上述接收单元11可由终端1上的接收器17实现,采集单元10可由终端1上的摄像头18实现,显示单元15可由终端1上的显示器19实现,该终端1还可以包括存储器110,该存储器110可以通过系统总线111与处理器16连接,其中,存储器110用于存储可执行程序,该程序代码包括计算机操作指令,存储器110可实施为高速RAM存储器,也实施为包括非易失性存储器,例如,至少一个磁盘存储器。
对图11中的存储器110和处理器16进行说明。
存储器110,配置为存储可执行程序;
处理器16,配置为通过执行所述存储器110中存储的可执行程序时,实现以下操作:
当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
当检测到开启所述色彩处理功能时,获取设置指令;
响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
在一个实施例中,处理器16,还配置为通过执行所述存储器110中存储的可执行程序时,实现以下操作:
响应所述设置指令,在所述第一图像中确定至少一个区域;
对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
在一个实施例中,处理器16,还配置为通过执行所述存储器110中存储的可执行程序时,实现以下操作:
基于第一操作,显示所述第一图像的色彩选择控件;
基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述 至少两种色彩数据,生成所述设置指令。
在一个实施例中,处理器16,还配置为通过执行所述存储器110中存储的可执行程序时,实现以下操作:
当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;
其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
在一个实施例中,处理器16,还配置为通过执行所述存储器110中存储的可执行程序时,实现以下操作:
所述得到至少两个第二图像之后,显示所述至少两个第二图像;或者,
将所述至少两个第二图像拼接为一个动画进行显示。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例公开了一种图片处理方法,能够实现对图片的多种色彩处理,操作简洁,从而保证了图片的呈现效果,该方法包括:当接收到拍摄指令时,通过图像传感器采集第一图像,并检测是否开启色彩处理功能;当检测到开启色彩处理功能时,获取设置指令;响应设置指令,对第一图像设置至少两种色彩数据,并根据至少两种色彩数据调整第一图像的色彩,得到至少两个第二图像。本发明实施例还同时提供了一种终端和存储介质。

Claims (20)

  1. 一种图片处理方法,包括:
    当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
    当检测到开启所述色彩处理功能时,获取设置指令;
    响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
  2. 根据权利要求1所述的方法,其中,所述响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像,包括:
    响应所述设置指令,在所述第一图像中确定至少一个区域;
    对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
  3. 根据权利要求1所述的方法,其中,所述获取设置指令,包括:
    基于第一操作,显示所述第一图像的色彩选择控件;
    基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;
    其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
  5. 根据权利要求1至4任一项所述的方法,其中,所述得到至少两个第二图像之后,所述方法还包括:
    显示所述至少两个第二图像;或者,
    将所述至少两个第二图像拼接为一个动画进行显示。
  6. 一种终端,包括:
    接收单元,配置为接收拍摄指令;
    采集单元,配置为当接收单元接收到拍摄指令时,采集第一图像,
    检测单元,配置为检测是否开启色彩处理功能;
    获取单元,配置为当所述检测单元检测到开启所述色彩处理功能时,获取设置指令;
    调整单元,配置为响应所述获取单元获取的所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述采集单元采集的所述第一图像的色彩,对应得到至少两个第二图像。
  7. 根据权利要求6所述的终端,其中,
    所述调整单元,具体配置为响应所述获取单元获取的所述设置指令,在所述采集单元采集的所述第一图像中确定至少一个区域;对所述至少一个区域分别设置至少两个色彩数据,对应得到所述至少两个第二图像。
  8. 根据权利要求6所述的终端,其中,所述终端还包括:显示单元;
    所述显示单元,配置为基于第一操作,显示所述采集单元采集的所述第一图像的色彩选择控件;
    所述获取单元,具体配置为基于作用于所述显示单元显示的所述色彩选择控件的第二操作,对所述采集单元采集的所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
  9. 根据权利要求6所述的终端,其中,
    所述显示单元,还配置为当所述调整单元根据所述至少两种色彩数据调整所述采集单元采集的所述第一图像的色彩时,显示设置调节预览界面;
    其中,所述调节预览界面用于显示所述第一图像经过色彩谱和色彩亮度调节后得到的至少两个第二图像。
  10. 根据权利要求6至9任一项所述的终端,其中,
    所述显示单元,还配置为所述调整单元调整后得到至少两个第二图像之后,显示所述至少两个第二图像;或者,将所述至少两个第二图像拼接为一个动画进行显示。
  11. 一种终端,包括:
    存储器,配置为存储可执行程序;
    处理器,配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
    当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
    当检测到开启所述色彩处理功能时,获取设置指令;
    响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
  12. 根据权利要求11所述的终端,其中,
    所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
    响应所述设置指令,在所述第一图像中确定至少一个区域;
    对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
  13. 根据权利要求11所述的终端,其中,
    所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
    基于第一操作,显示所述第一图像的色彩选择控件;
    基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
  14. 根据权利要求11所述的终端,其中,
    所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
    当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;
    其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
  15. 根据权利要求11至14任一项所述的终端,其中,
    所述处理器,还配置为通过执行所述存储器中存储的可执行程序时,实现以下操作:
    得到至少两个第二图像之后,显示所述至少两个第二图像;或者,将所述至少两个第二图像拼接为一个动画进行显示。
  16. 一种存储介质,存储有可执行程序,所述可执行程序被处理器执行时,实现以下操作:
    当接收到拍摄指令时,采集第一图像,并检测是否开启色彩处理功能;
    当检测到开启所述色彩处理功能时,获取设置指令;
    响应所述设置指令,对所述第一图像设置至少两种色彩数据,并根据所述至少两种色彩数据调整所述第一图像的色彩,对应得到至少两个第二图像。
  17. 根据权利要求16所述的存储介质,其中,
    所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
    响应所述设置指令,在所述第一图像中确定至少一个区域;
    对所述至少一个区域分别设置至少两个色彩数据,得到所述至少两个第二图像。
  18. 根据权利要求16所述的存储介质,其中,
    所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
    基于第一操作,显示所述第一图像的色彩选择控件;
    基于作用于所述色彩选择控件的第二操作,对所述第一图像设置所述至少两种色彩数据,生成所述设置指令。
  19. 根据权利要求16所述的存储介质,其中,
    所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
    当根据所述至少两种色彩数据调整所述第一图像的色彩时,显示设置调节预览界面;
    其中,所述调节预览界面用于显示至少两个第二图像,所述至少两个第二图像为所述第一图像经过色彩谱和色彩亮度调节后得到。
  20. 根据权利要求16至19任一项所述的存储介质,其中,
    所述存储介质存储的所述可执行程序被处理器执行时,还实现以下操作:
    所述得到至少两个第二图像之后,显示所述至少两个第二图像;或者,
    将所述至少两个第二图像拼接为一个动画进行显示。
PCT/CN2017/100696 2016-09-06 2017-09-06 一种图片处理方法及终端、存储介质 WO2018045961A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610806466.X 2016-09-06
CN201610806466.XA CN106385573A (zh) 2016-09-06 2016-09-06 一种图片处理方法及终端

Publications (1)

Publication Number Publication Date
WO2018045961A1 true WO2018045961A1 (zh) 2018-03-15

Family

ID=57938990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100696 WO2018045961A1 (zh) 2016-09-06 2017-09-06 一种图片处理方法及终端、存储介质

Country Status (2)

Country Link
CN (1) CN106385573A (zh)
WO (1) WO2018045961A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242768A (zh) * 2018-10-29 2019-01-18 维沃移动通信有限公司 一种图像处理方法及终端设备

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385573A (zh) * 2016-09-06 2017-02-08 努比亚技术有限公司 一种图片处理方法及终端
CN108665507A (zh) * 2017-03-31 2018-10-16 珠海金山办公软件有限公司 一种图片透明色设置方法及装置
CN109040460A (zh) * 2018-08-28 2018-12-18 深圳市必发达科技有限公司 图像拍摄方法、计算机可读存储介质及计算机设备
CN112599073B (zh) * 2020-03-27 2022-04-08 西安诺瓦星云科技股份有限公司 显示屏色彩管理方法、装置和系统
CN114630045A (zh) * 2022-02-11 2022-06-14 珠海格力电器股份有限公司 一种拍照方法、装置、可读存储介质和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2219369A2 (en) * 2009-02-16 2010-08-18 Lg Electronics Inc. Method for processing image data in portable electronic device, and portable electronic device having camera thereof
CN103763475A (zh) * 2014-01-28 2014-04-30 宇龙计算机通信科技(深圳)有限公司 一种拍照方法及装置
CN105657393A (zh) * 2009-02-20 2016-06-08 三星电子株式会社 调整白平衡的方法以及白平衡调整设备
CN105681582A (zh) * 2016-03-18 2016-06-15 努比亚技术有限公司 一种控件颜色调整方法及终端
CN106385573A (zh) * 2016-09-06 2017-02-08 努比亚技术有限公司 一种图片处理方法及终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111479066B (zh) * 2013-09-26 2022-11-18 株式会社尼康 摄像元件以及摄像装置
TWI532384B (zh) * 2013-12-02 2016-05-01 矽創電子股份有限公司 色彩調整裝置與色彩調整方法
CN103841390B (zh) * 2014-02-22 2015-06-17 深圳市中兴移动通信有限公司 拍摄方法和拍摄装置
EP3016387A1 (en) * 2014-10-29 2016-05-04 Thomson Licensing A method and device for estimating a color mapping between two different color-graded versions of a sequence of pictures
CN105095362B (zh) * 2015-06-25 2019-02-22 深圳码隆科技有限公司 一种基于目标对象的图像显示方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2219369A2 (en) * 2009-02-16 2010-08-18 Lg Electronics Inc. Method for processing image data in portable electronic device, and portable electronic device having camera thereof
CN105657393A (zh) * 2009-02-20 2016-06-08 三星电子株式会社 调整白平衡的方法以及白平衡调整设备
CN103763475A (zh) * 2014-01-28 2014-04-30 宇龙计算机通信科技(深圳)有限公司 一种拍照方法及装置
CN105681582A (zh) * 2016-03-18 2016-06-15 努比亚技术有限公司 一种控件颜色调整方法及终端
CN106385573A (zh) * 2016-09-06 2017-02-08 努比亚技术有限公司 一种图片处理方法及终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242768A (zh) * 2018-10-29 2019-01-18 维沃移动通信有限公司 一种图像处理方法及终端设备
CN109242768B (zh) * 2018-10-29 2023-09-22 维沃移动通信有限公司 一种图像处理方法及终端设备

Also Published As

Publication number Publication date
CN106385573A (zh) 2017-02-08

Similar Documents

Publication Publication Date Title
WO2018045961A1 (zh) 一种图片处理方法及终端、存储介质
WO2016169483A1 (zh) 移动终端及其利用虚拟边框区域实现功能调节的方法
WO2018019124A1 (zh) 一种图像处理方法及电子设备、存储介质
WO2017050115A1 (zh) 一种图像合成方法和装置
WO2017071424A1 (zh) 一种移动终端和分享文件的方法
US10122942B2 (en) Photo shooting method, device, and mobile terminal
WO2018059332A1 (zh) 一种信息处理方法及终端、计算机存储介质
WO2017206657A1 (zh) 一种图像处理方法、装置、移动终端及计算机存储介质
WO2018019122A1 (zh) 一种对焦方法、终端和计算机存储介质
WO2017071481A1 (zh) 一种移动终端及其实现分屏的方法
WO2017088631A1 (zh) 一种移动终端及其增减调节方法及装置、存储介质
WO2017143855A1 (zh) 具有截屏功能的装置和截屏方法
WO2017071599A1 (zh) 一种分屏大小实时调整方法、分屏装置及计算机存储介质
WO2017071476A1 (zh) 一种图像合成方法和装置、存储介质
WO2016155431A1 (zh) 终端及其触控操作方法和装置、存储介质
WO2018050014A1 (zh) 对焦方法及拍照设备、存储介质
WO2017148211A1 (zh) 移动终端及网页截图方法
WO2018050080A1 (zh) 一种移动终端、图片处理方法及计算机存储介质
WO2016155454A1 (zh) 移动终端及其虚拟边框区域的滑动识别方法
WO2017032215A1 (zh) 社交应用的头像显示方法和装置
WO2017152748A1 (zh) 一种截屏方法及终端、计算机存储介质
US11394871B2 (en) Photo taking control method and system based on mobile terminal, and storage medium
CN107071263B (zh) 一种图像处理方法及终端
WO2017071542A1 (zh) 图像处理方法及装置
WO2017185870A1 (zh) 一种拍摄补光的装置、方法及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17848134

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.08.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17848134

Country of ref document: EP

Kind code of ref document: A1