CN107765949B - Display method of word paraphrasing frame and electronic equipment - Google Patents

Display method of word paraphrasing frame and electronic equipment Download PDF

Info

Publication number
CN107765949B
CN107765949B CN201711041856.3A CN201711041856A CN107765949B CN 107765949 B CN107765949 B CN 107765949B CN 201711041856 A CN201711041856 A CN 201711041856A CN 107765949 B CN107765949 B CN 107765949B
Authority
CN
China
Prior art keywords
frame
word
paraphrase
electronic equipment
mentioned
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
Application number
CN201711041856.3A
Other languages
Chinese (zh)
Other versions
CN107765949A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711041856.3A priority Critical patent/CN107765949B/en
Publication of CN107765949A publication Critical patent/CN107765949A/en
Application granted granted Critical
Publication of CN107765949B publication Critical patent/CN107765949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/158Segmentation of character regions using character size, text spacings or pitch estimation

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)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Machine Translation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A display method and electronic equipment for a word paraphrasing box comprise the following steps: acquiring a word clicked by a user on a picture displayed by electronic equipment, a first distance between an upper frame of a word fetching frame of the word and an upper frame of a display screen of the electronic equipment, and a second distance between a left frame of the word fetching frame and a left frame of the display screen; acquiring the height of a paraphrase box of the word according to the word; judging whether the height of the paraphrase frame is greater than the first distance; if so, translating the lower frame of the word-taking frame downwards to preset a pixel point threshold value to be used as an upper frame of the paraphrase frame; judging whether half of the width of the paraphrase box is larger than the second distance; if so, translating the left frame of the display screen to the right by a preset pixel point threshold value to serve as the left frame of the paraphrase frame. By implementing the embodiment of the invention, the word to be inquired and the paraphrase frame of the word can be displayed without being shielded, so that the paraphrase frame of the word is displayed more reasonably.

Description

