CN104731798B - A kind of character search method and device - Google Patents
A kind of character search method and device Download PDFInfo
- Publication number
- CN104731798B CN104731798B CN201310706887.1A CN201310706887A CN104731798B CN 104731798 B CN104731798 B CN 104731798B CN 201310706887 A CN201310706887 A CN 201310706887A CN 104731798 B CN104731798 B CN 104731798B
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of character search method and devices, including mouse frame choosing includes the picture of word;The picture that the frame selects is drawn in search domain by mouse;Judge whether the drag operation meets preset drag and drop rule, the 4th step is directly carried out if meeting, if being unsatisfactory for being back to third step;Word Input is carried out to the picture chosen;Finally the text importing extracted is retrieved in the search domain.Therefore, the present invention can greatly facilitate the retrieving of user, improve user experience.
Description
Technical field
The present invention relates to retrieval technique field, a kind of character search method and device are particularly related to.
Background technology
With flourishing for computer technology, people more and more frequently use the retrieval of computer progress word, from
And to obtain and the relevant information of word and data.If user thinks the word in retrieval figure, will can only manually retrieve
Word is input in frame retrieval.Such search method is not only time-consuming and laborious, but also causes user experience excessively poor.
Invention content
In view of this, it is an object of the invention to propose a kind of character search method and device, it can greatly facilitate use
The retrieving at family improves user experience.
Based on above-mentioned purpose character search method provided by the invention, include the following steps:
The first step, mouse frame choosing include the picture of word;
The picture that the frame selects is drawn in search domain by second step, mouse;
Third walks, and judges whether the drag operation meets preset drag and drop rule, and the 4th step is directly carried out if meeting, if
It is unsatisfactory for, is back to third step;
4th step carries out Word Input to the picture chosen;
5th step finally retrieves the text importing extracted in the search domain.
Optionally, in the first step the picture of frame choosing be on entire Target Photo or the Target Photo one
Part.
Further, in the first step using mouse successively frame select it is multiple include word picture.
Optionally, if the picture that frame selects in second step is multiple, when pulling starting, cursor of mouse is at any one
Choose the upper surface of picture.
Optionally, in the third step preset drag and drop rule be when the frame pulled select the arbitrary portion therein of picture with
The search domain overlapping then pulls the operation success that the frame selects picture to search domain.
Optionally, include the step of the 4th step carries out Word Input to the picture chosen:
It is 8 bitmap formats by the picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, the point for being more than or less than the gray threshold in the black and white picture is extracted,
The dot finally extracted is at word.
Further, the gray threshold set is extracted and is more than or less than the setting on the black and white picture as 180
Threshold value point, the word gone out shown by these points then extracted is exactly that this chooses word on picture.
Further, the gray threshold concurrently sets a Low threshold and a high threshold, the point higher than high threshold
It all extracts and identifies with the point less than Low threshold, identify to be word it is determined that word, cannot be identified as word
Just not as the word to be retrieved.
Further, the gray threshold concurrently sets a Low threshold and a high threshold, Low threshold 90, high threshold
It is 180.
Further, the step four is when the picture in choosing is that have multiple, then suitable successively when selecting picture according to frame
The each picture of ordered pair extracts word and sorts.
Based on above-mentioned purpose, the present invention also provides a kind of character search devices, including:
Picture selecting unit, for including the picture of word using mouse frame choosing;
Picture pulls unit, is connected with the picture selecting unit, and the picture for being selected the frame using mouse is pulled
To search domain;
Judging unit, judges whether the drag operation of the picture dragging unit meets preset drag and drop rule, if meeting
Then it is connected with the Word Input unit, pulling unit with the picture if being unsatisfactory for is connected;
Word Input unit, for carrying out Word Input to the picture chosen;
Text importing unit is connected with the Word Input unit, for by the text importing extracted in the retrieval area
It is retrieved in domain.
Optionally, the picture of the picture selecting unit frame choosing is on entire Target Photo or the Target Photo
A part.
Further, the picture selecting unit using mouse successively frame select it is multiple include word picture.
Optionally, if the picture that the picture pulls the choosing of unit frame is multiple, when pulling starting, cursor of mouse is in office
Meaning one chooses the upper surface of picture.
Optionally, the preset drag and drop rule of the judging unit is when the frame pulled selects the arbitrary portion therein of picture
It is Chong Die with the search domain, then pull the operation success that the frame selects picture to search domain.
Optionally, the Word Input unit includes to the step of picture progress Word Input chosen:
It is 8 bitmap formats by the picture compression chosen of 24 bitmap formats;
Binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, obtains black and white picture;
According to the gray threshold pre-set, the point for being more than or less than the gray threshold in the black and white picture is extracted,
The dot finally extracted is at word.
Further, the gray threshold set is extracted and is more than or less than the setting on the black and white picture as 180
Threshold value point, the word gone out shown by these points then extracted is exactly that this chooses word on picture.
Further, the gray threshold concurrently sets a Low threshold and a high threshold, the point higher than high threshold
It all extracts and identifies with the point less than Low threshold, identify to be word it is determined that word, cannot be identified as word
Just not as the word to be retrieved.
Further, the gray threshold concurrently sets a Low threshold and a high threshold, Low threshold 90, high threshold
It is 180.
Further, the Word Input unit is when the picture in choosing is that have multiple, then when selecting picture according to frame
Sequence extracts word to each picture and sorts successively.
From the above it can be seen that character search method provided by the invention and device, include by mouse frame choosing
The picture of word carries out Word Input, finally by the text importing extracted in the search domain to the picture chosen
It is retrieved.To significantly reduce work of the user when retrieving, improve recall precision.
Description of the drawings
Fig. 1 is a kind of flow diagram of character search method of the embodiment of the present invention;
Fig. 2 is the flow diagram that the embodiment of the present invention carries out the picture chosen Word Input;
Fig. 3 is a kind of structural schematic diagram of character search device of the embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.
As shown in fig.1, being a kind of flow diagram of character search method of the embodiment of the present invention, the character search side
Method includes:
Step 101, mouse frame choosing includes the picture of word.
In an embodiment of the present invention, user is during operating the page, it is desirable to be able to from local or net
The word on some picture is retrieved on network, to obtain and the relevant information of the word.Mouse pointer can be moved on to mesh by user
It marks on a map on piece, the part for wanting to be retrieved in the Target Photo is then selected using mouse frame.Wherein, the picture of frame choosing can be with
It is the entire Target Photo, can also be the part on the Target Photo.
As an alternative embodiment of the invention, can utilize mouse successively frame select it is multiple include word picture.
Preferably multiple pictures can be selected by CTRL+ mouse calibration method frames, i.e., after mouse frame selects first picture, first pinned
CTRL key selects second picture with mouse frame again.
Step 102, the picture that the frame selects is drawn in search domain by mouse.
In embodiment, if the picture of frame choosing is multiple, only need cursor of mouse in any one choosing when pulling starting
The upper surface of middle picture.
Step 103, judge whether the drag operation meets preset drag and drop rule, step 104 directly carried out if meeting,
Step 102 is back to if being unsatisfactory for.
As an embodiment of the present invention, preset drag and drop rule can be when the frame pulled selects the therein of picture
Arbitrary portion is Chong Die with the search domain, then pulls the operation success that the frame selects picture to search domain.When not succeeding
When operating the drag and drop rule, then return to step 102 pulls the picture of frame choosing again.When the Successful Operation drag and drop rule, then may be used
Directly to carry out step 104.
Step 104, Word Input is carried out to the picture chosen.As shown in Fig. 2, its specific implementation process is as follows:
Step 201:It is 8 bitmap formats by the picture compression chosen of 24 bitmap formats.
Step 202:Binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, obtains black and white picture.
Step 203:According to the gray threshold pre-set, extracts and be more than or less than the gray scale threshold in the black and white picture
The point of value, the dot finally extracted is at word.
Preferably, the gray threshold of the setting is chosen as 180.It extracts and is more than or less than described set on the black and white picture
The point of fixed threshold value, the word gone out shown by these points then extracted is exactly that this chooses word on picture.Furthermore it is also possible to same
When a setting one Low threshold and high threshold, Low threshold is 90 in the present embodiment, high threshold 180.Higher than high threshold
Point and all extract and identify less than the point of Low threshold, identify to be word it is determined that word, cannot be identified as text
Word just not as the word to be retrieved.
It should be noted that when the picture in choosing is that have multiple, then select the sequence successively when picture to each according to frame
Picture extracts word and sorts.
Step 105, finally the text importing extracted is retrieved in the search domain.
As shown in fig.3, being a kind of structural schematic diagram of character search device of the embodiment of the present invention, the character search
Device includes:
Picture selecting unit 301, it includes the picture of word that can utilize mouse frame choosing.
In an embodiment of the present invention, user is during operating the page, it is desirable to be able to from local or net
The word on some picture is retrieved on network, to obtain and the relevant information of the word.Mouse pointer can be moved on to mesh by user
It marks on a map on piece, the part for wanting to be retrieved in the Target Photo is then selected using mouse frame.Wherein, the picture of frame choosing can be with
It is the entire Target Photo, can also be the part on the Target Photo.
As an alternative embodiment of the invention, can utilize mouse successively frame select it is multiple include word picture.
Preferably multiple pictures can be selected by CTRL+ mouse calibration method frames, i.e., after mouse frame selects first picture, first pinned
CTRL key selects second picture with mouse frame again.
Picture pulls unit 302, is connected with picture selecting unit 301, can be dragged the picture that the frame selects using mouse
It drags to search domain.
In embodiment, if the picture of frame choosing is multiple, only need cursor of mouse in any one choosing when pulling starting
The upper surface of middle picture.
Judging unit 303, judges whether the drag operation of picture dragging unit 302 meets preset drag and drop rule, if full
Sufficient then be connected with Word Input unit 304, if being unsatisfactory for pulling unit 302 with picture is connected.
As an embodiment of the present invention, frame pulled of working as that preset drag and drop rule can be selects picture wherein
Arbitrary portion it is Chong Die with the search domain, then pull the frame select picture to search domain operation success.When not at
When work(operates the drag and drop rule, then judging unit 303 pulls unit 302 with picture and is connected, and pulls the picture of frame choosing again.Treat as
When work(operates the drag and drop rule, then judging unit 303 is connected with Word Input unit 304.
Word Input unit 304 can carry out Word Input to the picture chosen.
As an alternative embodiment of the invention, this first by 24 bitmap formats of Word Input unit 304 is chosen
Picture compression is 8 bitmap formats.Then binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, obtained
Black and white picture.The gray threshold that last basis is pre-set, extracts and is more than or less than the gray threshold in the black and white picture
Point, the dot finally extracted is at word.
Preferably, the gray threshold of the setting is chosen as 180.It extracts and is more than or less than described set on the black and white picture
The point of fixed threshold value, the word gone out shown by these points then extracted is exactly that this chooses word on picture.Furthermore it is also possible to same
When a setting one Low threshold and high threshold, Low threshold is 90 in the present embodiment, high threshold 180.Higher than high threshold
Point and all extract and identify less than the point of Low threshold, identify to be word it is determined that word, cannot be identified as text
Word just not as the word to be retrieved.
It should be noted that when the picture in choosing is that have multiple, then select the sequence successively when picture to each according to frame
Picture extracts word and sorts.
Text importing unit 305 is connected with Word Input unit 304.It can be finally by the text importing extracted at this
It is retrieved in search domain.
It can thus be seen that character search method and device that the present invention realizes, creative proposing is schemed by frame choosing
Piece is so as to the word in retrieving image;Work of the user when retrieving is significantly reduced, word need not be inputted, directly
It connects and the picture containing word is dragged to search domain;Moreover, greatly enhancing user uses gopher
Experience, satisfaction increase;At the same time, the present invention can select multiple pictures with frame, select the word in picture to extract, arrange frame
Sequence more enhances the function and convenience of retrieval;Finally, the entire character search method and device are easy, compact, easily
In realization.
Those of ordinary skills in the art should understand that:The above is only a specific embodiment of the present invention, and
It is not used in the limitation present invention, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done,
It should be included within protection scope of the present invention.
Claims (16)
1. a kind of character search method, which is characterized in that include the following steps:
The first step, mouse frame choosing include the picture of word;
The picture that the frame selects is drawn in search domain by second step, mouse;
Third walks, and judges whether the drag operation meets preset drag and drop rule, is directly carried out if meeting
4th step is back to third step if being unsatisfactory for;
4th step carries out Word Input to the picture chosen, including:By the picture compression chosen of 24 bitmap formats
For 8 bitmap formats;Binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, obtains black and white picture;According to
The gray threshold pre-set extracts the point for being more than or less than the gray threshold in the black and white picture, finally extracts
Dot is at word;The gray threshold concurrently sets a Low threshold and a high threshold, higher than high threshold point and be less than
The point of Low threshold, which all extracts, to be identified, identifies to be word it is determined that word, cannot be identified as just not making for word
For the word to be retrieved;
5th step finally retrieves the text importing extracted in the search domain.
2. search method according to claim 1, which is characterized in that the picture of the frame choosing is entire mesh in the first step
The part marked on a map on piece or the Target Photo.
3. search method according to claim 1 or 2, which is characterized in that selected in the first step using mouse successively frame
Multiple includes the picture of word.
4. search method according to claim 1, which is characterized in that if the picture that frame selects in second step is multiple,
Pull originate when cursor of mouse choose the upper surface of picture at any one.
5. search method according to claim 1, which is characterized in that preset drag and drop rule is when dragging in the third step
The frame select the arbitrary portion therein of picture Chong Die with the search domain, then pull the frame and select picture to search domain
It operates successfully.
6. search method according to claim 1, which is characterized in that it is black to extract this as 180 for the gray threshold set
It is more than or less than the point of the threshold value of the setting on white picture, the word gone out shown by these points then extracted is exactly the choosing
Word on middle picture.
7. search method according to claim 1, which is characterized in that the gray threshold concurrently set a Low threshold and
One high threshold, Low threshold 90, high threshold 180.
8. search method according to claim 1 or 6, which is characterized in that the picture during the step four is elected is that have
When multiple, then the sequence successively when picture is selected to extract word to each picture and sort according to frame.
9. a kind of character search device, which is characterized in that including:
Picture selecting unit, for including the picture of word using mouse frame choosing;
Picture pulls unit, is connected with the picture selecting unit, for the picture that the frame selects to be drawn to inspection using mouse
In rope region;
Judging unit judges that the picture pulls the drag operation of unit and whether meets preset drag and drop rule, if meeting with
Word Input unit is connected, and pulling unit with the picture if being unsatisfactory for is connected;
Word Input unit, for carrying out Word Input to the picture chosen, including:This by 24 bitmap formats is chosen
Picture compression be 8 bitmap formats;Binary conversion treatment is carried out to the picture chosen of 8 bitmap formats, is obtained black
White picture;According to the gray threshold pre-set, the point for being more than or less than the gray threshold in the black and white picture is extracted, most
The dot extracted afterwards is at word;The gray threshold concurrently sets a Low threshold and a high threshold, higher than high threshold
Point and all extract and identify less than the point of Low threshold, identify to be word it is determined that word, cannot be identified as text
Word just not as the word to be retrieved;
Text importing unit is connected with the Word Input unit, for by the text importing extracted in the search domain
It is retrieved.
10. retrieval device according to claim 9, which is characterized in that the picture of the picture selecting unit frame choosing is whole
A part on a Target Photo or the Target Photo.
11. retrieval device according to claim 9 or 10, which is characterized in that the picture selecting unit using mouse according to
Secondary frame select it is multiple include word picture.
12. retrieval device according to claim 9, which is characterized in that if the picture that the picture pulls the choosing of unit frame is
It is multiple, then pull originate when cursor of mouse choose the upper surface of picture at any one.
13. retrieval device according to claim 9, which is characterized in that the preset drag and drop rule of judging unit is to work as
The frame pulled selects the arbitrary portion therein of picture Chong Die with the search domain, then pulls the frame and select picture to retrieving area
The operation success in domain.
14. retrieval device according to claim 9, which is characterized in that for the gray threshold set as 180, extraction should
More than or less than the point of the threshold value of the setting on black and white picture, the word gone out shown by these points then extracted is exactly this
Choose word on picture.
15. retrieval device according to claim 9, which is characterized in that the gray threshold concurrently sets a Low threshold
With a high threshold, Low threshold 90, high threshold 180.
16. the retrieval device according to claim 9 or 14, which is characterized in that during the Word Input unit is elected
Picture is then to select the sequence successively when picture to extract word to each picture and sort according to frame when having multiple.
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 CN104731798A (en) | 2015-06-24 |
CN104731798B true 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) |
Families Citing this family (2)
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
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 |
-
2013
- 2013-12-19 CN CN201310706887.1A patent/CN104731798B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104731798A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649618B2 (en) | System and method for creating visual representation of data based on generated glyphs | |
CN103761303B (en) | The arrangement display methods and device of a kind of picture | |
JP6089886B2 (en) | Region dividing method and inspection apparatus | |
CN102937864B (en) | A kind of method and apparatus for determining selected text on touch terminal | |
DE112011105305T5 (en) | Gestures for text selection | |
DE112013002409T5 (en) | Apparatus, method and graphical user interface for displaying additional information in response to a user contact | |
CN106095215A (en) | Touch input cursor manipulates | |
DE212015000213U1 (en) | Multidimensional object reorganization | |
JP5883843B2 (en) | Image evaluation apparatus, image evaluation method, image evaluation program, and recording medium storing the program | |
CN109726712A (en) | Character recognition method, device, storage medium, and server | |
CN105867820A (en) | Text editing method and device for touch screen | |
CN105183338A (en) | Object processing method | |
CN107203498A (en) | A kind of method, system and its user terminal and server for creating e-book | |
CN102968789A (en) | Method used for extracting unearthed bamboo slip and silk character pattern image and based on digital image processing | |
CN107943827A (en) | A kind of quick custom chart of data shows method and device | |
CN104731798B (en) | A kind of character search method and device | |
CN106354378A (en) | Method and device for quickly selecting multiple targets | |
CN104636309B (en) | Matrix recognition methods based on machine vision | |
WO2020253368A1 (en) | Electronic reading display method, storage method, electronic device, computer device, and medium | |
WO2023284640A1 (en) | Picture processing method and electronic device | |
CN113238686B (en) | Document processing method and device and electronic equipment | |
CN103513855A (en) | Method and device for updating display pages | |
CN106469437B (en) | Image processing method and image processing device | |
CN106547891A (en) | For the quick visualization method of the pictured text message of palm display device | |
CN104407853A (en) | A Method to Realize the Simultaneous Editing of Multiple Rows of TABLE |
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 |