CN106844509A - A kind of retrieving image method and terminal - Google Patents

A kind of retrieving image method and terminal Download PDF

Info

Publication number
CN106844509A
CN106844509A CN201611230387.5A CN201611230387A CN106844509A CN 106844509 A CN106844509 A CN 106844509A CN 201611230387 A CN201611230387 A CN 201611230387A CN 106844509 A CN106844509 A CN 106844509A
Authority
CN
China
Prior art keywords
picture
pixel
retrieved
terminal
pixels
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.)
Withdrawn
Application number
CN201611230387.5A
Other languages
Chinese (zh)
Inventor
黎德伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201611230387.5A priority Critical patent/CN106844509A/en
Publication of CN106844509A publication Critical patent/CN106844509A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses retrieving image method and terminal, wherein method includes:When monitoring that user enters line slip touch operation for screen-picture, the sliding trace for sliding touch operation is obtained;Screenshot area is determined according to the sliding trace, the picture in the screenshot area is intercepted in the screen-picture, obtain picture to be retrieved;The picture to be retrieved is retrieved, acquisition matches picture and export with the picture match to be retrieved.The present invention also provides a kind of terminal.The terminal of the embodiment of the present invention can the partial picture of screen printing picture obtain picture to be retrieved and carry out the similar picture of retrieval, improve retrieval flexibility and improve user's operation ease.

Description

