CN104731798A - Text retrieval method and text retrieval device - Google Patents

Text retrieval method and text retrieval device Download PDF

Info

Publication number
CN104731798A
CN104731798A CN201310706887.1A CN201310706887A CN104731798A CN 104731798 A CN104731798 A CN 104731798A CN 201310706887 A CN201310706887 A CN 201310706887A CN 104731798 A CN104731798 A CN 104731798A
Authority
CN
China
Prior art keywords
picture
word
frame
threshold
mouse
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.)
Granted
Application number
CN201310706887.1A
Other languages
Chinese (zh)
Other versions
CN104731798B (en
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.)
HONGHE TECHNOLOGY Co Ltd
Original Assignee
HONGHE TECHNOLOGY 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 HONGHE TECHNOLOGY Co Ltd filed Critical HONGHE TECHNOLOGY Co Ltd
Priority to CN201310706887.1A priority Critical patent/CN104731798B/en
Publication of CN104731798A publication Critical patent/CN104731798A/en
Application granted granted Critical
Publication of CN104731798B publication Critical patent/CN104731798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a text retrieval method and a text retrieval device. The text retrieval method includes the steps of firstly, selecting a picture with texts by a mouse; secondly, dragging the selected picture into a retrieval area by the mouse; thirdly, judging whether the dragging operation meets preset dragging rules or not, if yes, performing a fourth step directly, and if not, repeating the third step; fourthly, extracting the texts in the selected picture; fifthly, displaying the extracted texts in the retrieval area. The text retrieval method and the text retrieval device have the advantages that a retrieval process can be greatly facilitated for users and user experience is improved.

Description