A kind of display methods and electronic equipment of word paraphrase frame
Technical field
The present invention relates to technical field of electronic equipment, and in particular to the display methods and electronics of a kind of word paraphrase frame are set It is standby.
Background technique
All translation class can be used to answer most of when user encounters the foreign language word being ignorant of in routine work, learning process The foreign language word being ignorant of is translated by way of taking pictures and taking word with software.In practice, it has been found that this interpretative system exists It shows and often will appear the case where word is covered by the paraphrase frame of word when word paraphrase, prevent user from the foreign language list that will be ignorant of It is browsed together with word paraphrase corresponding with the word.
Summary of the invention
The embodiment of the present invention discloses the display methods and electronic equipment of a kind of word paraphrase frame, can make the word to be inquired Show with what the paraphrase frame of the word did not blocked mutually, keeps the display of the paraphrase frame of word more reasonable.
First aspect of the embodiment of the present invention discloses a kind of display methods of word paraphrase frame, which comprises
Obtain the word clicked on the picture that electronic equipment is shown of user and the word takes word frame in the electricity Location information in the display screen of sub- equipment;Wherein, the location information includes the upper side frame for taking word frame and the display Second between first distance and the left frame for taking word frame and the left frame of the display screen between the upper side frame of screen Distance;
The paraphrase of the word is obtained according to the word;
According to the paraphrase of the word, the height of the paraphrase frame of the word is obtained;Wherein, the paraphrase width of frame is solid It is fixed;
Judge whether the height of the paraphrase frame is greater than the first distance;
If so, the lower frame for taking word frame is translated downwards presetted pixel point threshold value as the top of the paraphrase frame Frame;
Judge whether the half of the width of the paraphrase frame is greater than the second distance;
If so, using the left frame of the display screen to right translation presetted pixel point threshold value as the left side of the paraphrase frame Frame.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the releasing according to the word Justice obtains the height of the paraphrase frame of the word, comprising:
Obtain the width of total number of characters and each character that the paraphrase of the word includes;
According to the width of the paraphrase frame of the word and the width of each character, the paraphrase frame of the word is determined Including text line number;
The height of the paraphrase frame of the word is calculated according to the height of the text line number and every a line.
As an alternative embodiment, the acquisition user sets in electronics in first aspect of the embodiment of the present invention The position letter for taking word frame in the display screen of the electronic equipment of the word and the word clicked on the picture of standby display Before breath, the method also includes:
Picture including word to be checked is shown on the display screen of electronic equipment;
Identify all words in the picture;
Word each in all words, which is utilized, takes word frame to be split, and executes the acquisition user in electronics The word clicked on the picture that equipment is shown and the word take position of the word frame in the display screen of the electronic equipment Information.
As an alternative embodiment, the location information further includes institute in first aspect of the embodiment of the present invention The third distance between the lower frame for taking word frame and the lower frame of the display screen is stated, the method also includes:
If it is determined that the height of the paraphrase frame is less than the first distance, judge whether the height of the paraphrase frame is greater than The third distance;
It is released as described in if not, the lower frame for taking word frame is translated downwards presetted pixel point threshold value described in execution The upper side frame of adopted frame;
If so, the upper side frame for taking word frame is translated up presetted pixel point threshold value as the following of the paraphrase frame Frame, and judge whether the half of the width of the paraphrase frame is greater than the second distance described in execution.
As an alternative embodiment, the location information further includes institute in first aspect of the embodiment of the present invention The 4th distance between the left frame for taking word frame and the left frame of the display screen is stated, the method also includes:
If it is determined that the half of the width of the paraphrase frame is less than the second distance, the width of the paraphrase frame is judged Whether half is greater than the 4th distance;
If so, using the left frame of the display screen to left presetted pixel point threshold value as the right of the paraphrase frame Frame.
Second aspect of the embodiment of the present invention discloses a kind of electronic equipment, comprising:
First acquisition unit, for obtaining word that user clicks on the picture that the electronic equipment is shown and described Word takes location information of the word frame in the display screen of the electronic equipment;Wherein, the location information takes word including described First distance and the left frame for taking word frame and the display between the upper side frame of frame and the upper side frame of the display screen Second distance between the left frame of screen;
The first acquisition unit is also used to obtain the paraphrase of the word according to the word;
Second acquisition unit obtains the height of the paraphrase frame of the word for the paraphrase according to the word;Wherein, The paraphrase width of frame is fixed;
First judging unit, for judging whether the height of the paraphrase frame is greater than the first distance;
First determination unit, for when first judging unit judge the paraphrase frame height be greater than described first away from From when, the lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the upper side frame of the paraphrase frame;
Second judgment unit, for judging whether the half of width of the paraphrase frame is greater than the second distance;
Second determination unit, for judging that it is described that the half of width of the paraphrase frame is greater than when the second judgment unit When second distance, using the left frame of the display screen to right translation presetted pixel point threshold value as the left frame of the paraphrase frame.
As an alternative embodiment, in second aspect of the embodiment of the present invention, the second acquisition unit includes:
Obtain subelement, the width of total number of characters and each character that the paraphrase for obtaining the word includes;
Subelement is determined, for determining according to the width of the paraphrase frame of the word and the width of each character The text line number that the paraphrase frame of the word includes;
Computation subunit, for calculating according to the height of the text line number and every a line the paraphrase frame of the word Highly.
As an alternative embodiment, in second aspect of the embodiment of the present invention, further includes:
Display unit, for obtaining the list that user clicks on the picture that electronic equipment is shown in the first acquisition unit Word and the word take word frame before the location information in the display screen of the electronic equipment, will include word to be checked Picture be shown on the display screen of the electronic equipment;
Recognition unit, for identification all words in the picture;
Cutting unit, for word each in all words using taking word frame to be split, and to be triggered described the What one acquiring unit obtained the word clicked on the picture that electronic equipment is shown of user and the word takes word frame described Location information in the display screen of electronic equipment.
As an alternative embodiment, the location information further includes institute in second aspect of the embodiment of the present invention State the third distance between the lower frame for taking word frame and the lower frame of the display screen, further includes:
Third judging unit, for when first judging unit judge the paraphrase frame height be less than described first away from From when, judge whether the height of the paraphrase frame is greater than the third distance;
First determination unit, specifically for judging that the height of the paraphrase frame is less than institute when the third judging unit State third apart from when, the lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the top of the paraphrase frame Frame;
Third determination unit, for when the third judging unit judge the paraphrase frame height be greater than the third away from From when, the upper side frame for taking word frame is translated up into presetted pixel point threshold value as the lower frame of the paraphrase frame, and trigger The second judgment unit judges whether the half of the width of the paraphrase frame is greater than the second distance.
As an alternative embodiment, the location information further includes institute in second aspect of the embodiment of the present invention State the 4th distance between the left frame for taking word frame and the left frame of the display screen, further includes:
4th judging unit, for judging that it is described that the half of width of the paraphrase frame is less than when the second judgment unit When second distance, judge whether the half of the width of the paraphrase frame is greater than the 4th distance;
4th determination unit, for judging that it is described that the half of width of the paraphrase frame is greater than when the 4th judging unit 4th apart from when, using the left frame of the display screen to left presetted pixel point threshold value as the left frame of the paraphrase frame.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, comprising:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes the embodiment of the present invention the The display methods of the word paraphrase frame disclosed in one side.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, described Computer program makes the display methods of the word paraphrase frame disclosed in computer execution first aspect of the embodiment of the present invention.
Compared with prior art, the embodiment of the present invention has the advantages that
In the embodiment of the present invention, after user chooses word, position of the word in electronic equipment display screen is obtained The height of the paraphrase frame of information and the word, judges between the upper side frame for taking word frame of the word and the upper side frame of display screen Whether distance is greater than the height of the word, if it is not, then illustrating that the paraphrase frame of the word cannot be fully displayed at the word just The lower frame for taking word frame of the word is translated downwards presetted pixel point threshold value as the top of the paraphrase frame of the word by top Frame, judges whether the distance between the left frame for taking word frame of the word and the left frame of display screen are greater than the width of the word Half, if it is not, then illustrating that the content on the left side of the paraphrase frame of the word can not be shown completely, by the left frame of display screen Left frame to right translation presetted pixel point threshold value as the paraphrase frame of the word.As it can be seen that implementing the embodiment of the present invention, can make What the paraphrase frame of the word to be inquired and the word did not blocked mutually show, keeps the display of the paraphrase frame of word more reasonable.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of the display methods of word paraphrase frame disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the display methods of another word paraphrase frame disclosed by the embodiments of the present invention;
Fig. 3 is the flow diagram of the display methods of another word paraphrase frame disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment disclosed by the embodiments of the present invention;
Fig. 5 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 7 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
It should be noted that term " includes " and " having " and their any changes in the embodiment of the present invention and attached drawing Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional Ground further includes the other step or units intrinsic for these process, methods, product or equipment.
The embodiment of the present invention discloses the display methods and electronic equipment of a kind of word paraphrase frame, can make the word to be inquired Show with what the paraphrase frame of the word did not blocked mutually, keeps the display of the paraphrase frame of word more reasonable.It carries out individually below It is described in detail.
Embodiment one
Referring to Fig. 1, Fig. 1 is a kind of process signal of the display methods of word paraphrase frame disclosed by the embodiments of the present invention Figure.As shown in Figure 1, the display methods of the word paraphrase frame may comprise steps of:
101, what electronic equipment obtained the word clicked on the picture that electronic equipment is shown of user and the word takes word Location information of the frame in the display screen of electronic equipment.
In the embodiment of the present invention, above-mentioned location information includes the upper side frame of the above-mentioned upper side frame for taking word frame and above-mentioned display screen Between first distance and the above-mentioned left frame for taking word frame and the left frame of above-mentioned display screen between second distance.
In the embodiment of the present invention, electronic equipment can be by picture on the entire display screen of electronic equipment when showing picture It is shown, picture can also being shown to, the embodiment of the present invention is without limitation in the centre of the display screen of electronic equipment.It is optional , when electronic equipment shows picture at the centre of the display screen of electronic equipment, when user clicked on the picture it is to be checked Word when picture can be amplified, wherein the concrete mode of amplification picture can for user's adopting consecutive click chemical reaction picture it is any Position is twice, or it is pre-set for amplification picture that user makes electronic equipment on the display screen of electronic equipment Gesture, the embodiment of the present invention is without limitation.
As an alternative embodiment, electronic equipment obtains the list that user clicks on the picture that electronic equipment is shown It needs first to obtain the picture comprising word to be checked before word, optionally, electronic equipment obtains the picture comprising word to be checked Concrete mode can be and choose picture from the picture library in electronic equipment, be also possible to the picture downloaded from webpage, also It can be and the picture that screenshot obtains is carried out by the page for browsing user on an electronic device, and can be electronics and set The standby picture taken pictures to word to be checked, the embodiment of the present invention is without limitation.
Optionally, electronic equipment can incite somebody to action after getting the word that user clicks on the picture that electronic equipment is shown The word is marked with special color, allow user when being checked together with the paraphrase of the word word from Word to be checked is found out quickly at least one word that picture includes, and facilitates the study of user.
102, electronic equipment obtains the paraphrase of above-mentioned word according to above-mentioned word.
As an alternative embodiment, electronic equipment get user click word to be checked after, in electricity The word is inquired in the word library of sub- equipment storage, and obtains the paraphrase of the word, optionally, in the word of electronic equipment storage The concrete mode of word to be checked is inquired in library are as follows:
Electronic equipment identification forms all characters and number of characters of word to be checked;
Electronic equipment extracts the first character of word to be checked from above-mentioned all characters;
Electronic equipment is inquired in the word library that electronic equipment stores using above-mentioned first character as word first character Level-one word;
Electronic equipment inquires second level word identical with above-mentioned number of characters in above-mentioned level-one word;
Electronic equipment inquires target word identical with above-mentioned word to be checked in above-mentioned second level word, and obtains target The paraphrase of word.
As it can be seen that implementing the word that the embodiment of the present invention can be such that electronic equipment stores in electronic equipment with above embodiment Query context is reduced by the method inquired step by step when inquiring word to be checked in library, so that the time contracting of electronic equipment inquiry It is short, the speed of inquiry is accelerated, paraphrase and the display of word to be checked are quickly found after user has clicked word to be checked It is checked on the display screen of electronic equipment for user, user can be improved in this way using electronic equipment and inquire releasing for word to be checked The experience of justice, the efficiency for solving the problems, such as user during study get a promotion.
Optionally, after electronic equipment obtains the paraphrase of above-mentioned word according to above-mentioned word, above-mentioned word can also be obtained The above-mentioned word of pronunciation and school usage related exercise, can be set in the paraphrase frame of above-mentioned word for pronunciation The virtual key of virtual key and the related exercise of the usage for checking above-mentioned word, when user checks above-mentioned word Paraphrase after can also further learn the pronunciation of above-mentioned word, and the specific of above-mentioned word can be understood with detailed Usage allows user more comprehensively to learn above-mentioned word.
It is further alternative, may be provided for collecting in the paraphrase frame of above-mentioned word above-mentioned word paraphrase it is virtual by Key, when user wants to carry out the paraphrase of above-mentioned word collection preservation, so that it may which the virtual key clicked in paraphrase frame will be upper The paraphrase for stating word saves in the word folder pre-established into electronic equipment, and such user wants to check above-mentioned word afterwards It can be checked, repetitious can be checked in word folder when paraphrase, and checked and saved in word folder The paraphrase of word does not need the use that user is more convenient for using network.
103, electronic equipment obtains the height of the paraphrase frame of above-mentioned word according to the paraphrase of above-mentioned word.
In the embodiment of the present invention, the width of the paraphrase frame of above-mentioned word is fixed and invariable, the preset word of electronic equipment Paraphrase frame width be electronic equipment display screen width one third, the paraphrase frame of the preset word of electronic equipment Height is no more than the half of the height of the display screen of electronic equipment.
As an alternative embodiment, paraphrase of the electronic equipment according to above-mentioned word, obtains the paraphrase of above-mentioned word The height of frame may comprise steps of:
Obtain the width of total number of characters and each character that the paraphrase of above-mentioned word includes;
According to the width of the paraphrase frame of above-mentioned word and the width of above-mentioned each character, the paraphrase frame of above-mentioned word is determined Including text line number;
Count stating the height of the paraphrase frame of word according to the altimeter of above-mentioned text line number and every a line.
As it can be seen that word can be adjusted according to the difference of the paraphrase of word by implementing the embodiment of the present invention with above embodiment The size of paraphrase frame so that the corresponding paraphrase frame of each word is only corresponding with the word, and can make electronic equipment Make the setting of word paraphrase frame more reasonable when showing word paraphrase.
As an alternative embodiment, when the height of the corresponding paraphrase frame of paraphrase of the word got is more than electronics When the half of the height of the display screen of equipment, the height of the paraphrase frame of the word is determined as the display screen of electronic equipment The half of height, and drop-down scroll bar is set on the right of the paraphrase frame of the word, allow the paraphrase of the word complete Portion shows that user can view the complete paraphrase of the word.
104, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than above-mentioned first distance, if so, executing step 105~step 106;If not, terminating this process.
In the embodiment of the present invention, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than above-mentioned first distance for sentencing Whether the above-mentioned paraphrase frame that breaks can show completely in the surface of above-mentioned word, when electronic equipment judges above-mentioned paraphrase frame When height is greater than above-mentioned first distance, just illustrate that above-mentioned paraphrase frame can not be shown completely in the surface of above-mentioned word, this When just above-mentioned paraphrase frame is shown in the underface of above-mentioned word.
As an alternative embodiment, when the judging result of step 104 be it is no when, electronic equipment can also be performed with Lower step:
Electronic equipment judges whether the height of above-mentioned paraphrase frame is big plus the total height of electronic equipment presetted pixel point threshold value In above-mentioned first distance;
If not, the above-mentioned lower frame for taking word frame is translated downwards presetted pixel point threshold value as above-mentioned paraphrase by electronic equipment The upper side frame of frame.
105, the above-mentioned lower frame for taking word frame is translated downwards presetted pixel point threshold value as above-mentioned paraphrase frame by electronic equipment Upper side frame.
In the embodiment of the present invention, the pre-set presetted pixel point threshold value of electronic equipment release be with word and paraphrase frame simultaneously Show present display effect it is best, display it is most beautiful reasonable when the distance between word and paraphrase frame be foundation be configured , presetted pixel point threshold value can be 10 pixels, or 15 pixels, the embodiment of the present invention is without limitation.
106, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance, if so, holding Row step 107;If not, terminating this process.
In the embodiment of the present invention, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance For making electronic equipment determine whether above-mentioned paraphrase frame can show completely in the underface of above-mentioned word, work as electronic equipment When judging that the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance, just illustrate that above-mentioned paraphrase frame can not be in above-mentioned word Underface is shown completely, is at this moment just needed above-mentioned paraphrase frame to right translation until that can show completely.
As an alternative embodiment, when the judging result of step 106 be it is no when, electronic equipment can also be performed with Lower step:
Electronic equipment calculates the first object between the center for taking word frame of above-mentioned word and the left frame of above-mentioned display screen Distance;
The half for the width that electronic equipment subtracts above-mentioned paraphrase frame with above-mentioned first object distance obtains the second target range;
Electronic equipment judges whether above-mentioned second target range is greater than above-mentioned presetted pixel point threshold value;
If not, thening follow the steps 107.
As it can be seen that display screen can be fully displayed in the paraphrase frame of word by implementing the embodiment of the present invention with above embodiment The size of the distance between the left frame of the paraphrase frame of word and the left frame of above-mentioned display screen is further determined after upper, When the distance between left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is less than above-mentioned presetted pixel point threshold value, Just the distance between the left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is adjusted to above-mentioned presetted pixel point threshold Value, allows the paraphrase frame of word is more reasonable and beautiful to be shown on the display screen of electronic equipment.
107, electronic equipment using the left frame of above-mentioned display screen to right translation presetted pixel point threshold value as above-mentioned paraphrase frame Left frame.
As it can be seen that implement method described in Fig. 1, the word enquiring word that electronic equipment can be made to be clicked according to user Paraphrase, so that the efficiency of looking up words paraphrase is got higher, it can root after obtaining the size of word paraphrase frame according to word paraphrase According to the display position of specific location arrangement word paraphrase frame of the word in the display screen of electronic equipment, so that word paraphrase frame exists Display position in the display screen of electronic equipment can more rationally, the progress that word paraphrase frame and word can not blocked mutually It has been shown that, user can browse word together with the paraphrase of the word.
Embodiment two
Referring to Fig. 2, Fig. 2 is the process signal of the display methods of another word paraphrase frame disclosed by the embodiments of the present invention Figure.As shown in Fig. 2, the display methods of the word paraphrase frame may comprise steps of:
201, electronic equipment shows the picture including word to be checked on the display screen of electronic equipment.
In the embodiment of the present invention, the picture including word to be checked, which can be, to be chosen from the picture library in electronic equipment Picture is also possible to the picture downloaded from webpage, can also be the page by browsing user on an electronic device The picture that screenshot obtains is carried out, and can be the picture that electronic equipment takes pictures to word to be checked, the present invention Embodiment is without limitation.
202, electronic equipment identifies all words in above-mentioned picture.
In the embodiment of the present invention, the word of picture can be the word of any languages, and the embodiment of the present invention is without limitation.
As an alternative embodiment, electronic equipment identify all words in above-mentioned picture the following steps are included:
Electronic equipment eliminates the noise isolated in above-mentioned picture using the method for mean filter;
Electronic equipment carries out inverse processing to above-mentioned picture;
Electronic equipment carries out standardization processing to above-mentioned picture, finds out the boundary of word in above-mentioned picture;
Electronic equipment extracts the word in above-mentioned picture.
203, electronic equipment, which utilizes word each in above-mentioned all words, takes word frame to be split.
In the embodiment of the present invention, electronic equipment takes word frame with word after identifying all words in above-mentioned picture Each word in above-mentioned all words is split, can thus there is a basic stroke to the word in above-mentioned picture Point, and also have an accurately identification to the word in above-mentioned picture, when user needs to click word to be checked due to list Word takes the presence of word frame that the click of user can also be made to become more accurate, and electronic equipment can also be easier to identify user's point The word hit.
Electronic equipment can be made using taking word frame to be divided the word in picture as it can be seen that executing step 201~step 203 It cuts, can be used that family is more convenient accurately to click word to be checked in this way, and electronic equipment can be made to be more easier Identify word to be checked.
Step 204~step 210 detailed description please refers to the description of step 101~step 107, this hair in embodiment one Bright embodiment repeats no more.
As it can be seen that implement method described in Fig. 2, the word enquiring word that electronic equipment can be made to be clicked according to user Paraphrase, so that the efficiency of looking up words paraphrase is got higher, it can root after obtaining the size of word paraphrase frame according to word paraphrase According to the display position of specific location arrangement word paraphrase frame of the word in the display screen of electronic equipment, so that word paraphrase frame exists Display position in the display screen of electronic equipment can more rationally, the progress that word paraphrase frame and word can not blocked mutually It has been shown that, user can browse word together with the paraphrase of the word, further, it is also possible to which utilizing electronic equipment takes word Word in picture is split by frame, can be used that family is more convenient accurately to click word to be checked, Er Qieneng in this way Enough make what electronic equipment was more easier to identify word to be checked.
Embodiment three
Referring to Fig. 3, Fig. 3 is the process signal of the display methods of another word paraphrase frame disclosed by the embodiments of the present invention Figure.As shown in figure 3, the display methods of the word paraphrase frame may comprise steps of:
Step 301~step 306 detailed description please refers to the description of step 201~step 206, this hair in embodiment two Bright embodiment repeats no more.
307, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than above-mentioned first distance, if not, executing step 308;If so, executing step 309.
In the embodiment of the present invention, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than above-mentioned first distance for sentencing Whether the above-mentioned paraphrase frame that breaks can show completely in the surface of above-mentioned word, when electronic equipment judges above-mentioned paraphrase frame When height is greater than above-mentioned first distance, just illustrate that above-mentioned paraphrase frame can not be shown completely in the surface of above-mentioned word, this When just above-mentioned paraphrase frame is shown in the underface of above-mentioned word.
As an alternative embodiment, when the judging result of step 307 be it is no when, electronic equipment can also be performed with Lower step:
Electronic equipment judges whether the height of above-mentioned paraphrase frame is big plus the total height of electronic equipment presetted pixel point threshold value In above-mentioned first distance;
If not, the above-mentioned lower frame for taking word frame is translated downwards presetted pixel point threshold value as above-mentioned paraphrase by electronic equipment The upper side frame of frame.
308, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than third distance, if not, execution step 309, Step 311;If so, executing step 310~step 311.
In the embodiment of the present invention, it is following with above-mentioned display screen that above-mentioned location information further includes the above-mentioned lower frame for taking word frame Third distance between frame.
In the embodiment of the present invention, electronic equipment judges whether the height of above-mentioned paraphrase frame is greater than third distance for judging State whether paraphrase frame can show completely in the underface of above-mentioned word, when electronic equipment judges the height of above-mentioned paraphrase frame Greater than third apart from when, just illustrate that above-mentioned paraphrase frame can not be shown completely in the underface of above-mentioned word, at this moment just will be upper State the surface that paraphrase frame is shown in above-mentioned word.
As an alternative embodiment, just illustrating that above-mentioned paraphrase frame can be with when the judging result of step 308 is no It is shown completely in the underface of above-mentioned word, at this moment above-mentioned paraphrase frame can both be shown completely in the surface of above-mentioned word Out, it can also show in the underface of above-mentioned word, just preferentially show above-mentioned paraphrase frame in above-mentioned word completely Underface is more conform with the visual custom of people in this way, keeps the display of above-mentioned paraphrase frame more reasonable.
309, the above-mentioned lower frame for taking word frame is translated downwards presetted pixel point threshold value as above-mentioned paraphrase frame by electronic equipment Upper side frame.
In the embodiment of the present invention, the pre-set presetted pixel point threshold value of electronic equipment is shown simultaneously with word and paraphrase frame Show that the display effect of presentation is best, display it is most beautiful reasonable when the distance between word and paraphrase frame be according to being configured , presetted pixel point threshold value can be 10 pixels, or 15 pixels, the embodiment of the present invention is without limitation.
310, the above-mentioned upper side frame for taking word frame is translated up presetted pixel point threshold value as above-mentioned paraphrase frame by electronic equipment Lower frame.
As it can be seen that electronic equipment can be allow complete in the surface for judging word by executing step 308~step 310 Further judge whether the underface of word can show word paraphrase frame completely after full display word paraphrase frame, works as list Word paraphrase frame just selects the underface of word to show word paraphrase frame when two positions up and down of word can be shown completely, this Sample can allow electronic equipment all determine at least one position that paraphrase frame is shown, reselection meets people's vision habit Used position is shown, can make the display of word paraphrase frame more reasonable in this way.
311, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance, if so, holding Row step 312;If not, executing step 313.
In the embodiment of the present invention, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance For making electronic equipment determine whether above-mentioned paraphrase frame can show completely in the underface of above-mentioned word, work as electronic equipment When judging that the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance, just illustrate that above-mentioned paraphrase frame can not be in above-mentioned word Underface is shown completely, is at this moment just needed above-mentioned paraphrase frame to right translation until that can show completely.
As an alternative embodiment, when the judging result of step 311 be it is no when, electronic equipment can also be performed with Lower step:
Electronic equipment calculates the first object between the center for taking word frame of above-mentioned word and the left frame of above-mentioned display screen Distance;
The half for the width that electronic equipment subtracts above-mentioned paraphrase frame with above-mentioned first object distance obtains the second target range;
Electronic equipment judges whether above-mentioned second target range is greater than above-mentioned presetted pixel point threshold value;
If not, thening follow the steps 312.
As it can be seen that display screen can be fully displayed in the paraphrase frame of word by implementing the embodiment of the present invention with above embodiment The size of the distance between the left frame of the paraphrase frame of word and the left frame of above-mentioned display screen is further determined after upper, When the distance between left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is less than above-mentioned presetted pixel point threshold value, Just the distance between the left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is adjusted to above-mentioned presetted pixel point threshold Value, allows the paraphrase frame of word is more reasonable and beautiful to be shown on the display screen of electronic equipment.
312, electronic equipment using the left frame of above-mentioned display screen to right translation presetted pixel point threshold value as above-mentioned paraphrase frame Left frame.
313, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than the 4th distance, if so, executing step Rapid 314;If not, terminating this process.
In the embodiment of the present invention, it is following with above-mentioned display screen that above-mentioned location information further includes the above-mentioned lower frame for taking word frame The 4th distance between frame.
In the embodiment of the present invention, electronic equipment judges whether the half of the width of above-mentioned paraphrase frame is greater than the 4th distance and is used for Electronic equipment is set to determine whether above-mentioned paraphrase frame can show completely in the underface of above-mentioned word, when electronic equipment judges The half of the width of above-mentioned paraphrase frame be greater than the above-mentioned 4th apart from when, just illustrate above-mentioned paraphrase frame can not above-mentioned word just under Side is shown completely, is at this moment just needed above-mentioned paraphrase frame to left until that can show completely.
As an alternative embodiment, when the judging result of step 313 be it is no when, electronic equipment can also be performed with Lower step:
Electronic equipment calculates the first object between the center for taking word frame of above-mentioned word and the left frame of above-mentioned display screen Distance;
The half for the width that electronic equipment subtracts above-mentioned paraphrase frame with above-mentioned first object distance obtains the second target range;
Electronic equipment judges whether above-mentioned second target range is greater than above-mentioned presetted pixel point threshold value;
If not, thening follow the steps 314.
As it can be seen that display screen can be fully displayed in the paraphrase frame of word by implementing the embodiment of the present invention with above embodiment After upper and the distance between the left frame of the paraphrase frame of word and the left frame of above-mentioned display screen are greater than above-mentioned presetted pixel Point threshold value when, can also further determine between the left frame of paraphrase frame of word and the left frame of above-mentioned display screen away from From size, when the left frame of the paraphrase frame of word and the distance between the left frame of above-mentioned display screen are less than above-mentioned presetted pixel When point threshold value, just the distance between the left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is adjusted to above-mentioned default Pixel threshold value allows the paraphrase frame of word is more reasonable and beautiful to be shown on the display screen of electronic equipment.
314, electronic equipment using the left frame of above-mentioned display screen to left presetted pixel point threshold value as above-mentioned paraphrase frame Left frame.
As it can be seen that electronic equipment can be made in the left frame for detecting word paraphrase frame by executing step 311~step 314 The left frame of not shown screen can also further judge whether the left frame of word paraphrase frame is shown after blocking The left frame of screen blocks, if so, just by the left frame of word paraphrase frame to left until can show completely, electronics The condition of equipment judgement, which increases, can make again to show paraphrase frame after the various situations of electronic equipment comprehensive assessment, so that releasing The display of adopted frame is more reasonable, and beautiful.
As it can be seen that method described in implementing Fig. 3, the word enquiring word that electronic equipment can be made to be clicked according to user Paraphrase, so that the efficiency of looking up words paraphrase is got higher, it can root after obtaining the size of word paraphrase frame according to word paraphrase According to the display position of specific location arrangement word paraphrase frame of the word in the display screen of electronic equipment, so that word paraphrase frame exists Display position in the display screen of electronic equipment can more rationally, the progress that word paraphrase frame and word can not blocked mutually It has been shown that, user can browse word together with the paraphrase of the word, take word frame will in addition, electronic equipment can use Word in picture is split, and can be used that family is more convenient accurately to click word to be checked in this way, and can be made What electronic equipment was more easier identifies word to be checked, further, it is also possible to make electronic equipment in the surface for judging word It can show that word paraphrase frame further judges whether the underface of word can show word paraphrase completely later completely Frame, when word paraphrase frame just selects the underface of word to show that word is released when two positions up and down of word can be shown completely Adopted frame can allow electronic equipment that at least one position that paraphrase frame is shown all is determined that reselection meets people in this way The position of visual custom shown, can make the display of word paraphrase frame more reasonable in this way, further, it is also possible to make electricity Sub- equipment can also be further after the left frame of the not shown screen of the left frame for detecting word paraphrase frame blocks Judge that the left frame of the whether shown screen of the left frame of word paraphrase frame blocks, if so, just by the left frame of word paraphrase frame To left until can show completely, the condition of electronic equipment judgement, which increases, can make electronic equipment comprehensive assessment various Paraphrase frame is shown again after situation, so that the display of paraphrase frame is more reasonable, and beautiful.
Example IV
Referring to Fig. 4, Fig. 4 is the structural schematic diagram of a kind of electronic equipment disclosed by the embodiments of the present invention.As shown in figure 4, The electronic equipment may include:
First acquisition unit 401, for obtaining the word and the list that user clicks on the picture that electronic equipment is shown Word takes location information of the word frame in the display screen of electronic equipment;Wherein, above-mentioned location information includes above-mentioned taking the upper of word frame A left side for first distance and the above-mentioned left frame for taking word frame and above-mentioned display screen between frame and the upper side frame of above-mentioned display screen Second distance between frame.
As an alternative embodiment, first acquisition unit 401 obtains user on the picture that electronic equipment is shown Need first to obtain the picture comprising word to be checked before the word of click, optionally, first acquisition unit 401 obtain comprising to The concrete mode of the picture of looking up words, which can be, chooses picture from the picture library in electronic equipment, is also possible to from webpage The picture of downloading can also be the picture obtained by the page progress screenshot for browsing user on an electronic device, with And can be the picture that electronic equipment takes pictures to word to be checked, the embodiment of the present invention is without limitation.
Optionally, first acquisition unit 401 get word that user clicks on the picture that electronic equipment is shown it The word can be marked afterwards with special color, check user together with the paraphrase of the word by the word When can find out word to be checked quickly from least one word that picture includes, facilitate the study of user.
Above-mentioned first acquisition unit 401 is also used to obtain the paraphrase of above-mentioned word according to above-mentioned word.
As an alternative embodiment, first acquisition unit 401 get user click word to be checked it Afterwards, the word is inquired in the word library of electronic equipment storage, and obtains the paraphrase of the word, optionally, first acquisition unit 401, which inquire word to be checked in the word library of electronic equipment storage, includes:
The identification of first acquisition unit 401 forms all characters and number of characters of word to be checked;
First acquisition unit 401 extracts the first character of word to be checked from above-mentioned all characters;
First acquisition unit 401 is inquired in the word library that electronic equipment stores using above-mentioned first character as word first The level-one word of a character;
First acquisition unit 401 inquires second level word identical with above-mentioned number of characters in above-mentioned level-one word;
First acquisition unit 401 inquires target word identical with above-mentioned word to be checked in above-mentioned second level word, and Obtain the paraphrase of target word.
First acquisition unit 401 can be made to deposit in electronic equipment as it can be seen that implementing the embodiment of the present invention with above embodiment Query context is reduced by the method inquired step by step when inquiring word to be checked in the word library of storage, so that electronic equipment inquiry Time shortens, and accelerates the speed of inquiry, the paraphrase of word to be checked is quickly found after user has clicked word to be checked And be shown on the display screen of electronic equipment and checked for user, user can be improved in this way using electronic equipment and inquire list to be checked The experience of the paraphrase of word, the efficiency for solving the problems, such as user during study get a promotion.
Optionally, it after first acquisition unit 401 obtains the paraphrase of above-mentioned word according to above-mentioned word, can also obtain The related exercise for stating the usage of the above-mentioned word of pronunciation and school of word, can be set in the paraphrase frame of above-mentioned word and is used for The virtual key of the virtual key of pronunciation and the related exercise of the usage for checking above-mentioned word, when user is on having checked The paraphrase for stating word can also further learn the pronunciation of above-mentioned word later, and can understand above-mentioned word with detailed Detailed directions, so that user is more comprehensively learnt above-mentioned word.
It is further alternative, may be provided for collecting in the paraphrase frame of above-mentioned word above-mentioned word paraphrase it is virtual by Key, when user wants to carry out the paraphrase of above-mentioned word collection preservation, so that it may which the virtual key clicked in paraphrase frame will be upper The paraphrase for stating word saves in the word folder pre-established into electronic equipment, and such user wants to check above-mentioned word afterwards It can be checked, repetitious can be checked in word folder when paraphrase, and checked and saved in word folder The paraphrase of word does not need the use that user is more convenient for using network.
Second acquisition unit 402 obtains the height of the paraphrase frame of above-mentioned word for the paraphrase according to above-mentioned word;Its In, above-mentioned paraphrase width of frame is fixed.
As an alternative embodiment, working as the corresponding paraphrase of paraphrase for the word that second acquisition unit 402 is got When the height of frame is more than the half of the height of the display screen of electronic equipment, the height of the paraphrase frame of the word is determined as electricity The half of the height of the display screen of sub- equipment, and drop-down scroll bar is set on the right of the paraphrase frame of the word, so that should The paraphrase of word can all show that user can view the complete paraphrase of the word.
First judging unit 403, for judging whether the height of above-mentioned paraphrase frame is greater than above-mentioned first distance.
In the embodiment of the present invention, the first judging unit 403 judge the height of above-mentioned paraphrase frame whether be greater than above-mentioned first away from From for judging whether above-mentioned paraphrase frame can show completely in the surface of above-mentioned word, when the first judging unit 403 When judging that the height of above-mentioned paraphrase frame is greater than above-mentioned first distance, just illustrate that above-mentioned paraphrase frame can not be in the surface of above-mentioned word It shows, at this moment just shows above-mentioned paraphrase frame in the underface of above-mentioned word completely.
As an alternative embodiment, when the judging result of the first judging unit 403 is no, the first judging unit 403 can also include:
First judging unit 403 judges that the height of above-mentioned paraphrase frame adds the total height of electronic equipment presetted pixel point threshold value Whether above-mentioned first distance is greater than;
If not, the above-mentioned lower frame for taking word frame is translated downwards presetted pixel point threshold value by the first determination unit 404 of triggering Upper side frame as above-mentioned paraphrase frame.
First determination unit 404, for judging that the height of above-mentioned paraphrase frame is greater than above-mentioned first when the first judging unit 403 Apart from when, the above-mentioned lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the upper side frame of above-mentioned paraphrase frame.
Second judgment unit 405, for judging whether the half of width of above-mentioned paraphrase frame is greater than above-mentioned second distance.
In the embodiment of the present invention, it is above-mentioned that second judgment unit 405 judges whether the half of the width of above-mentioned paraphrase frame is greater than Second distance is used to that electronic equipment to be made to determine whether above-mentioned paraphrase frame can show completely in the underface of above-mentioned word, when When second judgment unit 405 judges that the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance, just illustrate above-mentioned paraphrase frame It can not show completely, at this moment just be needed above-mentioned paraphrase frame to right translation until can be complete in the underface of above-mentioned word It shows.
As an alternative embodiment, when the judging result of second judgment unit 405 is no, second judgment unit 405 can also include:
Second judgment unit 405 calculates between the center for taking word frame of above-mentioned word and the left frame of above-mentioned display screen One target range;
The half for the width that second judgment unit 405 subtracts above-mentioned paraphrase frame with above-mentioned first object distance obtains the second mesh Subject distance;
Second judgment unit 405 judges whether above-mentioned second target range is greater than above-mentioned presetted pixel point threshold value;
If it is not, then triggering the second determination unit 406 starting.
As it can be seen that display screen can be fully displayed in the paraphrase frame of word by implementing the embodiment of the present invention with above embodiment The size of the distance between the left frame of the paraphrase frame of word and the left frame of above-mentioned display screen is further determined after upper, When the distance between left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is less than above-mentioned presetted pixel point threshold value, Just the distance between the left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is adjusted to above-mentioned presetted pixel point threshold Value, allows the paraphrase frame of word is more reasonable and beautiful to be shown on the display screen of electronic equipment.
Second determination unit 406, for judging that the half of width of above-mentioned paraphrase frame is greater than when second judgment unit 405 When stating second distance, using the left frame of above-mentioned display screen to right translation presetted pixel point threshold value as the left side of above-mentioned paraphrase frame Frame.
As an alternative embodiment, as shown in figure 5, above-mentioned second acquisition unit 402 includes:
Obtain subelement 4021, the width of total number of characters and each character that the paraphrase for obtaining above-mentioned word includes Degree.
Determine subelement 4022, for according to the width of the paraphrase frame of above-mentioned word and the width of above-mentioned each character, Determine the text line number that the paraphrase frame of above-mentioned word includes.
Computation subunit 4023, for counting stating the paraphrase of word according to the altimeter of above-mentioned text line number and every a line The height of frame.
As it can be seen that word can be adjusted according to the difference of the paraphrase of word by implementing the embodiment of the present invention with above embodiment The size of paraphrase frame so that the corresponding paraphrase frame of each word is only corresponding with the word, and can make electronic equipment Make the setting of word paraphrase frame more reasonable when showing word paraphrase.
As it can be seen that implementing electronic equipment described in Fig. 4 and Fig. 5, the word that electronic equipment can be made to click according to user The paraphrase of the word is inquired, so that the efficiency of looking up words paraphrase is got higher, the ruler of word paraphrase frame is being obtained according to word paraphrase The display position of word paraphrase frame can be arranged after very little according to specific location of the word in the display screen of electronic equipment, so that Display position of the word paraphrase frame in the display screen of electronic equipment more rationally can allow word paraphrase frame can be mutual with word What is do not blocked show, user can browse word together with the paraphrase of the word.
Embodiment five
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Wherein, Fig. 6 Shown in electronic equipment be that electronic equipment as shown in Figure 5 optimizes, compared with electronic equipment shown in fig. 5, Electronic equipment shown in fig. 6 can also include:
Display unit 407, for obtaining what user clicked on the picture that electronic equipment is shown in first acquisition unit 401 Word and the word take word frame before the location information in the display screen of electronic equipment, by the figure including word to be checked Piece is shown on the display screen of electronic equipment.
Recognition unit 408, all words in picture that display unit 407 is shown for identification.
In the embodiment of the present invention, the word of picture can be the word of any languages, and the embodiment of the present invention is without limitation.
As an alternative embodiment, recognition unit 408 identifies that all words in above-mentioned picture include:
Recognition unit 408 eliminates the noise isolated in above-mentioned picture using the method for mean filter;
Recognition unit 408 carries out inverse processing to above-mentioned picture;
Recognition unit 408 carries out standardization processing to above-mentioned picture, finds out the boundary of word in above-mentioned picture;
Recognition unit 408 extracts the word in above-mentioned picture.
Cutting unit 409 takes word frame to be split, and triggers first for utilizing word each in above-mentioned all words What acquiring unit 401 obtained the word clicked on the picture that electronic equipment is shown of user and the word takes word frame to set in electronics Location information in standby display screen.
In the embodiment of the present invention, the cutting unit 409 after identifying all words in above-mentioned picture of recognition unit 408 Each word in above-mentioned all words is split, can thus there is a basic stroke to the word in above-mentioned picture Point, and also have an accurately identification to the word in above-mentioned picture, when user needs to click word to be checked due to list Word takes the presence of word frame that the click of user can also be made to become more accurate, and recognition unit 408 can also be easier to identify use The word that family is clicked.
As it can be seen that the more convenient standard in family can be used using taking word frame to be split the word in picture in cutting unit 409 True click word to be checked, and can make what recognition unit 408 was more easier to identify word to be checked.
As it can be seen that implement electronic equipment described in Fig. 6, the word enquiring list that electronic equipment can be made to be clicked according to user The paraphrase of word, so that the efficiency of looking up words paraphrase is got higher, it can after obtaining the size of word paraphrase frame according to word paraphrase With the display position of the specific location arrangement word paraphrase frame according to word in the display screen of electronic equipment, so that word paraphrase Display position of the frame in the display screen of electronic equipment more rationally can word paraphrase frame and word can not blocked mutually It is shown, user can browse word together with the paraphrase of the word, in addition, electronic equipment, which can use, takes word Word in picture is split by frame, can be used that family is more convenient accurately to click word to be checked, Er Qieneng in this way Enough make what electronic equipment was more easier to identify word to be checked.
Embodiment six
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Wherein, Fig. 7 Shown in electronic equipment be that electronic equipment as shown in Figure 6 optimizes, compared with electronic equipment shown in fig. 6, Electronic equipment shown in Fig. 7 can also include:
Third judging unit 410, for judging that the height of above-mentioned paraphrase frame is less than above-mentioned first when the first judging unit 403 Apart from when, judge whether the height of above-mentioned paraphrase frame is greater than above-mentioned third distance.
In the embodiment of the present invention, it is following with above-mentioned display screen that above-mentioned location information further includes the above-mentioned lower frame for taking word frame Third distance between frame.
As an alternative embodiment, just illustrating above-mentioned release when the judging result of third judging unit 410 is no Adopted frame can show that at this moment above-mentioned paraphrase frame both can be in the surface of above-mentioned word completely in the underface of above-mentioned word It shows, can also be shown completely in the underface of above-mentioned word completely, just preferentially show above-mentioned paraphrase frame upper The underface of word is stated, is more conform with the visual custom of people in this way, keeps the display of above-mentioned paraphrase frame more reasonable.
Above-mentioned first determination unit 404, specifically for judging that the height of above-mentioned paraphrase frame is less than when third judging unit 410 Above-mentioned third apart from when, the above-mentioned lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the top of above-mentioned paraphrase frame Frame.
Third determination unit 411, for judging that the height of above-mentioned paraphrase frame is greater than above-mentioned third when third judging unit 410 Apart from when, the above-mentioned upper side frame for taking word frame is translated up into presetted pixel point threshold value as the lower frame of above-mentioned paraphrase frame, and touch Hair second judgment unit 405 judges whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned second distance.
As it can be seen that the first judging unit 403 is after the surface for judging word can show word paraphrase frame completely Three judging units 410 further judge whether the underface of word can show word paraphrase frame completely, when word paraphrase Frame just selects the underface of word to show word paraphrase frame when two positions up and down of word can be shown completely, in this way can be with Allow electronic equipment that at least one position that paraphrase frame is shown all is determined that reselection meets the position of people's visual custom It sets and is shown, can make the display of word paraphrase frame more reasonable in this way.
Optionally, as shown in fig. 7, the electronic equipment can also include:
4th judging unit 412, for judging that the half of width of above-mentioned paraphrase frame is less than when second judgment unit 405 When stating second distance, judge whether the half of the width of above-mentioned paraphrase frame is greater than above-mentioned 4th distance.
In the embodiment of the present invention, it is following with above-mentioned display screen that above-mentioned location information further includes the above-mentioned lower frame for taking word frame The 4th distance between frame.
As an alternative embodiment, when the judging result of the 4th judging unit 412 is no, the 4th judging unit 412 can also include:
4th judging unit 412 calculates between the center for taking word frame of above-mentioned word and the left frame of above-mentioned display screen One target range;
The half for the width that 4th judging unit 412 subtracts above-mentioned paraphrase frame with above-mentioned first object distance obtains the second mesh Subject distance;
4th judging unit 412 judges whether above-mentioned second target range is greater than above-mentioned presetted pixel point threshold value;
If it is not, then triggering the 4th determination unit 413 starting.
As it can be seen that display screen can be fully displayed in the paraphrase frame of word by implementing the embodiment of the present invention with above embodiment After upper and the distance between the left frame of the paraphrase frame of word and the left frame of above-mentioned display screen are greater than above-mentioned presetted pixel Point threshold value when, can also further determine between the left frame of paraphrase frame of word and the left frame of above-mentioned display screen away from From size, when the left frame of the paraphrase frame of word and the distance between the left frame of above-mentioned display screen are less than above-mentioned presetted pixel When point threshold value, just the distance between the left frame of the left frame of the paraphrase frame of word and above-mentioned display screen is adjusted to above-mentioned default Pixel threshold value allows the paraphrase frame of word is more reasonable and beautiful to be shown on the display screen of electronic equipment.
4th determination unit 413, for judging that the half of width of above-mentioned paraphrase frame is greater than when the 4th judging unit 412 State the 4th apart from when, using the left frame of above-mentioned display screen to left presetted pixel point threshold value as the right of above-mentioned paraphrase frame Frame.
As it can be seen that second judgment unit 405 hides in the left frame of the not shown screen of the left frame for detecting word paraphrase frame The 4th judging unit 412 further judges that the left frame of the whether shown screen of the left frame of word paraphrase frame hides after gear Gear, if so, just by the left frame of word paraphrase frame to left until can show completely, the item of electronic equipment judgement Part, which increases, can make again to show paraphrase frame after the various situations of electronic equipment comprehensive assessment, so that the display of paraphrase frame is more What is added is reasonable, and beautiful.
As it can be seen that implement electronic equipment described in Fig. 7, the word enquiring list that electronic equipment can be made to be clicked according to user The paraphrase of word, so that the efficiency of looking up words paraphrase is got higher, it can after obtaining the size of word paraphrase frame according to word paraphrase With the display position of the specific location arrangement word paraphrase frame according to word in the display screen of electronic equipment, so that word paraphrase Display position of the frame in the display screen of electronic equipment more rationally can word paraphrase frame and word can not blocked mutually It is shown, user can browse word together with the paraphrase of the word, in addition, electronic equipment, which can use, takes word Word in picture is split by frame, can be used that family is more convenient accurately to click word to be checked, Er Qieneng in this way Enough make what electronic equipment was more easier to identify word to be checked, further, it is also possible to which electronic equipment is made to judge word just Top further judges whether the underface of word can show word completely after can showing word paraphrase frame completely Paraphrase frame, when word paraphrase frame just selects the underface of word to show list when two positions up and down of word can be shown completely Word paraphrase frame can allow electronic equipment all determine at least one position that paraphrase frame is shown in this way, reselection symbol The position for closing people's visual custom is shown, can make the display of word paraphrase frame more reasonable in this way, further, it is also possible to Make electronic equipment can also be again into one after the left frame of the not shown screen of the left frame for detecting word paraphrase frame blocks The left frame of the whether shown screen of the left frame for judging word paraphrase frame of step blocks, if so, just by the right side of word paraphrase frame For frame to left until can show completely, the condition of electronic equipment judgement, which increases, can make electronic equipment comprehensive assessment Paraphrase frame is shown again after various situations, so that the display of paraphrase frame is more reasonable, and beautiful.
Embodiment seven
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of another electronic equipment disclosed by the embodiments of the present invention.Such as Fig. 8 institute Show, which may include:
It is stored with the memory 801 of executable program code;
The processor 802 coupled with memory 801;
Wherein, processor 802 calls the executable program code stored in memory 801, and it is any one to execute FIG. 1 to FIG. 3 The display methods of kind word paraphrase frame.
The embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, wherein the computer Program makes the display methods of computer execution any one word paraphrase frame of FIG. 1 to FIG. 3.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One- Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can For carrying or any other computer-readable medium of storing data.
The display methods and electronic equipment of a kind of word paraphrase frame disclosed by the embodiments of the present invention have been carried out in detail above It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments It is merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of display methods of word paraphrase frame, which is characterized in that the described method includes:
Obtain the word clicked on the picture that electronic equipment is shown of user and the word takes word frame to set in the electronics Location information in standby display screen;Wherein, the location information includes the upper side frame and the display screen for taking word frame The second distance between first distance and the left frame for taking word frame and the left frame of the display screen between upper side frame;
The paraphrase of the word is obtained according to the word;
According to the paraphrase of the word, the height of the paraphrase frame of the word is obtained;Wherein, the paraphrase width of frame is fixed;
Judge whether the height of the paraphrase frame is greater than the first distance;
If so, the lower frame for taking word frame is translated downwards presetted pixel point threshold value as the upper side frame of the paraphrase frame;
Judge whether the half of the width of the paraphrase frame is greater than the second distance;
If so, using the left frame of the display screen to right translation presetted pixel point threshold value as the left frame of the paraphrase frame.
2. the method according to claim 1, wherein the paraphrase according to the word, obtains the word Paraphrase frame height, comprising:
Obtain the width of total number of characters and each character that the paraphrase of the word includes;
According to the width of the paraphrase frame of the word and the width of each character, determine that the paraphrase frame of the word includes Text line number;
The height of the paraphrase frame of the word is calculated according to the height of the text line number and every a line.
3. according to the method described in claim 2, it is characterized in that, acquisition user point on the picture that electronic equipment is shown The word that hits and the word take word frame before the location information in the display screen of the electronic equipment, and the method is also Include:
Picture including word to be checked is shown on the display screen of electronic equipment;
Identify all words in the picture;
Word each in all words, which is utilized, takes word frame to be split, and executes the acquisition user in electronic equipment The word clicked on the picture of display and the word take location information of the word frame in the display screen of the electronic equipment.
4. according to the method described in claim 3, it is characterized in that, the location information further includes the lower frame for taking word frame Third distance between the lower frame of the display screen, the method also includes:
If it is determined that the height of the paraphrase frame is less than the first distance, it is described to judge whether the height of the paraphrase frame is greater than Third distance;
If not, the lower frame for taking word frame is translated downwards presetted pixel point threshold value as the paraphrase frame described in executing Upper side frame;
If so, the upper side frame for taking word frame is translated up into presetted pixel point threshold value as the lower frame of the paraphrase frame, And judge whether the half of the width of the paraphrase frame is greater than the second distance described in executing.
5. according to the method described in claim 4, it is characterized in that, the location information further includes the left frame for taking word frame The 4th distance between the left frame of the display screen, the method also includes:
If it is determined that the half of the width of the paraphrase frame is less than the second distance, the half of the width of the paraphrase frame is judged Whether the 4th distance is greater than;
If so, using the left frame of the display screen to left presetted pixel point threshold value as the left frame of the paraphrase frame.
6. a kind of electronic equipment characterized by comprising
First acquisition unit, for obtaining the word and the word that user clicks on the picture that the electronic equipment is shown Take location information of the word frame in the display screen of the electronic equipment;Wherein, the location information includes described taking word frame First distance and the left frame for taking word frame and the display screen between upper side frame and the upper side frame of the display screen Second distance between left frame;
The first acquisition unit is also used to obtain the paraphrase of the word according to the word;
Second acquisition unit obtains the height of the paraphrase frame of the word for the paraphrase according to the word;Wherein, described Paraphrase width of frame is fixed;
First judging unit, for judging whether the height of the paraphrase frame is greater than the first distance;
First determination unit, for judging that the height of the paraphrase frame is greater than the first distance when first judging unit When, the lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the upper side frame of the paraphrase frame;
Second judgment unit, for judging whether the half of width of the paraphrase frame is greater than the second distance;
Second determination unit, for judging that the half of width of the paraphrase frame is greater than described second when the second judgment unit Apart from when, using the left frame of the display screen to right translation presetted pixel point threshold value as the left frame of the paraphrase frame.
7. electronic equipment according to claim 6, which is characterized in that the second acquisition unit includes:
Obtain subelement, the width of total number of characters and each character that the paraphrase for obtaining the word includes;
Subelement is determined, described in determining according to the width of the paraphrase frame of the word and the width of each character The text line number that the paraphrase frame of word includes;
Computation subunit, the height of the paraphrase frame for calculating the word according to the height of the text line number and every a line Degree.
8. electronic equipment according to claim 7, which is characterized in that further include:
Display unit, for the first acquisition unit obtain the word clicked on the picture that electronic equipment is shown of user with And the word takes word frame before the location information in the display screen of the electronic equipment, by the figure including word to be checked Piece is shown on the display screen of the electronic equipment;
Recognition unit, for identification all words in the picture;
Cutting unit takes word frame to be split, and triggers described first and obtain for utilizing word each in all words Take what unit obtained the word clicked on the picture that electronic equipment is shown of user and the word to take word frame in the electronics Location information in the display screen of equipment.
9. electronic equipment according to claim 8, which is characterized in that the location information further includes described takes under word frame Third distance between frame and the lower frame of the display screen, further includes:
Third judging unit, for judging that the height of the paraphrase frame is less than the first distance when first judging unit When, judge whether the height of the paraphrase frame is greater than the third distance;
First determination unit, specifically for judging that the height of the paraphrase frame is less than described the when the third judging unit Three apart from when, the lower frame for taking word frame is translated into downwards presetted pixel point threshold value as the upper side frame of the paraphrase frame;
Third determination unit, for judging that the height of the paraphrase frame is greater than the third distance when the third judging unit When, the upper side frame for taking word frame is translated up into presetted pixel point threshold value as the lower frame of the paraphrase frame, and trigger institute It states second judgment unit and judges whether the half of the width of the paraphrase frame is greater than the second distance.
10. electronic equipment according to claim 9, which is characterized in that the location information further includes described taking word frame The 4th distance between left frame and the left frame of the display screen, further includes:
4th judging unit, for judging that the half of width of the paraphrase frame is less than described second when the second judgment unit Apart from when, judge whether the half of the width of the paraphrase frame is greater than the 4th distance;
4th determination unit, for judging that the half of width of the paraphrase frame is greater than the described 4th when the 4th judging unit Apart from when, using the left frame of the display screen to left presetted pixel point threshold value as the left frame of the paraphrase frame.
CN201711041856.3A 2017-10-30 2017-10-30 Display method of word paraphrasing frame and electronic equipment Active CN107765949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711041856.3A CN107765949B (en) 2017-10-30 2017-10-30 Display method of word paraphrasing frame and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711041856.3A CN107765949B (en) 2017-10-30 2017-10-30 Display method of word paraphrasing frame and electronic equipment