A kind of retrieving image method and terminal
Technical field
The present invention relates to electronic technology field, more particularly to a kind of retrieving image method and terminal.
Background technology
With the continuous lifting of picture recognition technology, the use of lookup and the screening of picture is more and more frequent.And use at present Family sometimes and is not required to retrieve whole pictures when retrieving image is carried out, and if user need to enter to the local picture of picture During row retrieval, needing user to cut out local picture manually can just be retrieved, it is clear that this causes user's complex operation.
The content of the invention
The embodiment of the present invention provides a kind of retrieving image method, and terminal can flexibly carry out the similar figure of retrieval to local picture Piece, improves user's operation ease.
One aspect of the present invention provides retrieving image method, and methods described includes:
When monitoring that user enters line slip touch operation for screen-picture, the slip rail for sliding touch operation is obtained Mark;
Screenshot area is determined according to the sliding trace, the picture in the screenshot area is intercepted in the screen-picture Face, obtains picture to be retrieved;
The picture to be retrieved is retrieved, acquisition matches picture and export with the picture match to be retrieved.
Another aspect of the present invention provides a kind of terminal, it is characterised in that the terminal includes:
First acquisition unit, for when monitoring that user enters line slip touch operation for screen-picture, obtaining and sliding The sliding trace of touch operation;
Sectional drawing unit, for determining screenshot area according to the sliding trace, intercepts described cutting in the screen-picture Picture in graph region, obtains picture to be retrieved;
Retrieval unit, for being retrieved to the picture to be retrieved, acquisition is matched with the picture match to be retrieved Picture is simultaneously exported.
In embodiments of the present invention, when monitoring that user enters line slip touch operation for screen-picture, obtain and slide The sliding trace of touch operation, screenshot area is determined according to the sliding trace, and the sectional drawing is intercepted in the screen-picture Picture in region, obtains picture to be retrieved, and the picture to be retrieved is retrieved, and obtains and the picture match to be retrieved Matching picture and export, this cause terminal can the partial picture of screen printing picture obtain picture to be retrieved to carry out retrieval similar Picture, improve retrieval flexibility and improve user's operation ease.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, embodiment will be described below needed for be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of retrieving image method provided in an embodiment of the present invention;
Fig. 2 is a kind of user's slide schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of terminal structure figure provided in an embodiment of the present invention;
Fig. 4 is another terminal structure figure provided in an embodiment of the present invention;
Fig. 5 is a kind of user's slide schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" instruction The presence of described feature, entirety, step, operation, element and/or component, but it is not precluded from one or more of the other feature, whole The presence or addition of body, step, operation, element, component and/or its set.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and " being somebody's turn to do " is intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to any combinations of one or more in the associated item listed and be possible to combination, and including these combinations.
As in this specification and in the appended claims as use, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In implementing, the terminal described in the embodiment of the present invention including but not limited to such as has touch sensitive surface Other of the mobile phone of (for example, touch-screen display and/or touch pad), laptop computer or tablet PC etc are just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, describe to include the terminal of display and touch sensitive surface.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as it is following in one or more:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can be public using at least one of such as touch sensitive surface Physical user-interface device.Can be adjusted among applications and/or in corresponding application programs and/or changed and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) can support that there are the various application programs of user interface directly perceived and transparent for a user.
It is a kind of retrieving image method schematic flow diagram provided in an embodiment of the present invention referring to Fig. 1, as shown in the figure shown in 1, A kind of retrieving image method may include following steps:
S100, when monitoring that user enters line slip touch operation for screen-picture, obtains the cunning for sliding touch operation Dynamic rail mark.
In embodiments of the present invention, when user need to carry out local sectional drawing to screen-picture to be retrieved, user can start terminal Local screen's picture retrieval function, wherein, terminal can by double-clicking, designated button is triggered or other form starts terminal Local screen's picture search function.When user starts local screen's picture search function of terminal, user can be directed to terminal Screen-picture enters line slip touch operation, therefore terminal can monitor user and enter line slip touch operation for screen-picture.As worked as When user browses webpage in terminal, when need to be retrieved to certain the part picture in the page screens of display on screen, now Terminal can start local screen's picture search function of terminal, and the screen-picture for terminal enters line slip touch operation realization section Figure.Further, when terminal starts local screen's picture search function of terminal, terminal can be on the screen of real-time detection terminal Whether have user carries out touch operation on screen, and when terminal detects user has touch operation on screen, terminal can be sentenced Whether disconnected touch operation is to slide touch operation, and when terminal judges are to slide touch operation, terminal can obtain user in screen The slip touch operation of upper input, and obtain sliding trace according to touch operation is slided.
S101, screenshot area is determined according to the sliding trace, is intercepted in the screen-picture in the screenshot area Picture, obtain picture to be retrieved.
In embodiments of the present invention, terminal can identify closed curve according to sliding trace, wherein, closed curve specifically may be used Closed curve schematic diagram shown in Figure 1, closed curve is to cross a region for closure.When terminal recognition to sliding trace When including closed curve, terminal can determine that the region that closed curve is encircled a city is screenshot area, and can be cut in screen-picture The picture in the screenshot area is taken, picture to be retrieved is obtained, while generating retrieval request.
S102, retrieves to the picture to be retrieved, obtains and matches picture and defeated with the picture match to be retrieved Go out.
In embodiments of the present invention, when terminal gets retrieval request, terminal can be retrieved picture to be retrieved.Its In, terminal is retrieved picture to be retrieved can be specifically:First, each pixel in terminal-pair picture to be retrieved is divided Class, obtains the pixel set of all types of pixels.Secondly, terminal calculates the pixel quantity in the pixel set of each type pixel, Obtain the pixel data of all types of pixels in picture to be retrieved.Finally, terminal is according to all types of pixels of picture to be retrieved The matching picture of pixel quantity retrieval matching.
Specifically, each pixel in terminal-pair picture to be retrieved is classified can be specifically:Terminal recognition is to be retrieved The pixel value of each pixel in picture, the pixel value according to each pixel is classified to each pixel, obtains all types of pictures The pixel set of element.Wherein, the pixel of same pixel value can be classified as a kind of classes of pixels by terminal, or terminal can be by pixel Pixel of the value in presetting range classifies as a kind of classes of pixels.Wherein, terminal can pre-set all kinds pixel, such as basis The scope of pixel value sets all kinds pixel, and the pixel value range that such as terminal can be set the first classes of pixels is 0~63, Second pixel value range of classes of pixels is 64~127, and the pixel value range of the third classes of pixels is the 128~191, the 4th The pixel value range of type pixel is 192~255.Therefore, when the pixel value of certain pixel is 122, terminal can determine that picture Element value is in second pixel value range of classes of pixels, so that terminal can determine that the pixel is second classes of pixels.Its In, the big I of pixel value range of each type pixel is voluntarily set, and does not limit herein.
Further, in embodiments of the present invention, the pixel value of pixel can also be the trichromatic color value of pixel.Cause This, terminal is classified according to the pixel value of each pixel to each pixel, and the pixel set for obtaining all types of pixels can be with It is:Terminal can be sorted out the same pixel of the trichromatic color value between pixel as a kind of classes of pixels, or Trichromatic color value between pixel can be re-started quantization by terminal by preset quantized value, and by the three primary colors after quantization The the same pixel of color value sorted out as a kind of classes of pixels.In a particular application, can be such as:The face of each primary colors Any integer value between colour desirable 0~255, therefore, if when terminal by the trichromatic color value between pixel Pixel when being sorted out as a kind of classes of pixels, terminal can have 256*256*256=16777216 kinds color to combine, can See, when the pictures of terminal-pair one carry out every kind of pixel to be sorted out, at most can sort out 16777216 type pixels.This is improved eventually Hold the accuracy sorted out.
But, it is also evident from from above, terminal sorts out the classes of pixels huge number for, and this also causes terminal in classification During expend more resource.Therefore, in order to reduce the processing pressure of terminal, when terminal get it is every on picture to be retrieved After the trichromatic primary color value of individual pixel, terminal can further quantify to trichromatic primary color value, such as press preset quantized value Quantization is re-started, new trichromatic color value is obtained, wherein, quantization unit is more than 1.Specifically, can be such as:Terminal can be pre- If quantization unit be 64, then color value can be quantified as 0 for 0~64 by terminal, and color value is quantified as 1, color for 64~127 It is worth for 128~191 are quantified as 2, color value is quantified as 3 for 192~255.Obviously, when the default quantization unit of terminal is 64 When, terminal can only have the combination of 4*4*4=64 kinds color, be 64 type pixels.It can be seen that, when the pictures of terminal-pair one carry out picture During element classification, at most only 64 kinds, this effectively reduces the processing pressure of terminal.Therefore, when terminal-pair picture to be retrieved After each pixel carries out re-quantization, terminal can carry out each type pixel classification to the pixel after re-quantization, obtain all kinds of The pixel set of type pixel.
Further, in order to more effectively reduce the processing pressure that the every kind of pixel of terminal-pair is classified, end is improved Reason efficiency, terminal can first treat retrieving image and carry out gray processing, obtain gray-scale map.After terminal obtains gray-scale map, terminal can Binaryzation is carried out to gray-scale map, binary map is obtained.After terminal obtains the binary map of picture to be retrieved, the binary map only includes two Type pixel, i.e. black and white two types pixel, can be 0 and 1 when color value is converted into.Therefore, terminal can be only Two types pixel classifications are carried out to each pixel in binary map, terminal classification effectiveness is improved.Wherein, terminal-pair gray-scale map enters Row binaryzation, obtaining binary map can be specifically:Gray value of the terminal by gray value in gray-scale map more than the pixel of default value 1 is set to, the gray value in gray-scale map 0 is set to less than or equal to the gray value of the pixel of default value, when terminal-pair gray-scale map In each pixel gray value converted after, terminal can obtain binary map.Wherein, default value can voluntarily be set with user Put, or preferably 110.
In embodiments of the present invention, when terminal obtains the pixel quantity of each type pixel in picture to be retrieved, eventually End can further obtain the pixel quantity of each type pixel of the every pictures in picture database, wherein, terminal can be preset The pixel quantity of each type pixel of the every pictures in picture database, or terminal can be by above-mentioned acquisition picture to be retrieved Each type pixel pixel quantity mode obtain every pictures in picture database each type pixel pixel Quantity.
In embodiments of the present invention, the picture of each type pixel of the every pictures in terminal gets picture database During prime number amount, terminal can calculate all kinds of in the pixel quantity of all types of pixels of every pictures and the picture to be retrieved respectively The similarity of the pixel quantity of type pixel, and obtain similarity be more than the Target Photo of default similarity threshold as with it is to be retrieved The matching picture of picture match, wherein, similarity threshold user can voluntarily be set, and be not limited herein, it is preferred that similar Degree threshold value can be 70%.
In actual applications, terminal can be by the pixel quantity and picture database of every kind of type of pixel of picture to be retrieved The pixel quantity of every kind of type of pixel of any pictures is contrasted in storehouse, if the number of pixels of the pixel of same type connects Closely or more than 70%, terminal can determine that any pictures are to match with picture to be retrieved.
In embodiments of the present invention, when terminal gets the pixel of each type pixel during terminal obtains picture to be retrieved During quantity, the pixel quantity of each type pixel in picture to be retrieved can be sent to picture retrieval server by terminal, so that The pixel quantity of each type pixel of the picture retrieval server in picture to be retrieved retrieve for picture to be retrieved The matching picture matched somebody with somebody, and receive the matching picture of retrieval server transmission.
In embodiments of the present invention, when terminal is got with picture match to be retrieved after matching picture, terminal can be aobvious Show and shown on interface, to facilitate user to check confirmation.
In embodiments of the present invention, when monitoring that user enters line slip touch operation for screen-picture, obtain and slide The sliding trace of touch operation, screenshot area is determined according to the sliding trace, and the sectional drawing is intercepted in the screen-picture Picture in region, obtains picture to be retrieved, and the picture to be retrieved is retrieved, and obtains and the picture match to be retrieved Matching picture and export, this cause terminal can the partial picture of screen printing picture obtain picture to be retrieved to carry out retrieval similar Picture, improve retrieval flexibility and improve user's operation ease.
It is that the embodiment of the present invention provides a kind of terminal structure figure referring to Fig. 3, the terminal includes shown in 3 as shown in the figure:
First acquisition unit 100, for when monitoring that user enters line slip touch operation for screen-picture, obtaining and sliding The sliding trace of dynamic touch operation;
Sectional drawing unit 200, for determining screenshot area according to the sliding trace, intercepts described in the screen-picture Picture in screenshot area, obtains picture to be retrieved;
Retrieval unit 300, for being retrieved to the picture to be retrieved, obtain with the picture match to be retrieved With picture and export.
It is understood that the function of each functional unit of unit in the terminal of the present embodiment can be according to above method reality The method applied in example is implemented, and it implements the associated description that process is referred to above method embodiment, herein no longer Repeated.
In embodiments of the present invention, when monitoring that user enters line slip touch operation for screen-picture, obtain and slide The sliding trace of touch operation, screenshot area is determined according to the sliding trace, and the sectional drawing is intercepted in the screen-picture Picture in region, obtains picture to be retrieved, and the picture to be retrieved is retrieved, and obtains and the picture match to be retrieved Matching picture and export, this cause terminal can the partial picture of screen printing picture obtain picture to be retrieved to carry out retrieval similar Picture, improve retrieval flexibility and improve user's operation ease.
It is that the embodiment of the present invention provides a kind of terminal structure figure referring to Fig. 4, the terminal includes shown in 4 as shown in the figure:
First acquisition unit 100, sectional drawing unit 200 and retrieval unit 300.
Wherein, the sectional drawing unit 200 includes:
First recognition unit 10, for recognizing the closed curve included by the sliding trace;
Determining unit 20, for the closed curve area defined to be defined as into screenshot area.
Wherein, the retrieval unit 300 includes:
First taxon 30, for classifying to each pixel in the picture to be retrieved, obtains all types of pictures The pixel set of element;
First computing unit 40, for the pixel quantity in the pixel set for calculating each type pixel, treats described in acquisition The pixel quantity of all types of pixels in retrieving image;
Matching unit 50, for all types of pixels in the picture to be retrieved pixel quantity in preset picture Obtained in database and match picture with the picture match to be retrieved;
Output unit 60, for exporting the matching picture.
Wherein, first taxon 40 includes:
Second recognition unit 1, the pixel value for recognizing each pixel in the picture to be retrieved;
Second taxon 2, for being classified to described each pixel according to the pixel value of each pixel, obtains All types of pixel sets.
Wherein, the matching unit 50 includes:
Second acquisition unit 3, the pixel of each type pixel for obtaining the every pictures in the picture database Quantity;
Second computing unit 4, the pixel quantity for calculating all types of pixels per pictures respectively is treated with described The similarity of the pixel quantity of all types of pixels in retrieving image;
3rd acquiring unit 5, default similarity is more than for obtaining the pixel quantity similarity of all types of pixels of picture The Target Photo of threshold value, and the Target Photo is set to match picture.
It is understood that the function of each functional unit of unit in the terminal of the present embodiment can be according to above method reality The method applied in example is implemented, and it implements the associated description that process is referred to above method embodiment, herein no longer Repeated.
In embodiments of the present invention, when monitoring that user enters line slip touch operation for screen-picture, obtain and slide The sliding trace of touch operation, screenshot area is determined according to the sliding trace, and the sectional drawing is intercepted in the screen-picture Picture in region, obtains picture to be retrieved, and the picture to be retrieved is retrieved, and obtains and the picture match to be retrieved Matching picture and export, this cause terminal can the partial picture of screen printing picture obtain picture to be retrieved to carry out retrieval similar Picture, improve retrieval flexibility and improve user's operation ease.
It is a kind of terminal schematic block diagram of another embodiment of the present invention offer referring to Fig. 5.The present embodiment as shown in Figure 5 In terminal can include:One or more processors 501;One or more input equipments 502, one or more output equipments 503 and memory 504.Above-mentioned processor 501, input equipment 502, output equipment 503 and memory 504 are connected by bus 504 Connect.Memory 504 is used for store instruction, and processor 501 is used to perform the instruction of the storage of memory 504.Wherein, processor 501 For:
When monitoring that user enters line slip touch operation for screen-picture, the slip rail for sliding touch operation is obtained Mark;
Screenshot area is determined according to the sliding trace, the picture in the screenshot area is intercepted in the screen-picture Face, obtains picture to be retrieved;
The picture to be retrieved is retrieved, acquisition matches picture and export with the picture match to be retrieved.
Wherein, the processor 401 determines that screenshot area includes according to the sliding trace:
Recognize the closed curve included by the sliding trace;
The closed curve area defined is defined as screenshot area.
Wherein, the picture to be retrieved of the processor 401 pairs is retrieved, and is obtained and the picture match to be retrieved Matching picture and output includes:
Each pixel in the picture to be retrieved is classified, the pixel set of all types of pixels is obtained;
The pixel quantity in the pixel set of each type pixel is calculated, all types of pictures in the picture to be retrieved are obtained The pixel quantity of element;
The pixel quantity of all types of pixels in the picture to be retrieved obtained in preset picture database with The matching picture of the picture match to be retrieved;
Export the matching picture.
Wherein, each pixel in the picture to be retrieved of the processor 401 pairs is classified, and obtains all types of pixels Pixel set include:
Recognize the pixel value of each pixel in the picture to be retrieved;
Pixel value according to each pixel is classified to described each pixel, obtains all types of pixel sets.
Wherein, the pixel quantity of all types of pixels of the processor 401 in the picture to be retrieved is preset Obtained in picture database includes with the picture that matches of the picture match to be retrieved:
Obtain the pixel quantity of each type pixel of every pictures in the picture database;
Calculate all types of in the pixel quantity of all types of pixels per pictures and the picture to be retrieved respectively The similarity of the pixel quantity of pixel;
The pixel quantity similarity for obtaining all types of pixels of picture is more than the Target Photo of default similarity threshold, and will The Target Photo is set to match picture.
It is understood that the function of each functional unit of unit in the terminal of the present embodiment can be according to above method reality The method applied in example is implemented, and it implements the associated description that process is referred to above method embodiment, herein no longer Repeated.
In embodiments of the present invention, when monitoring that user enters line slip touch operation for screen-picture, obtain and slide The sliding trace of touch operation, screenshot area is determined according to the sliding trace, and the sectional drawing is intercepted in the screen-picture Picture in region, obtains picture to be retrieved, and the picture to be retrieved is retrieved, and obtains and the picture match to be retrieved Matching picture and export, this cause terminal can the partial picture of screen printing picture obtain picture to be retrieved to carry out retrieval similar Picture, improve retrieval flexibility and improve user's operation ease.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized, with electronic hardware, computer software or the combination of the two in order to clearly demonstrate hardware With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, can be by it Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed phase Coupling or direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection, or electricity, machinery or other forms connections.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme Purpose.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for being contributed to prior art in other words, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of retrieving image method, it is characterised in that methods described includes:
When monitoring that user enters line slip touch operation for screen-picture, the sliding trace for sliding touch operation is obtained;
Screenshot area is determined according to the sliding trace, the picture in the screenshot area is intercepted in the screen-picture, obtained Obtain picture to be retrieved;
The picture to be retrieved is retrieved, acquisition matches picture and export with the picture match to be retrieved.
2. the method for claim 1, it is characterised in that described to determine that screenshot area includes according to the sliding trace:
Recognize the closed curve included by the sliding trace;
The closed curve area defined is defined as screenshot area.
3. the method for claim 1, it is characterised in that described to be retrieved to the picture to be retrieved, obtains and institute The matching picture and output for stating picture match to be retrieved include:
Each pixel in the picture to be retrieved is classified, the pixel set of all types of pixels is obtained;
The pixel quantity in the pixel set of each type pixel is calculated, all types of pixels in the acquisition picture to be retrieved Pixel quantity;
The pixel quantity of all types of pixels in the picture to be retrieved obtained in preset picture database with it is described The matching picture of picture match to be retrieved;
Export the matching picture.
4. method as claimed in claim 3, it is characterised in that described each pixel in the picture to be retrieved is divided Class, the pixel set for obtaining all types of pixels includes:
Recognize the pixel value of each pixel in the picture to be retrieved;
Pixel value according to each pixel is classified to described each pixel, obtains all types of pixel sets.
5. method as claimed in claim 3, it is characterised in that all types of pixels in the picture to be retrieved Pixel quantity is obtained in preset picture database to be included with the picture that matches of the picture match to be retrieved:
Obtain the pixel quantity of each type pixel of every pictures in the picture database;
The all types of pixels in the pixel quantity of all types of pixels per pictures and the picture to be retrieved are calculated respectively Pixel quantity similarity;
The pixel quantity similarity for obtaining all types of pixels of picture is more than the Target Photo of default similarity threshold, and will be described Target Photo is set to match picture.
6. a kind of terminal, it is characterised in that the terminal includes:
First acquisition unit, touches for when monitoring that user enters line slip touch operation for screen-picture, obtaining to slide The sliding trace of operation;
Sectional drawing unit, for determining screenshot area according to the sliding trace, intercepts the sectional drawing area in the screen-picture Picture in domain, obtains picture to be retrieved;
Retrieval unit, for being retrieved to the picture to be retrieved, acquisition matches picture with the picture match to be retrieved And export.
7. terminal as claimed in claim 6, it is characterised in that the sectional drawing unit includes:
First recognition unit, for recognizing the closed curve included by the sliding trace;
Determining unit, for the closed curve area defined to be defined as into screenshot area.
8. terminal as claimed in claim 6, it is characterised in that the retrieval unit includes:
First taxon, for classifying to each pixel in the picture to be retrieved, obtains the picture of all types of pixels Element set;
First computing unit, for the pixel quantity in the pixel set for calculating each type pixel, obtains the figure to be retrieved The pixel quantity of all types of pixels in piece;
Matching unit, for all types of pixels in the picture to be retrieved pixel quantity in preset picture database Middle acquisition matches picture with the picture match to be retrieved;
Output unit, for exporting the matching picture.
9. terminal as claimed in claim 8, it is characterised in that first taxon includes:
Second recognition unit, the pixel value for recognizing each pixel in the picture to be retrieved;
Second taxon, for being classified to described each pixel according to the pixel value of each pixel, obtains all kinds of Type pixel set.
10. terminal as claimed in claim 8, it is characterised in that the matching unit includes:
Second acquisition unit, the pixel quantity of each type pixel for obtaining the every pictures in the picture database;
Second computing unit, pixel quantity and the figure to be retrieved for calculating all types of pixels per pictures respectively The similarity of the pixel quantity of all types of pixels in piece;
3rd acquiring unit, default similarity threshold is more than for obtaining the pixel quantity similarity of all types of pixels of picture Target Photo, and the Target Photo is set to match picture.
CN201611230387.5A 2016-12-27 2016-12-27 A kind of retrieving image method and terminal Withdrawn CN106844509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611230387.5A CN106844509A (en) 2016-12-27 2016-12-27 A kind of retrieving image method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611230387.5A CN106844509A (en) 2016-12-27 2016-12-27 A kind of retrieving image method and terminal