A kind of character search method and device
Technical field
The present invention relates to retrieval technique field, refer to a kind of character search method and device especially.
Background technology
Flourish along with computer technology, people use computing machine to carry out the retrieval of word more and more frequently, thus obtain the information relevant to word and data.If user thinks the word in retrieval figure, the text event detection that will retrieve that can only be manual is in frame retrieval.This kind of search method not only wastes time and energy, and causes the non-constant of Consumer's Experience.
Summary of the invention
In view of this, the object of the invention is to propose a kind of character search method and device, can greatly user friendly retrieving, improve Consumer's Experience.
Based on above-mentioned purpose character search method provided by the invention, comprise the following steps:
The first step, mouse frame choosing includes the picture of word;
Second step, the picture that described frame selects is drawn in search domain by mouse;
3rd step, judges whether this drag operation meets the drag and drop rule preset, if meet, directly carries out the 4th step, if do not meet, is back to the 3rd step;
4th step, carries out Word Input to the described picture chosen;
5th step, finally retrieves the text importing extracted in this search domain.
Alternatively, the picture of described frame choosing is in a first step whole Target Photo, or the part on this Target Photo.
Further, utilize in a first step mouse successively frame select multiple picture including word.
Alternatively, if the picture of frame choosing is multiple in second step, then when pulling initial, cursor of mouse is chosen above picture at any one.
Alternatively, the drag and drop rule preset in the third step is when this frame pulled selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.
Alternatively, in the 4th step, the step that the described picture chosen carries out Word Input is comprised:
Be 8 bitmap formats by this picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, extract in this black and white picture the point being greater than or less than this gray threshold, the point finally extracted forms word.
Further, the gray threshold of described setting is 180, extracts the point of the threshold value this black and white picture being greater than or less than described setting, and the word gone out shown by these points then extracted is exactly that this chooses word on picture.
Further, described gray threshold sets a Low threshold and a high threshold simultaneously, point higher than high threshold and the point lower than Low threshold are all extracted and identify, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
Further, described gray threshold sets a Low threshold and a high threshold simultaneously, and Low threshold is 90, and high threshold is 180.
Further, described step 4 be elected in picture be when having multiple, then the order successively when selecting picture according to frame is carried out extraction word to each picture and is sorted.
Based on above-mentioned purpose, present invention also offers a kind of character search device, comprising:
Picture selection unit, selects for utilizing mouse frame the picture including word;
Picture pulls unit, is connected with described picture selection unit, is drawn in search domain for utilizing mouse by the picture that described frame selects;
Judging unit, judges that described picture pulls the whether satisfied drag and drop rule preset of drag operation of unit, if meet, is connected with described Word Input unit, if do not meet, pulls unit be connected with described picture;
Word Input unit, for carrying out Word Input to the described picture chosen;
Text importing unit, is connected with described Word Input unit, for being retrieved in this search domain by the text importing extracted.
Alternatively, the picture of described picture selection unit frame choosing is whole Target Photo, or the part on this Target Photo.
Further, described picture selection unit utilize mouse successively frame select multiple picture including word.
Alternatively, if the picture that described picture pulls the choosing of unit frame is multiple, then when pulling initial, cursor of mouse is chosen above picture at any one.
Alternatively, the drag and drop rule that described judging unit is preset is when this frame pulled selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.
Alternatively, described Word Input unit comprises the step that the described picture chosen carries out Word Input:
Be 8 bitmap formats by this picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, extract in this black and white picture the point being greater than or less than this gray threshold, the point finally extracted forms word.
Further, the gray threshold of described setting is 180, extracts the point of the threshold value this black and white picture being greater than or less than described setting, and the word gone out shown by these points then extracted is exactly that this chooses word on picture.
Further, described gray threshold sets a Low threshold and a high threshold simultaneously, point higher than high threshold and the point lower than Low threshold are all extracted and identify, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
Further, described gray threshold sets a Low threshold and a high threshold simultaneously, and Low threshold is 90, and high threshold is 180.
Further, described Word Input unit be elected in picture be when having multiple, then the order successively when selecting picture according to frame is carried out extraction word to each picture and is sorted.
As can be seen from above, character search method provided by the invention and device, included the picture of word, carry out Word Input, finally retrieved in this search domain by the text importing extracted the described picture chosen by mouse frame choosing.Thus, significantly reducing the work of user when retrieving, improve recall precision.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of character search method of the embodiment of the present invention;
Fig. 2 is that the embodiment of the present invention carries out the schematic flow sheet of Word Input to the picture chosen;
Fig. 3 is the structural representation of a kind of character search device of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Consult shown in Fig. 1, be the schematic flow sheet of a kind of character search method of the embodiment of the present invention, described character search method comprises:
Step 101, mouse frame choosing includes the picture of word.
In an embodiment of the present invention, user, in the process operated the page, ites is desirable to retrieve the word on certain picture from local or network, thus obtains the information relevant to this word.Mouse pointer can move on on Target Photo by user, then utilizes mouse frame to select in this Target Photo to want the part carrying out retrieving.Wherein, the picture of this frame choosing can be this Target Photo whole, also can be the part on this Target Photo.
As an alternative embodiment of the invention, can utilize mouse successively frame select multiple picture including word.Preferably can select multiple picture by CTRL+ mouse calibration method frame, namely after mouse frame selects first picture, first pin CTRL key and select second picture with mouse frame again.
Step 102, the picture that described frame selects is drawn in search domain by mouse.
In an embodiment, if the picture of frame choosing is multiple, then cursor of mouse is only needed to choose above picture at any one when pulling initial.
Step 103, judges whether this drag operation meets the drag and drop rule preset, if meet, directly carry out step 104, if do not meet, is back to step 102.
As one embodiment of the present of invention, default drag and drop rule can be when this frame pulled selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.When there is no this drag and drop rule of Successful Operation, then return the picture that step 102 pulls frame choosing again.When this drag and drop rule of Successful Operation, then can directly carry out step 104.
Step 104, carries out Word Input to the described picture chosen.As shown in Figure 2, its specific implementation process is as follows:
Step 201: be 8 bitmap formats by this picture compression chosen of 24 bitmap formats.
Step 202: binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtains black and white picture.
Step 203: according to the gray threshold pre-set, extracts in this black and white picture the point being greater than or less than this gray threshold, and the point finally extracted forms word.
Preferably, the gray threshold of described setting is chosen as 180.Extract the point of the threshold value this black and white picture being greater than or less than described setting, the word gone out shown by these points then extracted is exactly that this chooses word on picture.In addition, can also set a Low threshold and a high threshold, Low threshold is 90 in the present embodiment simultaneously, and high threshold is 180.Point higher than high threshold and the point lower than Low threshold are all extracted and identify, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
It should be noted that, the picture in elected is when having multiple, then select the order successively during picture to carry out extraction word to each picture according to frame and sort.
Step 105, finally retrieves the text importing extracted in this search domain.
Consult shown in Fig. 3, be the structural representation of a kind of character search device of the embodiment of the present invention, described character search device comprises:
Picture selection unit 301, can utilize mouse frame to select the picture including word.
In an embodiment of the present invention, user, in the process operated the page, ites is desirable to retrieve the word on certain picture from local or network, thus obtains the information relevant to this word.Mouse pointer can move on on Target Photo by user, then utilizes mouse frame to select in this Target Photo to want the part carrying out retrieving.Wherein, the picture of this frame choosing can be this Target Photo whole, also can be the part on this Target Photo.
As an alternative embodiment of the invention, can utilize mouse successively frame select multiple picture including word.Preferably can select multiple picture by CTRL+ mouse calibration method frame, namely after mouse frame selects first picture, first pin CTRL key and select second picture with mouse frame again.
Picture pulls unit 302, is connected with picture selection unit 301, and mouse can be utilized to be drawn in search domain by the picture that described frame selects.
In an embodiment, if the picture of frame choosing is multiple, then cursor of mouse is only needed to choose above picture at any one when pulling initial.
Judging unit 303, judges that picture pulls the whether satisfied drag and drop rule preset of drag operation of unit 302, if meet, is connected with Word Input unit 304, if do not meet, pulls unit 302 be connected with picture.
As one embodiment of the present of invention, this frame that ought pull that default drag and drop rule can be selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.When not having this drag and drop rule of Successful Operation, then judging unit 303 and picture pull unit 302 and are connected, and again pull the picture of frame choosing.When this drag and drop rule of Successful Operation, then judging unit 303 is connected with Word Input unit 304.
Word Input unit 304, can carry out Word Input to the described picture chosen.
As an alternative embodiment of the invention, first this picture compression chosen of 24 bitmap formats is 8 bitmap formats by Word Input unit 304.Then binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtain black and white picture.The gray threshold that last basis pre-sets, extracts in this black and white picture the point being greater than or less than this gray threshold, and the point finally extracted forms word.
Preferably, the gray threshold of described setting is chosen as 180.Extract the point of the threshold value this black and white picture being greater than or less than described setting, the word gone out shown by these points then extracted is exactly that this chooses word on picture.In addition, can also set a Low threshold and a high threshold, Low threshold is 90 in the present embodiment simultaneously, and high threshold is 180.Point higher than high threshold and the point lower than Low threshold are all extracted and identify, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
It should be noted that, the picture in elected is when having multiple, then select the order successively during picture to carry out extraction word to each picture according to frame and sort.
Text importing unit 305, is connected with Word Input unit 304.Finally the text importing extracted can be retrieved in this search domain.
This shows, the character search method that the present invention realizes and device, creationary proposing selects picture by frame thus can word in retrieving image; Significantly reducing the work of user when retrieving, not needing input characters, directly the picture containing word is dragged to search domain; And greatly enhance the experience that user uses gopher, satisfaction increases; Meanwhile, the present invention can select multiple picture by frame, is selected by frame the word in picture to carry out extracting, sorting, more enhances function and the convenience of retrieval; Finally, whole described character search method and device easy, compact, be easy to realize.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. a character search method, is characterized in that, comprises the following steps:
The first step, mouse frame choosing includes the picture of word;
Second step, the picture that described frame selects is drawn in search domain by mouse;
3rd step, judges whether this drag operation meets the drag and drop rule preset, if meet, directly carries out the 4th step, if do not meet, is back to the 3rd step;
4th step, carries out Word Input to the described picture chosen;
5th step, finally retrieves the text importing extracted in this search domain.
2. search method according to claim 1, is characterized in that, the picture of described frame choosing is in a first step whole Target Photo, or the part on this Target Photo.
3. search method according to claim 1 and 2, is characterized in that, utilize in a first step mouse successively frame select multiple picture including word.
4. search method according to claim 1, is characterized in that, if the picture of frame choosing is multiple in second step, then when pulling initial, cursor of mouse is chosen above picture at any one.
5. search method according to claim 1, it is characterized in that, the drag and drop rule preset in the third step is when this frame pulled selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.
6. search method according to claim 1, is characterized in that, comprises the step that the described picture chosen carries out Word Input in the 4th step:
Be 8 bitmap formats by this picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, extract in this black and white picture the point being greater than or less than this gray threshold, the point finally extracted forms word.
7. search method according to claim 6, it is characterized in that, the gray threshold of described setting is 180, extracts the point of the threshold value this black and white picture being greater than or less than described setting, and the word gone out shown by these points then extracted is exactly that this chooses word on picture.
8. search method according to claim 6, it is characterized in that, described gray threshold sets a Low threshold and a high threshold simultaneously, point higher than high threshold and the point lower than Low threshold are all extracted and identifies, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
9. search method according to claim 8, is characterized in that, described gray threshold sets a Low threshold and a high threshold simultaneously, and Low threshold is 90, and high threshold is 180.
10. the search method according to claim 7 or 8, is characterized in that, described step 4 be elected in picture be when having multiple, then the order successively when selecting picture according to frame is carried out extraction word to each picture and is sorted.
11. 1 kinds of character search devices, is characterized in that, comprising:
Picture selection unit, selects for utilizing mouse frame the picture including word;
Picture pulls unit, is connected with described picture selection unit, is drawn in search domain for utilizing mouse by the picture that described frame selects;
Judging unit, judges that described picture pulls the whether satisfied drag and drop rule preset of drag operation of unit, if meet, is connected with described Word Input unit, if do not meet, pulls unit be connected with described picture;
Word Input unit, for carrying out Word Input to the described picture chosen;
Text importing unit, is connected with described Word Input unit, for being retrieved in this search domain by the text importing extracted.
12. indexing units according to claim 11, is characterized in that, the picture of described picture selection unit frame choosing is whole Target Photo, or the part on this Target Photo.
13. indexing units according to claim 11 or 12, is characterized in that, described picture selection unit utilize mouse successively frame select multiple picture including word.
14. indexing units according to claim 11, is characterized in that, if the picture that described picture pulls the choosing of unit frame is multiple, then when pulling initial, cursor of mouse is chosen above picture at any one.
15. indexing units according to claim 11, it is characterized in that, the drag and drop rule that described judging unit is preset is when this frame pulled selects the arbitrary portion wherein of picture overlapping with described search domain, then pull this frame and select picture to the successful operation of search domain.
16. indexing units according to claim 11, is characterized in that, described Word Input unit comprises the step that the described picture chosen carries out Word Input:
Be 8 bitmap formats by this picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to this picture chosen of described 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, extract in this black and white picture the point being greater than or less than this gray threshold, the point finally extracted forms word.
17. indexing units according to claim 16, it is characterized in that, the gray threshold of described setting is 180, extracts the point of the threshold value this black and white picture being greater than or less than described setting, and the word gone out shown by these points then extracted is exactly that this chooses word on picture.
18. indexing units according to claim 16, it is characterized in that, described gray threshold sets a Low threshold and a high threshold simultaneously, point higher than high threshold and the point lower than Low threshold are all extracted and identifies, identify be word be just judged to be word, can not be identified as word just not as the word that will retrieve.
19. indexing units according to claim 18, is characterized in that, described gray threshold sets a Low threshold and a high threshold simultaneously, and Low threshold is 90, and high threshold is 180.
20. indexing units according to claim 18 or 19, is characterized in that, described Word Input unit be elected in picture be when having multiple, then select the order successively during picture to carry out extraction word to each picture according to frame and sort.
CN201310706887.1A 2013-12-19 2013-12-19 A kind of character search method and device Active CN104731798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310706887.1A CN104731798B (en) 2013-12-19 2013-12-19 A kind of character search method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310706887.1A CN104731798B (en) 2013-12-19 2013-12-19 A kind of character search method and device