Publications (2)

Publication Number Publication Date
CN107765949A CN107765949A (en) 2018-03-06
CN107765949B true CN107765949B (en) 2019-08-30

Family

ID=61271028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711041856.3A Active CN107765949B (en) 2017-10-30 2017-10-30 Display method of word paraphrasing frame and electronic equipment

Country Status (1)

Country Link
CN (1) CN107765949B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670422A (en) * 2018-12-05 2019-04-23 北京旷视科技有限公司 Face datection information display method, device, equipment and storage medium
CN109977130B (en) * 2019-03-29 2021-09-28 珠海豹好玩科技有限公司 Hot word display method and system
CN114077372B (en) * 2021-11-22 2024-09-20 北京有竹居网络技术有限公司 Information display method, device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825321A (en) * 2006-03-31 2006-08-30 北京金山软件有限公司 Searching method, holding method and searching system for dictionary-like data
CN101110071A (en) * 2006-07-17 2008-01-23 英业达股份有限公司 Vocabulary instantaneous translation system and method
CN101702154A (en) * 2008-07-10 2010-05-05 三星电子株式会社 Method of character recongnition and translation based on camera image
CN101714051A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Instant translation display interface and display method thereof
CN102402372A (en) * 2010-09-09 2012-04-04 腾讯科技(深圳)有限公司 Text translation method and system
CN103294665A (en) * 2012-02-22 2013-09-11 汉王科技股份有限公司 Text translation method for electronic reader and electronic reader
CN104469523A (en) * 2014-12-25 2015-03-25 杨海 Word clicking and paraphrase displaying foreign language video playing method for mobile equipment
CN105138519A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Lexical translation method and device
CN105224664A (en) * 2015-10-08 2016-01-06 孙继兰 A kind of digital publication vocabulary extraction, display packing and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100204977A1 (en) * 2009-02-09 2010-08-12 Inventec Corporation Real-time translation system that automatically distinguishes multiple languages and the method thereof
US9055161B2 (en) * 2009-07-18 2015-06-09 Abbyy Development Llc Text processing method for a digital camera

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825321A (en) * 2006-03-31 2006-08-30 北京金山软件有限公司 Searching method, holding method and searching system for dictionary-like data
CN101110071A (en) * 2006-07-17 2008-01-23 英业达股份有限公司 Vocabulary instantaneous translation system and method
CN101702154A (en) * 2008-07-10 2010-05-05 三星电子株式会社 Method of character recongnition and translation based on camera image
CN101714051A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Instant translation display interface and display method thereof
CN102402372A (en) * 2010-09-09 2012-04-04 腾讯科技(深圳)有限公司 Text translation method and system
CN103294665A (en) * 2012-02-22 2013-09-11 汉王科技股份有限公司 Text translation method for electronic reader and electronic reader
CN104469523A (en) * 2014-12-25 2015-03-25 杨海 Word clicking and paraphrase displaying foreign language video playing method for mobile equipment
CN105138519A (en) * 2015-07-31 2015-12-09 小米科技有限责任公司 Lexical translation method and device
CN105224664A (en) * 2015-10-08 2016-01-06 孙继兰 A kind of digital publication vocabulary extraction, display packing and system