Publications (1)

Publication Number Publication Date
CN106844509A true CN106844509A (en) 2017-06-13

Family

ID=59113303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611230387.5A Withdrawn CN106844509A (en) 2016-12-27 2016-12-27 A kind of retrieving image method and terminal

Country Status (1)

Country Link
CN (1) CN106844509A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315844A (en) * 2017-08-17 2017-11-03 广州视源电子科技股份有限公司 A kind of search method based on picture, device, equipment and storage medium
CN108268601A (en) * 2017-12-20 2018-07-10 优视科技(中国)有限公司 Image searching method, device and computer equipment
CN111125398A (en) * 2019-12-19 2020-05-08 云粒智慧科技有限公司 Picture information retrieval method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315844A (en) * 2017-08-17 2017-11-03 广州视源电子科技股份有限公司 A kind of search method based on picture, device, equipment and storage medium
CN108268601A (en) * 2017-12-20 2018-07-10 优视科技(中国)有限公司 Image searching method, device and computer equipment
CN111125398A (en) * 2019-12-19 2020-05-08 云粒智慧科技有限公司 Picture information retrieval method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN111462845A (en) Dynamic form generation method and device, computer equipment and storage medium
CN109474483A (en) A kind of detection method, detection device and the terminal device of unit exception situation
EP3175375A1 (en) Image based search to identify objects in documents
WO2013074553A1 (en) Microblog summarization
US20220292130A1 (en) Incremental agglomerative clustering of digital images
WO2021196435A1 (en) Information recommendation method and related device
CN106844509A (en) A kind of retrieving image method and terminal
US8977061B2 (en) Merging face clusters
CN109949295A (en) Otherness detection method, device and the computer storage medium of browsing device net page
CN107517312A (en) A kind of wallpaper switching method, device and terminal device
CN107895117A (en) Malicious code mask method and device
CN114519521A (en) Resource scheduling method and device, computer equipment and storage medium
WO2019018062A1 (en) Organizing images automatically into image grid layout
Dimitrov et al. Visual positions of links and clicks on wikipedia
CN115048174A (en) User-based personalized menu generation method, device, equipment and storage medium
CA3065275A1 (en) Utilizing optical character recognition (ocr) to remove biasing
CN111177372A (en) Scientific and technological achievement classification method, device, equipment and medium
Segev On Information Quality and the WWW Impact: A Position Paper.
CN112989210A (en) Insurance recommendation method, system, equipment and medium based on health portrait
US20160026613A1 (en) Processing image to identify object for insertion into document
US11080640B1 (en) Systems and methods for managing organizational structures
CN112528610A (en) Data labeling method and device, electronic equipment and storage medium
CN109919324B (en) Transfer learning classification method, system and equipment based on label proportion learning
CN103227810B (en) A kind of methods, devices and systems identifying remote desktop semanteme in network monitoring
CN108133048A (en) file ordering method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170613