Publications (2)

Publication Number Publication Date
CN104731798A true CN104731798A (en) 2015-06-24
CN104731798B CN104731798B (en) 2018-08-31

Family

ID=53455695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310706887.1A Active CN104731798B (en) 2013-12-19 2013-12-19 A kind of character search method and device

Country Status (1)

Country Link
CN (1) CN104731798B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184838A (en) * 2015-09-21 2015-12-23 深圳市金立通信设备有限公司 Picture processing method and terminal
CN106802732A (en) * 2015-11-25 2017-06-06 中兴通讯股份有限公司 Object selection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090058820A1 (en) * 2007-09-04 2009-03-05 Microsoft Corporation Flick-based in situ search from ink, text, or an empty selection region
CN101464903A (en) * 2009-01-09 2009-06-24 江阴明伦科技有限公司 OCR picture and text recognition and retrieval method and system through web mode
CN101661498A (en) * 2009-09-16 2010-03-03 百度在线网络技术(北京)有限公司 Information search method and device
CN102024064A (en) * 2011-01-11 2011-04-20 宇龙计算机通信科技(深圳)有限公司 Rapid searching method and mobile communication terminal
CN103135884A (en) * 2011-11-22 2013-06-05 财团法人资讯工业策进会 Input method, system and device for searching in circle selection mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090058820A1 (en) * 2007-09-04 2009-03-05 Microsoft Corporation Flick-based in situ search from ink, text, or an empty selection region
CN101464903A (en) * 2009-01-09 2009-06-24 江阴明伦科技有限公司 OCR picture and text recognition and retrieval method and system through web mode
CN101661498A (en) * 2009-09-16 2010-03-03 百度在线网络技术(北京)有限公司 Information search method and device
CN102024064A (en) * 2011-01-11 2011-04-20 宇龙计算机通信科技(深圳)有限公司 Rapid searching method and mobile communication terminal
CN103135884A (en) * 2011-11-22 2013-06-05 财团法人资讯工业策进会 Input method, system and device for searching in circle selection mode

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105184838A (en) * 2015-09-21 2015-12-23 深圳市金立通信设备有限公司 Picture processing method and terminal
CN106802732A (en) * 2015-11-25 2017-06-06 中兴通讯股份有限公司 Object selection method and device