Also Published As

Publication number Publication date
CN107765949A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107765949B (en) Display method of word paraphrasing frame and electronic equipment
US10990511B2 (en) Apparatus and application interface traversing method
CN103870102B (en) Picture switching method and device
CN109740041B (en) Webpage crawling method and device, storage medium and computer equipment
CN109684021A (en) Data processing method, device and storage medium
RU2015120739A (en) METHOD, DEVICE AND TERMINAL EQUIPMENT FOR PROCESSING SESSION BASED ON GESTURE
RU2007124566A (en) METHOD FOR PRESENTING NOTIFICATIONS IN A MOBILE DEVICE AND A MOBILE DEVICE FOR HIM
CN113807342B (en) Method and related device for obtaining equipment information based on image
CN106846362A (en) A kind of target detection tracking method and device
CN110941736B (en) Electronic photograph display method and device and mobile equipment
CN108399124A (en) Application testing method, device, computer equipment and storage medium
JP2005157535A5 (en)
CN106326485A (en) Method for detecting web link and device thereof
CN110554898B (en) Marking method in game scene, touch terminal and readable storage medium
CN110347608B (en) Interactive application testing method and related device
CN112699362A (en) Login verification method and device, electronic equipment and computer readable storage medium
CN104102704B (en) System control methods of exhibiting and device
CN110688455A (en) Method, medium and computer equipment for filtering invalid comments based on artificial intelligence
CN112200196A (en) Phishing website detection method, device, equipment and computer readable storage medium
JP2008109290A5 (en)
CN106155493A (en) A kind of method carrying out input prompt in display interface and device thereof
JP2007076008A5 (en)
JP5097629B2 (en) Feature shape change detection program and feature shape change detection system
CN111046736B (en) Method, device and storage medium for extracting text information
CN103838865B (en) For excavating the method and device of ageing kind of subpage

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
GR01 Patent grant
GR01 Patent grant