WO2017202218A1 - Device and method for acquiring image processing mode, and storage medium - Google Patents

Device and method for acquiring image processing mode, and storage medium Download PDF

Info

Publication number
WO2017202218A1
WO2017202218A1 PCT/CN2017/084145 CN2017084145W WO2017202218A1 WO 2017202218 A1 WO2017202218 A1 WO 2017202218A1 CN 2017084145 W CN2017084145 W CN 2017084145W WO 2017202218 A1 WO2017202218 A1 WO 2017202218A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
images
white balance
category
preset
Prior art date
Application number
PCT/CN2017/084145
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 努比亚技术有限公司
Publication of WO2017202218A1 publication Critical patent/WO2017202218A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Definitions

  • the present application relates to image processing technologies in the field of communications, and in particular, to an image processing method acquisition device and method, and a storage medium.
  • White balance can solve a series of problems of color reproduction and tone processing.
  • Automatic white balance is usually the default setting of digital camera. There is a complicated rectangular diagram in the camera, which can determine the white balance reference point in the picture to achieve white. Balance adjustment.
  • the automatic white balance algorithm divides the entire picture into several blocks and then determines whether the color of each block falls within a specific range. These "specific ranges" may be referred to as white areas.
  • the accuracy of automatic white balance is very high, but the actual situation will affect the effect of white balance: when a large area of grass, skin, yellow, light blue wooden door, etc. is used as a reflector, the light source is reflected by these objects. Although the color can fall in the white area, but the light color of the light source cannot be correctly reflected, the result of the automatic white balance will be biased; when the large area of large red, dark blue, purple, brown, etc. is used as the reflector, the light source is reflected by these objects.
  • the light color does not fall in the white area, and the automatic white balance cannot be calculated; more than one illuminant and different light colors, whether according to one of the illuminants as the light source or different light color interpolation, the final reflected light color whitish There are also some deviations in the balance results.
  • the embodiment of the present invention is to provide an image processing method acquisition method and device, and a storage medium, which solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation deviation is improved.
  • the effect of image white balance processing; at the same time, can improve the user experience.
  • an embodiment of the present invention provides an apparatus for acquiring an image processing method, where the apparatus includes: a first acquiring unit, a classifying unit, a second acquiring unit, and a processing unit, where:
  • the first acquiring unit is configured to acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image
  • the classifying unit is configured to classify the first image according to a preset classification
  • the second acquiring unit is configured to perform white balance processing on each of the first images in each category to obtain a second image, and obtain a white balance processing result of the second image in each category;
  • the processing unit is configured to analyze a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
  • the classification unit includes: a first acquiring module and a classification module, where:
  • the first acquiring module is configured to acquire a color temperature of each of the first images in a preset partition
  • the classifying module is configured to classify the first image according to a matching relationship between a color temperature of each of the first images in a preset partition and a color temperature of each of the preset categories.
  • the first acquiring module is further configured to use, as the emitting object, the first image of each block as a range of color temperature of the standard light source reflected by each block of the first image and falling into the preset partition. The color temperature of the first image in the preset partition.
  • the second obtaining unit includes: a calculating module and a second acquiring module, where:
  • the calculating module is configured to separately calculate the number of the first images in each category, and obtain a classification that the number of the first images is not zero;
  • the second obtaining module is configured to perform white balance processing on each of the first images in the category of the first image that is not zero according to a white balance processing algorithm of each category to obtain the second An image, and a white balance processing result of the second image in each category is obtained.
  • the processing unit includes: a third acquiring module and a processing module, where:
  • the third obtaining module is configured to separately acquire image scores of the second image in each class
  • the third acquiring module is further configured to compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification;
  • the processing module is configured to set a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing manner.
  • the third obtaining module is further configured to:
  • the image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
  • the preset classification is defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area.
  • an embodiment of the present invention provides a method for acquiring an image processing method, where the method includes:
  • a white balance processing result of the second image in each category is analyzed to obtain a target white balance processing manner of the image to be processed.
  • the classifying, according to the preset classification, the first image including:
  • the obtaining a color temperature of each of the first images in a preset partition includes:
  • Each of the first images is used as a transmitting object, and a range of color temperatures of the standard light source reflected by each of the first images and falling into a preset partition is used as a color temperature of the first image in a preset partition.
  • the white balance processing is performed on each of the first images in each category to obtain a second image, and the white balance processing result of the second image in each category is obtained, including:
  • each of the first images in the category in which the number of the first images is not zero is respectively subjected to white balance processing to obtain the second image, and each category is obtained.
  • the result of the white balance processing of the second image is obtained.
  • the analyzing the white balance processing result of the second image in each category to obtain the target white balance processing manner of the image to be processed including:
  • the acquiring the image scores of the second image in each class separately includes:
  • the image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
  • the preset classification is defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area.
  • an embodiment of the present invention provides an image processing mode acquiring device, where the device includes: a memory configured with executable instructions; and a processor configured to execute the executable instructions, where the executable instructions are configured for:
  • Obtaining a to-be-processed image performing the segmentation process according to a preset rule to obtain a first image; classifying and finishing the first image based on a preset classification; respectively, for each of the categories in each category Performing white balance processing on an image to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain the image to be processed The target white balance processing method.
  • the executable instruction is further configured to obtain a color temperature of each of the first images in a preset partition; according to a color temperature of each of the first images in a preset partition, and the preset classification
  • the first image is sorted and sorted by a matching relationship between color temperatures of each of the categories.
  • the executable instruction is further configured to separately calculate a first image in each category a number of the first image obtained by the non-zero classification; according to the white balance processing algorithm of each category, respectively performing the first image in each of the categories in which the number of the first images is not zero
  • the white balance process obtains the second image and acquires a white balance processing result of the second image in each category.
  • the executable instruction is further configured to separately obtain image scores of the second image in each class; compare image scores of the second image in each class, and obtain the pre-preparation A target classification with the largest image score of the second image in the classification is set; and a white balance algorithm corresponding to the target classification with the largest image score of the second image is set as the target white balance processing manner.
  • the executable instruction is further configured to acquire a brightness score of each of the second images according to a preset brightness score rule; and acquire each of the second images according to a preset color score rule.
  • Color scores respectively multiplying the obtained luminance scores and color scores of each of the second images to obtain image scores for each of the second images;
  • the image scores of the two images are added to obtain an image score of the second image in each of the classes.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the image processing mode acquisition method described above.
  • the apparatus and method for acquiring an image processing method and the storage medium can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then first Sorting the image, performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing each category
  • the white balance processing result of the second image obtains the target white balance processing mode of the image to be processed; thus, the best processing result is selected by processing the image from the image to be processed for different white balance processing modes, and the best The processing result is used as the white balance processing mode of the image to be processed, and the automatic method in the prior art is solved.
  • the white balance method processes images of different situations, there is a problem of calculation deviation, which improves the processing effect of image white balance; at the same time, it lays a foundation for improving the user experience.
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention
  • FIG. 2 is a schematic structural diagram of a communication system that can be operated by a mobile terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for acquiring an image processing method according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of another method for acquiring an image processing manner according to an embodiment of the present disclosure
  • FIG. 5 is a schematic flowchart diagram of still another method for acquiring an image processing method according to an embodiment of the present disclosure
  • FIG. 6 is a diagram showing an example of luminance scores of each second image in each category according to an embodiment of the present invention.
  • FIG. 7 is a diagram showing an example of color scores of each second image in each category according to an embodiment of the present invention.
  • FIG. 8 is a diagram showing an example of image scores of a second image of each category according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an apparatus for acquiring an image processing method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another apparatus for acquiring an image processing method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another apparatus for acquiring an image processing method according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram of an apparatus for acquiring an image processing method according to another embodiment of the present invention. schematic diagram;
  • FIG. 13 is a schematic structural diagram of hardware of an image processing mode acquiring device according to an embodiment of the present invention.
  • 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.
  • 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.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an audio/video (A/V) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more.
  • Figure 1 shows a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead, and the components of the mobile terminal will be described in detail below. .
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
  • the wireless communication unit can include a wide range At least one of the broadcast receiving module 111, the mobile communication module 112, the wireless internet module 113, the short-range communication module 114, and the location information module 115.
  • the broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel.
  • the broadcast channel can include a satellite channel and/or a terrestrial channel.
  • the broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to the terminal.
  • the broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like.
  • the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal.
  • the broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112.
  • the broadcast signal may exist in various forms, for example, it may exist in the form of Digital Multimedia Broadcasting (DMB) Electronic Program Guide (EPG), Digital Video Broadcasting Handheld (DVB-H) Electronic Service Guide (ESG), and the like.
  • the broadcast receiving module 111 can receive a signal broadcast by using various types of broadcast systems.
  • the broadcast receiving module 111 can use forward link media (MediaFLO) by using, for example, multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H)
  • MediaFLO forward link media
  • the digital broadcasting system of the @) data broadcasting system, the terrestrial digital broadcasting integrated service (ISDB-T), and the like receives digital broadcasting.
  • the broadcast receiving module 111 can be constructed as various broadcast systems suitable for providing broadcast signals as well as the above-described digital broadcast system.
  • the broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage
  • 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 technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), and the like.
  • the short range communication module 114 is a module for supporting short range communication.
  • Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
  • the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
  • a typical example of location information module 115 is Global Positioning System (GPS) module 115.
  • GPS Global Positioning System
  • the position information module 115 as a GPS calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate the three-dimensional current based on longitude, latitude, and altitude. location information.
  • the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite.
  • the position information module 115 as a GPS 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 and a microphone 122 that processes image data of still pictures or video obtained by the 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.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the microphone 122 can receive sound (audio data) via the microphone 122 in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data.
  • the processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode.
  • the microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
  • 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 touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, and the like due to contact), and the like.
  • a touch pad eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, and the like due to contact
  • a touch screen can be formed.
  • the sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal.
  • 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.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
  • 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 interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
  • the output unit 150 may include a display module 151, an audio output module 152, and the like.
  • the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a 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 100 is in the video call mode or the image capturing mode, the display unit 151 may display the captured image and/or the received image, show the video or a picture. Like the UI or GUI of related functions and so on.
  • UI user interface
  • GUI graphical user interface
  • the display module 151 can function as an input device and an output device.
  • the display module 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 100 may include two or more display units (or other display devices), for example, the mobile terminal may include 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 audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like.
  • the audio signal is output as sound.
  • the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100.
  • the audio output module 152 can include a speaker, a buzzer, and the like.
  • the memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data that has been output or is to be output. 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 Memory (PROM), magnetic memory, disk, optical disk, etc.
  • a flash memory e.g, 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 Memory (PROM), magnetic memory, disk, optical disk, etc.
  • the mobile terminal 100 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.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • 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 100 as shown in FIG. 1 may be configured to utilize the number of transmissions via a frame or a packet It operates according to, for example, wired and wireless communication systems as well as satellite-based communication systems.
  • 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 can include a plurality of mobile terminals 100, 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 base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of 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 can include multiple BSCs 275.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to 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, etc.).
  • 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 refer to 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 a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system.
  • the broadcast receiving module 111 as shown in FIG. 1 is disposed at the mobile terminal 100 to receive the broadcast signal transmitted by BT295.
  • GPS Global Positioning System
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
  • the position information module 115 as a GPS as shown in FIG. 1 is generally configured to cooperate with the satellite 300 to obtain 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.
  • BS 270 receives reverse link signals from various mobile terminals 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 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
  • MSC 280 interfaces with BSC 275
  • BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
  • An embodiment of the present invention provides a method for acquiring an image processing method. Referring to FIG. 3, the method includes the following steps:
  • Step 301 Acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image.
  • the step 301 is to obtain an image to be processed, and the image to be processed is divided according to a preset rule to obtain a first image, which may be implemented by an acquiring device of an image processing mode.
  • the acquired image to be processed may be one frame of image data, and the first image after the segmentation may include at least two image blocks;
  • the image processing mode acquisition device in the present invention may be a terminal device, for example It can be a mobile terminal device such as a mobile phone or a camera.
  • the preset rule may be preset by the user according to his or her own wishes, the processing capability of the terminal device actually applied, and the processing effect that the user wants to achieve, and of course, the first segmentation is obtained.
  • the more image blocks of an image the better the white balance processing effect of each image obtained, and the higher the requirement for the terminal device; on the contrary, the smaller the image block of the first image obtained by segmentation, the smaller each image finally obtained.
  • the worse the white balance processing effect the lower the requirements for the terminal equipment.
  • the method in this embodiment may be specifically applied to a mobile terminal, that is, the acquiring device in the image processing mode may be specifically a mobile terminal; where the mobile terminal refers to a device that can be used in mobile, in a broad sense. It includes mobile phones, laptops, tablets, POS machines, and even car computers. However, in most cases, it refers to a mobile phone or a smartphone with a variety of application functions and a tablet.
  • the mobile terminal refers to a device that can be used in mobile, in a broad sense. It includes mobile phones, laptops, tablets, POS machines, and even car computers. However, in most cases, it refers to a mobile phone or a smartphone with a variety of application functions and a tablet.
  • 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.
  • 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.
  • Step 302 Sort and sort the first image based on the preset classification.
  • step 302 is based on the preset classification, and classifying the first image may be performed by a map.
  • a device like a processing method is implemented.
  • the preset classification may be determined according to the relationship between the color temperature of the reflected light source falling in the preset partition and the color temperature of the original standard light source after the reflection of the standard light source by the reflective object of different colors;
  • the first image may be classified into a specific object, and each of the first images is used as a launching object, and the color temperature of each standard in each of the preset categories is reflected by the standard light source after being reflected by each of the first images.
  • the range is compared, and then the category to which the first image of each block obtained by the segmentation belongs is determined.
  • Step 303 Perform white balance processing on each of the first images in each category to obtain a second image, and obtain a white balance processing result of the second image in each category.
  • step 303 performs white balance processing on each first image in each category to obtain a second image, and obtains a white balance processing result of the second image in each category, which may be an image processing mode acquisition device.
  • Performing white balance processing on each of the first images in each category may perform white balance processing on all the first images in each category in units of categories, and the specific white balance processing manner may be according to different categories.
  • Corresponding white balance processing mode; the image obtained after the first image is subjected to white balance processing is the second image, the image block of the second image is the same as the number of image blocks in the first image, and the image block in the first image There is a one-to-one correspondence with the image blocks in the second image.
  • Step 304 Analyze a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
  • step 304 analyzes the white balance processing result of the second image in each category, and the target white balance processing manner of obtaining the image to be processed may be implemented by an image processing method.
  • the method for analyzing the white balance processing result of the second image in each category, and obtaining the target white balance processing manner of the image to be processed may specifically be obtaining the image score of each second image after the white balance processing, based on each second
  • the image score of the image is obtained as an image score of all the second images in each category, and the image score of the second image in each category is compared to obtain the most suitable image to be processed.
  • the white balance processing method corresponding to the best category of the image, that is, the white balance processing result is the image target white balance processing mode of the image to be processed.
  • the method for obtaining an image processing method can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification.
  • a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed
  • the white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
  • An embodiment of the present invention provides a method for acquiring an image processing manner. Referring to FIG. 4, the method includes the following steps:
  • Step 401 The acquiring device of the image processing mode acquires an image to be processed, and divides the image to be processed according to a preset rule to obtain a first image.
  • Step 402 The image processing mode acquiring device acquires a color temperature of each first image in a preset partition.
  • each of the first images obtained by the segmentation may be used as a reflective object, and the standard light source is used to illuminate the reflective object, and then the reflected light falls in a preset partition;
  • Setting a specific color temperature range in the partition can obtain a color temperature of the first image in the preset partition;
  • the preset partition can be a white area, and the white area can be a plurality of areas close to the standard light source color, which can be regarded as a standard light source light. The color of the light reflected by black and white.
  • Step 403 The image processing mode acquiring device classifies the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification. sort out.
  • the preset classification may be defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area.
  • the preset classification may include three categories, and the first category may be a standard light source. After the black and white objects are reflected, all the light can fall correctly in the white area, and the color temperature falling in the white area is the same as the color temperature of the light source before reflection; the second category can be 5000-7000K color temperature and 3000-5000K After the color temperature light source is irradiated to the yellow reflective object, the reflected light falls into the white area, and the color temperature is lower than the color temperature of the light source, or the light source may be irradiated on the green plant in the sunny day and the cloudy sky, and then fall into the white area.
  • the third category may be 3.2000-3000K color temperature and 3000-5000K color temperature light source after illuminating the light blue reflective object, at this time after reflection
  • the color temperature of the light falling into the white zone is higher than the color temperature of the light source.
  • the category in which the color temperature range is matched is the category corresponding to the first image. For example, if the color temperature range of any first image in the white area belongs to the color temperature range of the first category in the white area, the first image may be considered as the first image. Classified as the first category.
  • Step 404 The acquiring device of the image processing mode separately calculates the number of the first images in each category, and obtains a classification in which the number of the first images is not zero.
  • Step 405 The image processing mode acquiring device performs white balance processing on each of the first images of the non-zero number of the first images according to the white balance processing algorithm of each category to obtain a second image, and acquires each of the images. The result of white balance processing of the second image in the category.
  • each class's own white balance processing algorithm may be used to calculate the weighted average to project to the desired light color according to different projection rules, and then the number of the first image according to the values of the projected red, green and blue primary colors.
  • a corresponding white balance process is performed for each of the first images of the non-zero categories, and a white balance processing result of the second image in each category is obtained.
  • the specific white balance processing process can refer to the white balance processing of different types of images in the prior art. Cheng.
  • Step 406 The image processing mode acquiring device respectively acquires image scores of the second image in each class.
  • the sum of the image scores of all the second images in each category may be obtained to obtain image scores of all the second images in each class.
  • Step 407 The image processing mode acquiring device analyzes and processes the image score of the second image in each class to obtain a target white balance processing mode of the image to be processed.
  • the method for obtaining an image processing method can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification.
  • a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed
  • the white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
  • An embodiment of the present invention provides a method for acquiring an image processing manner. Referring to FIG. 5, the method includes the following steps:
  • Step 501 The acquiring device of the image processing mode acquires an image to be processed, and divides the image to be processed according to a preset rule to obtain a first image.
  • Step 502 The acquiring device of the image processing mode acquires a color temperature of each first image in a preset partition.
  • Step 503 The image processing mode acquiring device sorts the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification.
  • Step 504 The acquiring device of the image processing mode separately calculates the number of the first images in each category, and obtains a classification in which the number of the first images is not zero.
  • Step 505 The image processing mode acquiring device performs white balance processing on each of the first images of the non-zero number of the first image according to the white balance processing algorithm of each category to obtain a second image, and obtain each The result of white balance processing of the second image in the category.
  • Step 506 The acquiring device of the image processing mode acquires a brightness score of each second image according to a preset brightness score rule.
  • the preset brightness score rule may be preset and saved in the terminal device according to the principle of facilitating the definition of the brightness of different image blocks, for example, may be set according to the brightness of the image block, and the brighter the image block is.
  • the brightness score is stored in the terminal device in the form of a table.
  • the brightness score of the second image may be divided into 0 to 255 levels, and the brightness value of the second image a in the first category may be 10, the first category.
  • the brightness score of the second image b in the second category may be 45, the brightness score of the second image c in the second category may be 20, and the brightness score of the second image d in the second category may be 35, the third The luminance score of the second image e in the category may be 105, and the luminance score of the second image f in the third category may be 50 or the like.
  • Step 507 The acquiring device of the image processing mode acquires a color score of each second image according to a preset color score rule.
  • the preset brightness score rule may be preset and saved in the terminal device according to a principle that the color of the different image blocks is conveniently defined by the user, for example, the corresponding color may be defined according to whether the color in the image block is a common color.
  • the color score of the image block if in an image block When the color of the common color is red, blue, green, etc., the color score of the image block can be defined to be high. If the color of an image block is an uncommon color such as purple, the color score of the image block can be defined.
  • the value is lower and the color score of each second image can be defined in the form of a step change. Wherein, as shown in FIG.
  • the obtained color scores of the respective second images may be stored in the terminal device in the form of a table, for example, the color score of the second image may be divided into 0 to 255 levels, the first category.
  • the color score of the second image a in the second category may be 20, the color score of the second image b in the first category may be 200, and the color score of the second image c in the second category may be 15, second
  • the color score of the second image d in the category may be 100
  • the color score of the second image e in the third category may be 30, and the color score of the second image f in the third category may be 135 or the like.
  • Step 508 The image processing mode acquiring device separately multiplies the obtained luminance score and the color score of each second image to obtain an image score of each second image.
  • Step 509 The image processing mode acquiring device adds the image scores of each second image in each category to obtain image scores of the second image in each class.
  • the image score of the second image may be obtained, and then the image scores of all the second images in each category may be added. That is, the image score of the second image in the first category can be obtained.
  • the obtained image scores of the second image of each category can be stored in the terminal device in units of categories, for example, the first The image score of the category may be 18200, the image score of the second category may be 8000, and the image score of the third category may be 10040, indicating that the white balance processing effect of the first category is the best, so the image to be processed can be set.
  • the target white balance processing mode is a white balance processing algorithm corresponding to the first category.
  • Step 510 The image processing mode acquiring device compares the image scores of the second image in each category, and obtains the target classification with the largest image score of the second image in the preset classification.
  • Step 511 The image processing mode acquiring device sets the white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing mode of the image to be processed.
  • the terminal device can compare the size relationship between the image scores of the second image in each category, and set the white balance algorithm corresponding to the category to which the image with the largest image score belongs to be the target white of the image to be processed. Balanced processing.
  • the method for obtaining an image processing method can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification.
  • a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed
  • the white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
  • the embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the image processing mode acquisition method described in the embodiment of the present invention.
  • An embodiment of the present invention provides an image processing mode acquisition device 6, which can be applied to an image processing mode acquisition method provided by the embodiment corresponding to FIG. 3 to FIG.
  • the method includes: a first obtaining unit 61, a classifying unit 62, a second acquiring unit 63, and a processing unit 64, wherein:
  • the first obtaining unit 61 is configured to acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image.
  • the classification unit 62 classifies the first image based on the preset classification.
  • the second obtaining unit 63 is configured to perform white balance processing on each of the first images in each category to obtain a second image, and acquire a white balance processing result of the second image in each category.
  • the processing unit 64 is configured to analyze the white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
  • the acquiring device of the image processing mode provided by the embodiment of the present invention can obtain the image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing white balance processing of the second image in each category As a result, a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed
  • the white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
  • the classification unit 62 may include: a first acquisition module 621 and a classification module 622, where:
  • the first obtaining module 621 is configured to acquire a color temperature of each first image in a preset partition.
  • the classification module 622 is configured to classify the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification.
  • the first obtaining module 621 is further configured to use each of the first images as a transmitting object, and reflect a color temperature of the standard light source into each of the first images and fall into a preset partition.
  • the range is the color temperature of the first image in the preset partition.
  • the second obtaining unit 63 may include: a calculating module 631 and a second acquiring module 632, where:
  • the calculating module 631 is configured to separately calculate the number of the first images in each category to obtain the first A classification in which the number of images is not zero.
  • the second obtaining module 632 is configured to perform white balance processing on each of the first images of the non-zero number of the first images according to the white balance processing algorithm of each category to obtain a second image, and obtain each category. The result of white balance processing of the second image.
  • the processing unit 64 includes: a third obtaining module 641 and a processing module 642, wherein:
  • the third obtaining module 641 is configured to respectively acquire image scores of the second image in each class.
  • the third obtaining module 641 is further configured to compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification.
  • the processing module 642 is configured to set a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing mode.
  • the third obtaining module 641 is further configured to perform the following steps:
  • the brightness score of each second image is obtained according to a preset brightness score rule.
  • the color score of each second image is obtained according to a preset color score rule.
  • the obtained luminance scores and color scores of each of the second images are respectively multiplied to obtain image scores for each of the second images.
  • the image scores of each of the second images in each class are added to obtain image scores for the second image in each class.
  • the acquiring device of the image processing mode provided by the embodiment of the present invention can obtain the image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. For each first image in each category Performing a white balance process to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed
  • the prior art is solved by selecting the best processing result from the processing results for different white balance processing methods according to the image to be processed, and using the optimal processing result as the white balance processing manner of the image to be processed.
  • the automatic white balance method is used to process images of different situations, there is a problem of calculation deviation, which improves the processing effect of image white balance; at the same time, the user experience can be improved.
  • Both the module 641 and the processing module 642 can be implemented by a central processing unit (CPU), a microprocessor (Micro Processor Unit (MPU), a digital signal processor (DSP) or a field located in the wireless data transmitting device. Realizable by a Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • An embodiment of the present invention further provides an image processing mode acquiring device 7.
  • the device includes: a memory 71 configured with executable instructions; and a processor 72 configured to execute the executable instructions.
  • the executable instructions are configured to:
  • Obtaining a to-be-processed image performing the segmentation process according to a preset rule to obtain a first image; classifying and finishing the first image based on a preset classification; respectively, for each of the categories in each category Performing white balance processing on an image to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain the image to be processed The target white balance processing method.
  • the executable instruction is further configured to acquire a color temperature of each of the first images in a preset partition; according to a color temperature of each of the first images in a preset partition, and the pre- The matching relationship between the color temperatures of each category in the classification is performed, and the first image is sorted.
  • the executable instructions are further configured to calculate respectively in each category a number of the first images, obtaining a classification in which the number of the first images is not zero; according to a white balance processing algorithm of each category, each of the categories in which the number of the first images is not zero An image is subjected to white balance processing to obtain the second image, and a white balance processing result of the second image in each category is acquired.
  • the executable instructions are further configured to respectively acquire image scores of the second image in each class; compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification; setting a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing manner.
  • the executable instruction is further configured to acquire a brightness score of each of the second images according to a preset brightness score rule; and obtain each of the foregoing according to a preset color score rule Color scores of the second image; respectively multiplying the obtained luminance scores and color scores of each of the second images to obtain image scores for each of the second images; The image scores of the second image are added to obtain image scores of the second image in each class.
  • the first obtaining unit 61, the classifying unit 62, the second obtaining unit 63, the processing unit 64, the first obtaining module 621, the classifying module 622, the calculating module 631, the second obtaining module 632, and the Both the acquisition module 641 and the processing module 642 can be implemented by the processor 72 in particular.
  • the processor 72 can be specifically a CPU, an MPU, a DSP, an FPGA, or the like.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded into a computer or other programmable data processing device Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes in a flowchart and/or Or block diagram the steps of a function specified in a box or multiple boxes.
  • the embodiment of the present invention solves the prior art by selecting an optimal processing result from the processing results of the image to be processed for different white balance processing modes, and using the optimal processing result as the white balance processing mode of the image to be processed.
  • the automatic white balance method there is a problem of calculation deviation when processing images of different situations, thereby improving the processing effect of image white balance; at the same time, laying a foundation for improving the user experience.

Abstract

Disclosed is a device for acquiring an image processing mode. The device comprises: a first acquisition unit, a classification unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is configured to acquire images to be processed, and segmenting, according to a pre-set rule, the images to be processed, so as to obtain first images; the classification unit is configured to classify the first images based on pre-set classifications; the second acquisition unit is configured to respectively perform white balance treatment on each first image in each classification, so as to obtain second images, and acquiring white balance treatment results of the second images in each classification; and the processing unit is configured to analyse the white balance treatment results of the second images in each classification, so as to obtain a target white balance treatment mode for the images to be processed. Also disclosed is a method for acquiring an image processing mode, and a storage medium.

Description

一种图像处理方式的获取设备和方法、存储介质Acquisition device and method for image processing method, storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610362535.2、申请日为2016年05月26日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Apr. 26, 2016, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本申请涉及通信领域中的图像处理技术,尤其涉及一种图像处理方式的获取设备和方法、存储介质。The present application relates to image processing technologies in the field of communications, and in particular, to an image processing method acquisition device and method, and a storage medium.
背景技术Background technique
白平衡可以解决色彩还原和色调处理的一系列问题,自动白平衡通常为数码相机的默认设置,相机中有一结构复杂的矩形图,它可决定画面中的白平衡基准点,以此来达到白平衡调校。自动白平衡算法是将整个画面分割成若干块,然后判断每个块的颜色是否落在特定的范围内,这些“特定的范围”可以称为白区。White balance can solve a series of problems of color reproduction and tone processing. Automatic white balance is usually the default setting of digital camera. There is a complicated rectangular diagram in the camera, which can determine the white balance reference point in the picture to achieve white. Balance adjustment. The automatic white balance algorithm divides the entire picture into several blocks and then determines whether the color of each block falls within a specific range. These "specific ranges" may be referred to as white areas.
一般自动白平衡的准确率是非常高的,但实际以下情况会影响白平衡的效果:大面积的草地,皮肤,黄色,浅蓝色的木门等作为反射体时,光源经这些物体反射后光色虽然可以落在白区内,但不能正确体现光源的光色,自动白平衡结果会有偏差;大面积的大红色,深蓝色,紫色,褐色等作为反射体时,光源经过这些物体反射后光色不会落在白区内,无法计算自动白平衡;一个以上的发光体且光色不同,不论是按照其中一个发光体作为光源还是采用不同光色插值,最终反射后的光色动白平衡结果同样会存在一些偏差。 Generally, the accuracy of automatic white balance is very high, but the actual situation will affect the effect of white balance: when a large area of grass, skin, yellow, light blue wooden door, etc. is used as a reflector, the light source is reflected by these objects. Although the color can fall in the white area, but the light color of the light source cannot be correctly reflected, the result of the automatic white balance will be biased; when the large area of large red, dark blue, purple, brown, etc. is used as the reflector, the light source is reflected by these objects. The light color does not fall in the white area, and the automatic white balance cannot be calculated; more than one illuminant and different light colors, whether according to one of the illuminants as the light source or different light color interpolation, the final reflected light color whitish There are also some deviations in the balance results.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种图像处理方式的获取方法和设备、存储介质,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。In view of this, the embodiment of the present invention is to provide an image processing method acquisition method and device, and a storage medium, which solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation deviation is improved. The effect of image white balance processing; at the same time, can improve the user experience.
为达到上述目的,本申请的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present application is implemented as follows:
第一方面,本发明实施例提供了一种图像处理方式的获取设备,所述设备包括:第一获取单元、分类单元、第二获取单元和处理单元,其中:In a first aspect, an embodiment of the present invention provides an apparatus for acquiring an image processing method, where the apparatus includes: a first acquiring unit, a classifying unit, a second acquiring unit, and a processing unit, where:
所述第一获取单元,配置为获取待处理图像,并将所述待处理图像按照预设规则进行分割处理得到第一图像;The first acquiring unit is configured to acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image;
所述分类单元,配置为基于预设分类,对所述第一图像进行分类整理;The classifying unit is configured to classify the first image according to a preset classification;
所述第二获取单元,配置为分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;The second acquiring unit is configured to perform white balance processing on each of the first images in each category to obtain a second image, and obtain a white balance processing result of the second image in each category;
所述处理单元,配置为分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。The processing unit is configured to analyze a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
可选的,所述分类单元包括:第一获取模块和分类模块,其中:Optionally, the classification unit includes: a first acquiring module and a classification module, where:
所述第一获取模块,配置为获取每一所述第一图像在预设分区中的色温;The first acquiring module is configured to acquire a color temperature of each of the first images in a preset partition;
所述分类模块,配置为根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。The classifying module is configured to classify the first image according to a matching relationship between a color temperature of each of the first images in a preset partition and a color temperature of each of the preset categories.
可选的,所述第一获取模块,还配置为将每一块所述第一图像作为发射物体,将标准光源通过每一块所述第一图像反射后落入预设分区中的色温的范围作为所述第一图像在预设分区中的色温。 Optionally, the first acquiring module is further configured to use, as the emitting object, the first image of each block as a range of color temperature of the standard light source reflected by each block of the first image and falling into the preset partition. The color temperature of the first image in the preset partition.
可选的,所述第二获取单元包括:计算模块和第二获取模块,其中:Optionally, the second obtaining unit includes: a calculating module and a second acquiring module, where:
所述计算模块,配置为分别计算每一类别中的第一图像的数目,得到所述第一图像的数目不为零的分类;The calculating module is configured to separately calculate the number of the first images in each category, and obtain a classification that the number of the first images is not zero;
所述第二获取模块,配置为根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。The second obtaining module is configured to perform white balance processing on each of the first images in the category of the first image that is not zero according to a white balance processing algorithm of each category to obtain the second An image, and a white balance processing result of the second image in each category is obtained.
可选的,所述处理单元包括:第三获取模块和处理模块,其中:Optionally, the processing unit includes: a third acquiring module and a processing module, where:
所述第三获取模块,配置为分别获取每一类中所述第二图像的图像分值;The third obtaining module is configured to separately acquire image scores of the second image in each class;
所述第三获取模块,还配置为比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;The third acquiring module is further configured to compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification;
所述处理模块,配置为设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。The processing module is configured to set a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing manner.
可选的,所述第三获取模块还配置为:Optionally, the third obtaining module is further configured to:
根据预设亮度分值规则,获取每一所述第二图像的亮度分值;Obtaining a brightness score of each of the second images according to a preset brightness score rule;
根据预设颜色分值规则,获取每一所述第二图像的颜色分值;Obtaining a color score of each of the second images according to a preset color score rule;
分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;And multiplying a brightness score and a color score of each of the obtained second images to obtain an image score of each of the second images;
将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。The image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
可选的,所述预设分类是根据标准光源经过不同的反射物体反射后,落在白区中的不同情况来定义设置的。Optionally, the preset classification is defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area.
第二方面,本发明实施例提供了一种图像处理方式的获取方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for acquiring an image processing method, where the method includes:
获取待处理图像,并将所述待处理图像按照预设规则进行分割处理得 到第一图像;Obtaining an image to be processed, and dividing the image to be processed according to a preset rule To the first image;
基于预设分类,对所述第一图像进行分类整理;Sorting and sorting the first image based on a preset classification;
分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring a white balance processing result of the second image in each category;
分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。A white balance processing result of the second image in each category is analyzed to obtain a target white balance processing manner of the image to be processed.
可选的,所述基于预设分类,对所述第一图像进行分类整理,包括:Optionally, the classifying, according to the preset classification, the first image, including:
获取每一所述第一图像在预设分区中的色温;Obtaining a color temperature of each of the first images in a preset partition;
根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。And classifying the first image according to a matching relationship between a color temperature of each of the first images in a preset partition and a color temperature of each of the preset categories.
可选的,所述获取每一所述第一图像在预设分区中的色温,包括:Optionally, the obtaining a color temperature of each of the first images in a preset partition includes:
将每一块所述第一图像作为发射物体,将标准光源通过每一块所述第一图像反射后落入预设分区中的色温的范围作为所述第一图像在预设分区中的色温。Each of the first images is used as a transmitting object, and a range of color temperatures of the standard light source reflected by each of the first images and falling into a preset partition is used as a color temperature of the first image in a preset partition.
可选的,所述分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果,包括:Optionally, the white balance processing is performed on each of the first images in each category to obtain a second image, and the white balance processing result of the second image in each category is obtained, including:
分别计算每一类别中的第一图像的数目,得到所述第一图像的数目不为零的分类;Calculating the number of the first images in each category separately, and obtaining a classification in which the number of the first images is not zero;
根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。According to the white balance processing algorithm of each category, each of the first images in the category in which the number of the first images is not zero is respectively subjected to white balance processing to obtain the second image, and each category is obtained. The result of the white balance processing of the second image.
可选的,所述分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式,包括:Optionally, the analyzing the white balance processing result of the second image in each category to obtain the target white balance processing manner of the image to be processed, including:
分别获取每一类中所述第二图像的图像分值; Obtaining image scores of the second image in each class separately;
比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;Comparing image scores of the second image in each class, and acquiring a target classification with the largest image score of the second image in the preset classification;
设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。And setting a white balance algorithm corresponding to the target classification in which the image score of the second image is the largest is the target white balance processing manner.
可选的,所述分别获取每一类中所述第二图像的图像分值,包括:Optionally, the acquiring the image scores of the second image in each class separately includes:
根据预设亮度分值规则,获取每一所述第二图像的亮度分值;Obtaining a brightness score of each of the second images according to a preset brightness score rule;
根据预设颜色分值规则,获取每一所述第二图像的颜色分值;Obtaining a color score of each of the second images according to a preset color score rule;
分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;And multiplying a brightness score and a color score of each of the obtained second images to obtain an image score of each of the second images;
将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。The image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
可选的,所述预设分类是根据标准光源经过不同的反射物体反射后,落在白区中的不同情况来定义设置的。Optionally, the preset classification is defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area.
第三方面,本发明实施例提供了一种图像处理方式的获取设备,所述设备包括:存储器,配置有可执行指令;处理器,配置为执行所述可执行指令,所述可执行指令配置为:In a third aspect, an embodiment of the present invention provides an image processing mode acquiring device, where the device includes: a memory configured with executable instructions; and a processor configured to execute the executable instructions, where the executable instructions are configured for:
获取待处理图像,将所述待处理图像按照预设规则进行分割处理得到第一图像;基于预设分类,对所述第一图像进行分类整理;分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。Obtaining a to-be-processed image, performing the segmentation process according to a preset rule to obtain a first image; classifying and finishing the first image based on a preset classification; respectively, for each of the categories in each category Performing white balance processing on an image to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain the image to be processed The target white balance processing method.
可选的,所述可执行指令,还配置为获取每一所述第一图像在预设分区中的色温;根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。Optionally, the executable instruction is further configured to obtain a color temperature of each of the first images in a preset partition; according to a color temperature of each of the first images in a preset partition, and the preset classification The first image is sorted and sorted by a matching relationship between color temperatures of each of the categories.
可选的,所述可执行指令,还配置为分别计算每一类别中的第一图像 的数目,得到所述第一图像的数目不为零的分类;根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。Optionally, the executable instruction is further configured to separately calculate a first image in each category a number of the first image obtained by the non-zero classification; according to the white balance processing algorithm of each category, respectively performing the first image in each of the categories in which the number of the first images is not zero The white balance process obtains the second image and acquires a white balance processing result of the second image in each category.
可选的,所述可执行指令,还配置为分别获取每一类中所述第二图像的图像分值;比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。Optionally, the executable instruction is further configured to separately obtain image scores of the second image in each class; compare image scores of the second image in each class, and obtain the pre-preparation A target classification with the largest image score of the second image in the classification is set; and a white balance algorithm corresponding to the target classification with the largest image score of the second image is set as the target white balance processing manner.
可选的,所述可执行指令,还配置为根据预设亮度分值规则,获取每一所述第二图像的亮度分值;根据预设颜色分值规则,获取每一所述第二图像的颜色分值;分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。Optionally, the executable instruction is further configured to acquire a brightness score of each of the second images according to a preset brightness score rule; and acquire each of the second images according to a preset color score rule. Color scores; respectively multiplying the obtained luminance scores and color scores of each of the second images to obtain image scores for each of the second images; The image scores of the two images are added to obtain an image score of the second image in each of the classes.
第四方面,本发明实施例提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行以上所述的图像处理方式的获取方法。In a fourth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores a computer program, and the computer program is used to execute the image processing mode acquisition method described above.
本发明实施例所提供的图像处理方式的获取设备和方法、存储介质,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动 白平衡方式处理不同情况的图像时会存在计算偏差的问题,进而提高了图像白平衡的处理效果;同时,为提高用户的体验效果奠定了基础。The apparatus and method for acquiring an image processing method and the storage medium provided by the embodiments of the present invention can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then first Sorting the image, performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing each category The white balance processing result of the second image obtains the target white balance processing mode of the image to be processed; thus, the best processing result is selected by processing the image from the image to be processed for different white balance processing modes, and the best The processing result is used as the white balance processing mode of the image to be processed, and the automatic method in the prior art is solved. When the white balance method processes images of different situations, there is a problem of calculation deviation, which improves the processing effect of image white balance; at the same time, it lays a foundation for improving the user experience.
附图说明DRAWINGS
图1为实现本发明各个实施例的一个可选的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention;
图2为本发明实施例提供的移动终端能够操作的通信系统结构示意图;2 is a schematic structural diagram of a communication system that can be operated by a mobile terminal according to an embodiment of the present invention;
图3为本发明实施例提供的一种图像处理方式的获取方法的流程示意图;FIG. 3 is a schematic flowchart of a method for acquiring an image processing method according to an embodiment of the present disclosure;
图4为本发明实施例提供的另一种图像处理方式的获取方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another method for acquiring an image processing manner according to an embodiment of the present disclosure;
图5为本发明实施例提供的又一种图像处理方式的获取方法的流程示意图;FIG. 5 is a schematic flowchart diagram of still another method for acquiring an image processing method according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种每一类别中的每一第二图像的亮度分值示例图;6 is a diagram showing an example of luminance scores of each second image in each category according to an embodiment of the present invention;
图7为本发明实施例提供的一种每一类别中的每一第二图像的颜色分值示例图;FIG. 7 is a diagram showing an example of color scores of each second image in each category according to an embodiment of the present invention; FIG.
图8为本发明实施例提供的一种每一类别的第二图像的图像分值示例图;8 is a diagram showing an example of image scores of a second image of each category according to an embodiment of the present invention;
图9为本发明实施例提供的一种图像处理方式的获取设备的结构示意图;FIG. 9 is a schematic structural diagram of an apparatus for acquiring an image processing method according to an embodiment of the present disclosure;
图10为本发明实施例提供的另一种图像处理方式的获取设备的结构示意图;FIG. 10 is a schematic structural diagram of another apparatus for acquiring an image processing method according to an embodiment of the present disclosure;
图11为本发明实施例提供的又一种图像处理方式的获取设备的结构示意图;FIG. 11 is a schematic structural diagram of another apparatus for acquiring an image processing method according to an embodiment of the present disclosure;
图12为本发明另一实施例提供的一种图像处理方式的获取设备的结构 示意图;FIG. 12 is a schematic diagram of an apparatus for acquiring an image processing method according to another embodiment of the present invention; schematic diagram;
图13为本发明实施例提供的一种图像处理方式的获取设备的硬件结构示意图。FIG. 13 is a schematic structural diagram of hardware of an image processing mode acquiring device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
现在将参考附图1来描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to FIG. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, 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. In the following, it is assumed that the terminal is a mobile terminal. However, 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.
图1为实现本发明各个实施例的移动终端的硬件结构示意。FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
移动终端100可以包括无线通信单元110、音频/视频(A/V)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件,可以替代地实施更多或更少的组件,将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an audio/video (A/V) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more. Figure 1 shows a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead, and the components of the mobile terminal will be described in detail below. .
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括广 播接收模块111、移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit can include a wide range At least one of the broadcast receiving module 111, the mobile communication module 112, the wireless internet module 113, the short-range communication module 114, and the location information module 115.
广播接收模块111经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播信道可以包括卫星信道和/或地面信道。广播管理服务器可以是生成并发送广播信号和/或广播相关信息的服务器或者接收之前生成的广播信号和/或广播相关信息并且将其发送给终端的服务器。广播信号可以包括TV广播信号、无线电广播信号、数据广播信号等等。而且,广播信号可以进一步包括与TV或无线电广播信号组合的广播信号。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以由移动通信模块112来接收。广播信号可以以各种形式存在,例如,其可以以数字多媒体广播(DMB)的电子节目指南(EPG)、数字视频广播手持(DVB-H)的电子服务指南(ESG)等等的形式而存在。广播接收模块111可以通过使用各种类型的广播系统接收信号广播。特别地,广播接收模块111可以通过使用诸如多媒体广播-地面(DMB-T)、数字多媒体广播-卫星(DMB-S)、数字视频广播-手持(DVB-H),前向链路媒体(MediaFLO@)的数据广播系统、地面数字广播综合服务(ISDB-T)等等的数字广播系统接收数字广播。广播接收模块111可以被构造为适合提供广播信号的各种广播系统以及上述数字广播系统。经由广播接收模块111接收的广播信号和/或广播相关信息可以存储在存储器160(或者其它类型的存储介质)中。The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel can include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to the terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Moreover, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of Digital Multimedia Broadcasting (DMB) Electronic Program Guide (EPG), Digital Video Broadcasting Handheld (DVB-H) Electronic Service Guide (ESG), and the like. . The broadcast receiving module 111 can receive a signal broadcast by using various types of broadcast systems. In particular, the broadcast receiving module 111 can use forward link media (MediaFLO) by using, for example, multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H) The digital broadcasting system of the @) data broadcasting system, the terrestrial digital broadcasting integrated service (ISDB-T), and the like receives digital broadcasting. The broadcast receiving module 111 can be constructed as various broadcast systems suitable for providing broadcast signals as well as the above-described digital broadcast system. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。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. 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.
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括 WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。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 technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), and the like.
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。The short range communication module 114 is a module for supporting short range communication. Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块115的典型示例是全球定位系统(GPS)模块115。根据当前的技术,作为GPS的位置信息模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,作为GPS的位置信息模块115能够通过实时地连续计算当前位置信息来计算速度信息。The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of location information module 115 is Global Positioning System (GPS) module 115. According to the current technology, the position information module 115 as a GPS calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate the three-dimensional current based on longitude, latitude, and altitude. location information. Currently, 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 position information module 115 as a GPS can calculate the speed information by continuously calculating the current position information in real time.
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风122接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。 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 and a microphone 122 that processes image data of still pictures or video obtained by the 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. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal. The microphone 122 can receive sound (audio data) via the microphone 122 in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data. The processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode. The microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。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 touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, and the like due to contact), and the like. In particular, when the touch panel is superimposed on the display unit 151 in the form of a layer, a touch screen can be formed.
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。The sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal. The orientation of 100, the acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling the operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide type mobile phone, the sensing unit 140 can sense whether the slide type phone is turned on or off. In addition, 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.
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100. For example, 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 interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
输出单元150可以包括显示模块151和音频输出模块152等等。The output unit 150 may include a display module 151, an audio output module 152, and the like.
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图 像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a 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 100 is in the video call mode or the image capturing mode, the display unit 151 may display the captured image and/or the received image, show the video or a picture. Like the UI or GUI of related functions and so on.
同时,当显示模块151和触摸板以层的形式彼此叠加以形成触摸屏时,显示模块151可以用作输入装置和输出装置。显示模块151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display module 151 and the touch panel are superposed on each other in the form of layers to form a touch screen, the display module 151 can function as an input device and an output device. The display module 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. 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. According to a particular desired embodiment, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include 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.
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. The audio signal is output as sound. Moreover, the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100. The audio output module 152 can include a speaker, a buzzer, and the like.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data that has been output or is to be output. 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.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(Read Only Memory,ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存 储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。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 Memory (PROM), magnetic memory, disk, optical disk, etc. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。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. In addition, 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.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。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.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, 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 ( 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. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, 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.
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数 据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The mobile terminal 100 as shown in FIG. 1 may be configured to utilize the number of transmissions via a frame or a packet It operates according to, for example, wired and wireless communication systems as well as satellite-based communication systems.
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。A communication system in which a mobile terminal according to the present invention can be operated will now be described with reference to FIG.
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。Such communication systems may use different air interfaces and/or physical layers. For example, 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. As a non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干已知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC275。Referring to FIG. 2, a CDMA wireless communication system can include a plurality of mobile terminals 100, 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. The MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line. The backhaul line can be constructed in accordance with any of a number of 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 can include multiple BSCs 275.
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to 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, etc.).
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。The intersection of partitioning and frequency allocation can be referred to as a CDMA channel. BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" can be used to generally refer to a single BSC 275 and at least one BS 270. A base station can also be referred to as a "cell station." Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端 100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。As shown in FIG. 2, a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system. The broadcast receiving module 111 as shown in FIG. 1 is disposed at the mobile terminal 100 to receive the broadcast signal transmitted by BT295. In Figure 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 helps locate at least one of the plurality of mobile terminals 100.
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的作为GPS的位置信息模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。In Figure 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites. The position information module 115 as a GPS as shown in FIG. 1 is generally configured to cooperate with the satellite 300 to obtain 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.
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC280与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。As a typical operation of a wireless communication system, BS 270 receives reverse link signals from various mobile terminals 100. Mobile terminal 100 typically participates in calls, messaging, and other types of communications. Each reverse link signal received by a particular base station 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. Similarly, PSTN 290 interfaces with MSC 280, MSC 280 interfaces with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
基于上述移动终端硬件结构以及通信系统,提出本发明各个实施例。Various embodiments of the present invention are proposed based on the above-described mobile terminal hardware structure and communication system.
本发明的实施例提供一种图像处理方式的获取方法,参照图3所示,该方法包括以下步骤:An embodiment of the present invention provides a method for acquiring an image processing method. Referring to FIG. 3, the method includes the following steps:
步骤301、获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像。Step 301: Acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image.
具体的,步骤301获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像可以是由图像处理方式的获取设备来实现的。获取的待处理图像可以是一帧图像数据,分割之后的第一图像中可以包括至少两个图像块;本发明中的图像处理方式的获取设备可以是终端设备,例如 可以是手机、相机等移动终端设备。Specifically, the step 301 is to obtain an image to be processed, and the image to be processed is divided according to a preset rule to obtain a first image, which may be implemented by an acquiring device of an image processing mode. The acquired image to be processed may be one frame of image data, and the first image after the segmentation may include at least two image blocks; the image processing mode acquisition device in the present invention may be a terminal device, for example It can be a mobile terminal device such as a mobile phone or a camera.
按照预设规则进行图像分割的时候,该预设规则可以是用户根据自己的意愿、实际应用的终端设备的处理能力和用户想要达到的处理效果等预先设置的,当然,分割得到的第一图像的图像块越多最终得到的每一块图像的白平衡处理效果越好,相应的对于终端设备的要求越高;相反的,分割得到的第一图像的图像块越少最终得到的每一块图像的白平衡处理效果越不好,相应的对于终端设备的要求稍低。When the image is segmented according to the preset rule, the preset rule may be preset by the user according to his or her own wishes, the processing capability of the terminal device actually applied, and the processing effect that the user wants to achieve, and of course, the first segmentation is obtained. The more image blocks of an image, the better the white balance processing effect of each image obtained, and the higher the requirement for the terminal device; on the contrary, the smaller the image block of the first image obtained by segmentation, the smaller each image finally obtained. The worse the white balance processing effect, the lower the requirements for the terminal equipment.
实际应用中,本实施例所述的方法可以具体应用于移动终端,也即所述图像处理方式的获取设备可以具体为移动终端;这里,移动终端是指可以在移动中使用的设备,广义的讲包括手机、笔记本、平板电脑、POS机,甚至包括车载电脑。但是,大部分情况下是指手机或者具有多种应用功能的智能手机以及平板电脑。随着网络和技术朝着越来越宽带化的方向的发展,移动通信产业将走向真正的移动信息时代。另一方面,随着集成电路技术的飞速发展,移动终端的处理能力已经拥有了强大的处理能力,移动终端正在从简单的通话工具变为一个综合信息处理平台。这也给移动终端增加了更加宽广的发展空间。移动终端作为简单通信设备伴随移动通信发展已有几十年的历史。移动智能终端几乎在一瞬之间转变为互联网业务的关键入口和主要创新平台,新型媒体、电子商务和信息服务平台,互联网资源、移动网络资源与环境交互资源的最重要枢纽,其操作系统和处理器芯片甚至成为当今整个信息和通信技术产业的战略制高点。移动智能终端可以简称为智能终端,移动智能终端拥有接入互联网能力,通常搭载各种操作系统,可根据用户需求定制化各种功能。生活中常见的智能终端包括移动智能终端、车载智能终端、智能电视、可穿戴设备等。In an actual application, the method in this embodiment may be specifically applied to a mobile terminal, that is, the acquiring device in the image processing mode may be specifically a mobile terminal; where the mobile terminal refers to a device that can be used in mobile, in a broad sense. It includes mobile phones, laptops, tablets, POS machines, and even car computers. However, in most cases, it refers to a mobile phone or a smartphone with a variety of application functions and a tablet. With the development of networks and technologies in the direction of more and more broadband, the mobile communication industry will move toward a real era of mobile information. On the other hand, with the rapid development of integrated circuit technology, 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.
步骤302、基于预设分类,对第一图像进行分类整理。Step 302: Sort and sort the first image based on the preset classification.
具体的,步骤302基于预设分类,对第一图像进行分类整理可以是由图 像处理方式的获取设备来实现的。该预设分类可以是根据标准光源经过不同颜色的反射物体的反射之后,反射形成的光源落在预设分区中的色温与原始标准光源的色温之间的关系来确定的;根据预设分类对第一图像进行分类整理具体可以是分别将每一块第一图像作为发射物体,标准光源通过每一块第一图像反射后落入预设分区中的色温的范围与预设分类中每一类别的色温范围进行比较,然后来判定分割得到的每一块第一图像具体所属的类别。Specifically, step 302 is based on the preset classification, and classifying the first image may be performed by a map. A device like a processing method is implemented. The preset classification may be determined according to the relationship between the color temperature of the reflected light source falling in the preset partition and the color temperature of the original standard light source after the reflection of the standard light source by the reflective object of different colors; The first image may be classified into a specific object, and each of the first images is used as a launching object, and the color temperature of each standard in each of the preset categories is reflected by the standard light source after being reflected by each of the first images. The range is compared, and then the category to which the first image of each block obtained by the segmentation belongs is determined.
步骤303、分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果。Step 303: Perform white balance processing on each of the first images in each category to obtain a second image, and obtain a white balance processing result of the second image in each category.
具体的,步骤303分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果可以是由图像处理方式的获取设备来实现的。分别对每一类别中的每一第一图像进行白平衡处理可以是以类别为单位对每一类别中的所有的第一图像均进行白平衡处理,具体的白平衡处理方式可以是根据不同类别对应的白平衡处理方式;第一图像经过白平衡处理之后得到的图像即为第二图像,第二图像的图像块与第一图像中的图像块的数目相同,并且第一图像中的图像块与第二图像中的图像块之间具有一一对应的关系。Specifically, step 303 performs white balance processing on each first image in each category to obtain a second image, and obtains a white balance processing result of the second image in each category, which may be an image processing mode acquisition device. To achieve. Performing white balance processing on each of the first images in each category may perform white balance processing on all the first images in each category in units of categories, and the specific white balance processing manner may be according to different categories. Corresponding white balance processing mode; the image obtained after the first image is subjected to white balance processing is the second image, the image block of the second image is the same as the number of image blocks in the first image, and the image block in the first image There is a one-to-one correspondence with the image blocks in the second image.
步骤304、分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式。Step 304: Analyze a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
具体的,步骤304分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式可以是由图像处理方式的获取方法来实现的。分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式具体可以是获取经过白平衡处理之后的每一第二图像的图像分值,基于每一第二图像的图像分值得到每一类别中的所有第二图像的图像分值,比较每一类别中的第二图像的图像分值得到最适合待处理 图像即白平衡处理结果最好的类别对应的白平衡处理方式为待处理图像目标白平衡处理方式。Specifically, step 304 analyzes the white balance processing result of the second image in each category, and the target white balance processing manner of obtaining the image to be processed may be implemented by an image processing method. The method for analyzing the white balance processing result of the second image in each category, and obtaining the target white balance processing manner of the image to be processed may specifically be obtaining the image score of each second image after the white balance processing, based on each second The image score of the image is obtained as an image score of all the second images in each category, and the image score of the second image in each category is compared to obtain the most suitable image to be processed. The white balance processing method corresponding to the best category of the image, that is, the white balance processing result is the image target white balance processing mode of the image to be processed.
本发明实施例所提供的图像处理方式的获取方法,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从根据待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。The method for obtaining an image processing method according to the embodiment of the present invention can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing white balance processing of the second image in each category As a result, a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed The white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
本发明的实施例提供一种图像处理方式的获取方法,参照图4所示,该方法包括以下步骤:An embodiment of the present invention provides a method for acquiring an image processing manner. Referring to FIG. 4, the method includes the following steps:
步骤401、图像处理方式的获取设备获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像。Step 401: The acquiring device of the image processing mode acquires an image to be processed, and divides the image to be processed according to a preset rule to obtain a first image.
步骤402、图像处理方式的获取设备获取每一第一图像在预设分区中的色温。Step 402: The image processing mode acquiring device acquires a color temperature of each first image in a preset partition.
具体的,可以是将分别将分割得到的每一第一图像作为反射物体,使用标准光源照射到该反射物体上,之后反射出来的光线落在预设分区中;获取反射处理的光线落在预设分区中的具体色温范围即可以得到第一图像在预设分区中的色温;该预设分区可以是白区,白区可以是接近标准光源光色的若干个区域,可以认为是标准光源光色经过黑白色反射的光色。Specifically, each of the first images obtained by the segmentation may be used as a reflective object, and the standard light source is used to illuminate the reflective object, and then the reflected light falls in a preset partition; Setting a specific color temperature range in the partition can obtain a color temperature of the first image in the preset partition; the preset partition can be a white area, and the white area can be a plurality of areas close to the standard light source color, which can be regarded as a standard light source light. The color of the light reflected by black and white.
步骤403、图像处理方式的获取设备根据每一第一图像在预设分区中的色温与预设分类中每一类别的色温之间的匹配关系,对第一图像进行分类 整理。Step 403: The image processing mode acquiring device classifies the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification. sort out.
具体的,预设分类可以是根据标准光源经过不同的反射物体反射后,落在白区中的不同情况来定义设置的,例如预设分类可以包括三种类别,第一类别可以是标准光源经过黑白色的物体反射之后,所有的光均可以正确的落在白区中,并且落在白区中的色温与反射之前的光源的色温相同;第二类别可以是5000-7000K色温和3000-5000K色温的光源照射到黄色的反射物体之后,此时反射后的光落入白区色温比光源的色温偏低,或者可以是光源照射在绿色植物在晴天和阴天下的光色后落入白区,此时落入白区的色温仍然是比原始光源的色温偏低;第三类别可以是3.2000-3000K色温和3000-5000K色温的光源照射到淡蓝色的反射物体之后,此时反射后的光落入白区色温比光源的色温偏高。之后,可以判断每一第一图像在预设分区即白区中的色温与预设分类中的每一类别的色温之间的关系,第一图像在白区中的色温与预设分类的类别中的色温范围匹配的类别即为该第一图像对应的类别,例如若任一第一图像在白区中的色温范围属于第一类别在白区中的色温范围,则可以认为该第一图像归类为第一类别。Specifically, the preset classification may be defined according to different conditions in which the standard light source is reflected by different reflective objects and falls in the white area. For example, the preset classification may include three categories, and the first category may be a standard light source. After the black and white objects are reflected, all the light can fall correctly in the white area, and the color temperature falling in the white area is the same as the color temperature of the light source before reflection; the second category can be 5000-7000K color temperature and 3000-5000K After the color temperature light source is irradiated to the yellow reflective object, the reflected light falls into the white area, and the color temperature is lower than the color temperature of the light source, or the light source may be irradiated on the green plant in the sunny day and the cloudy sky, and then fall into the white area. At this time, the color temperature falling into the white area is still lower than the color temperature of the original light source; the third category may be 3.2000-3000K color temperature and 3000-5000K color temperature light source after illuminating the light blue reflective object, at this time after reflection The color temperature of the light falling into the white zone is higher than the color temperature of the light source. After that, the relationship between the color temperature of each of the first images in the preset partition, that is, the white area, and the color temperature of each category in the preset category, the color temperature of the first image in the white area and the category of the preset classification may be determined. The category in which the color temperature range is matched is the category corresponding to the first image. For example, if the color temperature range of any first image in the white area belongs to the color temperature range of the first category in the white area, the first image may be considered as the first image. Classified as the first category.
步骤404、图像处理方式的获取设备分别计算每一类别中的第一图像的数目,得到第一图像的数目不为零的分类。Step 404: The acquiring device of the image processing mode separately calculates the number of the first images in each category, and obtains a classification in which the number of the first images is not zero.
步骤405、图像处理方式的获取设备根据每一类别的白平衡处理算法,分别对第一图像的数目不为零的类别中每一第一图像进行白平衡处理得到第二图像,并获取每一类别中第二图像的白平衡处理结果。Step 405: The image processing mode acquiring device performs white balance processing on each of the first images of the non-zero number of the first images according to the white balance processing algorithm of each category to obtain a second image, and acquires each of the images. The result of white balance processing of the second image in the category.
具体的,可以采用每一类别自己的白平衡处理算法计算加权平均至后按照不同的投射规则投射到期望的光色,然后根据投射后的红、绿蓝三原色的值,对第一图像的数目不为零的类别中的每一个第一图像进行相应的白平衡处理,并得到每一类别中的第二图像的白平衡处理结果。具体的白平衡处理过程可以参照现有技术中对于不同类别的图像的白平衡处理过 程。Specifically, each class's own white balance processing algorithm may be used to calculate the weighted average to project to the desired light color according to different projection rules, and then the number of the first image according to the values of the projected red, green and blue primary colors. A corresponding white balance process is performed for each of the first images of the non-zero categories, and a white balance processing result of the second image in each category is obtained. The specific white balance processing process can refer to the white balance processing of different types of images in the prior art. Cheng.
步骤406、图像处理方式的获取设备分别获取每一类中第二图像的图像分值。Step 406: The image processing mode acquiring device respectively acquires image scores of the second image in each class.
具体的,可以是获取每一类别中的所有第二图像的图像分值的总和,来得到每一类中所有第二图像的图像分值。Specifically, the sum of the image scores of all the second images in each category may be obtained to obtain image scores of all the second images in each class.
步骤407、图像处理方式的获取设备对每一类中第二图像的图像分值进行分析处理,得到待处理图像的目标白平衡处理方式。Step 407: The image processing mode acquiring device analyzes and processes the image score of the second image in each class to obtain a target white balance processing mode of the image to be processed.
需要说明的是,本实施中与其他实施例中相同步骤或概念的解释可以参照其它实施例中的描述,此处不再赘述。It should be noted that the explanation of the same steps or concepts in the other embodiments may refer to the descriptions in other embodiments, and details are not described herein again.
本发明实施例所提供的图像处理方式的获取方法,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从根据待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。The method for obtaining an image processing method according to the embodiment of the present invention can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing white balance processing of the second image in each category As a result, a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed The white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
本发明的实施例提供一种图像处理方式的获取方法,参照图5所示,该方法包括以下步骤:An embodiment of the present invention provides a method for acquiring an image processing manner. Referring to FIG. 5, the method includes the following steps:
步骤501、图像处理方式的获取设备获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像。Step 501: The acquiring device of the image processing mode acquires an image to be processed, and divides the image to be processed according to a preset rule to obtain a first image.
步骤502、图像处理方式的获取设备获取每一第一图像在预设分区中的色温。 Step 502: The acquiring device of the image processing mode acquires a color temperature of each first image in a preset partition.
步骤503、图像处理方式的获取设备根据每一第一图像在预设分区中的色温与预设分类中每一类别的色温之间的匹配关系,对第一图像进行分类整理。Step 503: The image processing mode acquiring device sorts the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification.
步骤504、图像处理方式的获取设备分别计算每一类别中的第一图像的数目,得到第一图像的数目不为零的分类。Step 504: The acquiring device of the image processing mode separately calculates the number of the first images in each category, and obtains a classification in which the number of the first images is not zero.
步骤505、图像处理方式的获取设备根据每一类别的白平衡处理算法,分别对第一图像的数目不为零的类别中每一第一图像进行白平衡处理得到第二图像,并获取每一类别中第二图像的白平衡处理结果。Step 505: The image processing mode acquiring device performs white balance processing on each of the first images of the non-zero number of the first image according to the white balance processing algorithm of each category to obtain a second image, and obtain each The result of white balance processing of the second image in the category.
步骤506、图像处理方式的获取设备根据预设亮度分值规则,获取每一第二图像的亮度分值。Step 506: The acquiring device of the image processing mode acquires a brightness score of each second image according to a preset brightness score rule.
具体的,预设亮度分值规则可以是用户基于便于定义不同图像块的亮度等原则预先设置完成并保存在终端设备中的,例如可以根据图像块的明亮程度来设置,越明亮的图像块的亮度分值越大,相反的亮度分值则越小,可以按照阶梯变化的形式来定义每一第二图像的亮度分值;其中,如图6中所示,可以将得到的各个第二图像的亮度分值以表格的形式存储在终端设备中,例如第二图像的亮度分值可以分为0~255等级,第一类别中的第二图像a的亮度分值可以为10,第一类别中的第二图像b的亮度分值可以为45,第二类别中的第二图像c的亮度分值可以为20,第二类别中的第二图像d的亮度分值可以为35,第三类别中的第二图像e的亮度分值可以为105,第三类别中的第二图像f的亮度分值可以为50等。Specifically, the preset brightness score rule may be preset and saved in the terminal device according to the principle of facilitating the definition of the brightness of different image blocks, for example, may be set according to the brightness of the image block, and the brighter the image block is. The larger the brightness score is, the smaller the opposite brightness score is, and the brightness score of each second image can be defined in the form of a step change; wherein, as shown in FIG. 6, the obtained second image can be obtained. The brightness score is stored in the terminal device in the form of a table. For example, the brightness score of the second image may be divided into 0 to 255 levels, and the brightness value of the second image a in the first category may be 10, the first category. The brightness score of the second image b in the second category may be 45, the brightness score of the second image c in the second category may be 20, and the brightness score of the second image d in the second category may be 35, the third The luminance score of the second image e in the category may be 105, and the luminance score of the second image f in the third category may be 50 or the like.
步骤507、图像处理方式的获取设备根据预设颜色分值规则,获取每一第二图像的颜色分值。Step 507: The acquiring device of the image processing mode acquires a color score of each second image according to a preset color score rule.
具体的,预设亮度分值规则可以是用户基于便于定义不同图像块的颜色等原则预先设置完成并保存在终端设备中的,例如可以根据图像块中的颜色是否为常见的颜色来定义对应的图像块的颜色分值,若某一图像块中 的颜色为常见的红色、蓝色、绿色等颜色时可以定义该图像块的颜色分值较高,若某一图像块的颜色为不常见的颜色如紫色等则可以定义该图像块的颜色分值较低,可以按照阶梯变化的形式来定义每一第二图像的颜色分值。其中,如图7中所示,可以将得到的各个第二图像的颜色分值以表格的形式存储在终端设备中,例如第二图像的颜色分值可以划分为0~255等级,第一类别中的第二图像a的颜色分值可以为20,第一类别中的第二图像b的颜色分值可以为200,第二类别中的第二图像c的颜色分值可以为15,第二类别中的第二图像d的颜色分值可以为100,第三类别中的第二图像e的颜色分值可以为30,第三类别中的第二图像f的颜色分值可以为135等。Specifically, the preset brightness score rule may be preset and saved in the terminal device according to a principle that the color of the different image blocks is conveniently defined by the user, for example, the corresponding color may be defined according to whether the color in the image block is a common color. The color score of the image block, if in an image block When the color of the common color is red, blue, green, etc., the color score of the image block can be defined to be high. If the color of an image block is an uncommon color such as purple, the color score of the image block can be defined. The value is lower and the color score of each second image can be defined in the form of a step change. Wherein, as shown in FIG. 7, the obtained color scores of the respective second images may be stored in the terminal device in the form of a table, for example, the color score of the second image may be divided into 0 to 255 levels, the first category. The color score of the second image a in the second category may be 20, the color score of the second image b in the first category may be 200, and the color score of the second image c in the second category may be 15, second The color score of the second image d in the category may be 100, the color score of the second image e in the third category may be 30, and the color score of the second image f in the third category may be 135 or the like.
步骤508、图像处理方式的获取设备分别将得到的每一第二图像的亮度分值和颜色分值相乘,得到每一第二图像的图像分值。Step 508: The image processing mode acquiring device separately multiplies the obtained luminance score and the color score of each second image to obtain an image score of each second image.
步骤509、图像处理方式的获取设备将每一类别中每一第二图像的图像分值相加,得到每一类中第二图像的图像分值。Step 509: The image processing mode acquiring device adds the image scores of each second image in each category to obtain image scores of the second image in each class.
具体的,将每一个第二图像的亮度分值和颜色分值相乘之后可以得到该第二图像的图像分值,之后可以将每一类别中的所有的第二图像的图像分值相加即可以得到第一类别中的第二图像的图像分值,参照图8所示,可以以类别为单位将得到的每一类别的第二图像的图像分值存储在终端设备中,例如第一类别的图像分值可以为18200,第二类别的图像分值可以为8000,第三类别的图像分值可以为10040,说明第一类别的白平衡处理效果最佳,因此可以设置待处理图像的目标白平衡处理方式为第一类别对应的白平衡处理算法。Specifically, after the luminance score and the color score of each second image are multiplied, the image score of the second image may be obtained, and then the image scores of all the second images in each category may be added. That is, the image score of the second image in the first category can be obtained. Referring to FIG. 8 , the obtained image scores of the second image of each category can be stored in the terminal device in units of categories, for example, the first The image score of the category may be 18200, the image score of the second category may be 8000, and the image score of the third category may be 10040, indicating that the white balance processing effect of the first category is the best, so the image to be processed can be set. The target white balance processing mode is a white balance processing algorithm corresponding to the first category.
步骤510、图像处理方式的获取设备比较每一类别中第二图像的图像分值,获取预设分类中第二图像的图像分值最大的目标分类。Step 510: The image processing mode acquiring device compares the image scores of the second image in each category, and obtains the target classification with the largest image score of the second image in the preset classification.
步骤511、图像处理方式的获取设备设置第二图像的图像分值最大的目标分类对应的白平衡算法为待处理图像的目标白平衡处理方式。 Step 511: The image processing mode acquiring device sets the white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing mode of the image to be processed.
具体的,终端设备可以比较得到的每一类别中的第二图像的图像分值之间的大小关系,并设置图像分值最大的图像所属的类别对应的白平衡算法为待处理图像的目标白平衡处理方式。Specifically, the terminal device can compare the size relationship between the image scores of the second image in each category, and set the white balance algorithm corresponding to the category to which the image with the largest image score belongs to be the target white of the image to be processed. Balanced processing.
需要说明的是,本实施中与其他实施例中相同步骤或概念的解释可以参照其它实施例中的描述,此处不再赘述。It should be noted that the explanation of the same steps or concepts in the other embodiments may refer to the descriptions in other embodiments, and details are not described herein again.
本发明实施例所提供的图像处理方式的获取方法,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从根据待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。The method for obtaining an image processing method according to the embodiment of the present invention can obtain an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing white balance processing of the second image in each category As a result, a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed The white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
本发明实施例还记载了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行本发明实施例中以上所述的图像处理方式的获取方法。The embodiment of the present invention further describes a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to execute the image processing mode acquisition method described in the embodiment of the present invention.
本发明的实施例提供一种图像处理方式的获取设备6,该设备可以应用于图3~5对应的实施例提供的一种图像处理方式的获取方法中,参照图9所示,该设备可以包括:第一获取单元61、分类单元62、第二获取单元63和处理单元64,其中:An embodiment of the present invention provides an image processing mode acquisition device 6, which can be applied to an image processing mode acquisition method provided by the embodiment corresponding to FIG. 3 to FIG. The method includes: a first obtaining unit 61, a classifying unit 62, a second acquiring unit 63, and a processing unit 64, wherein:
第一获取单元61,配置为获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像。The first obtaining unit 61 is configured to acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image.
分类单元62,基于预设分类,对第一图像进行分类整理。 The classification unit 62 classifies the first image based on the preset classification.
第二获取单元63,配置为分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果。The second obtaining unit 63 is configured to perform white balance processing on each of the first images in each category to obtain a second image, and acquire a white balance processing result of the second image in each category.
处理单元64,配置为分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式。The processing unit 64 is configured to analyze the white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
本发明实施例所提供的图像处理方式的获取设备,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一第一图像进行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从根据待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。The acquiring device of the image processing mode provided by the embodiment of the present invention can obtain the image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring white balance processing results of the second image in each category; analyzing white balance processing of the second image in each category As a result, a target white balance processing manner of the image to be processed is obtained; thus, the best processing result is selected from the processing results for different white balance processing methods according to the image to be processed, and the optimal processing result is taken as the to-be-processed The white balance processing method of the image solves the problem that the automatic white balance method in the prior art processes the image of different situations, and the calculation bias is improved, and the processing effect of the image white balance is improved; at the same time, the user experience can be improved.
具体的,参照图10所示,分类单元62可以包括:第一获取模块621和分类模块622,其中:Specifically, referring to FIG. 10, the classification unit 62 may include: a first acquisition module 621 and a classification module 622, where:
第一获取模块621,配置为获取每一第一图像在预设分区中的色温。The first obtaining module 621 is configured to acquire a color temperature of each first image in a preset partition.
分类模块622,配置为根据每一第一图像在预设分区中的色温与预设分类中每一类别的色温之间的匹配关系,对第一图像进行分类整理。The classification module 622 is configured to classify the first image according to a matching relationship between a color temperature of each first image in a preset partition and a color temperature of each category in the preset classification.
在一实施例中,所述第一获取模块621,还配置为将每一块所述第一图像作为发射物体,将标准光源通过每一块所述第一图像反射后落入预设分区中的色温的范围作为所述第一图像在预设分区中的色温。In an embodiment, the first obtaining module 621 is further configured to use each of the first images as a transmitting object, and reflect a color temperature of the standard light source into each of the first images and fall into a preset partition. The range is the color temperature of the first image in the preset partition.
具体的,参照图11所示,第二获取单元63可以包括:计算模块631和第二获取模块632,其中:Specifically, referring to FIG. 11, the second obtaining unit 63 may include: a calculating module 631 and a second acquiring module 632, where:
计算模块631,配置为分别计算每一类别中的第一图像的数目,得到第 一图像的数目不为零的分类。The calculating module 631 is configured to separately calculate the number of the first images in each category to obtain the first A classification in which the number of images is not zero.
第二获取模块632,配置为根据每一类别的白平衡处理算法,分别对第一图像的数目不为零的类别中每一第一图像进行白平衡处理得到第二图像,并获取每一类别中第二图像的白平衡处理结果。The second obtaining module 632 is configured to perform white balance processing on each of the first images of the non-zero number of the first images according to the white balance processing algorithm of each category to obtain a second image, and obtain each category. The result of white balance processing of the second image.
进一步具体的,参照图12所示,处理单元64包括:第三获取模块641和处理模块642,其中:Further specifically, referring to FIG. 12, the processing unit 64 includes: a third obtaining module 641 and a processing module 642, wherein:
第三获取模块641,配置为分别获取每一类中第二图像的图像分值。The third obtaining module 641 is configured to respectively acquire image scores of the second image in each class.
第三获取模块641,还配置为比较每一类中第二图像的图像分值,获取预设分类中第二图像的图像分值最大的目标分类。The third obtaining module 641 is further configured to compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification.
处理模块642,配置为设置第二图像的图像分值最大的目标分类对应的白平衡算法为目标白平衡处理方式。The processing module 642 is configured to set a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing mode.
具体的,第三获取模块641还配置为执行以下步骤:Specifically, the third obtaining module 641 is further configured to perform the following steps:
根据预设亮度分值规则,获取每一第二图像的亮度分值。The brightness score of each second image is obtained according to a preset brightness score rule.
根据预设颜色分值规则,获取每一第二图像的颜色分值。The color score of each second image is obtained according to a preset color score rule.
分别将得到的每一第二图像的亮度分值和颜色分值相乘,得到每一第二图像的图像分值。The obtained luminance scores and color scores of each of the second images are respectively multiplied to obtain image scores for each of the second images.
将每一类中每一第二图像的图像分值相加,得到每一类中第二图像的图像分值。The image scores of each of the second images in each class are added to obtain image scores for the second image in each class.
这里需要指出的是:以上获取设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果,因此不做赘述。对于本发明获取设备实施例中未披露的技术细节,请参照本发明方法实施例的描述而理解,为节约篇幅,因此不再赘述。It should be noted here that the description of the above embodiment of the device is similar to the description of the method embodiment described above, and has the same advantageous effects as the method embodiment, and therefore will not be described again. For the technical details that are not disclosed in the embodiment of the present invention, please refer to the description of the method embodiment of the present invention for the sake of space saving, and therefore no further details are provided.
本发明实施例所提供的图像处理方式的获取设备,可以获取待处理图像,并将待处理图像按照预设规则进行分割处理得到第一图像,之后基于预设分类对第一图像进行分类整理,分别对每一类别中的每一第一图像进 行白平衡处理得到第二图像,并获取每一类别中的第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到待处理图像的目标白平衡处理方式;这样,通过从根据待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,提高了图像白平衡的处理效果;同时,可以提高用户的体验效果。The acquiring device of the image processing mode provided by the embodiment of the present invention can obtain the image to be processed, and divide the image to be processed according to a preset rule to obtain a first image, and then classify and sort the first image based on the preset classification. For each first image in each category Performing a white balance process to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed In this way, the prior art is solved by selecting the best processing result from the processing results for different white balance processing methods according to the image to be processed, and using the optimal processing result as the white balance processing manner of the image to be processed. When the automatic white balance method is used to process images of different situations, there is a problem of calculation deviation, which improves the processing effect of image white balance; at the same time, the user experience can be improved.
在实际应用中,所述第一获取单元61、分类单元62、第二获取单元63、处理单元64、第一获取模块621、分类模块622、计算模块631、第二获取模块632、第三获取模块641和处理模块642均可由位于无线数据发送设备中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the first acquiring unit 61, the classifying unit 62, the second obtaining unit 63, the processing unit 64, the first obtaining module 621, the classifying module 622, the calculating module 631, the second obtaining module 632, and the third obtaining Both the module 641 and the processing module 642 can be implemented by a central processing unit (CPU), a microprocessor (Micro Processor Unit (MPU), a digital signal processor (DSP) or a field located in the wireless data transmitting device. Realizable by a Field Programmable Gate Array (FPGA).
本发明的实施例还提供一种图像处理方式的获取设备7,如图13所示,所述设备包括:存储器71,配置有可执行指令;处理器72,配置为执行所述可执行指令,所述可执行指令配置为:An embodiment of the present invention further provides an image processing mode acquiring device 7. As shown in FIG. 13, the device includes: a memory 71 configured with executable instructions; and a processor 72 configured to execute the executable instructions. The executable instructions are configured to:
获取待处理图像,将所述待处理图像按照预设规则进行分割处理得到第一图像;基于预设分类,对所述第一图像进行分类整理;分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。Obtaining a to-be-processed image, performing the segmentation process according to a preset rule to obtain a first image; classifying and finishing the first image based on a preset classification; respectively, for each of the categories in each category Performing white balance processing on an image to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing a white balance processing result of the second image in each category to obtain the image to be processed The target white balance processing method.
在一实施例中,所述可执行指令,还配置为获取每一所述第一图像在预设分区中的色温;根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。In an embodiment, the executable instruction is further configured to acquire a color temperature of each of the first images in a preset partition; according to a color temperature of each of the first images in a preset partition, and the pre- The matching relationship between the color temperatures of each category in the classification is performed, and the first image is sorted.
在另一实施例中,所述可执行指令,还配置为分别计算每一类别中的 第一图像的数目,得到所述第一图像的数目不为零的分类;根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。In another embodiment, the executable instructions are further configured to calculate respectively in each category a number of the first images, obtaining a classification in which the number of the first images is not zero; according to a white balance processing algorithm of each category, each of the categories in which the number of the first images is not zero An image is subjected to white balance processing to obtain the second image, and a white balance processing result of the second image in each category is acquired.
在另一实施例中,所述可执行指令,还配置为分别获取每一类中所述第二图像的图像分值;比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。In another embodiment, the executable instructions are further configured to respectively acquire image scores of the second image in each class; compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification; setting a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing manner.
在另一实施例中,所述可执行指令,还配置为根据预设亮度分值规则,获取每一所述第二图像的亮度分值;根据预设颜色分值规则,获取每一所述第二图像的颜色分值;分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。In another embodiment, the executable instruction is further configured to acquire a brightness score of each of the second images according to a preset brightness score rule; and obtain each of the foregoing according to a preset color score rule Color scores of the second image; respectively multiplying the obtained luminance scores and color scores of each of the second images to obtain image scores for each of the second images; The image scores of the second image are added to obtain image scores of the second image in each class.
这里需要指出的是:以上获取设备实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果,因此不做赘述。对于本发明获取设备实施例中未披露的技术细节,请参照本发明方法实施例的描述而理解,为节约篇幅,因此不再赘述。It should be noted here that the description of the above embodiment of the device is similar to the description of the method embodiment described above, and has the same advantageous effects as the method embodiment, and therefore will not be described again. For the technical details that are not disclosed in the embodiment of the present invention, please refer to the description of the method embodiment of the present invention for the sake of space saving, and therefore no further details are provided.
这里,值得注意的是,所述第一获取单元61、分类单元62、第二获取单元63、处理单元64、第一获取模块621、分类模块622、计算模块631、第二获取模块632、第三获取模块641和处理模块642均可具体由处理器72实现。所述处理器72可以具体为CPU、MPU、DSP或FPGA等。Here, it is noted that the first obtaining unit 61, the classifying unit 62, the second obtaining unit 63, the processing unit 64, the first obtaining module 621, the classifying module 622, the calculating module 631, the second obtaining module 632, and the Both the acquisition module 641 and the processing module 642 can be implemented by the processor 72 in particular. The processor 72 can be specifically a CPU, an MPU, a DSP, an FPGA, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或 者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. Also includes other elements not explicitly listed, or It also includes elements inherent to such a process, method, article or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所描述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing device Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes in a flowchart and/or Or block diagram the steps of a function specified in a box or multiple boxes.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明实施例通过从待处理图像针对不同白平衡处理方式的处理结果中选取最佳的处理结果,并将该最佳的处理结果作为该待处理图像的白平衡处理方式,解决了现有技术中的自动白平衡方式处理不同情况的图像时会存在计算偏差的问题,进而提高了图像白平衡的处理效果;同时,为提高用户的体验效果奠定了基础。 The embodiment of the present invention solves the prior art by selecting an optimal processing result from the processing results of the image to be processed for different white balance processing modes, and using the optimal processing result as the white balance processing mode of the image to be processed. In the automatic white balance method, there is a problem of calculation deviation when processing images of different situations, thereby improving the processing effect of image white balance; at the same time, laying a foundation for improving the user experience.

Claims (20)

  1. 一种图像处理方式的获取设备,所述设备包括:第一获取单元、分类单元、第二获取单元和处理单元,其中:An apparatus for acquiring an image processing method, the device comprising: a first acquiring unit, a classifying unit, a second acquiring unit, and a processing unit, wherein:
    所述第一获取单元,配置为获取待处理图像,并将所述待处理图像按照预设规则进行分割处理得到第一图像;The first acquiring unit is configured to acquire an image to be processed, and divide the image to be processed according to a preset rule to obtain a first image;
    所述分类单元,配置为基于预设分类,对所述第一图像进行分类整理;The classifying unit is configured to classify the first image according to a preset classification;
    所述第二获取单元,配置为分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;The second acquiring unit is configured to perform white balance processing on each of the first images in each category to obtain a second image, and obtain a white balance processing result of the second image in each category;
    所述处理单元,配置为分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。The processing unit is configured to analyze a white balance processing result of the second image in each category to obtain a target white balance processing manner of the image to be processed.
  2. 根据权利要求1所述的设备,其中,所述分类单元包括:第一获取模块和分类模块,其中:The device according to claim 1, wherein the classification unit comprises: a first acquisition module and a classification module, wherein:
    所述第一获取模块,配置为获取每一所述第一图像在预设分区中的色温;The first acquiring module is configured to acquire a color temperature of each of the first images in a preset partition;
    所述分类模块,配置为根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。The classifying module is configured to classify the first image according to a matching relationship between a color temperature of each of the first images in a preset partition and a color temperature of each of the preset categories.
  3. 根据权利要求2所述的设备,其中,所述第一获取模块,还配置为将每一块所述第一图像作为发射物体,将标准光源通过每一块所述第一图像反射后落入预设分区中的色温的范围作为所述第一图像在预设分区中的色温。The device according to claim 2, wherein the first obtaining module is further configured to use each of the first images as a transmitting object, and reflect a standard light source through each block of the first image to fall into a preset. The range of color temperatures in the partition is the color temperature of the first image in the preset partition.
  4. 根据权利要求1所述的设备,其中,所述第二获取单元包括:计算模块和第二获取模块,其中: The device according to claim 1, wherein the second obtaining unit comprises: a calculating module and a second acquiring module, wherein:
    所述计算模块,配置为分别计算每一类别中的第一图像的数目,得到所述第一图像的数目不为零的分类;The calculating module is configured to separately calculate the number of the first images in each category, and obtain a classification that the number of the first images is not zero;
    所述第二获取模块,配置为根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。The second obtaining module is configured to perform white balance processing on each of the first images in the category of the first image that is not zero according to a white balance processing algorithm of each category to obtain the second An image, and a white balance processing result of the second image in each category is obtained.
  5. 根据权利要求1所述的设备,其中,所述处理单元包括:第三获取模块和处理模块,其中:The device of claim 1, wherein the processing unit comprises: a third acquisition module and a processing module, wherein:
    所述第三获取模块,配置为分别获取每一类中所述第二图像的图像分值;The third obtaining module is configured to separately acquire image scores of the second image in each class;
    所述第三获取模块,还配置为比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;The third acquiring module is further configured to compare image scores of the second image in each class, and obtain a target classification with the largest image score of the second image in the preset classification;
    所述处理模块,配置为设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。The processing module is configured to set a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white balance processing manner.
  6. 根据权利要求5所述的设备,其中,所述第三获取模块还配置为:The device according to claim 5, wherein the third obtaining module is further configured to:
    根据预设亮度分值规则,获取每一所述第二图像的亮度分值;Obtaining a brightness score of each of the second images according to a preset brightness score rule;
    根据预设颜色分值规则,获取每一所述第二图像的颜色分值;Obtaining a color score of each of the second images according to a preset color score rule;
    分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;And multiplying a brightness score and a color score of each of the obtained second images to obtain an image score of each of the second images;
    将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。The image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
  7. 根据权利要求1至6任一项所述的设备,其中,所述预设分类是根据标准光源经过不同的反射物体反射后,落在白区中的不同情况来定义设置的。The apparatus according to any one of claims 1 to 6, wherein the preset classification is defined according to different conditions in which a standard light source is reflected in a white area after being reflected by a different reflective object.
  8. 一种图像处理方式的获取方法,所述方法包括:A method for obtaining an image processing method, the method comprising:
    获取待处理图像,并将所述待处理图像按照预设规则进行分割处理得 到第一图像;Obtaining an image to be processed, and dividing the image to be processed according to a preset rule To the first image;
    基于预设分类,对所述第一图像进行分类整理;Sorting and sorting the first image based on a preset classification;
    分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;Performing white balance processing on each of the first images in each category to obtain a second image, and acquiring a white balance processing result of the second image in each category;
    分析每一类别中的第二图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式。A white balance processing result of the second image in each category is analyzed to obtain a target white balance processing manner of the image to be processed.
  9. 根据权利要求8所述的方法,其中,所述基于预设分类,对所述第一图像进行分类整理,包括:The method according to claim 8, wherein the classifying the first image based on a preset classification comprises:
    获取每一所述第一图像在预设分区中的色温;Obtaining a color temperature of each of the first images in a preset partition;
    根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。And classifying the first image according to a matching relationship between a color temperature of each of the first images in a preset partition and a color temperature of each of the preset categories.
  10. 根据权利要求9所述的方法,其中,所述获取每一所述第一图像在预设分区中的色温,包括:The method of claim 9, wherein the obtaining a color temperature of each of the first images in a preset partition comprises:
    将每一块所述第一图像作为发射物体,将标准光源通过每一块所述第一图像反射后落入预设分区中的色温的范围作为所述第一图像在预设分区中的色温。Each of the first images is used as a transmitting object, and a range of color temperatures of the standard light source reflected by each of the first images and falling into a preset partition is used as a color temperature of the first image in a preset partition.
  11. 根据权利要求8所述的方法,其中,所述分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果,包括:The method according to claim 8, wherein said performing white balance processing on each of said first images in each category to obtain a second image, and acquiring white of said second image in each category Balance the processing results, including:
    分别计算每一类别中的第一图像的数目,得到所述第一图像的数目不为零的分类;Calculating the number of the first images in each category separately, and obtaining a classification in which the number of the first images is not zero;
    根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。According to the white balance processing algorithm of each category, each of the first images in the category in which the number of the first images is not zero is respectively subjected to white balance processing to obtain the second image, and each category is obtained. The result of the white balance processing of the second image.
  12. 根据权利要求8所述的方法,其中,所述分析每一类别中的第二 图像的白平衡处理结果,得到所述待处理图像的目标白平衡处理方式,包括:The method of claim 8 wherein said analyzing the second of each category The white balance processing result of the image, the target white balance processing manner of the image to be processed is obtained, including:
    分别获取每一类中所述第二图像的图像分值;Obtaining image scores of the second image in each class separately;
    比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;Comparing image scores of the second image in each class, and acquiring a target classification with the largest image score of the second image in the preset classification;
    设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。And setting a white balance algorithm corresponding to the target classification in which the image score of the second image is the largest is the target white balance processing manner.
  13. 根据权利要求12所述的方法,其中,所述分别获取每一类中所述第二图像的图像分值,包括:The method of claim 12, wherein the separately obtaining image scores of the second image in each class comprises:
    根据预设亮度分值规则,获取每一所述第二图像的亮度分值;Obtaining a brightness score of each of the second images according to a preset brightness score rule;
    根据预设颜色分值规则,获取每一所述第二图像的颜色分值;Obtaining a color score of each of the second images according to a preset color score rule;
    分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;And multiplying a brightness score and a color score of each of the obtained second images to obtain an image score of each of the second images;
    将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。The image scores of each of the second images in each class are added to obtain image scores for the second image in each of the classes.
  14. 根据权利要求8至13任一项所述的方法,其中,所述预设分类是根据标准光源经过不同的反射物体反射后,落在白区中的不同情况来定义设置的。The method according to any one of claims 8 to 13, wherein the preset classification is defined according to different conditions in which the standard light source is reflected in different white objects after being reflected by different reflective objects.
  15. 一种图像处理方式的获取设备,所述设备包括:存储器,配置有可执行指令;处理器,配置为执行所述可执行指令,所述可执行指令配置为:An apparatus for acquiring an image processing method, the device comprising: a memory configured with executable instructions; and a processor configured to execute the executable instructions, the executable instructions configured to:
    获取待处理图像,将所述待处理图像按照预设规则进行分割处理得到第一图像;基于预设分类,对所述第一图像进行分类整理;分别对每一类别中的每一所述第一图像进行白平衡处理得到第二图像,并获取每一类别中的所述第二图像的白平衡处理结果;分析每一类别中的第二图像的白平 衡处理结果,得到所述待处理图像的目标白平衡处理方式。Obtaining a to-be-processed image, performing the segmentation process according to a preset rule to obtain a first image; classifying and finishing the first image based on a preset classification; respectively, for each of the categories in each category Performing white balance processing on an image to obtain a second image, and acquiring a white balance processing result of the second image in each category; analyzing white level of the second image in each category The processing result is balanced to obtain a target white balance processing manner of the image to be processed.
  16. 根据权利要求15所述的设备,其中,所述可执行指令,还配置为获取每一所述第一图像在预设分区中的色温;根据每一所述第一图像在预设分区中的色温与所述预设分类中每一类别的色温之间的匹配关系,对所述第一图像进行分类整理。The device according to claim 15, wherein the executable instructions are further configured to acquire a color temperature of each of the first images in a preset partition; according to each of the first images in a preset partition The matching relationship between the color temperature and the color temperature of each of the preset categories is used to sort the first image.
  17. 根据权利要求15所述的设备,其中,所述可执行指令,还配置为分别计算每一类别中的第一图像的数目,得到所述第一图像的数目不为零的分类;根据每一类别的白平衡处理算法,分别对所述第一图像的数目不为零的类别中每一所述第一图像进行白平衡处理得到所述第二图像,并获取每一类别中所述第二图像的白平衡处理结果。The apparatus of claim 15, wherein the executable instructions are further configured to separately calculate a number of first images in each category to obtain a classification in which the number of the first images is not zero; a white balance processing algorithm of the category, respectively performing white balance processing on each of the first images in the category in which the number of the first images is not zero to obtain the second image, and acquiring the second in each category The white balance processing result of the image.
  18. 根据权利要求15所述的设备,其中,所述可执行指令,还配置为分别获取每一类中所述第二图像的图像分值;比较所述每一类中所述第二图像的图像分值,获取所述预设分类中所述第二图像的图像分值最大的目标分类;设置所述第二图像的图像分值最大的所述目标分类对应的白平衡算法为所述目标白平衡处理方式。The apparatus of claim 15, wherein the executable instructions are further configured to separately acquire image scores for the second image in each class; compare images of the second image in each of the classes a score, obtaining a target classification with the largest image score of the second image in the preset classification; setting a white balance algorithm corresponding to the target classification with the largest image score of the second image as the target white Balanced processing.
  19. 根据权利要求18所述的设备,其中,所述可执行指令,还配置为根据预设亮度分值规则,获取每一所述第二图像的亮度分值;根据预设颜色分值规则,获取每一所述第二图像的颜色分值;分别将得到的每一所述第二图像的亮度分值和颜色分值相乘,得到每一所述第二图像的图像分值;将每一类中每一所述第二图像的所述图像分值相加,得到所述每一类中所述第二图像的图像分值。The device according to claim 18, wherein the executable instruction is further configured to acquire a brightness score of each of the second images according to a preset brightness score rule; and obtain according to a preset color score rule Color scores of each of the second images; respectively multiplying the obtained luminance scores and color scores of each of the second images to obtain image scores for each of the second images; The image scores of each of the second images in the class are added to obtain image scores for the second image in each of the classes.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序用于执行前述权利要求8至14任一项所述的图像处理方式的获取方法。 A computer storage medium storing a computer program for performing the image processing method acquisition method according to any one of the preceding claims 8 to 14.
PCT/CN2017/084145 2016-05-26 2017-05-12 Device and method for acquiring image processing mode, and storage medium WO2017202218A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610362535.2 2016-05-26
CN201610362535.2A CN105898264B (en) 2016-05-26 2016-05-26 A kind of acquisition apparatus and method of image procossing mode

Publications (1)

Publication Number Publication Date
WO2017202218A1 true WO2017202218A1 (en) 2017-11-30

Family

ID=56717953

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084145 WO2017202218A1 (en) 2016-05-26 2017-05-12 Device and method for acquiring image processing mode, and storage medium

Country Status (2)

Country Link
CN (1) CN105898264B (en)
WO (1) WO2017202218A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114548403A (en) * 2022-02-22 2022-05-27 深圳市医未医疗科技有限公司 Data processing method and system of medical image data platform

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898264B (en) * 2016-05-26 2018-02-02 努比亚技术有限公司 A kind of acquisition apparatus and method of image procossing mode
CN112866656B (en) * 2019-11-26 2022-05-31 Oppo广东移动通信有限公司 White balance correction method and device, storage medium and terminal equipment
CN113784104A (en) * 2021-08-18 2021-12-10 杭州涂鸦信息技术有限公司 White balance processing method and related device
CN116274170B (en) * 2023-03-27 2023-10-13 中建三局第一建设工程有限责任公司 Control method, system and related device of laser cleaning equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1288173A (en) * 1999-09-09 2001-03-21 金宝电子工业股份有限公司 Automatic balancing correction of digital camera
CN101072365A (en) * 2006-05-11 2007-11-14 奥林巴斯映像株式会社 White balance control method, imaging apparatus and storage medium storing white balance control program
US20100208099A1 (en) * 2009-02-16 2010-08-19 Kenichiroh Nomura Imaging device and imaging method
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103856764A (en) * 2012-11-30 2014-06-11 浙江大华技术股份有限公司 Device for performing monitoring through double shutters
US20140168463A1 (en) * 2012-12-14 2014-06-19 Ryohsuke TAMURA Image-processing device and imaging apparatus
CN104935903A (en) * 2014-03-18 2015-09-23 韩华泰科株式会社 White balance correcting apparatus and white balance correcting method
CN105898264A (en) * 2016-05-26 2016-08-24 努比亚技术有限公司 Device and method for obtaining image processing manner

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4994825B2 (en) * 2006-12-22 2012-08-08 キヤノン株式会社 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5021338B2 (en) * 2007-03-02 2012-09-05 富士フイルム株式会社 White balance correction apparatus and method
JP5825796B2 (en) * 2011-02-03 2015-12-02 キヤノン株式会社 White balance control device, imaging device using the same, and white balance control method
JP6234191B2 (en) * 2013-11-28 2017-11-22 オリンパス株式会社 Multi-area white balance control device, multi-area white balance control method, multi-area white balance control program, computer recording multi-area white balance control program, multi-area white balance image processing device, multi-area white balance image processing method, multi-area White balance image processing program, computer recording multi-area white balance image processing program, and imaging apparatus provided with multi-area white balance image processing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1288173A (en) * 1999-09-09 2001-03-21 金宝电子工业股份有限公司 Automatic balancing correction of digital camera
CN101072365A (en) * 2006-05-11 2007-11-14 奥林巴斯映像株式会社 White balance control method, imaging apparatus and storage medium storing white balance control program
US20100208099A1 (en) * 2009-02-16 2010-08-19 Kenichiroh Nomura Imaging device and imaging method
CN103327345A (en) * 2012-03-19 2013-09-25 华晶科技股份有限公司 White balance processing method and processing device thereof
CN103856764A (en) * 2012-11-30 2014-06-11 浙江大华技术股份有限公司 Device for performing monitoring through double shutters
US20140168463A1 (en) * 2012-12-14 2014-06-19 Ryohsuke TAMURA Image-processing device and imaging apparatus
CN104935903A (en) * 2014-03-18 2015-09-23 韩华泰科株式会社 White balance correcting apparatus and white balance correcting method
CN105898264A (en) * 2016-05-26 2016-08-24 努比亚技术有限公司 Device and method for obtaining image processing manner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114548403A (en) * 2022-02-22 2022-05-27 深圳市医未医疗科技有限公司 Data processing method and system of medical image data platform

Also Published As

Publication number Publication date
CN105898264A (en) 2016-08-24
CN105898264B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
WO2017202218A1 (en) Device and method for acquiring image processing mode, and storage medium
CN106375596B (en) Device and method for prompting focusing object
CN106909274B (en) Image display method and device
WO2017050115A1 (en) Image synthesis method
WO2018019124A1 (en) Image processing method and electronic device and storage medium
WO2017020836A1 (en) Device and method for processing depth image by blurring
WO2017054676A1 (en) Image processing device, terminal, and method
CN105825485A (en) Image processing system and method
WO2016155509A1 (en) Method and device for determining holding mode of mobile terminal
WO2016155434A1 (en) Method and device for recognizing holding of mobile terminal, storage medium, and terminal
WO2018045961A1 (en) Image processing method, and terminal and storage medium
WO2016155431A1 (en) Terminal, touch operation method therefor and device thereof, and storage medium
CN106651867B (en) Method, device and terminal for realizing interactive image segmentation
CN106249989B (en) Method for arranging social application program icons during content sharing and mobile terminal
WO2017071475A1 (en) Image processing method, and terminal and storage medium
CN106534619A (en) Method and apparatus for adjusting focusing area, and terminal
WO2017071542A1 (en) Image processing method and apparatus
CN105681582A (en) Control color adjusting method and terminal
WO2017071572A1 (en) Information processing method and device, terminal and storage medium
WO2018019128A1 (en) Method for processing night scene image and mobile terminal
CN106534696A (en) Focusing apparatus and method
WO2016070681A1 (en) Method and device for adjusting color temperature of screen, and computer storage medium
WO2017128898A1 (en) Mobile terminal and touch control operation method for mobile terminal
WO2017210971A1 (en) Thermal imaging method and device based on mobile terminal and mobile terminal
WO2017071592A1 (en) Method and apparatus for focusing, method and apparatus for photographing

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17802064

Country of ref document: EP

Kind code of ref document: A1

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 24.04.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17802064

Country of ref document: EP

Kind code of ref document: A1