Also Published As

Publication number Publication date
CN104731798B (en) 2018-08-31

Similar Documents

Publication Publication Date Title
CN103218355B (en) A kind of method and apparatus generating label for user
JP2017146983A (en) System and method of input assist control by sliding-contact operation in portable terminal equipment
US9449031B2 (en) Sorting and filtering a table with image data and symbolic data in a single cell
KR101363560B1 (en) Mobile device and method for controlling the operation of the mobile device
US9170706B2 (en) Query box polymorphism
CN104731881B (en) A kind of chat record method and its mobile terminal based on communications applications
CN106095215A (en) Touch input cursor manipulates
JP2015532753A (en) Character input method, system and apparatus
CN107861949B (en) Text keyword extraction method and device and electronic equipment
CN107092657A (en) File management user interface
CN105488159A (en) Page display method and page display apparatus
CN109739416A (en) A kind of Text Extraction and device
CN107517312A (en) A kind of wallpaper switching method, device and terminal device
CN102902711B (en) The generation of the general masterplate of a kind of pragmatic keyword, application process and device
CN106953913A (en) A kind of information-pushing method and mobile terminal
CN109478191B (en) Text mining method, recording medium, and text mining device
US20070283255A1 (en) Character Display Method
CN114241501B (en) Image document processing method and device and electronic equipment
CN104731798A (en) Text retrieval method and text retrieval device
US11520835B2 (en) Learning system, learning method, and program
CN106897289A (en) The optimization method and device of information search
KR101253502B1 (en) System and method for displaying application document
KR20100031912A (en) System and method of automatic complete searching using entity type for database and storage media having program source thereof
CN103778210A (en) Method and device for judging specific file type of file to be analyzed
CN102799650B (en) A kind of communication terminal and character string search method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant after: Hitevision Polytron Technologies Inc

Address before: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant before: HONGHE TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant