CN105160029B - Image retrieving apparatus and method - Google Patents
Image retrieving apparatus and method Download PDFInfo
- Publication number
- CN105160029B CN105160029B CN201510640878.6A CN201510640878A CN105160029B CN 105160029 B CN105160029 B CN 105160029B CN 201510640878 A CN201510640878 A CN 201510640878A CN 105160029 B CN105160029 B CN 105160029B
- Authority
- CN
- China
- Prior art keywords
- color
- feature value
- image
- color feature
- subgraph
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5838—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour
Landscapes
- Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of image retrieving apparatus, it includes: the first acquisition module that described image, which retrieves device, for obtaining the first color feature value to be retrieved according to described image search instruction when receiving image retrieval instruction;Matching module, for first color feature value to be compared with the second color feature value that mobile terminal stores;Second obtains module, for when there is second color feature value to match with first color feature value, it obtains and search result of the matched associated image of second color feature value as first color feature value, wherein, described image is divided at least one subgraph, corresponding second color feature value of each subgraph.The invention also discloses a kind of image search methods.The present invention can be improved the accuracy of image retrieval.
Description
Technical field
The present invention relates to image identification technical field more particularly to a kind of image retrieving apparatus and methods.
Background technique
With the continuous promotion of image recognition technology, the use of lookup and the screening of image is more and more frequent, how in sea
The requirement for meeting the target image of respective conditions into mobile terminal one new promotion user experience is found in the image of amount.
But the prior art is only capable of after being acquired by the feature to whole image through contrast characteristic's database realizing target image
Lookup, however in actual use, the characteristics of image that user is only capable of providing very little part (is such as only capable of providing the part face of image
Color characteristic), it can not accurately be found since the feature cover of whole image will lead to target image, it is accurate that there are image retrievals
Spend lower problem.
Summary of the invention
The main purpose of the present invention is to provide a kind of image retrieving apparatus and methods, it is intended to improve the accurate of image retrieval
Degree.
To achieve the above object, the present invention provides a kind of image retrieving apparatus, which includes:
First obtains module, for being obtained according to described image search instruction to be checked when receiving image retrieval instruction
First color feature value of rope;
Matching module, the second color feature value for storing first color feature value with mobile terminal compare
It is right;
Second obtains module, for obtaining when there is second color feature value to match with first color feature value
Take the search result with the matched associated image of second color feature value as first color feature value, wherein
Described image is divided at least one subgraph, corresponding second color feature value of each subgraph.
Preferably, described image retrieves device further include:
Division module divides the complete image when for receiving the complete image of input in the mobile terminal
For multiple subgraphs, wherein each pixel in same subgraph is located at same color section;
Memory module, for using the average value of the color feature value of each pixel in each subgraph as each subgraph
Second color feature value of picture, and will be stored after the corresponding subgraph association of each second color feature value.
Preferably, the division module is also used to when the mobile terminal receives the complete image of input, will be described
Complete image is converted to color space;And the color feature value acquisition of each pixel based on the complete image after conversion is described complete
The color boundaries line of whole image;And the complete image is divided into multiple subgraphs by the color boundaries line based on acquisition
Picture.
Preferably, described image retrieval device further includes display module, special for obtaining each matched second color
The corresponding subgraph of value indicative occupies the size of respective complete image;And according to the sequence of size from large to small in institute
It states mobile terminal and successively shows each matched associated complete image of second color feature value.
Preferably, the first acquisition module is also used to when receiving image retrieval instruction, aobvious in the mobile terminal
Show color selection interface;And when receiving the selection instruction that user is triggered based on the color selection interface, by the choosing
It selects and instructs the color feature value of corresponding color as first color feature value to be retrieved.
In addition, to achieve the above object, the present invention also provides a kind of image search method, which includes:
When receiving image retrieval instruction, the first color characteristic to be retrieved is obtained according to described image search instruction
Value;
First color feature value is compared with the second color feature value that mobile terminal stores;
When there is second color feature value to match with first color feature value, obtain and matched described second
Search result of the associated image of color feature value as first color feature value, wherein described image is divided at least one
A subgraph, corresponding second color feature value of each subgraph.
Preferably, described when receiving image retrieval instruction, to be retrieved the is obtained according to described image search instruction
Before the step of one color feature value, further includes:
When the mobile terminal receives the complete image of input, the complete image is divided into multiple subgraphs,
Wherein, each pixel in same subgraph is located at same color section;
Using the average value of the color feature value of each pixel in each subgraph as the second color of each subgraph
Characteristic value, and will be stored after the corresponding subgraph association of each second color feature value.
Preferably, when the complete image for receiving input in the mobile terminal, the complete image is divided into
Multiple subgraphs include:
When the mobile terminal receives the complete image of input, the complete image is converted to color space;
The color feature value of each pixel based on the complete image after conversion obtains the color boundaries line of the complete image;
The complete image is divided into multiple subgraphs by the color boundaries line based on acquisition.
Preferably, described when there is second color feature value to match with first color feature value, obtain with
After the step of search result of the associated image of the second color feature value matched as first color feature value, also
Include:
Obtain the size that the corresponding subgraph of each matched second color feature value occupies respective complete image;
Each matched second color is successively shown in the mobile terminal according to the sequence of size from large to small
The associated complete image of characteristic value.
Preferably, described when receiving image retrieval instruction, to be retrieved the is obtained according to described image search instruction
The step of one color feature value includes:
When receiving image retrieval instruction, in the mobile terminal display color selection interface;
It is when receiving the selection instruction that user is triggered based on the color selection interface, the selection instruction is corresponding
The color feature value of color is as first color feature value to be retrieved.
The present invention carries out image retrieval by the local image characteristics of the target retrieval image provided based on user, i.e., will use
The complete image for the first color feature value to be retrieved and the mobile terminal storage that family provides is by each son after color characteristic division
Corresponding second color feature value of image is matched, and using the matched associated complete image of second color feature value as institute
The search result for stating the first color feature value avoids cover of the general image feature to local image characteristics, improves image
The accuracy of retrieval.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the functional block diagram of image retrieving apparatus first embodiment of the present invention;
Fig. 4 is the schematic diagram of palette in image retrieving apparatus first embodiment of the present invention;
Fig. 5 is the schematic diagram of image segmentation in image retrieving apparatus first embodiment of the present invention
Fig. 6 is the flow diagram of image search method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving
Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
(ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/
Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus
The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121
Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110
It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action
Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model
For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122
Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or
Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below
Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit
153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list
Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe
Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals
It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each implementation of image retrieving apparatus of the present invention is proposed
Example.
Referring to Fig. 3, in the first embodiment of image retrieving apparatus of the present invention, described image retrieval device includes:
First obtain module 10, for receive image retrieval instruction when, according to described image search instruction obtain to
First color feature value of retrieval;
Image retrieving apparatus provided in this embodiment, can be applied to mobile phone, laptop, digit broadcasting receiver,
The mobile terminals such as PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), for example, image is examined
Rope device is built in mobile phone operation, and user need to only input the part area of image to be retrieved when carrying out image retrieval using mobile phone
The color characteristic in domain, mobile phone will retrieve target image based on the color characteristic that user inputs and show.
It should be noted that color characteristic is a kind of global characteristics, scenery corresponding to image or image-region is described
Surface nature.Color characteristic is the feature based on pixel, and all images or the pixel of image-region of belonging to have respectively
Contribution.Since color changes insensitive, robustness with higher to direction, size of image or image-region etc..This reality
Apply color characteristic of the color feature value described in example for quantificational description image.It will be appreciated by persons skilled in the art that right
In different color spaces (also referred to as color model, color space or color system), for describing the color of color of image feature
Characteristic value is different, wherein commonly color space includes:
RGB (RGB) color space is the color space defined according to the color of eye recognition, can indicate most of
Color.But RGB color is not used generally in scientific research, because its details is difficult to carry out digitized adjustment.It will
Form and aspect, brightness, saturation degree three are measured expression of putting together, are difficult to separate.It is the most general color model towards hardware.It should
Model is imaged for colour picture monitor and a major class color video.
CMY color space is the color space that industry printing uses, it is corresponding with RGB.Simple analogy RGB is derived from
It is that object shines, and CMY is obtained according to reflected light.Concrete application such as printer: use four color ink boxes, i.e. CMY adds
Black ink box.
HSX color space is put forward for better digitized processing color, there are many HSX color space,
In, H is form and aspect, and S is saturation degree, and X is different according to specifically used meaning, for example, X may be I (intensity), it is also possible to which B is (bright
Degree) etc..
Lab color space is used for computer adjustment of color and colour correction.It is realized independently of the color model of equipment.
In the present embodiment, mobile terminal is provided with retrieval control, when the user clicks when the retrieval control, triggering is schemed
As search instruction, first the switching mobile terminal of module 10 is obtained to image retrieval interface, so that user is based on described image at this time
Search interface input is when time the first color feature value of retrieval, wherein user can be by directly inputting first color characteristic
Value, or first color feature value is inputted by palette, or the mode of input monochromatic picture inputs described first
Color feature value, specifically, user can carry out the selection of input mode according to actual needs.
Preferably to carry out digitized processing, the present embodiment is using the H value of HSB color space as the first color characteristic
Value, it will be appreciated by persons skilled in the art that if user's input is that other colors in addition to the HSB color space are empty
Between the first color feature value, the first color feature value that user inputs is converted to HSB color space, to obtain based on HSB
First color feature value of color space.
For example, referring to Fig. 4, provide the schematic diagram of aforementioned palette, as shown in figure 4, user can on the left of palette area
Domain directly carries out color selection, and after user gets colors, the first acquisition module 10 will automatically generate user and get colors correspondence
Color feature value, as shown in palette right area, it is shown that the color feature value in corresponding different colours space;It is detecting
When the clicking operation that user is triggered based on " determination " button, first obtains module 10 using the current H value of palette as described the
One color feature value, the first color feature value at this time are 356 degree, and the color that characterization user chooses is in large red.
Matching module 20, for carrying out the second color feature value of first color feature value and mobile terminal storage
It compares;
It should be noted that second color feature value is used to characterize the complete image of the mobile terminal storage by face
The color characteristic of the subgraph obtained after color characteristic segmentation, the present embodiment is using the H value of HSB color space as the second color spy
Value indicative.In the present embodiment, the mobile terminal is provided with property data base and image data base, wherein described image database
For storing complete image, the property data base is used to store the second of the subgraph obtained after each complete image segmentation
Color feature value.
Specifically, after the first acquisition module 10 gets first color feature value to be retrieved, matching module
20 first color feature value is compared with second color characteristic each in the property data base of the mobile terminal,
Wherein, the second color feature value and first color feature value are located at same color section if it exists, then successful match, otherwise
It fails to match.
Second obtains module 30, for when there is second color feature value to match with first color feature value,
Acquisition and search result of the matched associated image of second color feature value as first color feature value,
In, described image is divided at least one subgraph, corresponding second color feature value of each subgraph.
It is in first color feature value and the second color feature value successful match, i.e., described in the present embodiment
In the presence of when being located at second color feature value in same color section with first color feature value in property data base, second is obtained
Modulus block 30 is using the matched associated image of second color feature value as the search result of first color feature value.
For example, referring to Fig. 5, property data base be stored with 4 subgraphs after correspondence image 1 is divided (subgraph 11,12,
13 and the second color feature value 14), wherein subgraph 11 is in brown, and subgraph 12 is in sky blue, and subgraph 13 is in sea blue
Color, subgraph 14 are in Sha Baise, and each second color feature value describes the color characteristic of respectively corresponding subgraph respectively;When with
When family has been manually entered characterization sapphire first color feature value, it is clear that, the second color feature value of subgraph 12 and institute
The matching of the first color feature value is stated, mobile terminal regard the corresponding complete image of subgraph 12 " image 1 " as described first at this time
The search result of color feature value.
The present embodiment propose image retrieving apparatus, based on user provide target retrieval image local image characteristics into
The complete image of row image retrieval, i.e., the first color feature value to be retrieved provided user and mobile terminal storage is by color
Corresponding second color feature value of each subgraph after feature divides is matched, and matched second color feature value is associated with
Search result of the complete image as first color feature value, avoid general image feature to local image characteristics
It covers, improves the accuracy of image retrieval.
Further, it is based on first embodiment, the second embodiment of image retrieving apparatus of the present invention is proposed, in the present embodiment
In, described image retrieves device further include:
Division module divides the complete image when for receiving the complete image of input in the mobile terminal
For multiple subgraphs, wherein each pixel in same subgraph is located at same color section;
The present embodiment further provides the generation scheme of second color feature value, this implementation based on first embodiment
In example, when complete image to be divided into the subgraph of different colours feature, division module can use the segmentation based on threshold value
Technology, the cutting techniques based on edge, the cutting techniques based on region and comprehensive cutting techniques etc., specifically can be according to actual needs
It chooses.For example, complete image is divided by the present embodiment division module using the cutting techniques based on region respectively corresponds difference
The subgraph of color characteristic.
Memory module, for using the average value of the color feature value of each pixel in each subgraph as each subgraph
Second color feature value of picture, and will be stored after the corresponding subgraph association of each second color feature value.
After the division that division module completes subgraph, memory module extracts division respectively and obtains the second of each subgraph
Color feature value simultaneously saves.Specifically, memory module successively chooses each subgraph that division obtains, the subgraph chosen is extracted respectively
The color feature value of each pixel as in;And calculate extract each color feature value average value, using the average value of calculating as
Second color feature value of the subgraph chosen;And by the corresponding subgraph of second color feature value and described
It stores after complete image association to the property data base.
Further, it is based on second embodiment, the 3rd embodiment of image retrieving apparatus of the present invention is proposed, in the present embodiment
In, the division module is also used to convert the complete image when the mobile terminal receives the complete image of input
To color space;And the color feature value of each pixel based on the complete image after conversion obtains the color of the complete image
Boundary line;And the complete image is divided into multiple subgraphs by the color boundaries line based on acquisition.
The present embodiment is based on second embodiment and is further illustrated to image segmentation scheme, in the present embodiment, described
When mobile terminal receives complete image (digital picture) of input, the division module converts the complete image to color
Space, for example, the division module converts the complete image to HSB color space;Complete color space conversion it
Afterwards, the division module searched in the complete image with border color feature similar in pixel, according to the pixel searched
Multiple closed curves are constituted, i.e. color boundaries line described in the present embodiment;The color boundaries line for determining the complete image it
Afterwards, the division module is based on the color boundaries line and the complete image is divided into multiple subgraphs.For example, referring to Fig. 5,
The division module image 1 is divided after obtain 4 subgraphs, respectively subgraph 11, subgraph 12, subgraph 13 and
Subgraph 14, wherein subgraph 11 is in brown, and subgraph 12 is in sky blue, and subgraph 13 is in sea blue color, and subgraph 14 is in Sha Bai
Color.
Further, it is based on aforementioned any embodiment, the fourth embodiment of image retrieving apparatus of the present invention is proposed, in this reality
It applies in example, it further includes display module that described image, which retrieves device, corresponding for obtaining each matched second color feature value
Subgraph occupy the size of respective complete image;And according to the sequence of size from large to small described mobile whole
End successively shows each matched associated complete image of second color feature value.
It should be noted that the present embodiment is stored with the corresponding subgraph of each second color feature value in mobile terminal
Occupy the size of respective complete image, in the present embodiment, after retrieving target image, also progress target image is aobvious
Show, specifically, display module obtain first each matched associated subgraph of second color feature value occupy it is corresponding complete
The size of whole image, for example, being respectively with matched second color feature value of first color feature value to be retrieved
Second color feature value 1, the second color feature value 2 and the second color feature value 3, wherein second color feature value 1 is closed
The subgraph of connection occupies the 30% of its correspondence complete image size, and the associated subgraph of second color feature value 2 occupies it
The 33% of corresponding complete image size, the associated subgraph of second color feature value 3 occupies it and corresponds to complete image size
25%;Corresponding complete image is occupied getting each matched associated subgraph of second color feature value
After size, the display module successively shows each in the mobile terminal according to the sequence of size from large to small
The corresponding complete image of the associated subgraph of the second color feature value matched, for example, successively showing institute by sequence from top to bottom
State complete image corresponding to the associated subgraph of the second color feature value 2, the associated subgraph of second color feature value 1
Complete image corresponding to corresponding complete image and the associated subgraph of second color feature value 3.
The present embodiment occupies corresponding complete image according to each matched associated subgraph of second color feature value
Size, show the complete image retrieved, convenient for user search target retrieval image.
Further, it is based on aforementioned any embodiment, the 5th embodiment of image retrieving apparatus of the present invention is proposed, in this reality
It applies in example, the first acquisition module 10 is also used to when receiving image retrieval instruction, in the mobile terminal display color
Selection interface;And when receiving the selection instruction that user is triggered based on the color selection interface, by the selection instruction
The color feature value of corresponding color is as first color feature value to be retrieved.
It will be appreciated by persons skilled in the art that for ordinary user being difficult to by inputting color feature value
Mode carry out image retrieval, in view of this, first color to be retrieved the present embodiment provides a kind of indirect gain
The mode of characteristic value.
In the present embodiment, in the image retrieval instruction for receiving user's triggering, described first obtains module 10 described
Mobile terminal display color selection interface, user can intuitively choose the color to be retrieved based on the color selection interface,
After user chooses the color to be retrieved, described first obtains module 10 automatically for the color feature value of the color of user's selection
As first color feature value to be retrieved, first color feature value to be retrieved is manually entered without user.
For example, referring to Fig. 4, the color selection interface is presented in a manner of palette, user can palette left area directly into
Row color is chosen, and after user gets colors, the first acquisition module 10 automatically generates user and gets colors corresponding color
Characteristic value, as shown in palette right area, it is shown that the color feature value in corresponding different colours space, user click diagram
" determination " button instructs triggering selection;When receiving the selection instruction that user is triggered based on the color selection interface, institute
The first acquisition module 10 is stated using the current H value of palette as first color feature value, the first color feature value at this time
It is 356 degree, the color that characterization user chooses is in large red.
The present embodiment selects the color to be retrieved for user by providing color selection interface, is manually entered without user
First color feature value to be retrieved, facilitates ordinary user to use, and promotes user experience.
The present invention further provides a kind of image search methods, and referring to Fig. 6, first in image search method of the present invention is real
It applies in example, described image search method includes:
Step S10 obtains the first face to be retrieved according to described image search instruction when receiving image retrieval instruction
Color characteristic value;
Image search method provided in this embodiment, can be applied to mobile phone, laptop, digit broadcasting receiver,
The mobile terminals such as PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), for example, user exists
When carrying out image retrieval using mobile phone, the color characteristic of the partial region of image to be retrieved need to be only inputted, mobile phone will be based on user
The color characteristic of input retrieves target image and shows.
It should be noted that color characteristic is a kind of global characteristics, scenery corresponding to image or image-region is described
Surface nature.Color characteristic is the feature based on pixel, and all pixels for belonging to image or image-region have respective
Contribution.Since color changes insensitive, robustness with higher to direction, size of image or image-region etc..This implementation
Color feature value described in example is used for the color characteristic of quantificational description image.It will be appreciated by persons skilled in the art that for
Different color spaces (also referred to as color model, color space or color system), the color for describing color of image feature are special
Value indicative is different, wherein commonly color space includes:
RGB (RGB) color space is the color space defined according to the color of eye recognition, can indicate most of
Color.But RGB color is not used generally in scientific research, because its details is difficult to carry out digitized adjustment.It will
Form and aspect, brightness, saturation degree three are measured expression of putting together, are difficult to separate.It is the most general color model towards hardware.It should
Model is imaged for colour picture monitor and a major class color video.
CMY color space is the color space that industry printing uses, it is corresponding with RGB.Simple analogy RGB is derived from
It is that object shines, and CMY is obtained according to reflected light.Concrete application such as printer: use four color ink boxes, i.e. CMY adds
Black ink box.
HSX color space is put forward for better digitized processing color, there are many HSX color space,
In, H is form and aspect, and S is saturation degree, and X is different according to specifically used meaning, for example, X may be I (intensity), it is also possible to which B is (bright
Degree) etc..
Lab color space is used for computer adjustment of color and colour correction.It is realized independently of the color model of equipment.
In the present embodiment, mobile terminal is provided with retrieval control, when the user clicks when the retrieval control, triggering is schemed
As search instruction, switches mobile terminal at this time to image retrieval interface, work as so that user is based on the input of described image search interface
First color feature value of secondary retrieval, wherein user can be by directly inputting first color feature value, or passes through tune
Colour table inputs first color feature value, or the mode of input monochromatic picture inputs first color feature value, specifically
, user can carry out the selection of input mode according to actual needs.
Preferably to carry out digitized processing, the present embodiment is using the H value of HSB color space as the first color characteristic
Value, it will be appreciated by persons skilled in the art that if user's input is that other colors in addition to the HSB color space are empty
Between the first color feature value, the first color feature value that user inputs is converted to HSB color space, to obtain based on HSB
First color feature value of color space.
For example, referring to Fig. 4, provide the schematic diagram of aforementioned palette, as shown in figure 4, user can on the left of palette area
Domain directly carries out color selection, after user gets colors, will automatically generate user and gets colors corresponding color feature value, such as
Shown in palette right area, it is shown that the color feature value in corresponding different colours space;User is being detected based on " determination "
When the clicking operation of button triggering, using the current H value of palette as first color feature value, the first color at this time is special
Value indicative is 356 degree, and the color that characterization user chooses is in large red.
First color feature value is compared step S20 with the second color feature value that mobile terminal stores;
It should be noted that second color feature value is used to characterize the complete image of the mobile terminal storage by face
The color characteristic of the subgraph obtained after color characteristic segmentation, the present embodiment is using the H value of HSB color space as the second color spy
Value indicative.In the present embodiment, the mobile terminal is provided with property data base and image data base, wherein described image database
For storing complete image, the property data base is used to store the second of the subgraph obtained after each complete image segmentation
Color feature value.
Specifically, after getting first color feature value to be retrieved, by first color feature value with
Each second color characteristic is compared in the property data base of the mobile terminal, wherein the second color characteristic if it exists
Value is located at same color section with first color feature value, then successful match, and otherwise it fails to match.
Step S30, when there is second color feature value to match with first color feature value, obtain with it is matched
Search result of the associated image of second color feature value as first color feature value, wherein described image point
For at least one subgraph, corresponding second color feature value of each subgraph.
It is in first color feature value and the second color feature value successful match, i.e., described in the present embodiment
In the presence of when being located at second color feature value in same color section with first color feature value in property data base, will match
Search result of the associated image of the second color feature value as first color feature value.
For example, referring to Fig. 5, property data base be stored with 4 subgraphs after correspondence image 1 is divided (subgraph 11,12,
13 and the second color feature value 14), wherein subgraph 11 is in brown, and subgraph 12 is in sky blue, and subgraph 13 is in sea blue
Color, subgraph 14 are in Sha Baise, and each second color feature value describes the color characteristic of respectively corresponding subgraph respectively;When with
When family has been manually entered characterization sapphire first color feature value, it is clear that, the second color feature value of subgraph 12 and institute
The matching of the first color feature value is stated, mobile terminal regard the corresponding complete image of subgraph 12 " image 1 " as described first at this time
The search result of color feature value.
The present embodiment propose image search method, based on user provide target retrieval image local image characteristics into
The complete image of row image retrieval, i.e., the first color feature value to be retrieved provided user and mobile terminal storage is by color
Corresponding second color feature value of each subgraph after feature divides is matched, and matched second color feature value is associated with
Search result of the complete image as first color feature value, avoid general image feature to local image characteristics
It covers, improves the accuracy of image retrieval.
Further, it is based on first embodiment, the second embodiment of image search method of the present invention is proposed, in the present embodiment
In, before above-mentioned steps S10, further includes:
When the mobile terminal receives the complete image of input, the complete image is divided into multiple subgraphs,
Wherein, each pixel in same subgraph is located at same color section;
The present embodiment further provides the generation scheme of second color feature value, this implementation based on first embodiment
In example, when complete image to be divided into the subgraph of different colours feature, the cutting techniques based on threshold value can be used, be based on
The cutting techniques at edge, the cutting techniques based on region and comprehensive cutting techniques etc., can specifically choose according to actual needs.Example
Such as, complete image is divided into the subgraph for respectively corresponding different colours feature using the cutting techniques based on region by the present embodiment
Picture.
Using the average value of the color feature value of each pixel in each subgraph as the second color of each subgraph
Characteristic value, and will be stored after the corresponding subgraph association of each second color feature value.
After the division for completing subgraph, extracts respectively and divide the second color feature value for obtaining each subgraph and protect
It deposits.Specifically, each subgraph for successively choosing division to obtain, extracts the color characteristic of each pixel in the subgraph chosen respectively
Value;The average value for calculating each color feature value extracted, it is special using the average value of calculating as the second color of the subgraph chosen
Value indicative;It will store after the corresponding subgraph of second color feature value and complete image association to the feature
Database.
Further, it is based on second embodiment, the 3rd embodiment of image search method of the present invention is proposed, in the present embodiment
In, when the complete image for receiving input in the mobile terminal, the complete image is divided into multiple sub-picture packs
It includes:
When the mobile terminal receives the complete image of input, the complete image is converted to color space;
The color feature value of each pixel based on the complete image after conversion obtains the color boundaries line of the complete image;
The complete image is divided into multiple subgraphs by the color boundaries line based on acquisition.
The present embodiment is based on second embodiment and is further illustrated to image segmentation scheme, in the present embodiment, described
When mobile terminal receives complete image (digital picture) of input, the complete image is converted to color space, for example, this
Embodiment converts the complete image to HSB color space;After the conversion for completing color space, in the complete image
Middle search and pixel similar in border color feature, constitute multiple closed curves, i.e. the present embodiment institute according to the pixel searched
The color boundaries line stated;It, will be described complete based on the color boundaries line after determining the color boundaries line of the complete image
Whole image is divided into multiple subgraphs.For example, referring to Fig. 5, the present embodiment is by 4 subgraphs that obtain after the segmentation of image 1, respectively
For subgraph 11, subgraph 12, subgraph 13 and subgraph 14, wherein subgraph 11 is in brown, and subgraph 12 is in sky blue
Color, subgraph 13 are in sea blue color, and subgraph 14 is in Sha Baise.
Further, it is based on aforementioned any embodiment, the fourth embodiment of image search method of the present invention is proposed, in this reality
It applies in example, after above-mentioned steps S30, further includes:
Obtain the size that the corresponding subgraph of each matched second color feature value occupies respective complete image;
Each matched second color is successively shown in the mobile terminal according to the sequence of size from large to small
The associated complete image of characteristic value.
It should be noted that the present embodiment is stored with the corresponding subgraph of each second color feature value in mobile terminal
Occupy the size of respective complete image, in the present embodiment, after retrieving target image, also progress target image is aobvious
Show, specifically, obtaining each matched associated subgraph of second color feature value first occupies corresponding complete image
Size, for example, being respectively the second color with matched second color feature value of first color feature value to be retrieved
Characteristic value 1, the second color feature value 2 and the second color feature value 3, wherein the associated subgraph of second color feature value 1
30% as occupying its correspondence complete image size, the associated subgraph of second color feature value 2 occupies it and corresponds to completely
The 33% of image size, the associated subgraph of second color feature value 3 occupy the 25% of its correspondence complete image size;?
Get the size that each matched associated subgraph of second color feature value occupies corresponding complete image
Later, successively show that each matched second color feature value is closed in the mobile terminal according to the sequence of size from large to small
The corresponding complete image of the subgraph of connection, for example, successively showing that second color feature value 2 is associated with by sequence from top to bottom
Subgraph corresponding to complete image, complete image corresponding to the associated subgraph of second color feature value 1 and
Complete image corresponding to the associated subgraph of second color feature value 3.
The present embodiment occupies corresponding complete image according to each matched associated subgraph of second color feature value
Size, show the complete image retrieved, convenient for user search target retrieval image.
Further, it is based on aforementioned any embodiment, the 5th embodiment of image search method of the present invention is proposed, in this reality
It applies in example, it is described when receiving image retrieval instruction, it is special that the first color to be retrieved is obtained according to described image search instruction
The step of value indicative includes:
When receiving image retrieval instruction, in the mobile terminal display color selection interface;
It is when receiving the selection instruction that user is triggered based on the color selection interface, the selection instruction is corresponding
The color feature value of color is as first color feature value to be retrieved.
It will be appreciated by persons skilled in the art that for ordinary user being difficult to by inputting color feature value
Mode carry out image retrieval, in view of this, first color to be retrieved the present embodiment provides a kind of indirect gain
The mode of characteristic value.
In the present embodiment, in the image retrieval instruction for receiving user's triggering, selected in the mobile terminal display color
Interface is selected, user can intuitively choose the color to be retrieved based on the color selection interface, be retrieved in user's selection
After color, the color feature value of the color for automatically selecting user is as first color feature value to be retrieved, and nothing
User is needed to be manually entered first color feature value to be retrieved.For example, referring to Fig. 4, the color selection interface is to mix colours
The mode of plate is presented, and user can directly carry out color selection in palette left area and automatically generate after user gets colors
User gets colors corresponding color feature value, as shown in palette right area, it is shown that the face in corresponding different colours space
Color characteristic value, user click diagram " determination " button and instruct triggering selection;Color selection circle is based on receiving user
When the selection instruction of face triggering, using the current H value of palette as first color feature value, the first color characteristic at this time
Value is 356 degree, and the color that characterization user chooses is in large red.
The present embodiment selects the color to be retrieved for user by providing color selection interface, is manually entered without user
First color feature value to be retrieved, facilitates ordinary user to use, and promotes user experience.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (6)
1. a kind of image retrieving apparatus, which is characterized in that described image retrieves device and includes:
First obtains module, for being obtained according to described image search instruction to be retrieved when receiving image retrieval instruction
First color feature value;
Matching module, for first color feature value to be compared with the second color feature value that mobile terminal stores;
Second obtains module, for when there is second color feature value match with first color feature value, acquisition and
Search result of the matched associated image of second color feature value as first color feature value, wherein described
Image is divided at least one subgraph, corresponding second color feature value of each subgraph;
Division module when for receiving the complete image of input in the mobile terminal, the complete image is divided into more
A subgraph, wherein each pixel in same subgraph is located at same color section;
Memory module, for using the average value of the color feature value of each pixel in each subgraph as each subgraph
Second color feature value, and will be stored after the corresponding subgraph association of each second color feature value;
The division module is also used to convert the complete image when the mobile terminal receives the complete image of input
To color space;And the color feature value of each pixel based on the complete image after conversion obtains the color of the complete image
Boundary line;And the complete image is divided into multiple subgraphs by the color boundaries line based on acquisition;
The color boundaries line be the division module search in the complete image and border color feature similar in pixel,
The multiple closed curves constituted according to the pixel searched and rescued;
The mobile terminal is provided with property data base and image data base, and described image database is used to store complete image,
The property data base is used to store the second color feature value of the subgraph obtained after each complete image segmentation.
2. image retrieving apparatus as described in claim 1, which is characterized in that described image retrieval device further includes display mould
Block occupies the size of respective complete image for obtaining the corresponding subgraph of each matched second color feature value;
And each matched second color characteristic is successively shown in the mobile terminal according to the sequence of size from large to small
It is worth associated complete image.
3. image retrieving apparatus as described in claim 1, which is characterized in that the first acquisition module is also used to receiving
When image retrieval instructs, in the mobile terminal display color selection interface;And it is selected receiving user based on the color
When selecting the selection instruction of interface triggering, using the color feature value of the corresponding color of the selection instruction as to be retrieved described the
One color feature value.
4. a kind of image search method, which is characterized in that described image search method includes:
When receiving image retrieval instruction, the first color feature value to be retrieved is obtained according to described image search instruction;
First color feature value is compared with the second color feature value that mobile terminal stores;
When there is second color feature value to match with first color feature value, obtain and matched second color
Search result of the associated image of characteristic value as first color feature value, wherein described image is divided at least one son
Image, corresponding second color feature value of each subgraph;
It is described receive image retrieval instruction when, the first color feature value to be retrieved is obtained according to described image search instruction
The step of before, further includes:
When the mobile terminal receives the complete image of input, the complete image is divided into multiple subgraphs, wherein
Each pixel in same subgraph is located at same color section;
Using the average value of the color feature value of each pixel in each subgraph as the second color characteristic of each subgraph
Value, and will be stored after the corresponding subgraph association of each second color feature value;
When the complete image for receiving input in the mobile terminal, the complete image is divided into multiple sub-picture packs
It includes:
When the mobile terminal receives the complete image of input, the complete image is converted to color space;
The color feature value of each pixel based on the complete image after conversion obtains the color boundaries line of the complete image;
The complete image is divided into multiple subgraphs by the color boundaries line based on acquisition;
The color boundaries line is search and pixel similar in border color feature in the complete image, according to what is searched and rescued
Multiple closed curves that pixel is constituted;
The mobile terminal is provided with property data base and image data base, and described image database is used to store complete image,
The property data base is used to store the second color feature value of the subgraph obtained after each complete image segmentation.
5. image search method as claimed in claim 4, which is characterized in that described to have second color feature value and institute
When stating the matching of the first color feature value, obtain with the matched associated image of second color feature value as first face
After the step of search result of color characteristic value, further includes:
Obtain the size that the corresponding subgraph of each matched second color feature value occupies respective complete image;
Each matched second color characteristic is successively shown in the mobile terminal according to the sequence of size from large to small
It is worth associated complete image.
6. image search method as claimed in claim 4, which is characterized in that described when receiving image retrieval instruction, root
The step of obtaining the first color feature value to be retrieved according to described image search instruction include:
When receiving image retrieval instruction, in the mobile terminal display color selection interface;
When receiving the selection instruction that user is triggered based on the color selection interface, by the corresponding color of the selection instruction
Color feature value as first color feature value to be retrieved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510640878.6A CN105160029B (en) | 2015-09-30 | 2015-09-30 | Image retrieving apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510640878.6A CN105160029B (en) | 2015-09-30 | 2015-09-30 | Image retrieving apparatus and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105160029A CN105160029A (en) | 2015-12-16 |
CN105160029B true CN105160029B (en) | 2019-04-16 |
Family
ID=54800885
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510640878.6A Active CN105160029B (en) | 2015-09-30 | 2015-09-30 | Image retrieving apparatus and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105160029B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776682A (en) * | 2016-10-28 | 2017-05-31 | 努比亚技术有限公司 | A kind of picture match device, method and mobile terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711556A (en) * | 2002-11-13 | 2005-12-21 | 皇家飞利浦电子股份有限公司 | A method of and system for detecting uniform color segments |
US7127164B1 (en) * | 2003-08-06 | 2006-10-24 | Eastman Kodak Company | Method for rating images to facilitate image retrieval |
CN1916906A (en) * | 2006-09-08 | 2007-02-21 | 北京工业大学 | Image retrieval algorithm based on abrupt change of information |
CN101154290A (en) * | 2006-09-27 | 2008-04-02 | 索尼株式会社 | Detection equipment, method and computer program |
CN102842126A (en) * | 2011-05-09 | 2012-12-26 | 佳能株式会社 | Image processing apparatus and image processing method |
CN103207910A (en) * | 2013-04-08 | 2013-07-17 | 河南大学 | Image retrieval method based on hierarchical features and genetic programming relevance feedback |
CN103440646A (en) * | 2013-08-19 | 2013-12-11 | 成都品果科技有限公司 | Similarity obtaining method for color distribution and texture distribution image retrieval |
-
2015
- 2015-09-30 CN CN201510640878.6A patent/CN105160029B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1711556A (en) * | 2002-11-13 | 2005-12-21 | 皇家飞利浦电子股份有限公司 | A method of and system for detecting uniform color segments |
US7127164B1 (en) * | 2003-08-06 | 2006-10-24 | Eastman Kodak Company | Method for rating images to facilitate image retrieval |
CN1916906A (en) * | 2006-09-08 | 2007-02-21 | 北京工业大学 | Image retrieval algorithm based on abrupt change of information |
CN101154290A (en) * | 2006-09-27 | 2008-04-02 | 索尼株式会社 | Detection equipment, method and computer program |
CN102842126A (en) * | 2011-05-09 | 2012-12-26 | 佳能株式会社 | Image processing apparatus and image processing method |
CN103207910A (en) * | 2013-04-08 | 2013-07-17 | 河南大学 | Image retrieval method based on hierarchical features and genetic programming relevance feedback |
CN103440646A (en) * | 2013-08-19 | 2013-12-11 | 成都品果科技有限公司 | Similarity obtaining method for color distribution and texture distribution image retrieval |
Also Published As
Publication number | Publication date |
---|---|
CN105160029A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100892B (en) | Video play device and method | |
CN106780634B (en) | Picture dominant tone extracting method and device | |
CN104750420B (en) | Screenshotss method and device | |
CN105100491B (en) | A kind of apparatus and method for handling photo | |
CN104679890B (en) | Picture method for pushing and device | |
CN107018331A (en) | A kind of imaging method and mobile terminal based on dual camera | |
CN104850799B (en) | The method and mobile terminal of a kind of data in hiding mobile terminal | |
CN106447641A (en) | Image generation device and method | |
CN105187724B (en) | A kind of mobile terminal and method handling image | |
CN105357367B (en) | Recognition by pressing keys device and method based on pressure sensor | |
CN105897564A (en) | Photo sharing apparatus and method | |
CN106534696A (en) | Focusing apparatus and method | |
CN106603931A (en) | Binocular shooting method and device | |
CN106851113A (en) | A kind of photographic method and mobile terminal based on dual camera | |
CN106231095B (en) | Picture synthesizer and method | |
CN106534552B (en) | Mobile terminal and its photographic method | |
CN105979237A (en) | Image processing method and device | |
CN104735254B (en) | terminal screen locking method and system | |
CN104834473B (en) | The method and device of input | |
CN105405108B (en) | Image sharpening method and mobile terminal | |
CN105262953B (en) | A kind of mobile terminal and its method of control shooting | |
CN105117751B (en) | Two-dimentional decoding transmission method and device | |
CN106469221A (en) | Picture searching method, device and terminal | |
CN106484534A (en) | Control method for the mobile terminal of displaying and control device | |
CN104732218B (en) | The method and device that image is shown |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |