CN107656922A - A kind of interpretation method, device, terminal and storage medium - Google Patents

A kind of interpretation method, device, terminal and storage medium Download PDF

Info

Publication number
CN107656922A
CN107656922A CN201710872385.4A CN201710872385A CN107656922A CN 107656922 A CN107656922 A CN 107656922A CN 201710872385 A CN201710872385 A CN 201710872385A CN 107656922 A CN107656922 A CN 107656922A
Authority
CN
China
Prior art keywords
word
target
translation
sentence
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710872385.4A
Other languages
Chinese (zh)
Other versions
CN107656922B (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 CN201710872385.4A priority Critical patent/CN107656922B/en
Publication of CN107656922A publication Critical patent/CN107656922A/en
Application granted granted Critical
Publication of CN107656922B publication Critical patent/CN107656922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the invention discloses a kind of interpretation method, device, terminal and storage medium, methods described includes:Obtain the picture for including text message;When the picture is shown, text translation option is generated;Wherein, text translation option includes word translation option and sentence translation option;If detecting the trigger action to word translation option, user is triggered into target word corresponding to the target location of screen in picture viewing area and translated;If detecting the trigger action to sentence translation option, target sentences corresponding to the mark of user on the display screen are translated.Interpretation method provided in an embodiment of the present invention can be translated to the word or sentence included in picture, without inputting the word or sentence that need to translate, can improve translation efficiency, simplify translating operation.

Description

A kind of interpretation method, device, terminal and storage medium
Technical field
The present embodiments relate to text to translate field, more particularly to a kind of interpretation method, device, terminal and storage are situated between Matter.
Background technology
People in daily reading, read the newspaper and skim through a magazine in often run into some foreign language word, sentences for oneself being ignorant of Sub or strange Chinese idiom, writing in classical Chinese sentence etc., the meaning for profound understanding browsing content causes to hinder unavoidably, translation tool energy The estrangement between different literals and language is enough eliminated, promotes the study of people, communication with exchanging.
Current translation tool can probably be divided into two kinds:Offline translation instrument and translation on line instrument, two kinds of translation works Tool is required for people to be manually entered the word or sentence for needing to translate, and this interpretative system is less efficient.Also have and known based on image Carry out looking into word otherwise, the interpretative function of taking pictures for for example having dictionary, need user by the circle in mobile phone screen using To semi_word, so operate very inconvenient.
The content of the invention
The present invention provides a kind of interpretation method, device, terminal and storage medium, defeated without being carried out to word or sentence Enter, translation efficiency can be improved, simplify translating operation.
In a first aspect, the embodiments of the invention provide a kind of interpretation method, including:
Obtain the picture for including text message;
When the picture is shown, text translation option is generated;Wherein, text translation option includes word translation Option and sentence translation option;
If detecting the trigger action to word translation option, user is triggered to the target position of screen in picture viewing area Target word corresponding to putting is translated;
If detecting the trigger action to sentence translation option, by target sentence corresponding to the mark of user on the display screen Son is translated.
Second aspect, the embodiment of the present invention additionally provide a kind of translating equipment, including:
Picture acquisition module, the picture of text message is included for obtaining;
Translation option generation module, for when the picture is shown, generating text translation option;Wherein, it is literary This translation option includes word translation option and sentence translation option;
First translation module, if for detecting the trigger action to word translation option, user's triggering picture is shown Target word corresponding to the target location of screen is translated in region;
Second translation module, if for detecting the trigger action to sentence translation option, by user on the display screen Mark corresponding to target sentences translated.
The third aspect, the embodiment of the present invention additionally provide a kind of terminal, and the terminal includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processing Device realizes above-mentioned involved any described interpretation method.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, are stored thereon with computer Program, the program realize above-mentioned involved any described interpretation method when being executed by processor.
The embodiment of the present invention includes the picture of text message by obtaining, according to the word translation option and sentence of generation Target word or corresponding target sentences corresponding to translation option translation, the word or sentence translated are needed without inputting, can be with Improve translation efficiency, simplify translating operation.
Brief description of the drawings
Fig. 1 is a kind of flow chart for interpretation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart for interpretation method that the embodiment of the present invention two provides;
Fig. 3 is a kind of flow chart for interpretation method that the embodiment of the present invention three provides;
Fig. 4 is a kind of schematic diagram for translating equipment that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural representation for terminal that the embodiment of the present invention five provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for interpretation method that the embodiment of the present invention one provides, and the present embodiment is applicable to translation figure The situation of piece Chinese version information, this method can be performed by translating equipment, and the device can be by software and/or hardware Lai real It is existing, it can typically integrate in the terminal, this method comprises the following steps:
S110, acquisition include the picture of text message.
In one embodiment of the invention, optionally, the picture for including text message is obtained, can be included:Pass through The taking pictures, preserve of intelligent terminal, sectional drawing and download function obtain the picture for including text message.Wherein, comprising text The picture of this information can only include the picture of text message or not only including text message but also including non-textual information Picture, non-textual information includes but is not limited to personage, scenery etc..Text message in picture can be word or sentence, text This information includes but is not limited to the multilinguals such as English, Korean, Japanese, German, Chinese.
S120, when the picture is shown, generate text translation option;Wherein, text translation option includes single Word translation option and sentence translation option.
In one embodiment of the invention, optionally, when the picture is shown, generation text translation choosing , it can include:When picture is shown, text translation option is generated, and text translation option is included at the top of screen, Or other do not show the position of text message.Wherein, text translation option includes but is not limited to word translation option and sentence Translation option.After user selects word translation option, the translation service of one or more words can be provided the user;User selects After sentence translation option, the translation service of one or more sentence can be provided the user.
If S130, detecting trigger action to word translation option, user is triggered into screen in picture viewing area Target word is translated corresponding to target location.
In one embodiment of the invention, optionally, to the trigger action of word translation option, can include:Pass through The mode of click or speech-input instructions completes the trigger action to word translation option.Pass through clicking trigger word translation option User is only needed to click on " word translation " option manually, trigger words translation option needs user to send out by way of speech-input instructions Go out phonetic order, such as " word translation ".Wherein, the mode that the acquisition of target location can be click on, target location can be one It is individual or multiple, therefore corresponding target word can be one or multiple.In addition, enter to target word During row translation, local character library and/or network translation schema translation target word can be used.
In one embodiment of the invention, optionally, the target that user is triggered to screen in picture viewing area The target word of position correspondence is translated, and can be included:After detecting the trigger action to word translation option, according to figure Text message in piece carries out screen the division in word region;Obtain the target position that user triggers screen in picture viewing area Put, and determine the target word region where the target location;The target word in the target word region is identified, and it is right The target word is translated.
Specifically, the operation that screen is carried out to the division in word region is specially the region covered according to each word, Screen is divided into multiple regions.When the target location for the screen that user triggers is in the overlay area of a word, the list Region where word is target word region, and the word is target word, and target word is translated.
Or automatic division and frame select all words in text message in screen, user can be according to word region In the automatic division and frame word selected search target word rapidly, and one or more words selected by clicking on frame Mode triggers one or more target locations of screen in picture viewing area, so as to be determined according to one or more target locations Target word region where one or more target words, is determined one or more target word.
It should be noted that when being translated to multiple target words, can be according to the determination in target word region Order shows translation result successively.
S140, if trigger action to sentence translation option is detected, by corresponding to the mark of user on the display screen Target sentences are translated.
In one embodiment of the invention, optionally, to the trigger action of sentence translation option, can include:Pass through The mode of click or speech-input instructions completes the trigger action to sentence translation option.Pass through clicking trigger sentence translation option User is only needed to click on " sentence translation " option manually, sentence translation option is triggered by way of speech-input instructions needs user to send out Go out phonetic order, such as " sentence translation ".The mark of user on the display screen include but is not limited to straight line, curve, a plurality of line segment, Rectangle, circle or irregular polygon etc..Target sentences can be one or more, wherein, a plurality of sentence can be selected continuously Take or discontinuously choose.In addition, when being translated to target sentences, local character library and/or network can be used to turn over Translate schema translation target sentences.
In one embodiment of the invention, optionally, it is described by sentence corresponding to user's mark on the display screen Translated, including:Screen is carried out to the division in sentence region according to the text message in picture;User is obtained on screen Sliding trace, and determine the target sentences region where the sliding trace;Identify the target sentence in the target sentences region Son, and the target sentences are translated.
Specifically, the operation that screen is carried out to the division in sentence region is specially the region covered according to each sentence, will Screen is divided into multiple regions, wherein, the region where each sentence is a sentence region.When the sliding trace institute in screen Region be a sentence region when, the sentence region is target sentences region, and the sentence in the target sentences region is mesh Mark sentence.It is A and B respectively for example, there are two sentences in the text message shown on screen, screen is divided into two regions, One is sentence A regions, and one is sentence B regions.If user screen sliding trace in sentence A locations Domain, then sentence A is translated.
Or divided automatically in screen and mark all sentences in text message in a manner of underscore, user can be with Target sentences are searched come rapid according to the sentence that division and frame are selected automatically in sentence region, and by clicking under one or more The mode of line triggers one or more target locations of screen in picture viewing area, so as to according to one or more target positions The target sentences region where the one or more target sentences of determination is put, and then determines one or more target sentences, and it is right Sentence is translated, so as to improve operating efficiency.
It should be noted that when being translated to multiple target sentences, can be according to the determination in target sentences region Order shows translation result successively.
The embodiment of the present invention includes the picture of text message by obtaining, according to the word translation option and sentence of generation Target word or corresponding target sentences corresponding to translation option translation, the word or sentence translated are needed without inputting, can be with Improve translation efficiency, simplify translating operation.
On the basis of above-mentioned technical proposal, optionally, if the text message includes print hand writing, using optics word Symbol identification (Optical Character Recognition, OCR) algorithm identification word or sentence;If the text message bag Handwritten text is included, word or sentence are identified using double identification engine recognizers based on OCR.Double identifications based on OCR are drawn Recognizer is held up to be while identify word using two kinds of identification engines of OCR recognizers and corner property data base.
Wherein, OCR technique is the character printed by checking on paper, and detects the shape that dark, bright pattern determines character, Then shape is translated into the technology of computword with character identifying method, OCR concrete implementations mode is known technology, this Place is not detailed.It should be noted that print hand writing includes but is not limited to font conventional in characters in a fancy style and each languages Such as Song typeface, Times New Rome fonts.
Specifically, illustrate double identification engine recognizers based on OCR by taking the identification of Chinese character as an example.
(1) Chinese glyph stroke that identifies of needs is depicted using OCR recognizers first come.Retouched by profile Stroke is stated, " short side " quilt " long side " to be affected the general situation using many, which is concluded, to be annexed, and " curve " is described as " two sections of line segments ", " office Portion is concavo-convex " merging is also concluded depending on surrounding environment.So, a complicated word just can be used the stroke of " as few as possible " to describe Out.This recognition methods recognition speed is fast, it is not necessary to searches for database, is directly identified result by stroke.If stroke It is clear enough, the handwritten form of different person writings can be identified easily.Then it is difficult to be retouched with stroke but if stroke is smudgy State, can now use second of identification engine further to identify.
(2) using corner property data base as second of identification engine.Specially:Assuming that each Chinese character is with 32 × 32 points Matrix representation, Chinese character dot matrix is scanned from four direction up and down respectively, four edge profiles for obtaining four numerical value P1, P2, P3, P4 are special Sign.In order to further identify such as:The side characteristic value identical Chinese character of " state ", " prisoner ", " four ", " because " etc. four, can be inside Chinese character again Secondary cutting (by 1/4 cutting), takes four side feature Q1, Q2, Q3, Q4 again after cutting, so, the feature description of a word just is exactly P1, P2, P3, P4, Q1, Q2, Q3, Q4, this eight numerical value deposit databases.By largely learning, remembering, an institute is obtained There is the inside and outside four side property data base of Chinese character.When identifying Chinese character, a most like Chinese character is retrieved from database, is known Other result.
It should be noted that for the word of different language, OCR Text region algorithms can be carried out identifying;Based on OCR Double identification engine recognizers in second of identification engine the characteristics of can be directed to different language word formulate and take turns accordingly Wide feature extracting method, is no longer described in detail one by one.
On the basis of above-described embodiment, optionally, the text translation option also includes paragraph translation option;The side Method also includes:If detecting the trigger action to the paragraph translation option, the closed figure that user describes on screen is obtained; The target text passage in closed figure is identified, the target text passage is translated.
Wherein, to the trigger action of paragraph translation option, can include:It is complete by way of click or speech-input instructions The trigger action of paired paragraph translation option.User is only needed to click on manually " paragraph translation " by clicking trigger paragraph translation option The bullet frame of option, paragraph translation option is triggered by way of speech-input instructions needs user to send phonetic order, and such as " paragraph turns over Translate ".It should be noted that closed figure includes but is not limited to rectangle, circle, ellipse or irregular polygon, closed figure It can be one or multiple.Identification target text passage can use OCR recognition methods.
On the basis of above-mentioned technical proposal, optionally, methods described also includes:Judge in the text message per a line Whether word is in same horizontal line or whether each row word is on same vertical curve;If it is not, the picture is carried out Slant Rectify is so that each style of writing word in the text message is in same horizontal line or whether each row word is in same On one vertical curve.
, it is necessary to Slant Rectify be carried out to the text message in picture, to improve the recognition efficiency of text before being translated. For common typographical convention, most of text can typically be arranged to arrange word in the horizontal direction, also have and be arranged In the vertical direction arranges the situation of word, such as newspaper, radio message receiption by hand.Come for the text message according to horizontal direction typesetting Say, to judge each style of writing word whether in same horizontal line;, for the text message according to vertical direction typesetting Judge each row word whether on same vertical curve.
Slant Correction Algorithm includes but is not limited to Hough transformation (Hough Transform, Hough) method, two-point method etc.. In the embodiment of the present invention, Slant Rectify is carried out to picture if illustrated with Hough transform method.
Hough transform method process steps are as follows:
(1) image pyramid is generated;
(2) top image is taken;
(3) horizontal edge of image is extracted, Hough transform is carried out using formula xcos θ+ysin θ=ρ;
(4) formula T=γ maxA (ρ, θ), A (ρ, θ)=0if A (ρ, θ)≤T is utilized to enter Hough transform accumulation results Row processing, finds and calculates angle of inclination;
(5) if the angle of inclination obtained meets required precision, (7) step is gone to;
(6) angle refines, and removes one layer of image, goes to (3) step;
(7) rotated image;
(8) terminate.
It should be noted that Hough transform method concrete implementation mode is known technology, while carried in the embodiment of the present invention It can be improved on the basis of the Hough transform method of confession to obtain the higher Slant Rectify method of precision.
From there through the Slant Rectify to text message, the recognition efficiency of text message can be improved, is translated so as to improve Accuracy rate.
Embodiment two
Fig. 2 is a kind of flow chart for interpretation method that the embodiment of the present invention two provides, and this method comprises the following steps:
S210, acquisition include the picture of text message.
S220, when the picture is shown, generate text translation option;Wherein, text translation option includes single Word translation option, sentence translation option and paragraph translation option.
S230, when detecting user in the deliberate action on screen, open the selection bullet frame of interpreter language;When receiving During the instruction that target interpreter language is chosen, close the selection and play frame.
In one embodiment of the invention, if detecting deliberate action of the user on screen, translation language is opened The selection bullet frame of speech, the selection bullet frame of interpreter language provide target interpreter language in the form of patterned.Default action can be with It is sliding action or other actions.Wherein, target interpreter language includes but is not limited to English, Chinese, Japanese, Korean Deng multilingual.When receiving the instruction of user's selection target interpreter language, selection is played into frame and closed, normally to show picture In text message.
If S240, detecting trigger action to word translation option, user is triggered into screen in picture viewing area Target word corresponding to target location translates into corresponding word in target interpreter language.
In one embodiment of the invention, before the trigger action to word translation option, it has been determined that to use The target interpreter language of family selection.Therefore, once detecting the trigger action to word translation option, then picture is triggered to user One or more target words corresponding to the target location of screen translate into corresponding word in target interpreter language in viewing area Language.For example, the target interpreter language of the user's selection determined is English, when detecting the trigger action of word translation option, The target word of identification is translated into English.
S250, if trigger action to sentence translation option is detected, by corresponding to the mark of user on the display screen Target sentences translate into corresponding sentence in target interpreter language.
In one embodiment of the invention, before the trigger action to sentence translation option, it has been determined that Yong Huxuan The target interpreter language selected.Therefore, once detecting the trigger action to sentence translation option, then to user on the display screen Mark corresponding to one or more target sentences translate into corresponding sentence in target interpreter language.
On the basis of above-described embodiment, it can also include:If detecting the trigger action to paragraph translation option, will use Target text passage corresponding to the closed figure that family is described on screen translates into corresponding paragraph in target interpreter language.
In one embodiment of the invention, before the trigger action to paragraph translation option, it has been determined that Yong Huxuan The target interpreter language selected.Therefore, once detecting the trigger action to paragraph translation option, then user is described on screen Closed figure corresponding to one or more target text passages translate into corresponding paragraph in target interpreter language.
It should be noted that interpretative function of the embodiment of the present invention except that can complete different language word, is also equipped with more The function of kind languages dictionary.For example, if the text message in picture includes Chinese idiom, word classic poetry, text in Chinese Yan Wen etc., and and when receiving the instruction for choosing Chinese as target interpreter language, then to target word, target sentences or mesh Mark text fragment is annotated.Similarly, the embodiment of the present invention is also applied for the dictionary function of other languages.
The technical scheme of the present embodiment, after detecting deliberate action of the user on screen, open interpreter language Selection plays frame;When receiving the instruction that target interpreter language is chosen, close the selection and play frame, so as to by target word, mesh Mark sentence or target paragraph translate into corresponding word, sentence or paragraph in target interpreter language, using the teaching of the invention it is possible to provide plurality of optional language The translation service of kind.
Embodiment three
Fig. 3 is a kind of flow chart for interpretation method that the embodiment of the present invention three provides, and this method comprises the following steps:
S310, acquisition include the picture of text message.
S320, when the picture is shown, generate text translation option and interpretive scheme option.Wherein, text Translation option includes word translation option, sentence translation option and paragraph translation option.
In embodiments of the present invention, interpretive scheme includes but is not limited to mode of learning, academic pattern, entertainment mode and new Information pattern is heard, user can select different interpretive schemes, and terminal is after translation result is obtained, according to the translation of user's selection Value-added service corresponding to pattern offer.
If S330, detecting trigger action to word translation option, user is triggered into screen in picture viewing area Target word is translated corresponding to target location, and according to translation result letter related to the interpretive scheme push that user selects Breath.
S340, if trigger action to sentence translation option is detected, by corresponding to the mark of user on the display screen Target sentences are translated, and the interpretive scheme selected according to translation result and user pushes relevant information.
If specifically, the interpretive scheme is mode of learning or academic pattern, according to translation result after the completion of translation The learning materials information related to translation result is pushed for user, wherein, learning materials information includes similar examination question topic, correlation Field scientific paper topic and summary etc.;If the interpretive scheme is entertainment mode, according to translation result after the completion of translation The push entertainment information related to translation result, wherein, entertainment information includes the source of network active language, various related amusements News etc.;If the interpretive scheme is Domestic News pattern, according to translation result push and translation result after the completion of translation Related Domestic News information, wherein, Domestic News information includes various related domestic and international Domestic News etc..Above-mentioned increment clothes Business needs the environment of network connection to provide.
The technical scheme of the present embodiment, by when the picture is shown, generating interpretive scheme option, translate mould Formula includes but is not limited to mode of learning, academic pattern, entertainment mode and Domestic News pattern, can be according to the interpretive scheme And translation result provides different value-added services, so as to provide personalized experience for different types of user.
Example IV
Fig. 4 is a kind of schematic diagram for translating equipment that the embodiment of the present invention four provides, and can perform any embodiment of the present invention The interpretation method provided, possesses the corresponding functional module of execution method and beneficial effect, and the present embodiment is applicable to translation text In this environment.
Described device includes:
Picture acquisition module 410, the picture of text message is included for obtaining.
Translation option generation module 420, for when the picture is shown, generating text translation option;Wherein, Text translation option includes word translation option and sentence translation option.
First translation module 430, if for detecting the trigger action to word translation option, user's triggering picture is shown Show that target word corresponding to the target location of screen is translated in region.
Second translation module 440, if for detecting the trigger action to sentence translation option, by user in display screen On mark corresponding to target sentences translated.
The embodiment of the present invention includes the picture of text message by obtaining, according to the word translation option and sentence of generation Target word or corresponding target sentences corresponding to translation option translation, the word or sentence translated are needed without inputting, can be with Improve translation efficiency, simplify translating operation.
Further, the first translation module 430, for the trigger action to word translation option, the text in picture This information carries out screen the division in word region;
Obtain user and trigger the target location of screen in picture viewing area, and determine the target where the target location Word region;
The target word in the target word region is identified, and the target word is translated.
Further, the second translation module 440, if for detecting the trigger action to sentence translation option, according to figure Text message in piece carries out screen the division in sentence region;
Sliding trace of the user on screen is obtained, and determines the target sentences region where the sliding trace;
The target sentences in the target sentences region are identified, and the target sentences are translated.
Further, if the text message includes print hand writing, word is identified using optical character identification OCR algorithm Or sentence;
If the text message includes handwritten text, word is identified using double identification engine recognizers based on OCR Or sentence.
Further, the text translation option also includes paragraph translation option.
Described device also includes:
3rd translation module 450, if for detecting the trigger action to the paragraph translation option, obtain user and shielding The closed figure described on curtain;
The target text passage in closed figure is identified, the target text passage is translated.
Further, described device also includes:
Play frame and open module 460, for when detecting user in the deliberate action on screen, opening the choosing of interpreter language Select bullet frame.
Frame closedown module 470 is played, for when receiving the instruction that target interpreter language is chosen, closing the selection bullet Frame.
Accordingly, target word corresponding to the target location of screen is turned in the viewing area by user's triggering picture Translate, including:
The target word is translated into corresponding word in target interpreter language.
Accordingly, it is described to be translated sentence corresponding to user's mark on the display screen, including:
The target sentences are translated into corresponding sentence in target interpreter language.
Further, described device also includes:
Slant Rectify module 480, for judging whether each style of writing word is in same horizontal line in the text message Or whether each row word is on same vertical curve;
If it is not, Slant Rectify is carried out to the picture so that each style of writing word in the text message is in same level Line or each row word are on same vertical curve.
Above-mentioned translating equipment can perform the interpretation method that any embodiment of the present invention is provided, and it is corresponding to possess execution method Functional module and beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to any embodiment of the present invention carries The interpretation method of confession.
Embodiment five
Fig. 5 is a kind of structural representation for terminal that the embodiment of the present invention five provides.Fig. 5 is shown suitable for being used for realizing this The block diagram of the terminal 512 of invention embodiment.The terminal 512 that Fig. 5 is shown is only an example, should not be to the embodiment of the present invention Function and use range bring any restrictions.
As shown in figure 5, terminal 512 is showed in the form of universal computing device, and with by taking pictures, the preservation figure such as sectional drawing Piece and interpretative function.The component of terminal 512 can include but is not limited to:One or more processor 516, storage device 528, the bus 518 of connection different system component (including storage device 528 and processor 516).
Bus 518 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but is not limited to industry standard architecture (ISA) bus, MCA (MAC) Bus, enhanced isa bus, VESA's (VESA) local bus and periphery component interconnection (PCI) bus.
Terminal 512 typically comprises various computing systems computer-readable recording medium.These media can be it is any can be by terminal 512 usable mediums accessed, including volatibility and non-volatile media, moveable and immovable medium.
Storage device 528 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 530 and/or cache memory 532.Terminal 512 may further include other removable/nonremovable , volatile/non-volatile computer system storage medium.Only as an example, it is not removable to can be used for read-write for storage system 534 Dynamic, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although not shown in Fig. 5, it can provide For the disc driver to may move non-volatile magnetic disk (such as " floppy disk ") read-write, and to may move anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 518.Storage device 528 can include at least one program and produce Product, the program product have one group of (for example, at least one) program module, and these program modules are configured to perform of the invention each The function of embodiment.
Program 540 with one group of (at least one) program module 542, it can be stored in such as storage device 528, this The program module 542 of sample includes but is not limited to operating system, one or more application program, other program modules and program Data, the realization of network environment may be included in each or certain combination in these examples.Program module 542 generally performs Function and/or method in embodiment described in the invention.
Terminal 512 can also be with one or more external equipments 514 (such as keyboard, sensing equipment, camera, display 524 etc.) communicate, the equipment communication interacted with the terminal 512 can be also enabled a user to one or more, and/or with causing Any equipment that the terminal 512 can be communicated with one or more of the other computing device (such as network interface card, modem etc. Deng) communication.This communication can be carried out by input/output (I/O) interface 522.Also, terminal 512 can also pass through network Adapter 520 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As illustrated, network adapter 520 is communicated by bus 518 with other modules of terminal 512.It should be understood that to the greatest extent Not shown in pipe figure, terminal 512 can be combined and use other hardware and/or software module, included but is not limited to:Microcode, set Standby driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system System etc..
Processor 516 is stored in the program in storage device 528 by operation, so as to perform various function application and number According to processing, such as realize the interpretation method that the above embodiment of the present invention is provided.
The terminal can obtain the picture for including text message, according to the word translation option and sentence translation of generation Target word or corresponding target sentences corresponding to option translation, without inputting the word or sentence that need to translate, can be improved Translation efficiency, simplify translating operation.
Embodiment six
The embodiment of the present invention six also provides a kind of computer-readable storage medium for storing computer program, the computer program When being performed by computer processor for performing any described interpretation method of the above embodiment of the present invention.
The computer-readable storage medium of the embodiment of the present invention, any of one or more computer-readable media can be used Combination.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any combination above.The more specifically example (non exhaustive list) of computer-readable recording medium includes:Tool There are the electrical connections of one or more wires, portable computer diskette, hard disk, random access memory (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any includes or the tangible medium of storage program, the program can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language --- such as " C " language or similar programming language.Program code can Fully to perform on the user computer, partly perform, performed as an independent software kit on the user computer, Part performs or performed completely on remote computer or server on the remote computer on the user computer for part. In the situation of remote computer is related to, remote computer can pass through the network of any kind --- including LAN (LAN) Or wide area network (WAN)-subscriber computer is connected to, or, it may be connected to outer computer (such as utilize Internet service Provider passes through Internet connection).
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. interpretation method, it is characterised in that including:
    Obtain the picture for including text message;
    When the picture is shown, text translation option is generated;Wherein, text translation option includes word translation option With sentence translation option;
    If detecting the trigger action to word translation option, user is triggered to the target location pair of screen in picture viewing area The target word answered is translated;
    If detecting the trigger action to sentence translation option, target sentences corresponding to the mark of user on the display screen are entered Row translation.
  2. 2. according to the method for claim 1, it is characterised in that the mesh that user is triggered to screen in picture viewing area Target word is translated corresponding to cursor position, including:
    Text message in picture carries out screen the division in word region;
    Obtain user and trigger the target location of screen in picture viewing area, and determine the target word where the target location Region;
    The target word in the target word region is identified, and the target word is translated.
  3. 3. according to the method for claim 1, it is characterised in that
    It is described to be translated sentence corresponding to user's mark on the display screen, including:
    Screen is carried out to the division in sentence region according to the text message in picture;
    Sliding trace of the user on screen is obtained, and determines the target sentences region where the sliding trace;
    The target sentences in the target sentences region are identified, and the target sentences are translated.
  4. 4. according to the method for claim 3, it is characterised in that
    If the text message includes print hand writing, word or sentence are identified using optical character identification OCR algorithm;
    If the text message includes handwritten text, word or sentence are identified using double identification engine recognizers based on OCR Son.
  5. 5. according to the method for claim 1, it is characterised in that the text translation option also includes paragraph translation option;
    Methods described also includes:
    If detecting the trigger action to the paragraph translation option, the closed figure that user describes on screen is obtained;
    The target text passage in closed figure is identified, the target text passage is translated.
  6. 6. according to any described methods of claim 1-4, it is characterised in that also include:
    When detecting user in the deliberate action on screen, the selection bullet frame of interpreter language is opened;
    When receiving the instruction that target interpreter language is chosen, close the selection and play frame;
    Accordingly, target word corresponding to the target location of screen is translated in the viewing area by user's triggering picture, Including:
    The target word is translated into corresponding word in target interpreter language;
    Accordingly, it is described to be translated sentence corresponding to user's mark on the display screen, including:
    The target sentences are translated into corresponding sentence in target interpreter language.
  7. 7. according to any described methods of claim 1-4, it is characterised in that also include:
    Judge whether each style of writing word is in same horizontal line in the text message or whether each row word is in same On vertical curve;
    If it is not, to the picture carry out Slant Rectify so that each style of writing word in the text message be in same horizontal line or Each row word is on same vertical curve.
  8. A kind of 8. translating equipment, it is characterised in that including:
    Picture acquisition module, the picture of text message is included for obtaining;
    Translation option generation module, for when the picture is shown, generating text translation option;Wherein, text turns over Translating option includes word translation option and sentence translation option;
    First translation module, if for detecting the trigger action to word translation option, user is triggered into picture viewing area Target word corresponding to the target location of middle screen is translated;
    Second translation module, if for detecting the trigger action to sentence translation option, by the mark of user on the display screen Target sentences are translated corresponding to knowledge.
  9. 9. a kind of terminal, it is characterised in that the terminal includes:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are by one or more of computing devices so that one or more of processors are real The now interpretation method as described in any in claim 1-7.
  10. 10. a kind of computer-readable storage medium, is stored thereon with computer program, it is characterised in that the program is executed by processor Interpretation methods of the Shi Shixian as described in any in claim 1-7.
CN201710872385.4A 2017-09-25 2017-09-25 Translation method, translation device, translation terminal and storage medium Active CN107656922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710872385.4A CN107656922B (en) 2017-09-25 2017-09-25 Translation method, translation device, translation terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710872385.4A CN107656922B (en) 2017-09-25 2017-09-25 Translation method, translation device, translation terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107656922A true CN107656922A (en) 2018-02-02
CN107656922B CN107656922B (en) 2021-07-20

Family

ID=61130078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710872385.4A Active CN107656922B (en) 2017-09-25 2017-09-25 Translation method, translation device, translation terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107656922B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319592A (en) * 2018-02-08 2018-07-24 广东小天才科技有限公司 A kind of method, apparatus and intelligent terminal of translation
CN108536686A (en) * 2018-04-11 2018-09-14 百度在线网络技术(北京)有限公司 A kind of picture interpretation method, device, terminal and storage medium
CN108549643A (en) * 2018-04-08 2018-09-18 北京百度网讯科技有限公司 translation processing method and device
CN108829686A (en) * 2018-05-30 2018-11-16 北京小米移动软件有限公司 Translation information display methods, device, equipment and storage medium
CN109101498A (en) * 2018-07-23 2018-12-28 Oppo广东移动通信有限公司 Interpretation method, device and mobile terminal
CN109165392A (en) * 2018-08-30 2019-01-08 深圳市有钱科技有限公司 Interaction language translating method and device
CN109871442A (en) * 2019-01-18 2019-06-11 程家惠 A kind of Sino-British rendering method, device, equipment and the medium of Chinese character calligraphy text
CN110929531A (en) * 2018-08-30 2020-03-27 广州金山移动科技有限公司 Information obtaining method and device
CN112085090A (en) * 2020-09-07 2020-12-15 百度在线网络技术(北京)有限公司 Translation method and device and electronic equipment
WO2021017260A1 (en) * 2019-08-01 2021-02-04 平安科技(深圳)有限公司 Multi-language text recognition method and apparatus, computer device, and storage medium
CN112487791A (en) * 2020-11-27 2021-03-12 江苏省舜禹信息技术有限公司 Multi-language hybrid intelligent translation method
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium
CN113220204A (en) * 2021-06-02 2021-08-06 深圳云知声信息技术有限公司 Dictionary pen scanning method and device, electronic equipment and storage medium
CN113255377A (en) * 2021-06-08 2021-08-13 北京有竹居网络技术有限公司 Translation method, translation device, electronic equipment and storage medium
CN113392847A (en) * 2021-06-17 2021-09-14 拉萨搻若文化艺术产业开发有限公司 OCR (optical character recognition) handheld scanning translation device and translation method for Tibetan Chinese and English
CN113625919A (en) * 2021-08-11 2021-11-09 掌阅科技股份有限公司 Method for translating book contents, computing device and computer storage medium
WO2022179330A1 (en) * 2021-02-26 2022-09-01 Oppo广东移动通信有限公司 Text processing method and apparatus, and electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082956A (en) * 2006-06-02 2007-12-05 英华达(上海)电子有限公司 Device and method for foreign words translation on hand-hold equipment based on photograph
CN101620595A (en) * 2009-08-11 2010-01-06 上海合合信息科技发展有限公司 Method and system for translating text of electronic equipment
CN102737238A (en) * 2011-04-01 2012-10-17 洛阳磊石软件科技有限公司 Gesture motion-based character recognition system and character recognition method, and application thereof
CN103294665A (en) * 2012-02-22 2013-09-11 汉王科技股份有限公司 Text translation method for electronic reader and electronic reader
US9519641B2 (en) * 2012-09-18 2016-12-13 Abbyy Development Llc Photography recognition translation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101082956A (en) * 2006-06-02 2007-12-05 英华达(上海)电子有限公司 Device and method for foreign words translation on hand-hold equipment based on photograph
CN101620595A (en) * 2009-08-11 2010-01-06 上海合合信息科技发展有限公司 Method and system for translating text of electronic equipment
CN102737238A (en) * 2011-04-01 2012-10-17 洛阳磊石软件科技有限公司 Gesture motion-based character recognition system and character recognition method, and application thereof
CN103294665A (en) * 2012-02-22 2013-09-11 汉王科技股份有限公司 Text translation method for electronic reader and electronic reader
US9519641B2 (en) * 2012-09-18 2016-12-13 Abbyy Development Llc Photography recognition translation

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319592A (en) * 2018-02-08 2018-07-24 广东小天才科技有限公司 A kind of method, apparatus and intelligent terminal of translation
CN108549643A (en) * 2018-04-08 2018-09-18 北京百度网讯科技有限公司 translation processing method and device
CN108549643B (en) * 2018-04-08 2022-08-05 北京百度网讯科技有限公司 Translation processing method and device
CN108536686A (en) * 2018-04-11 2018-09-14 百度在线网络技术(北京)有限公司 A kind of picture interpretation method, device, terminal and storage medium
CN108536686B (en) * 2018-04-11 2022-05-24 百度在线网络技术(北京)有限公司 Picture translation method, device, terminal and storage medium
CN108829686A (en) * 2018-05-30 2018-11-16 北京小米移动软件有限公司 Translation information display methods, device, equipment and storage medium
CN108829686B (en) * 2018-05-30 2022-04-15 北京小米移动软件有限公司 Translation information display method, device, equipment and storage medium
CN109101498B (en) * 2018-07-23 2023-04-18 Oppo广东移动通信有限公司 Translation method and device and mobile terminal
CN109101498A (en) * 2018-07-23 2018-12-28 Oppo广东移动通信有限公司 Interpretation method, device and mobile terminal
CN109165392A (en) * 2018-08-30 2019-01-08 深圳市有钱科技有限公司 Interaction language translating method and device
CN110929531A (en) * 2018-08-30 2020-03-27 广州金山移动科技有限公司 Information obtaining method and device
CN109871442A (en) * 2019-01-18 2019-06-11 程家惠 A kind of Sino-British rendering method, device, equipment and the medium of Chinese character calligraphy text
WO2021017260A1 (en) * 2019-08-01 2021-02-04 平安科技(深圳)有限公司 Multi-language text recognition method and apparatus, computer device, and storage medium
CN112085090A (en) * 2020-09-07 2020-12-15 百度在线网络技术(北京)有限公司 Translation method and device and electronic equipment
CN112487791A (en) * 2020-11-27 2021-03-12 江苏省舜禹信息技术有限公司 Multi-language hybrid intelligent translation method
WO2022179330A1 (en) * 2021-02-26 2022-09-01 Oppo广东移动通信有限公司 Text processing method and apparatus, and electronic device and storage medium
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium
CN113220204A (en) * 2021-06-02 2021-08-06 深圳云知声信息技术有限公司 Dictionary pen scanning method and device, electronic equipment and storage medium
CN113255377A (en) * 2021-06-08 2021-08-13 北京有竹居网络技术有限公司 Translation method, translation device, electronic equipment and storage medium
CN113392847A (en) * 2021-06-17 2021-09-14 拉萨搻若文化艺术产业开发有限公司 OCR (optical character recognition) handheld scanning translation device and translation method for Tibetan Chinese and English
CN113392847B (en) * 2021-06-17 2023-12-05 拉萨搻若文化艺术产业开发有限公司 Tibetan Chinese-English three-language OCR handheld scanning translation device and translation method
CN113625919A (en) * 2021-08-11 2021-11-09 掌阅科技股份有限公司 Method for translating book contents, computing device and computer storage medium

Also Published As

Publication number Publication date
CN107656922B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN107656922A (en) A kind of interpretation method, device, terminal and storage medium
Ingle et al. A scalable handwritten text recognition system
KR101667463B1 (en) Optical character recognition on a mobile device using context information
CN102982021B (en) For eliminating the method for the ambiguity of the multiple pronunciations in language conversion
KR101160597B1 (en) Content retrieval based on semantic association
CN103914996B (en) A kind of method and apparatus obtaining Words study data from picture
Naz et al. Segmentation techniques for recognition of Arabic-like scripts: A comprehensive survey
JP7164651B2 (en) Translation methods, devices, electronic devices and computer program products
JP2005135041A (en) Document search/browse method and document search/browse system
Hinami et al. Towards fully automated manga translation
US11562593B2 (en) Constructing a computer-implemented semantic document
CN110032734B (en) Training method and device for similar meaning word expansion and generation of confrontation network model
Le et al. A human-inspired recognition system for pre-modern Japanese historical documents
EP4104095A1 (en) Text recognition in image
Baek et al. COO: comic onomatopoeia dataset for recognizing arbitrary or truncated texts
KR102206604B1 (en) Apparatus and method for recognizing character
Aggarwal et al. Survey of mathematical expression recognition for printed and handwritten documents
Yang et al. Towards automatic sign translation
KR20210010602A (en) Apparatus and method for recognizing character
CN112084788A (en) Automatic marking method and system for implicit emotional tendency of image captions
CN117152770A (en) Handwriting input-oriented writing capability intelligent evaluation method and system
Nakajima et al. Portable translator capable of recognizing characters on signboard and menu captured by its built-in camera
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium
Li et al. A platform for creating Smartphone apps to enhance Chinese learning using augmented reality
JPH0247788B2 (en)

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