WO2021052458A1 - 机器翻译的方法和电子设备 - Google Patents
机器翻译的方法和电子设备 Download PDFInfo
- Publication number
- WO2021052458A1 WO2021052458A1 PCT/CN2020/116128 CN2020116128W WO2021052458A1 WO 2021052458 A1 WO2021052458 A1 WO 2021052458A1 CN 2020116128 W CN2020116128 W CN 2020116128W WO 2021052458 A1 WO2021052458 A1 WO 2021052458A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- content
- user
- translation
- user interface
- picture
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0485—Scrolling or panning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/42—Data-driven translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/14—Image acquisition
- G06V30/148—Segmentation of character regions
- G06V30/153—Segmentation of character regions using recognition of characters or words
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
Definitions
- This application relates to the field of artificial intelligence, and more specifically, to a method and electronic device for machine translation.
- Text translation is currently widely used in many types of electronic devices such as mobile phones, tablet computers, and personal computers (PC), providing users with convenient translation services.
- the text translation includes a translation method based on a single picture.
- a translation method based on a single picture.
- the user takes a photo of a page of a foreign language book or wants to translate the content of the current page while watching a foreign language news application (application, APP)
- the user needs to Take a screenshot of the page content, and then enter the picture obtained after the screenshot in the translation APP to obtain the translation result.
- the user is watching a relatively long news post, the user is required to continuously take screenshots in the news app, and then switch to the translation app to input the corresponding picture to get the translation result. Only by repeating this procedure can you complete the reading of a foreign news post. This method will bring users cumbersome operations, poor user experience, and low efficiency.
- This application provides a method and electronic device for machine translation, involving the fields of artificial intelligence, natural language processing, and machine translation, and helps to improve the intelligence and user experience of electronic devices.
- a machine translation method is provided.
- the method is applied to an electronic device with a touch screen.
- the method includes: the electronic device displays a first user interface on the touch screen, the first user interface including first content, and The language of the first content is the first language; the electronic device detects a first operation on the first user interface, and the first operation includes a user operation triggered by the user to perform scrolling translation; the electronic device responds to the first operation from the The first position of the first user interface starts to scroll the screenshot; in the process of scrolling the screenshot, when the second operation of the user is detected on the second user interface, or when the second user interface is scrolled to the end position , Stop scrolling the screenshot at the second position of the second user interface, the electronic device obtains the first picture, the first picture is the picture corresponding to the second content, and the second content includes the image from the first position to the second position Content, the language of the second content is the first language; the electronic device automatically obtains the translation result of the second content according to the first picture, and the language of the
- the user when the user wants to view the translated content corresponding to the original content on the electronic device, he can trigger the scrolling translation user operation to cause the electronic device to perform a scrolling screenshot, and then obtain the translated content corresponding to the original content obtained by the scrolling screenshot.
- This can avoid the user’s cumbersome operation when viewing the translation, and one scrolling translation can get multi-screen translation content, which is convenient for users to browse, which helps to improve the intelligence of electronic equipment, and also helps users to view the translation. Time user experience.
- the method further includes: the electronic device detects a third operation on a fourth user interface, the fourth user interface including the end of the translation result of the second content Part, the third operation includes a user operation triggered by the user to perform scrolling translation; in response to the third operation, the electronic device automatically displays the fifth user interface, and scrolls the screenshot from the third position of the fifth user interface, the fifth The user interface includes third content, the third location is associated with the first picture, and the language of the third content is the first language; during the process of scrolling the screenshot, when the user’s first position is detected on the sixth user interface During the fourth operation, or when scrolling to the end position, stop scrolling the screenshot at the fourth position of the sixth user interface, and the electronic device obtains the second picture, which is the picture corresponding to the fourth content, and the fourth content It includes content from the third position to the fourth position, and the language of the fourth content is the first language; the electronic device automatically obtains the translation result of the fourth content according to the second
- the method further includes: the electronic device detects a fifth operation on an eighth user interface, the eighth user interface including the end of the translation result of the second content
- the fifth operation includes a user operation triggered by the user to continue translation; the electronic device automatically obtains the translation result of the fifth content in response to the fifth operation, and the fifth content includes all content corresponding to the first language except for the first language.
- the language of the translation result of the fifth content is the second language; after automatically acquiring part or all of the translation result of the fifth content, the electronic device automatically displays the ninth user interface Or, after receiving the sliding operation of the user, a ninth user interface is displayed, and the ninth user interface includes part or all of the translation result of the fifth content.
- the user when the user wants to view more translation content after scrolling translation for the first time, then the user can trigger to continue the translation, and the electronic device can jump to the original interface to automatically obtain more original content for translation to get more It is also possible that the electronic device does not need to jump to the original interface, but automatically loads more translated content in the background, so as to display more translated content to the user, which is convenient for the user to browse.
- the method further includes: in response to the fifth operation, automatically taking a screenshot to obtain a third picture, where the third picture is a picture corresponding to the fifth content.
- the automatic screenshot may be a screenshot or a scrolling screenshot.
- the automatically acquiring the translation result of the fifth content includes: the electronic device sends the third picture or a picture corresponding to a part of the third picture to the server; the electronic device Receiving the translation result of the third picture or the picture corresponding to a part of the third picture returned by the server.
- the electronic device after acquiring the third picture, sends the third picture to the server, or sends a part of the corresponding picture in the third picture to the server, and the server will either send the original content displayed on the third picture or
- the server translates the original content displayed on the picture corresponding to a part of the third picture to obtain the translation result; the server may send the translation result to the electronic device, so that the electronic device displays the translation result to the user.
- the third picture or a part of the corresponding pictures in the third picture may include multi-screen pictures. Compared with the prior art, which can only send one screen of pictures at a time, the efficiency of translation can be improved, thereby improving the user experience. User experience when browsing translations.
- the automatic screenshot to obtain the third picture includes automatic screenshot of one or more screens of content to obtain the third picture, and the automatic screenshot process is visible or invisible to the user.
- the electronic device can take a screenshot of the content of a screen by taking a screenshot.
- the electronic device can also take screenshots of multi-screen content by scrolling the screenshot.
- the automatic screenshot process may not be visible to the user.
- the user obtains the translation through full-screen translation or scrolling translation for the first time, if he wants to continue to view more translations, he can directly trigger the continued translation to obtain more translations. There is no need to jump to the process of displaying screenshots of the original text or scrolling the screenshots. You can view more translations directly on the basis of the previous translation, which can further improve the user experience of the user when browsing the translation.
- the method before the automatic acquisition of the translation result of the second content, the method further includes: the electronic device automatically divides the first picture into multiple pictures; wherein, The third position is related to a specific position in the last picture of the plurality of pictures, and the specific position is: the start position or the end position or the middle position of the last picture or the position of a predetermined ratio; or, the last picture The starting position of the last paragraph or the starting position of the last n lines in a picture, n is a positive integer, and n is greater than or equal to 1.
- the electronic device starts a long screen capture on the page currently displaying the first language (also called the original text) and automatically scrolls down. During the period, the electronic device stops the long screen capture when the user can tap the screen; The page displays the text data that has been translated into the second language (also called the translation), and the user can swipe up and down to view; then, the user can directly choose to continue to view the following content on the translation page (a scrolling translation button is provided on this page for the user Click).
- the first language also called the original text
- the electronic device stops the long screen capture when the user can tap the screen;
- the page displays the text data that has been translated into the second language (also called the translation), and the user can swipe up and down to view; then, the user can directly choose to continue to view the following content on the translation page (a scrolling translation button is provided on this page for the user Click).
- the user After the user clicks the scrolling translation button again, the user will jump to the original page and jump to the place where the original text stopped the long screenshot last time (the electronic device has memorized this position), and the electronic device can stop from the last time Near the location of the long screenshot (or the first few lines of the location, by retaining some redundancy of the content, so that the user can recall where they were last read), start the scrolling screenshot and translate again.
- This method is not limited to web-based browser client translation, but can also be used in non-browser scenarios such as third-party information APPs, which greatly expands the applicable scenarios and also ensures the continuity of the user's reading experience.
- the automatically obtaining the translation result of the second content includes: the electronic device sends the plurality of pictures to the server; the electronic device receives the server for each of the plurality of pictures The translation result of a picture; the electronic device composes the translation result of some pictures in the multiple pictures as part of the translation result of the second content, or composes the translation result of all the pictures in the multiple pictures as part of the second content Translation results.
- the first picture after the electronic device obtains the first picture, the first picture can be divided into multiple pictures and sent to the server for translation; the server can send the translation results of the multiple pictures to the electronic device, thereby The electronic device displays the translation result to the user.
- the first picture may include multiple pictures. Compared with the prior art, which can only send one screen of pictures at a time, the efficiency of translation can be improved, thereby improving the user experience of the user when browsing the translated text.
- associating the third position with the first picture includes: the third position is related to a specific position in the first picture, and the specific position is: The end position or the middle position or the predetermined ratio of the first picture; or, the start position of the last segment or the start position of the last n lines in the first picture, n is a positive integer, and n is greater than or equal to 1.
- the electronic device may segment the first picture, or may not switch the first picture.
- the starting position of the second scrolling screenshot may be related to the first picture.
- associating the third position with the first picture includes: the third position is related to the second content, wherein the third position is related to the second content The end position or the middle position of the content or a predetermined proportion of the position is related; or, the third position is related to the start position of the last paragraph or the start position of the last n lines in the second content, n is a positive integer, n is greater than or Equal to 1.
- the electronic device may segment the first picture, or may not switch the first picture.
- the starting position of the second scrolling screenshot may be related to the second content displayed on the first picture.
- the automatically obtaining the translation result of the second content includes: sending the first picture or a picture corresponding to a part of the first picture to a server; receiving the The translation result of the first picture or the picture corresponding to a part of the first picture returned by the server.
- the translation result of the second content includes that the text content obtained after the first picture is subjected to OCR text recognition is performed from the first language to the The content obtained after translation in the second language.
- the electronic device can determine whether to cut the text or picture through OCR. If the mobile phone determines that the text or picture will be cut at the segmentation position, the segmentation position can be moved up to the blank line position.
- the electronic device sends the text content obtained through OCR to the server, and the server can translate the corresponding text content.
- the automatically acquiring the translation result of the second content includes: the electronic device sends the first picture or the picture corresponding to a part of the first picture to the server; The electronic device receives the translation result of the first picture or the picture corresponding to a part of the first picture returned by the server.
- the translation result of the second content includes that the text content obtained after the first picture is subjected to OCR text recognition is performed from the first language to the The content obtained after translation in the second language.
- the electronic device can determine whether to cut the text or picture through OCR. If the mobile phone determines that the text or picture will be cut at the segmentation position, the segmentation position can be moved up to the blank line position.
- OCR text recognition can be performed by an electronic device, and text translation can be performed by a server; alternatively, OCR text recognition and text translation can be performed by a server; alternatively, OCR text recognition and text translation can also be performed by the server. It can be done by the same or different servers together.
- the method further includes: displaying first prompt information at or near the third position, the first prompt information being used to prompt the user to scroll the screenshot And/or, displaying second prompt information at or near the second position, and the second prompt information is used to prompt the user to read the second position last time.
- the user can become familiar with the content of the original text in the second scrolling screenshot before reading the translated text of the second scrolling screenshot, which will remind the user and assist in the continuity.
- the role of reading is the case familiar with the content of the original text in the second scrolling screenshot before reading the translated text of the second scrolling screenshot, which will remind the user and assist in the continuity. The role of reading.
- the first operation includes the user clicking the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the third operation includes the user clicking the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the method further includes: after receiving a user's sliding operation on the third user interface, displaying a tenth user interface, the tenth user interface including and The subsequent translation result associated with the translation result included on the third user interface.
- the method further includes: before the detection of the third operation, the method further includes: displaying on the fourth user interface a screen that can trigger scrolling translation Control.
- the method further includes: before the detection of the fifth operation, the method further includes: displaying a control that can trigger continued translation on the eighth user interface .
- the method further includes: detecting a first operation on the first user interface, including: detecting a user's multi-finger on the first user interface After the pressing operation, a plurality of functional controls are displayed, the plurality of functional controls include a first control that can trigger a scrolling translation; it is detected that the user clicks on the first control or the user inputs a voice command that can trigger the scrolling translation function.
- the second content includes a part or all of the first content and all content corresponding to the first language other than the first content.
- the third content includes a part of all content corresponding to the first language other than the second content
- the fourth content includes the first Part or all of the content corresponding to the language other than the second content.
- the method further includes: after receiving a user's sliding operation on the ninth user interface, displaying the eleventh user interface, and the eleventh user interface is displayed on the eleventh user interface.
- the subsequent translation result associated with the translation result included on the ninth user interface is included.
- a machine translation method is provided.
- the method is applied to an electronic device with a touch screen.
- the method includes: the electronic device displays a first user interface on the touch screen, and the first user interface includes first content, The language of the first content is the first language; the electronic device detects a user's first operation on the first user interface, and the first operation includes a user operation that the user triggers a full-screen translation; the electronic device responds to the first operation, Obtain the first picture obtained by taking a screenshot of the first user interface; the electronic device automatically obtains the translation result of the first content according to the first picture, and the language of the translation result of the first content is the second language; the electronic device is in After automatically acquiring the translation result of the first content, the second user interface is automatically displayed, and the second user interface includes part or all of the translation result of the first content; the electronic device detects the user's first content on the second user interface Second operation, the second operation includes a user operation triggered by the user to perform scrolling translation; in response to the second operation,
- a process of performing full-screen translation first and then scrolling translation is provided.
- the user can perform full-screen translation first, and the scrolling translation controls can be displayed on the translation interface of the full-screen translation, and then the user can perform scrolling translation.
- users can first determine whether they are interested in the original content after performing full-screen translation. If they are interested, they can perform scrolling translation to view more translated content; if they are not interested in the original content, the user can stop reading the current content. The original text, and then find the original text you are interested in.
- the second content and the first content may be the same; or, the second content includes a part of the first content.
- the method before the automatic acquisition of the translation result of the third content, the method further includes: the electronic device automatically divides the second picture into multiple pictures; the electronic device Send the multiple pictures to the server; the electronic device receives the server's translation result of each of the multiple pictures; the electronic device composes the translation results of some of the multiple pictures into a part of the translation result of the third content, Or, the translation results of all the pictures in the multiple pictures constitute the translation result of the third content.
- the translation result of the third content includes that the text content obtained after the second picture is subjected to OCR text recognition is performed from the first language to the second language The content obtained after translation.
- the electronic device can determine whether to cut the text or picture through OCR. If the mobile phone determines that the text or picture will be cut at the segmentation position, the segmentation position can be moved up to the blank line position.
- the electronic device sends the text content obtained through OCR to the server, and the server can translate the corresponding text content.
- the method further includes: the electronic device displays first prompt information at or near the first position, and the first prompt information is used to prompt the user Scroll the starting position of the screenshot; and/or, the electronic device displays second prompt information at the end position of the first picture, and the second prompt information is used to prompt the user to read the end position last time.
- the user can be familiar with the content of the original text in the second scrolling screenshot before reading the translation of the second scrolling screenshot, which is useful to the user Certain memory evokes and assists continuous reading.
- the second operation includes the user clicking on the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the first position is associated with the first picture, including: the first position is related to a specific position in the first picture, wherein the specific position Is: the end position or the middle position of the first picture or the position of a predetermined proportion; or, the start position of the last paragraph or the start position of the last n lines in the first picture, n is a positive integer, n is greater than or equal to 1 .
- the first position is associated with the first picture, including: the first position and the end position or the middle position of the first content or the position of a predetermined ratio Related; or, the first position is related to the starting position of the last paragraph or the starting position of the last n lines in the first content, n is a positive integer, and n is greater than or equal to 1.
- the electronic device can take a certain position (or several lines before that position) on the first picture obtained from the last screenshot, and by retaining some redundancy of content, the user can recall where he read the last time.
- Start scrolling screenshots and translate This method is not limited to web-based browser client translation, but can also be used in non-browser scenarios such as third-party information APPs, which greatly expands the applicable scenarios and also ensures the continuity of the user's reading experience.
- the method further includes: after receiving a user's sliding operation on the fifth user interface, the electronic device displays a sixth user interface, and the sixth user interface is displayed on the sixth user interface.
- the subsequent translation result associated with the translation result included on the fifth user interface is included.
- the method before the second operation of the user is detected on the second user interface, the method further includes: the electronic device displays on the second user interface that can trigger Controls for scrolling translation.
- the detecting the first operation of the user on the first user interface includes: the electronic device detects the user's multi-finger pressing on the first user interface After the operation, multiple functional controls are displayed.
- the multiple functional controls include a first control that can trigger a full-screen translation; the electronic device detects that the user clicks on the first control or the user inputs a voice command that can trigger the full-screen translation function.
- the automatically acquiring the translation result of the second content includes: the electronic device sends the second picture or the picture corresponding to a part of the second picture to the server; The electronic device receives the translation result of the second picture or the picture corresponding to a part of the second picture returned by the server.
- a machine translation method is provided, the method is applied to an electronic device with a touch screen, the method includes: the electronic device displays a first user interface on the touch screen, and the first user interface includes first content, The language of the first content is the first language; the electronic device detects a user's first operation on the first user interface, and the first operation includes a user operation that the user triggers a full-screen translation; the electronic device responds to the first operation, Take a screenshot of the first user interface to obtain the first picture; the electronic device automatically obtains the translation result of the first content according to the first picture, and the language of the translation result of the first content is the second language; the electronic device is automatically acquiring After the translation result of the first content, a second user interface is automatically displayed, and the second user interface includes part or all of the translation result of the first content; the electronic device detects the user's second operation on the second user interface , The second operation includes a user operation triggered by the user to continue translation; in response to the second operation, the translation result of the
- the electronic device can provide the user with a control to continue translation.
- the electronic device detects that the user clicks the control to continue translation, it can directly load the translation corresponding to the remaining original text in the background All or part of. In this way, there is no need for the electronic device to jump to the original interface for scrolling screenshots, which can further enhance the user experience of the user when reading the translated text.
- the method further includes: in response to the second operation, automatically taking a screenshot to obtain a second picture, the second picture being a picture corresponding to the second content; the automatic Obtaining the translation result of the second content includes: automatically acquiring the translation result of the second content according to the second picture.
- the automatically acquiring the translation result of the second content includes: the electronic device sends the second picture or a picture corresponding to a part of the second picture to the server; the electronic device Receive the translation result of the second picture or the picture corresponding to a part of the second picture returned by the server.
- the automatic screenshot to obtain the second picture includes: the electronic device automatically captures the content of one or more screens to obtain the second picture, and the automatic screenshot process is visible or visible to the user. Invisible.
- the electronic device may not jump to the original text interface to take the screenshot, but may automatically load part or all of the translations corresponding to the remaining original texts in the background, avoiding the difference between the original text and the translated text. The impact of inter-jumping on users.
- the automatic acquisition of the translation result of the second content includes: the electronic device automatically divides the second picture into multiple pictures; the electronic device sends the multiple pictures to the server The electronic device receives the translation result of each of the multiple pictures by the server; the electronic device composes the translation results of some of the multiple pictures into a part of the translation result of the second content, or the multiple pictures The translation result of all pictures in the picture constitutes the translation result of the second content.
- the second operation includes the user clicking on the first control that can trigger the continued translation function or the user inputting a voice command that can trigger the continued translation function.
- the method further includes: after receiving a user's sliding operation on the third user interface, the electronic device displays a fourth user interface, and the fourth user interface is displayed on the fourth user interface.
- the subsequent translation result associated with the translation result included on the third user interface is included.
- the method before the first operation of the user is detected on the first user interface, the method further includes: displaying on the first user interface that the electronic device can trigger Controls for full-screen translation.
- the method before the second operation of the user is detected on the second user interface, the method further includes: displaying on the second user interface that it can trigger continued translation Controls.
- detecting the first operation of the user on the first user interface includes: after detecting the user's multi-finger pressing operation on the first user interface, A plurality of functional controls are displayed, the plurality of functional controls include a first control that can trigger a full-screen translation; it is detected that the user clicks on the first control or the user inputs a voice command that can trigger the full-screen translation function.
- a device in a fourth aspect, is provided, the device is included in an electronic device, and the device has the function of realizing the above aspects and the behavior of the electronic device in the possible implementation manners of the above aspects.
- the function can be realized by hardware, or the corresponding software can be executed by hardware.
- the hardware or software includes one or more modules or units corresponding to the above-mentioned functions.
- an electronic device including: a touch screen; one or more processors; a memory; and one or more computer programs.
- one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device is caused to execute the machine translation method in any one of the possible implementations of the first aspect, the second aspect, or the third aspect.
- the present technical solution provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the machine translation method in any one of the possible implementations of any of the foregoing aspects.
- the present technical solution provides a computer program product, which when the computer program product runs on an electronic device, causes the electronic device to execute any one of the above-mentioned methods for machine translation in a possible design.
- the present technical solution provides a chip system that includes at least one processor, and when program instructions are executed in the at least one processor, any possible method in the first aspect can be used in an electronic device The above functions are realized.
- Fig. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- Fig. 2 is a block diagram of the software structure of an electronic device provided by an embodiment of the present application.
- Figure 3 is a set of GUIs provided by an embodiment of the present application.
- Figure 4 is another set of GUIs provided by an embodiment of the present application.
- Figure 5 is another set of GUIs provided by an embodiment of the present application.
- Fig. 6 is another set of GUI provided by an embodiment of the present application.
- Fig. 7 is another set of GUI provided by an embodiment of the present application.
- Fig. 8 is another set of GUIs provided by an embodiment of the present application.
- Figure 9 is another set of GUIs provided by an embodiment of the present application.
- Fig. 10 is another set of GUIs provided by an embodiment of the present application.
- FIG. 11 is a schematic flowchart of a machine translation method provided by an embodiment of the present application.
- Fig. 12 is a schematic flowchart of a machine translation method provided by an embodiment of the present application.
- FIG. 13 is a schematic flowchart of a machine translation method provided by an embodiment of the present application.
- FIG. 14 is a schematic flowchart of a machine translation method provided by an embodiment of the present application.
- references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in conjunction with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
- the electronic device may be a portable electronic device that also contains other functions such as a personal digital assistant and/or a music player function, such as a mobile phone, a tablet computer, and a wearable electronic device with wireless communication function (such as a smart watch) Wait.
- portable electronic devices include, but are not limited to, carrying Or portable electronic devices with other operating systems.
- the above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) and the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer.
- FIG. 1 shows a schematic structural diagram of an electronic device 100.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, compass 190, motor 191, indicator 192, camera 193, display screen 194, and user Identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM subscriber identification module
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc.
- different processing units may be independent components, or may be integrated in one or more processors.
- the electronic device 101 may also include one or more processors 110.
- the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching instructions and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in the processor 110 may be a cache memory.
- the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. In this way, repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 101 in processing data or executing instructions is improved.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver (universal asynchronous transceiver) interface.
- asynchronous receiver/transmitter, UART) interface mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM card interface and/or USB interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 101, and can also be used to transfer data between the electronic device 101 and peripheral devices.
- the USB interface 130 can also be used to connect earphones and play audio through the earphones.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
- the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
- the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110.
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
- the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, and the like.
- the display screen 194 includes a display panel.
- the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
- the electronic device 100 may include one or more display screens 194.
- the display screen 194 in FIG. 1 may be bent.
- the above-mentioned display screen 194 can be bent means that the display screen can be bent to any angle at any position, and can be maintained at that angle.
- the display screen 194 can be folded in half from the center. You can also fold up and down from the middle.
- the display screen 194 of the electronic device 100 may be a flexible screen.
- the flexible screen has attracted much attention due to its unique characteristics and great potential.
- flexible screens have the characteristics of strong flexibility and bendability, and can provide users with new interactive methods based on bendable characteristics, which can meet users' more needs for electronic devices.
- the foldable display screen on the electronic device can be switched between a small screen in a folded configuration and a large screen in an unfolded configuration at any time. Therefore, users use the split screen function on electronic devices equipped with foldable display screens more and more frequently.
- the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and is projected to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the electronic device 100 may include one or more cameras 193.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- MPEG2 MPEG2, MPEG3, MPEG4, and so on.
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
- the processor 110 can execute the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 101 to execute the machine translation methods provided in some embodiments of the present application, as well as various applications and data processing.
- the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more applications (such as photo galleries, contacts, etc.) and so on.
- the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 101.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage components, flash memory components, universal flash storage (UFS), and the like.
- the processor 110 may execute the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 to cause the electronic device 101 to execute the instructions provided in the embodiments of the present application. Methods of machine translation, as well as other applications and data processing.
- the electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and an application processor. For example, music playback, recording, etc.
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and an ambient light sensor 180L, bone conduction sensor 180M, etc.
- the pressure sensor 180A is used to sense a pressure signal, and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A may be provided on the display screen 194.
- the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
- touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example, when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes ie, X, Y, and Z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- the visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
- FIG. 2 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
- the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some pre-defined functions.
- the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- the content provider is used to store and retrieve data and make these data accessible to applications.
- the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
- the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
- the notification manager is used to notify download completion, message reminders, and so on.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
- the status bar prompts text messages, sounds prompts, electronic devices vibrate, and indicator lights flash.
- the system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- surface manager surface manager
- media library media libraries
- 3D graphics processing library for example: OpenGL ES
- 2D graphics engine for example: SGL
- the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG and PNG.
- the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
- Full-screen screenshot/full-screen screenshot Perform a "snapshot" operation on the content displayed on the current electronic device to form a picture with the same length and width as the screen and the same content. For example, in the iPhone, use the Home button and the power button at the same time to make a full-screen screenshot, or use the volume up button and the power button at the same time to trigger a short-press on the model without the Home button. For another example, on a Huawei mobile phone, it can be triggered by tapping the screen twice with a knuckle. Other manufacturers can also have other ways to start full-screen screenshots.
- Long screenshot/long screenshot A picture that is longer than the height of the screen is generated after the content displayed by the electronic device is triggered by an interactive method.
- the content is a long picture that is more than one screen of continuous content from the current display position. .
- the knuckles draw an "S" on the screen to start, and click to stop.
- Other manufacturers can also have other ways to start long screenshots.
- Figure 3 shows a set of graphical user interfaces (GUI) of the mobile phone, in which, from Figure 3 (a) to Figure 3 (m) shows that the user performs full-screen translation and scrolling translation process.
- GUI graphical user interfaces
- FIG. 3 is the desktop of the mobile phone.
- the desktop of the mobile phone includes three desktop pages, and each desktop page includes one or more application (Application, APP) icons.
- APP Application
- the current mobile phone’s desktop displays the second desktop page 301.
- This desktop page includes the Alipay icon, the task card store icon, the Weibo icon, the English reading icon 302, the WeChat icon, and the card package icon. , Set icons and camera icons.
- the GUI as shown in (b) of FIG. 3 can be displayed.
- FIG. 3 is the display interface of the English reading APP.
- the display interface includes multiple English essays. Including the English short article 303 with the title "A family of four was on a camping trip in Canada.Then a wolf attacked while they were sleeping", and the English short article with the title "Draft law seeks strict action against against throwing objects from buildings" It is an English short text of "71-Year-Old Grandma Sets New Half Marathon World Record in Ohio”.
- the mobile phone detects that the user clicks on the English short text 303, it can display the GUI as shown in (c) in FIG. 3.
- FIG. 3 is a display interface of the English short text 303.
- the user can read the original text of the English essay by sliding up and down on the screen.
- the mobile phone when the mobile phone detects the user's two-finger pressing operation on the interface, the mobile phone can display the GUI as shown in (d) in FIG.
- the reminder box 304 can be the display interface of the smart screen.
- the mobile phone can automatically recognize the word segmentation in the English short text, for example, " Participles such as wolf”, “It”, “was”, “Something", “out” and "a”.
- the reminder box 304 may also include controls such as search, copy, map, share, and full-screen translation.
- the mobile phone detects that the user clicks on the control 305, it can display the GUI as shown in (e) in FIG. 3.
- the mobile phone may have a smart screen recognition function.
- the smart screen recognition function can include that after the mobile phone detects the two-finger pressing text, the mobile phone can automatically extract the text content of the pressed area, analyze keywords, etc.; it can also include the mobile phone extracts the pressed area after the two-finger presses the picture. Picture content and analyze the items in the picture.
- full-screen translation can also be understood as translating the original text displayed on the current screen, or translating a screen of content displayed after taking a screenshot of the current screen or a screenshot operation.
- the mobile phone detects that the user clicks on the control 305, the mobile phone can automatically translate the original text on the screen as shown in (c) in FIG. 3.
- the mobile phone will translate the English of the current screen into Chinese by default.
- the mobile phone can automatically display the GUI as shown in (f) in Figure 3.
- the mobile phone translates the English short text shown on (c) in Figure 3 into the corresponding Chinese.
- the user can also click on the translation language on the translation interface. For example, when the user clicks "Chinese", multiple other foreign languages can be displayed, and the user can select other translation languages.
- the translation interface also includes a control 306 for scrolling translation and a control for copying the translation. When the mobile phone detects that the user has clicked on the control 306, it can display the GUI as shown in (g) in FIG. 3.
- the scrolling translation may also be referred to as a long screenshot translation.
- the difference with full-screen translation is that scrolling translation can be a mobile phone taking a long screenshot of the content of the original text, and then it can automatically translate the content on the long screenshot (which can be multi-screen content), while the full-screen translation can only be for example Figure 3
- the content displayed in the current original text (the content of one screen) shown in (c) is translated.
- the scrolling display interface of the long screenshot may include a reminder box 307.
- the reminder box 307 can remind the user by text that "the screen is being scrolled.. Click the scroll area to complete the screen capture".
- the phone can automatically scroll down the screen.
- FIG. 3 to (h) in FIG. 3 and then to (i) in FIG. 3 are all the processes of the mobile phone automatically scrolling down.
- the mobile phone when the mobile phone scrolls to the bottom of the English short text (or the end of the English short text) in the scrolling screenshot, the mobile phone can automatically complete the automatic screenshot, at this time the start of the long screenshot
- the position can be the beginning of the English short text as shown in (c) in FIG. 3
- the end position of the long screenshot can be the end of the English short text.
- the mobile phone can automatically display the interface shown in Figure 3 (j).
- FIG. 3 is a loading interface for scrolling translation.
- the phone can translate the English on the long screenshot into the corresponding Chinese.
- the mobile phone can automatically display the GUI as shown in (k) in Figure 3.
- FIG. 3 is a translation interface for scrolling translation.
- the mobile phone translates the short English text on the long screenshot into the corresponding Chinese.
- the mobile phone detects the user's upward sliding operation on the screen, the mobile phone can scroll to display the translated content.
- a scroll bar 308 may also appear on the translation interface of the scrolling translation.
- the scroll bar 308 can also correspondingly slide down.
- the position of the scroll bar 308 may correspond to the position of the translation on the current interface in the entire translation.
- the mobile phone Scrolls to display the change process of the translated content.
- the user can swipe up or down to view the corresponding translation.
- the original text interface may be displayed.
- the original text interface may be the original content display interface when the electronic device starts to scroll the screen.
- the mobile phone detects that the user clicks on the control 309, it may display the GUI as shown in (c) in FIG. 3.
- control 306 for scrolling translation may continue to be displayed on the translation interface in (k) to (i) in FIG. 3 above. It may also be that after the mobile phone determines that the entire content of the English short text has been translated (or the mobile phone determines that the long screen shot is automatically stopped by scrolling to the end of the English short text), the scrolling translation control 306 may not be displayed on the translation interface.
- FIG. 4 is a display interface for smart screen recognition.
- the user can read the original text of the English essay by sliding up and down on the screen.
- Fig. 4(a) when the mobile phone detects the user's two-finger pressing operation on the interface, the mobile phone can display the GUI as shown in Fig. 4(b).
- the smart screen recognition interface in Figure 4 (b) includes two controls, full-screen translation and scrolling translation. Users can choose full-screen translation, that is, to translate the original content (one-screen content) on the interface shown in Figure 4 (a); they can also choose scrolling translation, that is, they can take a long screenshot first, and then display the content on the long screenshot. The original content (which can be multi-screen content) is translated. When the mobile phone detects the user's operation of clicking the control 401, the GUI shown in (c) of FIG. 4 is displayed.
- the scrolling display interface of the long screenshot may include a reminder box 402.
- text can be used to remind the user that the user is scrolling to take a screenshot. Click the scroll area to complete the screenshot.
- the phone can automatically scroll down the screen.
- Exemplarily, from (c) in FIG. 4 to (d) in FIG. 4 are all the automatic scrolling processes of English short texts.
- FIG. 4 is another display interface for scrolling long screen shots.
- the mobile phone detects the user's click action on the screen, the mobile phone can complete the long screen capture operation.
- the mobile phone can automatically display the GUI shown in Figure 4(e).
- FIG. 4 is a loading interface for scrolling translation.
- the phone can translate the English on the long screenshot into the corresponding Chinese.
- the mobile phone can automatically display the GUI as shown in (f) in Figure 4.
- the mobile phone translates the short English text on the long screenshot into the corresponding Chinese.
- the mobile phone detects the user's sliding up or down operation on the screen, the mobile phone can scroll to display the translated content.
- the change process of the GUI shown from (f) in FIG. 4 to (g) in FIG. 4 is a process in which the user views the translation corresponding to the multi-screen content obtained in the first long screen capture. After the user has finished viewing, if he wants to continue to view the translation corresponding to the remaining original text, he can click the scrolling translation control 403. When the mobile phone detects that the user clicks on the control 403, it can display the GUI as shown in (h) in FIG. 4.
- FIG. 4 is another display interface for scrolling screenshots.
- the mobile phone can start a long screenshot from "Fee said he immediately...rocks at it" (the last paragraph of the first long screenshot).
- the starting point of the next long screenshot may be the last paragraph of the last long screenshot, as shown in (h) in Figure 4, the starting point of the second long screenshot may be the first The last paragraph of a long screenshot.
- the starting point of the next long screenshot may be the last two paragraphs of the previous long screenshot, and so on.
- the mobile phone can also start a long screenshot from "The screams were so...situation,"...in the back hip area" (the penultimate paragraph of the first long screenshot).
- the starting point of the next long screenshot may be the last screen content of the last long screenshot.
- the mobile phone can divide the content of the long screenshot into multi-screen content.
- the mobile phone can segment the long image generated by the long screenshot according to the relationship between the height of the image and the height of the mobile phone screen, and use optical character recognition (OCR) at the segmented position to determine whether the text will be truncated Or pictures. If the mobile phone determines that the text or picture will be cut off at the segmentation point, you can move the segmentation position up to the blank line position to get several pictures with a height slightly less than or equal to the height of the screen. Then in the next scrolling translation, the long screenshot can be taken from the last picture (or the content of the last screen) among the multiple pictures (or multi-screen content) obtained in the last long screenshot. Alternatively, the mobile phone can also analyze the last picture (or the content of the last screen) obtained from the last long screen capture, and extract the last paragraph or the last few paragraphs of the content in the last picture as the next scrolling translation The starting point for the duration screenshot.
- OCR optical character recognition
- the advantage of this is that the user’s reading experience starts from the last few paragraphs of the last picture (or the content of the last screen) or the last picture (or the content of the last screen) of the last translation. Said that there is a certain memory to evoke and assist continuous reading.
- the GUI shown in (j) in FIG. 4 when the mobile phone detects the user's click operation on the screen, the GUI shown in (j) in FIG. 4 can be automatically displayed.
- the phone can translate the English on the long screenshot into the corresponding Chinese.
- the mobile phone can automatically display the GUI as shown in (k) in Figure 4.
- the mobile phone translates the short English text on the long screenshot into the corresponding Chinese.
- the mobile phone detects the user's sliding up or down operation on the screen, the mobile phone can scroll to display the translated content.
- the change process of the GUI shown from (k) in FIG. 4 to (1) in FIG. 4 is a process in which the user views the translation corresponding to the multi-screen content obtained by the second long screen capture. After the user has finished viewing, if he wants to continue to view the translation corresponding to the remaining original text, he can click on the scrolling translation control 403, and the mobile phone can perform the third scrolling translation.
- the process of the third scrolling translation can refer to the process of the second scrolling translation mentioned above. For the sake of brevity, I will not repeat it here.
- the embodiment of the application provides a machine translation method.
- the mobile phone starts a long screen capture on the page currently displaying the first language (also called the original text), and automatically scrolls down. During the period, the mobile phone detects that the user can tap the screen and stops the long screen. Screenshot; secondly, the text data that has been translated into the second language (also called the translation) is displayed on the new page, and the user can swipe up and down to view; then, the user can directly choose to continue to view the following content on the translation page (the page provides The scrolling translation button is for the user to click).
- the electronic device when the user triggers the operation of translating the original text, the electronic device can display the entry of full-screen translation and scrolling translation, providing users with multiple translation methods, making it convenient for users to choose, and improving the user’s ability to understand the original text. User experience when translating.
- a long screen capture is triggered after the scrolling translation control is clicked, and then one or more pictures obtained from the long screen capture are translated.
- the following describes the process of first performing a long screenshot operation and triggering the translation of the long screenshot picture on the processing interface for obtaining the long screenshot picture in conjunction with FIG. 5.
- Figure 5 shows another set of GUIs provided by an embodiment of the present application.
- FIG. 5 is a display interface of the English short text 303.
- the mobile phone detects that the user draws "S" with the knuckles on the interface, the mobile phone can start the operation of taking a long screen and automatically display the GUI as shown in Figure 5(b).
- the scrolling display interface of the long screen shot may include a reminder box 501.
- text can be used to remind the user that “the screenshot is being scrolled. Click the scroll area to complete the screenshot”.
- the phone can automatically scroll down the screen.
- Exemplarily, from (b) in FIG. 5 to (c) in FIG. 5 are all the automatic scrolling processes of English short texts.
- FIG. 5 is another display interface for scrolling long screen shots.
- the mobile phone detects the user's click action on the screen, the mobile phone can complete the long screen capture operation.
- the mobile phone can automatically display the GUI as shown in (d) in Figure 5.
- the processing interface includes processing methods for the pictures obtained from the long screenshot, wherein the processing methods include sharing, editing, deleting, and translation.
- the user can share the picture obtained from the long screenshot by clicking Share to other users; the user can also edit the picture obtained from the long screenshot by clicking Edit. For example, the picture can be edited for brightness, exposure, and cropping; The user can also delete the picture obtained from the long screenshot by clicking Delete.
- the mobile phone detects that the user clicks the operation of the control 502 corresponding to the translation, the mobile phone can display the GUI as shown in (e) in FIG. 5.
- FIG. 5 is a translation loading interface of a picture obtained by a long screenshot.
- the mobile phone can translate the English on the picture obtained by the long screen capture into the corresponding Chinese.
- the mobile phone can automatically display the GUI as shown in (f) in Figure 5.
- FIG. 5 is a translation interface of a picture obtained by a long screenshot.
- the mobile phone translates the short English text on the picture obtained from the long screen capture into the corresponding Chinese.
- the mobile phone detects the user's sliding up or down operation on the screen, the mobile phone can scroll to display the translated content.
- the user wants to continue to view the translation corresponding to the remaining content of the English essay, he can click the scrolling translation control 503 shown in (f) in Figure 5, and the mobile phone can continue the scrolling translation process.
- the scrolling translation Refer to the GUI in Figure 3 or Figure 4 above for the process.
- Fig. 6 shows another set of GUIs provided by an embodiment of the present application.
- FIG. 6 is a display interface of the English short text 303.
- the mobile phone detects the user's pressing operation on the word "family" on the interface, it can automatically display the GUI as shown in (b) in FIG. 6.
- a reminder box 601 can automatically pop up on the display interface.
- the reminder box 601 includes copy, share, select all, web search, search, and controls 602.
- a reminder box 603 can automatically pop up, where the reminder box 603 includes scrolling translation and full-screen translation.
- Fig. 7 shows another set of GUIs provided by an embodiment of the present application.
- FIG. 7 is a display interface of the English short text 303.
- the mobile phone detects the user's pressing operation on the word "family" on the interface, it can automatically display the GUI as shown in (b) in FIG. 7.
- the mobile phone can automatically select the word "family” and automatically pop up a reminder box 701.
- the reminder box 701 includes copy, share, select all, web search, search and so on.
- the mobile phone detects that the user clicks the cursor 701 and slides to the right, the mobile phone can select more words and display the GUI as shown in (c) in FIG. 7.
- the mobile phone can automatically select multiple words "family was fast asleep" according to the user's sliding operation, and automatically add a scrolling translation function option in the reminder box 701.
- the mobile phone may also add prompts on the starting position of the screenshot and the position read last time on the GUI when performing the next scrolling translation (or long screenshot translation).
- Fig. 8 shows another set of GUIs provided by an embodiment of the present application.
- the mobile phone translates the short English text on the picture obtained from the first long screenshot into the corresponding Chinese.
- the mobile phone detects the user's sliding up or down operation on the screen, the mobile phone can scroll to display the translated content.
- the mobile phone detects the user's operation of clicking the control 801 on the translation interface, it can display the GUI as shown in (b) in FIG. 8.
- the display interface can include two reminder messages to the user.
- One reminder message is before the paragraph "Fee said he immediately...rocks at it”.
- the mobile phone can remind the user of "the starting position of this screenshot”. After a while, remind the user to "last read here”.
- FIG. 8 is another display interface of the second scrolling screenshot.
- the mobile phone detects the user's click operation on the screen, the mobile phone can complete the second scrolling screenshot and display the GUI as shown in (d) in FIG. 8.
- the GUI scrolls the translation loading interface of the screenshot for the second time.
- the above-mentioned reminder information can also be displayed on the loading interface, so that the user can also check the starting point of the scrolling screenshot and the position of the original text read last time before reading the translation of the second scrolling screenshot.
- the advantage of this is that Before reading the translated text of the second scrolling screenshot, the user can become familiar with the content of the original text in the second scrolling screenshot, which has a certain memory arousal for the user and assists in continuous reading.
- the translation display interface can also display the above-mentioned reminder information.
- the mobile phone may only display one of the above two reminder messages.
- Fig. 9 shows another set of GUI provided by an embodiment of the present application.
- GUI shown in (a) in Figure 9, which may be the translation interface for the first scrolling translation.
- the mobile phone detects the user's operation of clicking the control 901 on the translation interface, it can display the GUI as shown in (b) in FIG. 9.
- the second scrolling screenshot does not contain any content from the previous scrolling screenshot, that is to say, the second scrolling screenshot may not contain any redundant original content.
- FIG. 9 is another display interface of the second scrolling screenshot.
- the mobile phone detects the user's click operation on the screen, the mobile phone can complete the second scrolling screenshot and display the GUI as shown in (d) in FIG. 9.
- FIG. 9 is the translation display interface of the second scrolling screenshot.
- the translation content displayed on the translation display interface does not include the translation content of the first scrolling screenshot.
- the electronic device when the first full-screen translation is completed for the next scrolling translation, the electronic device needs to switch back to the original display interface for scrolling translation, and then switch back to the translation interface, so that the user You can view the desired translation content.
- the electronic device after the electronic device performs a full-screen translation or scrolling translation, if it detects that the user has clicked on the scrolling translation control, it may not switch back to the original text interface, but can directly load the remaining original text in the background , Take a scrolling screenshot of the remaining original text and obtain a part or all of the remaining original text. The user can continue to read the subsequent translation in the translation interface, without jumping between multiple interfaces, which improves the user's reading coherence experience.
- Figure 10 shows another set of GUIs provided by an embodiment of the present application.
- FIG. 10 is the translation display interface after the user performs scrolling translation for the first time.
- the user can slide his finger upward to view the translation content of the first scroll translation.
- (a) in FIG. 10 may be a GUI obtained according to (a) to (f) in FIG. 4 described above.
- the mobile phone can translate all the remaining original texts and present the translations corresponding to all the remaining original texts to the user.
- the continue translation control 1001 and the copy translation control may not be displayed on the translation display interface.
- the mobile phone may also prompt the user to select the percentage of the remaining original text to be translated. For example, the mobile phone may prompt the user to select 20%, 40%, 60%, 80%, or 100% of the remaining original text to be translated. .
- the mobile phone detects that the user clicks on a certain percentage, the mobile phone can take a screenshot of the remaining original text according to the percentage, and then obtain the translation of the content corresponding to the screenshot to present it to the user.
- the mobile phone can automatically capture one or more screens of the remaining original text, and then obtain a translation of the content corresponding to the screenshot to present it to the user. For example, it can be assumed that the user clicks the control 1001 once, and the mobile phone automatically takes two screens of the remaining original text.
- the user can click on the control to continue translation on the translation interface obtained after the first full-screen translation, and the mobile phone can automatically present the translations corresponding to all the remaining original texts to the user.
- the mobile phone can automatically take a scrolling screenshot of the remaining original text.
- the captured content may include all of the remaining original text.
- the scrolling screenshot process is visible or invisible to the user.
- the control 306 which can be called "scrolling translation” or "continue translation”
- there is no need to switch to (g) in Figure 3 ) Interface for scrolling screenshots but can directly display the translation interface shown in Figure 3 (k) to Figure 3 (m).
- the GUI shown in (k) in FIG. 3 to (m) in FIG. 3 may not display the scrolling screenshot control and the copy translation control.
- the mobile phone detects that the user clicks the continue translation control, and the electronic device can take a screenshot in the background (it can be a full screen After taking a screenshot, it can also be a long screenshot) automatically get more translation results of the original text and present it to the user, avoiding the jump back and forth between the original text and the target text, and can further improve the user experience when viewing the translated text.
- FIG. 11 shows a schematic flowchart of a machine translation method 1100 provided by an embodiment of the present application.
- the execution subject of the method 1100 may be a mobile phone, and the method includes:
- the mobile phone detects the operation of pressing with both hands on the original text display interface, and activates the smart screen recognition.
- the mobile phone After the mobile phone detects the operation of two-finger pressing on the display interface of the English short text, it starts the smart screen recognition, where the smart screen recognition may include full-screen translation function options and The function options of scrolling translation (function options can also be called controls).
- S1102 The mobile phone detects that the user clicks on the scrolling translation operation, and the mobile phone starts to scroll the screen automatically.
- S1103 When the mobile phone detects that the user has clicked on a certain position on the screen, or when the mobile phone detects that the original text automatically slides to the bottom of the page, the mobile phone can stop scrolling the screenshot.
- S1104 Obtain a long picture obtained through a long screenshot.
- S1105 Crop the long image obtained from the long screenshot to obtain multiple small images whose height is less than or equal to the preset height, and each small image that is cropped can be sent to the cloud for translation.
- the preset height is the height of the mobile phone screen.
- the preset height is a preset value smaller than the height of the mobile phone screen.
- the mobile phone can segment the long image generated by the long screenshot according to the relationship between the height of the image and the height of the mobile phone screen, and use OCR at the segmented position to determine whether the text or image will be truncated, and if the segment is found, the text will be truncated Or picture, move the segmentation position up to the blank line position, and get several pictures whose height is slightly less than or equal to the height of the screen.
- the multiple small pictures generated can be numbered in the order of the original text, and each small picture generated will be sent to the translation cloud for translation.
- each small picture can be numbered in the order of the original text, or it can also be understood as the mobile phone adds label information to each small picture, and combines these small pictures Send to the translation cloud for translation.
- S1106 The mobile phone obtains the translation result of each small image from the cloud.
- S1107 The mobile phone determines whether each small image is translated successfully.
- S1110 The mobile phone judges whether the translation result of all the thumbnails is received.
- S1111 If the mobile phone receives the translation results of all the thumbnails, the mobile phone can continue to determine whether the number of successfully translated pictures in all the thumbnails is less than a preset threshold.
- the mobile phone can continue to execute S1106.
- S1112 If the mobile phone determines that the number of successfully translated pictures in all the small images is less than the preset threshold, the mobile phone can use the list to try to display all the translation results.
- S1113 If the mobile phone determines that the number of successfully translated pictures in all the thumbnails is greater than or equal to a preset threshold, the mobile phone may prompt the user that the translation has failed, and prompt the user whether to perform the translation again.
- the mobile phone After the mobile phone obtains the translation result returned from the cloud, it determines whether the returned result is successfully translated, if it succeeds, the translation result is rendered and saved; if it fails, the original text is saved as the translation result.
- the mobile phone receives the translation results of all the thumbnails, it calculates whether the proportion of pages that have failed translation exceeds the set threshold (for example, the proportion of the total number of failed pages is greater than or equal to 60%), and the user is prompted to try again (probability in this case (Lower); if it succeeds, it will be sorted and displayed according to the returned page encoding order or tags (that is, the order of the original text), and the displayed content of the translation starts from the first small picture in the long picture.
- the set threshold for example, the proportion of the total number of failed pages is greater than or equal to 60%
- the mobile phone divides the long picture obtained from the long screenshot to obtain 10 small pictures, and each small picture is numbered in order and sent to the cloud.
- the mobile phone obtains the translation results of 10 small pictures from the cloud.
- the translation of 8 small pictures is successful, and the translation of 2 small pictures fails, then the mobile phone can also determine that the scrolling translation is successful.
- the mobile phone displays the translation results the translation results of these 10 small pictures can be spliced according to the number.
- the position of the two small pictures that failed to translate can display the original text, and the position of the other 8 successfully translated small pictures can display the corresponding translation .
- the mobile phone when the mobile phone sends multiple thumbnails to the cloud in S1106, it may be sent to the cloud in order, and when the translation results of multiple thumbnails are obtained from the cloud, the translation result of each thumbnail may not be obtained according to the sending order. Since the content of each small picture is different, the time when the cloud translates each small picture is also different, so the mobile phone does not need to receive the translation result of each small picture in the order in which it was sent. Since each small picture is numbered or labeled, the mobile phone can splice the translation results of multiple small pictures according to the number or label when receiving the translation results of multiple small pictures.
- S1115 The mobile phone determines whether the user continues the long screen capture operation.
- S1105-S1114 can be executed again.
- the mobile phone executes S1102-S1114 again, it can automatically jump to the last small picture of the long picture obtained from the last long screenshot to start the next scrolling translation, or it can automatically jump to the end of the long picture obtained from the last long screenshot.
- a small picture and take a long screenshot from the last paragraph or the last few paragraphs of the last small picture.
- the user can choose to continue to read the following content, that is, continue to use the scrolling translation function; or exit from the translation result page. If you return and exit, you will return to the original text content of the last small picture where the long screenshot stopped, or the last paragraph or the last few paragraphs of the last small picture; if you continue to use the scrolling translation (that is, the user wants to continue reading the subsequent content), it will Display the original text content of the last small picture where the last long screenshot was stopped, or display the original text content of the last paragraph or the last few paragraphs in the last small picture where the last long screenshot was stopped, and start a new long screenshot operation at the same time to enter a new one Cycle until the end of the article.
- the mobile phone may also display the last paragraph or the last few paragraphs of the last small picture of the long picture obtained from the last long screenshot.
- the machine translation method in the embodiments of this application has a wider range of applications. It is not limited to that users must use a browser to view news, especially when used on mobile phones. Three-party information apps, such as NetEase News, Toutiao, etc.
- the browser-based full text translation method for webpages cannot be used in the third-party APP scenario, and the machine translation method provided in this embodiment can be applied.
- the machine translation method in the embodiment of the present application can reduce the user's cumbersome operations when viewing the translation corresponding to the original text, improve the intelligence of the electronic device, and help improve the user experience of the user in the process of viewing the translation.
- the embodiments of the present application provide a machine translation method, which can be implemented in electronic devices with touch screens (such as mobile phones, tablet computers, etc.) as shown in Figures 1 and 2 .
- the method may include the following steps:
- the electronic device displays a first user interface on the touch screen, where the first user interface includes first content, and the language of the first content is the first language.
- the first user interface may be a GUI as shown in (a) in FIG. 4.
- the electronic device detects a first operation on the first user interface, and the first operation includes a user operation triggered by the user to perform scrolling translation.
- the first operation may be an operation of the user clicking on the control 401; or, the first operation may also be the user inputting a voice command that triggers the scrolling translation function.
- the first position may be the starting position of the English short text 303, for example, a scrolling screenshot is taken from the title "A family...were sleeping".
- the electronic device obtains the first picture, the first picture is the picture corresponding to the second content, the second content includes content from the first position to the second position, and the language of the second content is the first One language.
- the content displayed on the second user interface is from “I don't think...she write” to "Fee said...rocks at it.”
- the mobile phone can stop scrolling the screenshot at the end position of the last paragraph on the second user interface.
- the second position may be the end position of the paragraph "Fee said...rocks at it.”
- the second position may also be the end position of the last line of the paragraph displayed on the second user interface.
- the second position may be the end position of the section above the picture or part of the picture if the end position of the second user interface is a picture or a part of a picture.
- S1205 The electronic device automatically obtains the translation result of the second content according to the first picture, and the language of the translation result of the second content is the second language.
- the mobile phone may process the first picture according to the method in the above method 1100.
- the mobile phone may perform segmentation according to the relationship between the height of the first picture and the height of the mobile phone screen.
- the first picture is divided into multiple pictures, and then sent to the server for translation; the mobile phone can receive the translation result of each picture in the multiple pictures sent by the server, and compose the translation result of each picture into the second The translation result of the content.
- the translation result of the second content can be from the translation of the title "A family of four...attacked them” to the translation of the last paragraph before the second position "Fei said, he invoked it immediately... threw it at him stone.”
- the electronic device After automatically acquiring a part or all of the translation result of the second content, the electronic device automatically displays a third user interface, and the third user interface includes a part or all of the translation result of the second content.
- the translation result of the second content acquired by the mobile phone may be all the translation results of the second content, that is, the translation result of multiple pictures acquired by the mobile phone, and the translation result of each picture is successful; or, It can also be part of the translation result of the second content.
- the server receives multiple pictures, one of the pictures may not be translated successfully, then the mobile phone can also display a part of the translated translation, and for the untranslated picture, the mobile phone can use the picture
- the original content corresponding to the above and the translation content corresponding to other pictures constitute the translation result of the second content.
- the third user interface may be a GUI as shown in (f) in FIG. 4, and a part of the second content may be displayed on the GUI, such as displaying "a family of four...attacked them” to " Canadian National Park...bited their arms by Matthew".
- the electronic device After detecting the user's upward sliding operation on the third user interface, the electronic device can display the remaining part of the translation result of the second content. As shown in (g) in Figure 4, after the mobile phone detects the user's upward swipe operation on the touch screen, it can display the remaining translation results (from "she wrote...this fear” to "Fei said...threw a stone at him” .”).
- the method 1200 further includes:
- the electronic device detects a third operation on the fourth user interface, the fourth user interface includes the ending part of the translation result of the second content, and the third operation includes a user operation that the user triggers a scrolling translation.
- the fourth user interface may be the GUI shown in (g) in FIG. 4, and the GUI includes the ending part of the translation result of the second content, and the ending part may be "Fei said, he regrets immediately... Throw stones at him.”
- the third operation may be an operation of the user clicking the scroll translation control 403.
- the electronic device automatically displays the fifth user interface, and starts to scroll the screenshot from the third position of the fifth user interface, the fifth user interface includes third content, and the third position and the second position Related, the language of the third content is the first language.
- the fifth user interface may be the GUI shown in (h) in FIG. 4, and the third content may be English content from “Fee said...rocks at it” to "Itcould...shewrote.” .
- the GUI shows that the mobile phone starts to take a scrolling screenshot from the paragraph "Fee Said...rocks at it.”
- the scrolling screenshot when the fourth operation of the user is detected on the sixth user interface, or when scrolling to the end position, the scrolling screenshot is stopped at the fourth position of the sixth user interface, and the electronic device gets the first Two pictures, the second picture is a picture corresponding to the fourth content, the fourth content includes content from the third position to the fourth position, and the language of the fourth content is the first language.
- the sixth user interface may be a GUI as shown in (i) in FIG. 4, and when the mobile phone detects any operation of the user on the GUI, the mobile phone can stop scrolling and taking screenshots.
- the fourth position may be the end position "Incidents like these...and one in Ontario.” of the last paragraph in the GUI shown in (i) in FIG. 4.
- the fourth content included in the second picture can be English content from "Fee said...rocks at it.” to "Incidents like these...and one in Ontario.”
- the electronic device automatically obtains the translation result of the fourth content according to the second picture, and the language of the translation result of the fourth content is the second language.
- the electronic device may divide the second picture into multiple pictures and send them to the server for translation; and obtain the translation results of the multiple pictures from the server.
- the electronic device can compose the translation result of the multiple pictures into the translation result of the fourth content.
- the electronic device After automatically acquiring a part or all of the translation result of the fourth content, the electronic device automatically displays a seventh user interface, and the seventh user interface includes a part or all of the translation result of the fourth content.
- the seventh user interface may be a GUI as shown in (k) in FIG. 4, and the GUI includes a part of the translation result of the fourth content.
- the translation result displayed on the GUI ranges from "Fei said...threw a stone at him" to "She wrote...sit here.”.
- the electronic device After detecting the upward sliding operation of the user on the seventh user interface, the electronic device can display the remaining part of the translation result of the fourth content. As shown in (l) in Figure 4, after the mobile phone detects the user's upward swipe operation on the touch screen, it can display the remaining translation results (from "Elisa Rispoli did not have a request for" to "this time... in British Columbia ").
- the method 1200 further includes:
- the electronic device detects a fifth operation on the eighth user interface, the eighth user interface includes the ending part of the translation result of the second content, and the fifth operation includes a user operation that the user triggers to continue translation.
- the eighth user interface may be a GUI as shown in (b) in FIG. 10, and the GUI may be obtained through full-screen translation; or may be obtained through scrolling translation.
- the GUI may include the ending part of the translation result of the second content, and the ending part may be "Fei said, he immediately invoked...throwing a stone at him.”.
- the user can click to continue the operation of the translation control 1001.
- the electronic device In response to the fifth operation, automatically obtains the translation result of the fifth content.
- the fifth content includes part or all of the content other than the second content in all the content corresponding to the first language.
- the language of the translation result is the second language.
- the mobile phone when the mobile phone detects that the user clicks on the control 1001, the mobile phone can obtain the translation result of the original content except the original text from "A family...were sleeping" to "Fee said...rocks at it.”, that is, the mobile phone The translation result from "Meanwhile...to safety” to the end position of English short 303 "2019 Cable...All rights Reserved.” can be automatically obtained.
- a third picture can be obtained.
- the third picture includes from “Meanwhile...to Safety” to the end position of the English short 303 "2019 Cable...All rights Reserved. "Content.
- the mobile phone can divide the third picture into multiple pictures, and then send the multiple pictures to the server for translation and obtain the translation result of each picture sent by the server.
- the mobile phone can combine the translation results of multiple pictures into this The translation result of the fifth content.
- the fifth content may also include a part of content other than the second content.
- the electronic device may segment the content other than the second content.
- the second content may be the content of the first part of the multiple parts.
- the fifth content may also include a part of content that has been read before.
- the electronic device After automatically acquiring part or all of the translation result of the fifth content, the electronic device automatically displays the ninth user interface or displays the ninth user interface after receiving the user's sliding operation, and the ninth user interface includes the fifth user interface. Part or all of the translation result of the content.
- the GUI shown in (c) in FIG. 10 includes a part of the translation result of the fifth content, such as "At the same time...escape to a safe place” to "Rispolis...he On hand”.
- the method 1200 further includes: in response to the fifth operation, the electronic device automatically takes a screenshot to obtain a third picture, and the third picture includes the fifth content.
- the electronic device may obtain the third picture by taking a screenshot or scrolling the screenshot.
- the electronic device may send the third picture or a picture corresponding to a part of the third picture to the server; the electronic device receives the third picture or a part corresponding to the third picture returned by the server The translated result of the picture.
- the electronic device automatically captures the screen to obtain the third picture may be that the electronic device captures the content of one or more screens to obtain the third picture, and the process of the automatic screenshot is visible or invisible to the user.
- the process of automatically taking screenshots is not visible to the user; for example, (g) in FIG. 4 to (k) in FIG. 4 In the process of ), the process of automatic screenshot is visible to the user.
- the electronic device may continue to display the third user interface, but when the user swipes up on the touch screen, the mobile phone may display a part of the translation result of the fifth content or All.
- the method before the automatic acquisition of the translation result of the second content, the method further includes: the electronic device automatically divides the first picture into a plurality of pictures; wherein, the third position is the same as the last of the plurality of pictures.
- a specific position in a picture is related, and the specific position is: the start position or the end position or the middle position of the last picture or the position of a predetermined ratio; or, the start position of the last paragraph in the last picture or The starting position of the last n rows, n is a positive integer, and n is greater than or equal to 1.
- the first picture includes the original content from "A family...were sleeping” to “Fee said...rocks at it.”
- the mobile phone can segment the first picture to obtain multiple pictures, for example, segmentation Two pictures are obtained.
- the first picture includes the original content from "A family...were sleeping” to "The family was...clamped onto Matthew's arms.”;
- the second picture includes the text from "I don't...shewrote” "To the original content of "Fee said...rocks at it.”
- the third position may be the starting position of the second picture, and the starting position of the scrolling screenshot shown in (h) in FIG. 4 may be "I don't...she wrote”.
- the third position can be the middle position of the second picture, such as from "The wolf was...jumped into help.”, then the starting position of the scrolling screenshot shown in (h) in Figure 4 can be "The wolf was...jumped into help.”
- the third position may be a position of a predetermined ratio.
- it may be the position of two-thirds of the second picture, such as scrolling the screenshot from the line "[the wolf]...in the back". Then the starting position of the scrolling screenshot shown in (h) in Figure 4 can be "[the wolf]...in the back".
- the third position can also be the starting position of the last paragraph of the second picture.
- the last paragraph of the second picture can be "Fee said...rocks at it.” to start scrolling screenshots. .
- the third position may also be the last n lines of the last paragraph of the second picture.
- n 2
- the mobile phone can start scrolling screenshots from the line "and the two...throwing rocks".
- the automatic acquisition of the translation result of the second content includes: the electronic device sends the multiple pictures to the server; the electronic device receives the translation result of each of the multiple pictures by the server; The translation result of part of the pictures in one picture constitutes a part of the translation result of the second content, or the translation result of all pictures in the multiple pictures constitutes the translation result of the second content.
- associating the third position with the first picture includes: the third position is related to a specific position in the first picture, and the specific position is an end position or a middle position or a predetermined ratio of the first picture Or, the starting position of the last paragraph or the starting position of the last n lines in the first picture, where n is a positive integer, and n is greater than or equal to 1.
- the third position is related to the end position or the middle position of the second content or the position of a predetermined ratio; or, the third position is related to the start position of the last paragraph or the last n lines of the second content.
- the starting position is related, n is a positive integer, and n is greater than or equal to 1.
- the electronic device may divide the first picture into multiple pictures, and the third position may be related to the last picture of the multiple pictures or related to the last pictures of the multiple pictures; or The electronic device may not segment the first picture, and the third position may be related to a specific position of the first picture, or the third position may also be related to the second content displayed on the first picture.
- the electronic device jumps to the vicinity of the position where the long screenshot was stopped last time in the original text (the electronic device has memorized the position), and the electronic device can start from the vicinity of the position where the long screenshot was stopped last time (the position is different from the position
- the first picture is related, by retaining some redundancy of the content, so that the user can recall where they were last read) Start the scrolling screenshot again and send it to the server for translation.
- This method is not limited to web-based browser client translation, but can also be used in non-browser scenarios such as third-party information APPs, which greatly expands the applicable scenarios and also ensures the continuity of the user's reading experience.
- the automatically obtaining the translation result of the second content includes: the electronic device sends the first picture or a picture corresponding to a part of the first picture to the server; the electronic device receives the first picture returned by the server Or the translation result of the picture corresponding to a part of the first picture.
- the electronic device may directly send the first picture to the server for translation without segmentation; or, after the electronic device sends the first picture to the server, the server divides it into multiple segments. After translating multiple pictures, the translation result of each picture is returned to the electronic device.
- the electronic device may divide the first picture into multiple pictures, and send the first picture or the first few pictures of the multiple pictures to the server for translation ; Then obtain the translation result of the first picture or the first few pictures returned by the server.
- the translation result of the second content includes content obtained after the first picture is subjected to OCR text recognition and the text content is translated from the first language to the second language.
- the method further includes: displaying first prompt information at or near the third position, the first prompt information being used to prompt the user to scroll the starting position of the screenshot; and/or, in the The second prompt information is displayed at or near the second position, and the second prompt information is used to prompt the user to read the second position last time.
- GUI shown in (b) in Figure 8 may include first prompt information at the beginning of "Fee said...rocks at it.”, and the first prompt information may be "the beginning of this screenshot.” Start position”. The end position of "Fee said...rocks at it.” may include second prompt information, and the second prompt information may be "Last read here".
- the first operation includes the user clicking on the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the first operation may be an operation of the user clicking on the control 401, or the first operation may also be a voice command "scrolling translation" input by the user.
- the third operation includes the user clicking the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the third operation may be an operation of the user clicking the control 403, or the first operation may also be a voice command "scrolling translation" input by the user.
- the method further includes: after receiving the user's sliding operation on the third user interface, displaying a tenth user interface, the tenth user interface including the translation result included in the third user interface Related subsequent translation results.
- the mobile phone when the mobile phone detects the user's upward sliding operation, the mobile phone can display the subsequent translation result.
- the method before the third operation is detected, the method further includes: displaying a control that can trigger a scrolling translation on the fourth user interface.
- the mobile phone may display the control 403 on the display screen.
- the method before the detection of the fifth operation, the method further includes: displaying a control that can trigger the continued translation on the eighth user interface.
- the mobile phone may display the control 1001 through the display screen.
- the detecting the first operation on the first user interface includes: after detecting the user's multi-finger pressing operation on the first user interface, the electronic device displays a plurality of function controls, and the plurality of functions
- the control includes a first control that can trigger the scrolling translation; the electronic device detects that the user clicks on the first control or the user inputs a voice command that can trigger the scrolling translation function.
- the GUI shown in (a) in Figure 4 after the mobile phone detects the user's two-finger pressing operation, it can display the GUI shown in (b) in Figure 4, which can display multiple Functional controls, where multiple functional controls include control 401.
- the second content includes a part or all of the content other than the first content among all the content corresponding to the first content and the first language.
- the third content includes a part of all content corresponding to the first language other than the second content
- the fourth content includes all content corresponding to the first language except the second content. Part or all of other content.
- the third content may also include part or all of the second content; the fourth content may also include part or all of the second content.
- the method further includes: after receiving the user's sliding operation on the ninth user interface, displaying an eleventh user interface, the eleventh user interface includes the same as that included in the ninth user interface The subsequent translation result associated with the translation result.
- the GUI shown in (k) in FIG. 4 when the mobile phone detects the user's sliding operation, the subsequent translation result can be displayed.
- FIG. 13 shows a schematic flowchart of a method 1300 for machine translation provided by an embodiment of the present application. As shown in FIG. 13, the method 1300 includes:
- the electronic device displays a first user interface on the touch screen, the first user interface includes first content, and the language of the first content is the first language.
- the first user interface may be a GUI as shown in (c) in FIG. 3, and the GUI includes items from the title "A family...were sleeping” to "The family was...clamped onto Matthew's arms” English content.
- the electronic device detects a first operation of the user on the first user interface, and the first operation includes a user operation that the user triggers a full-screen translation.
- the first operation may be an operation of the user clicking on the control 305.
- the mobile phone detects that the user clicks on the control 305, it can first trigger the mobile phone to take a screenshot.
- the electronic device takes a screenshot of the first user interface to obtain a first picture.
- the first picture may be obtained by a mobile phone taking a screenshot of the original content displayed on the current screen, and the title "A family...were” displayed on the first picture Sleeping" to "The family was...clamped onto Matthew's arms” in English.
- S1304 The electronic device automatically obtains the translation result of the first content according to the first picture, and the language of the translation result of the first content is the second language.
- the electronic device may send the first picture to the server, and receive the translation result of the first picture returned by the server.
- the translation result of the above-mentioned first content includes the content obtained after the text content obtained after the optical character recognition OCR text recognition of the first picture is performed from the first language to the second language.
- the electronic device After automatically acquiring the translation result of the first content, the electronic device automatically displays a second user interface, where the second user interface includes part or all of the translation result of the first content.
- the second user interface may be a GUI as shown in (f) in FIG. 3, and the GUI includes the translation result of the first content.
- the translation results of the first content ranged from the title "A family of four...attacked them” to "Canada National Park...bited them in the arms of Matthew".
- the electronic device detects a second operation of the user on the second user interface, and the second operation includes a user operation triggered by the user to perform scrolling translation.
- the second user interface may include a control 306, and the second operation may be an operation of the user clicking the control 306.
- the mobile phone detects that the user clicks on the control 306, the mobile phone can perform a scrolling translation operation.
- the electronic device In response to the second operation, the electronic device automatically displays a third user interface and starts scrolling screenshots from a first position of the third user interface, the third user interface includes second content, and the first position is different from the first position.
- the picture is associated, and the language of the second content is the first language.
- the mobile phone after the mobile phone detects the user's operation of clicking the control 306 on the GUI as shown in (f) in FIG. 3, it can automatically display the GUI as shown in (g) in FIG. 3.
- the GUI shown in (g) in FIG. 3 is a display interface for scrolling screenshots, and the first position may be the starting position of the title "A family...were sleeping".
- the electronic device obtains a second picture, the second picture is a picture corresponding to the third content, the third content includes content from the first position to the second position, and the language of the third content is the first Language.
- the electronic device when scrolling to the end position, can automatically stop scrolling the screenshot, and the second position can be “2019 Cable News...rights Reserved.” end position.
- the second picture can be obtained, and the second picture can display the original content from the start position of the title "A family...were sleeping" to the end position of "2019 Cable News...rights Reserved.”
- S1309 The electronic device automatically obtains the translation result of the third content according to the second picture, and the language of the translation result of the third content is the second language.
- the electronic device may continue to obtain the translation result of the third content on the second picture.
- the electronic device may divide the second picture into multiple pictures and send the multiple pictures to the server for translation; the electronic device receives the translation results of the multiple pictures returned by the server, and the translation results of the multiple pictures are composed The translation result of the third content.
- the electronic device After automatically acquiring part or all of the translation result of the third content, the electronic device automatically displays a fifth user interface, where the fifth user interface includes part or all of the translation result of the third content.
- the fifth user interface may be as shown in (k) in FIG. 3, and the GUI shown in (k) in FIG. 3 includes a part of the translation result of the third content, for example, from the title Home...attacked them" to "Canada National Park...bited them in the arms of Matthew".
- the method further includes: after receiving the user's sliding operation on the fifth user interface, displaying a sixth user interface, the sixth user interface including the translation result included in the fifth user interface Related subsequent translation results.
- the electronic device When the electronic device detects the user's operation of sliding up on the touch screen, the electronic device can display more translated content. Exemplarily, from (k) in FIG. 3 to (m) in FIG. 3, the process of displaying subsequent translations after the user has swiped is shown.
- the method further includes: before the automatic acquisition of the translation result of the third content, the method further includes: the electronic device automatically divides the second picture into a plurality of pictures; and the electronic device sends the plurality of pictures to the server Picture; the electronic device receives the server's translation result of each picture in the plurality of pictures; the electronic device composes the translation result of part of the pictures in the plurality of pictures as part of the translation result of the third content, or the plurality of pictures The translation result of all the pictures in, compose the translation result of the third content.
- the translation result of the third content includes the content obtained after the text content obtained after the OCR text recognition of the second picture is performed from the first language to the second language.
- the method further includes: displaying first prompt information at or near the first position, the first prompt information being used to prompt the user to scroll the starting position of the screenshot; and/or, in the The end position of the first picture displays second prompt information, and the second prompt information is used to prompt the user to read the end position last time.
- first prompt information and the second prompt information can refer to the GUI shown in FIG. 8.
- the first prompt information and/or the second prompt information can be displayed on the scrolling screenshot interface. Prompt information.
- the second operation includes the user clicking on the first control that can trigger the scrolling translation function or the user inputting a voice command that can trigger the scrolling translation function.
- the second operation may be an operation of the user clicking on the control 306.
- the first position is associated with the first picture, including: the first position is related to a specific position in the first picture, where the specific position is: the end position or the middle of the first picture The position or the position of a predetermined proportion; or, the starting position of the last segment or the starting position of the last n lines in the first picture, n is a positive integer, and n is greater than or equal to 1.
- the scrolling screenshot can start from the paragraph "It was like...on Facebook”.
- the position of the predetermined ratio may be two-thirds of the first picture, for example, starting from the line "when the incident...Friday," a scrolling screenshot is taken.
- the first position is associated with the first picture, including: the first position is related to the end position or the middle position of the first content or a position of a predetermined proportion; or, the first position is related to the first picture.
- the starting position of the last paragraph or the starting position of the last n lines in a content is related, n is a positive integer, and n is greater than or equal to 1.
- the scrolling screenshot may start from a certain line or a certain paragraph in the English content of the title "A family...were sleeping” to "The family was...clamped onto Matthew's arms”.
- the method before the second operation of the user is detected on the second user interface, the method further includes: displaying a control that can trigger scrolling translation on the second user interface.
- a GUI as shown in (f) in FIG. 3 a control 306 may be displayed on the GUI.
- the detecting the first operation of the user on the first user interface includes: after detecting the multi-finger pressing operation of the user on the first user interface, displaying a plurality of function controls, the plurality of functions
- the control includes a first control that can trigger a full-screen translation; it is detected that the user clicks on the first control or the user inputs a voice command that can trigger the full-screen translation function.
- control 305 before the user clicks the control 305, the user can press two fingers on the GUI as shown in (c) in Figure 3, and after the mobile phone detects the user's two finger press operation, multiple controls can be displayed.
- the control includes control 305.
- the automatically acquiring the translation result of the second content includes: the electronic device sends the second picture or the picture corresponding to a part of the second picture to the server; the electronic device receives the second picture returned by the server.
- FIG. 14 shows a schematic flowchart of a method 1400 for machine translation provided by an embodiment of the present application. As shown in FIG. 14, the method 1400 includes:
- S1401 Display a first user interface on the touch screen, where the first user interface includes first content, and the language of the first content is the first language.
- a first operation of the user is detected on the first user interface, and the first operation includes a user operation of triggering a full-screen translation by the user.
- S1403 In response to the first operation, take a screenshot of the first user interface to obtain a first picture.
- S1405 After automatically acquiring the translation result of the first content, automatically display a second user interface, where the second user interface includes part or all of the translation result of the first content.
- S1401-S1405 may refer to the above description of S1301-S1305, and for the sake of brevity, details are not repeated here.
- a second operation of the user is detected on the second user interface, and the second operation includes a user operation triggered by the user to continue translation.
- the electronic device can provide the user with a control to continue translation.
- the electronic device detects that the user clicks the control to continue translation, it can directly load the translation corresponding to the remaining original text in the background All or part of. In this way, there is no need for the electronic device to jump to the original interface for scrolling screenshots, which can further enhance the user experience of the user when reading the translated text.
- the electronic device in response to the second operation, automatically takes a screenshot to obtain a second picture, and the second picture is a picture corresponding to the second content; the automatic acquisition of the translation result of the second content includes: Picture, the translation result of the second content is automatically obtained.
- the electronic device automatically acquiring the translation result of the second content includes: sending the second picture or the picture corresponding to a part of the second picture to the server; receiving the second picture or the first picture returned by the server; 2. The translation result of the picture corresponding to a part of the picture.
- the electronic device automatically taking a screenshot to obtain the second picture includes: the electronic device automatically taking a screenshot of one or more screens to obtain the second picture, and the automatic screenshot process is visible or invisible to the user.
- the electronic device automatically obtains the translation result of the second content, including: the electronic device automatically divides the second picture into multiple pictures; the electronic device sends the multiple pictures to the server; The translation result of each picture in multiple pictures; the electronic device composes the translation result of some pictures in the plurality of pictures as part of the translation result of the second content, or composes the translation result of all pictures in the plurality of pictures The translation result of the second content.
- the second operation includes the user clicking on the first control that can trigger the continued translation function or the user inputting a voice command that can trigger the continued translation function.
- the method further includes: after receiving the user's sliding operation on the third user interface, the electronic device displays a fourth user interface, and the fourth user interface includes the same as those included in the third user interface.
- the subsequent translation result associated with the translation result is not limited to:
- the method before the first operation of the user is detected on the first user interface, the method further includes: the electronic device displays a control that can trigger a full-screen translation on the first user interface.
- the method before the second operation of the user is detected on the second user interface, the method further includes: the electronic device displays a control that can trigger the continued translation on the second user interface.
- the detecting the first operation of the user on the first user interface includes: after detecting the multi-finger pressing operation of the user on the first user interface, the electronic device displays a plurality of functional controls, and Each functional control includes a first control that can trigger a full-screen translation; it is detected that a user clicks on the first control or a user input can trigger a voice command that can trigger the full-screen translation function.
- the disclosed system, device, and method may be implemented in other ways.
- the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
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)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- User Interface Of Digital Computer (AREA)
- Machine Translation (AREA)
Abstract
Description
Claims (18)
- 一种电子设备,其特征在于,包括:触摸屏;一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述触摸屏上显示第一用户界面,所述第一用户界面上包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到用户的第一操作,所述第一操作包括用户触发全屏翻译的用户操作;响应于所述第一操作:获取对所述第一用户界面进行截屏得到的第一图片;根据所述第一图片,获取所述第一内容的翻译结果,所述第一内容的翻译结果的语言为第二语言;并显示第二用户界面,所述第二用户界面包括所述第一内容的翻译结果的一部分或者全部;在所述第二用户界面上检测到用户的第二操作,所述第二操作包括用户触发进行滚屏翻译的用户操作;响应于所述第二操作,显示第三用户界面并从所述第三用户界面的第一位置开始滚动截屏,所述第三用户界面包括第二内容,所述第一位置与所述第一图片相关联或与所述第一内容相关联或与所述第一用户界面相关联,所述第二内容的语言为所述第一语言;在滚动截屏的过程中,当在第四用户界面上检测到用户的第三操作时,或者,当在所述第四用户界面滚动到结束位置时,在所述第四界面的第二位置停止滚动截屏,得到第二图片,所述第二图片为第三内容对应的图片,所述第三内容包括从所述第一位置到所述第二位置的内容,所述第三内容的语言为所述第一语言;根据所述第二图片,获取所述第三内容的翻译结果,所述第三内容的翻译结果的语言为所述第二语言;在获取所述第三内容的翻译结果的一部分或全部后,显示第五用户界面,所述第五用户界面包括所述第三内容的翻译结果的一部分或者全部。
- 根据权利要求1所述的电子设备,其特征在于,所述第一位置与所述第一图片相关联,包括:所述第一位置与所述第一图片中的特定位置相关,其中,所述特定位置为:所述第一图片的结束位置或中间位置或预定比例的位置;或者,所述第一图片中最后一段的起始位置或最后n行的起始位置,n为正整数,n大于或等于1。
- 根据权利要求1或2所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在获取所述第三内容的翻译结果之前,将所述第二图片切分为多张图片;向服务器发送所述多张图片;接收服务器对所述多张图片中每张图片的翻译结果;将所述多张图片中的部分图片的翻译结果组成所述第三内容的翻译结果的一部分,或将所述多张图片中的全部图片的翻译结果组成所述第三内容的翻译结果。
- 根据权利要求1至3中任一项所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述第一位置处或者所述第一位置附近显示第一提示信息,所述第一提示信息用于提示用户滚动截屏的起始位置;和/或,在所述第一图片的结束位置显示第二提示信息,所述第二提示信息用于提示用户上次阅读到所述结束位置。
- 根据权利要求1至4中任一项所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述第一用户界面上检测到用户的多指按压操作后,显示多个功能控件,所述多个功能控件包括能触发进行全屏翻译的第一控件;检测到用户点击所述第一控件或用户输入能触发全屏翻译功能的语音指令。
- 一种电子设备,其特征在于,包括:触摸屏;一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述触摸屏上显示第一用户界面,所述第一用户界面包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到第一操作,所述第一操作包括用户触发进行滚屏翻译的用户操作;响应于所述第一操作,从所述第一用户界面的第一位置开始滚动截屏;在滚动截屏的过程中,当在第二用户界面上检测到用户的第二操作时,或者,当在所述第二用户界面滚动到结束位置时,在所述第二用户界面的第二位置停止滚动截屏,得到第一图片,所述第一图片为第二内容对应的图片,所述第二内容包括从所述第一位置到所述第二位置的内容,所述第二内容的语言为所述第一语言;根据所述第一图片,获取所述第二内容的翻译结果,所述第二内容的翻译结果的语言为第二语言;在获取所述第二内容的翻译结果的一部分或全部后,显示第三用户界面,所述第三用户界面包括所述第二内容的翻译结果的一部分或全部。
- 根据权利要求6所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在第四用户界面上检测到第三操作,所述第四用户界面包括所述第二内容的翻译结果的结尾部分,所述第三操作包括用户触发进行滚屏翻译的用户操作;响应于所述第三操作,显示第五用户界面,并从所述第五用户界面的第三位置开始滚动截屏,所述第五用户界面包括第三内容,所述第三位置与所述第一图片相关联或与所述第二位置相关联或与所述第二内容相关联或与所述第二用户界面相关联,所述第三内容的语言为所述第一语言;在滚动截屏的过程中,当在第六用户界面上检测到用户的第四操作时,或者,当滚动到结束位置时,在所述第六用户界面的第四位置停止滚动截屏,得到第二图片,所述第二图片为第四内容对应的图片,所述第四内容包括从所述第三位置到所述第四位置的内容,所述第四内容的语言为所述第一语言;根据所述第二图片,获取所述第四内容的翻译结果,所述第四内容的翻译结果的语言为所述第二语言;在获取所述第四内容的翻译结果的一部分或全部后,显示第七用户界面,所述第七用户界面包括所述第四内容的翻译结果的一部分或全部。
- 根据权利要求7所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在获取所述第二内容的翻译结果之前,将所述第一图片切分为多张图片;其中,所述第三位置与所述多张图片中最后一张图片中的特定位置相关,所述特定位置为:所述最后一张图片的起始位置或结束位置或中间位置或预定比例的位置;或,所述最后一张图片中最后一段的起始位置或最后n行的起始位置,n为正整数,n大于或等于1。
- 根据权利要求7或8所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述第三位置处或所述第三位置附近显示第一提示信息,所述第一提示信息用于提示用户滚动截屏的起始位置;和/或,在所述第二位置处或所述第二位置附近显示第二提示信息,所述第二提示信息用于提示用户上次阅读到所述第二位置。
- 根据权利要求6所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在第八用户界面上检测到第五操作,所述第八用户界面包括所述第二内容的翻译结果的结尾部分,所述第五操作包括用户触发进行继续翻译的用户操作;响应于第五操作,获取第五内容的翻译结果,所述第五内容包括所述第一语言对应的全部内容中除所述第二内容以外的其他内容的一部分或者全部,所述第五内容的翻译结果的语言为所述第二语言;在获取所述第五内容的翻译结果的一部分或全部后,显示第九用户界面或在接收到用户的滑动操作后显示所述第九用户界面,所述第九用户界面上包括所述第五内容的翻译结果的一部分或者全部。
- 根据权利要求6至10中任一项所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在获取所述第二内容的翻译结果之前,将所述第一图片切分为多张图片;向服务器发送所述多张图片;接收服务器对所述多张图片中每张图片的翻译结果;将所述多张图片中的部分图片的翻译结果组成所述第二内容的翻译结果的一部分,或将所述多张图片中的全部图片的翻译结果组成所述第二内容的翻译结果。
- 一种电子设备,其特征在于,包括:触摸屏;一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述触摸屏上显示第一用户界面,所述第一用户界面上包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到用户的第一操作,所述第一操作包括用户触发全屏翻译的用户操作;响应于所述第一操作:对所述第一用户界面进行截屏得到第一图片;根据所述第一图片,获取所述第一内容的翻译结果,所述第一内容的翻译结果的语言为第二语言;并显示第二用户界面,所述第二用户界面包括所述第一内容的翻译结果的一部分或者全部;在所述第二用户界面上检测到用户的第二操作,所述第二操作包括用户触发进行继续翻译的用户操作;响应于所述第二操作,获取第二内容的翻译结果,所述第二内容包括所述第一语言对应的所有内容中除所述第一内容以外的其他内容的一部分或者全部,所述第二内容的翻译结果的语言为所述第二语言;在获取所述第二内容的翻译结果的一部分或者全部后,显示第三用户界面或者在接收到用户的滑动操作后显示所述第三用户界面,所述第三用户界面包括所述第二内容的翻译结果的一部分或者全部。
- 根据权利要求12所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:响应于所述第二操作,截屏获得第二图片,所述第二图片为所述第二内容对应的图片,所述截屏过程对用户不可见;将所述第二图片切分为多张图片;向服务器发送所述多张图片;接收服务器对所述多张图片中每张图片的翻译结果;将所述多张图片中的部分图片的翻译结果组成所述第二内容的翻译结果的一部分,或将所述多张图片中的全部图片的翻译结果组成所述第二内容的翻译结果。
- 根据权利要求12或13所述的电子设备,其特征在于,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行以下步骤:在所述第一用户界面上检测到用户的多指按压操作后,显示多个功能控件,所述多个功能控件包括能触发进行全屏翻译的第一控件;检测到用户点击所述第一控件或用户输入能触发全屏翻译功能的语音指令。
- 一种机器翻译的方法,所述方法应用于具有触摸屏的电子设备,其特征在于,包括:在所述触摸屏上显示第一用户界面,所述第一用户界面上包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到用户的第一操作,所述第一操作包括用户触发全屏翻译的用户操作;响应于所述第一操作:获取对所述第一用户界面进行截屏得到的第一图片;根据所述第一图片,获取所述第一内容的翻译结果,所述第一内容的翻译结果的语言为第二语言;并显示第二用户界面,所述第二用户界面包括所述第一内容的翻译结果的一部分或者全部;在所述第二用户界面上检测到用户的第二操作,所述第二操作包括用户触发进行滚屏翻译的用户操作;响应于所述第二操作,显示第三用户界面并从所述第三用户界面的第一位置开始滚动截屏,所述第三用户界面包括第二内容,所述第一位置与所述第一图片相关联或与所述第一内容相关联或与所述第一用户界面相关联,所述第二内容的语言为所述第一语言;在滚动截屏的过程中,当在第四用户界面上检测到用户的第三操作时,或者,当在所述第四用户界面滚动到结束位置时,在所述第四界面的第二位置停止滚动截屏,得到第二图片,所述第二图片为第三内容对应的图片,所述第三内容包括从所述第一位置到所述第二位置的内容,所述第三内容的语言为所述第一语言;根据所述第二图片,获取所述第三内容的翻译结果,所述第三内容的翻译结果的语言为所述第二语言;在获取所述第三内容的翻译结果的一部分或全部后,显示第五用户界面,所述第五用户界面包括所述第三内容的翻译结果的一部分或者全部。
- 一种机器翻译的方法,所述方法应用于具有触摸屏的电子设备,其特征在于,包括:在所述触摸屏上显示第一用户界面,所述第一用户界面包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到第一操作,所述第一操作包括用户触发进行滚屏翻译的用户操作;响应于所述第一操作,从所述第一用户界面的第一位置开始滚动截屏;在滚动截屏的过程中,当在第二用户界面上检测到用户的第二操作时,或者,当在所述第二用户界面滚动到结束位置时,在所述第二用户界面的第二位置停止滚动截屏,得到第一图片,所述第一图片为第二内容对应的图片,所述第二内容包括从所述第一位置到所述第二位置的内容,所述第二内容的语言为所述第一语言;根据所述第一图片,获取所述第二内容的翻译结果,所述第二内容的翻译结果的语言为第二语言;在获取所述第二内容的翻译结果的一部分或全部后,显示第三用户界面,所述第三用户界面包括所述第二内容的翻译结果的一部分或全部。
- 一种机器翻译的方法,所述方法应用于具有触摸屏的电子设备,其特征在于,包括:在所述触摸屏上显示第一用户界面,所述第一用户界面上包括第一内容,所述第一内容的语言为第一语言;在所述第一用户界面上检测到用户的第一操作,所述第一操作包括用户触发全屏翻译的用户操作;响应于所述第一操作:对所述第一用户界面进行截屏得到第一图片;根据所述第一图片,获取所述第一内容的翻译结果,所述第一内容的翻译结果的语言为第二语言;并显示第二用户界面,所述第二用户界面包括所述第一内容的翻译结果的一部分或者全部;在所述第二用户界面上检测到用户的第二操作,所述第二操作包括用户触发进行继续翻译的用户操作;响应于所述第二操作,获取第二内容的翻译结果,所述第二内容包括所述第一语言对应的所有内容中除所述第一内容以外的其他内容的一部分或者全部,所述第二内容的翻译结果的语言为所述第二语言;在获取所述第二内容的翻译结果的一部分或者全部后,显示第三用户界面或者在接收到用户的滑动操作后显示所述第三用户界面,所述第三用户界面包括所述第二内容的翻译结果的一部分或者全部。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求15至17中任一项所述的机器翻译的方法。
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP20864367.6A EP4033394A4 (en) | 2019-09-20 | 2020-09-18 | MACHINE TRANSLATION METHOD AND ELECTRONIC DEVICE |
CN202080066200.0A CN114503116A (zh) | 2019-09-20 | 2020-09-18 | 机器翻译的方法和电子设备 |
US17/762,169 US11847314B2 (en) | 2019-09-20 | 2020-09-18 | Machine translation method and electronic device |
JP2022517924A JP2022549236A (ja) | 2019-09-20 | 2020-09-18 | 機械翻訳方法および電子デバイス |
BR112022005108A BR112022005108A2 (pt) | 2019-09-20 | 2020-09-18 | Método de tradução automática e dispositivo eletrônico |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910895234.XA CN110781688B (zh) | 2019-09-20 | 2019-09-20 | 机器翻译的方法和电子设备 |
CN201910895234.X | 2019-09-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021052458A1 true WO2021052458A1 (zh) | 2021-03-25 |
Family
ID=69384112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/116128 WO2021052458A1 (zh) | 2019-09-20 | 2020-09-18 | 机器翻译的方法和电子设备 |
Country Status (6)
Country | Link |
---|---|
US (1) | US11847314B2 (zh) |
EP (1) | EP4033394A4 (zh) |
JP (1) | JP2022549236A (zh) |
CN (3) | CN112183121B (zh) |
BR (1) | BR112022005108A2 (zh) |
WO (1) | WO2021052458A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113970971A (zh) * | 2021-09-10 | 2022-01-25 | 荣耀终端有限公司 | 基于触控笔的数据处理方法和装置 |
EP4170476A4 (en) * | 2021-09-02 | 2024-01-24 | Honor Device Co., Ltd. | TRANSLATION METHOD AND ELECTRONIC DEVICE |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200100918A (ko) * | 2019-02-19 | 2020-08-27 | 삼성전자주식회사 | 카메라를 이용하는 어플리케이션을 통해 다양한 기능을 제공하는 전자 장치 및 그의 동작 방법 |
CN110109593B (zh) * | 2019-04-29 | 2021-04-02 | 维沃移动通信有限公司 | 一种截屏方法及终端设备 |
CN110442879B (zh) * | 2019-04-30 | 2024-02-13 | 华为技术有限公司 | 一种内容翻译的方法和终端 |
CN112183121B (zh) * | 2019-09-20 | 2022-02-25 | 华为技术有限公司 | 机器翻译的方法和电子设备 |
CN111553172A (zh) * | 2020-04-02 | 2020-08-18 | 支付宝实验室(新加坡)有限公司 | 翻译文案展示方法、装置、系统及存储介质 |
CN111401323A (zh) * | 2020-04-20 | 2020-07-10 | Oppo广东移动通信有限公司 | 文字翻译方法、装置、存储介质及电子设备 |
USD945464S1 (en) * | 2020-06-18 | 2022-03-08 | Apple Inc. | Display screen or portion thereof with graphical user interface |
WO2022002213A1 (zh) * | 2020-07-02 | 2022-01-06 | 华为技术有限公司 | 翻译结果显示方法、装置及电子设备 |
CN114721614A (zh) * | 2020-12-22 | 2022-07-08 | 华为技术有限公司 | 一种调用其他设备能力的方法、电子设备和系统 |
CN114970459A (zh) * | 2021-02-26 | 2022-08-30 | Oppo广东移动通信有限公司 | 文本处理方法、装置以及电子设备 |
CN114967994A (zh) * | 2021-02-26 | 2022-08-30 | Oppo广东移动通信有限公司 | 文本处理方法、装置以及电子设备 |
CN112905093B (zh) * | 2021-03-10 | 2022-11-15 | Oppo广东移动通信有限公司 | 内容显示方法、装置、存储介质及电子设备 |
EP4287005A1 (en) * | 2021-04-06 | 2023-12-06 | Samsung Electronics Co., Ltd. | Electronic device for performing capture function and method for operating electronic device |
CN113919374B (zh) * | 2021-09-08 | 2022-06-24 | 荣耀终端有限公司 | 语音翻译的方法、电子设备及存储介质 |
CN115016694A (zh) * | 2021-11-18 | 2022-09-06 | 荣耀终端有限公司 | 一种应用程序启动方法及电子设备 |
CN114995698A (zh) * | 2022-06-17 | 2022-09-02 | 维沃移动通信有限公司 | 图像处理方法、装置 |
US20240205508A1 (en) * | 2022-12-20 | 2024-06-20 | Rovi Guides, Inc. | Systems and methods for fast, intuitive, and personalized language learning from video subtitles |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110216095A1 (en) * | 2010-03-04 | 2011-09-08 | Tobias Rydenhag | Methods, Devices, and Computer Program Products Providing Multi-Touch Drag and Drop Operations for Touch-Sensitive User Interfaces |
CN104636326A (zh) * | 2014-12-30 | 2015-05-20 | 小米科技有限责任公司 | 一种文字信息的翻译方法及装置 |
CN106776582A (zh) * | 2015-11-24 | 2017-05-31 | 英业达科技有限公司 | 实时翻译系统、方法及计算机可读取记录媒体 |
CN110209456A (zh) * | 2019-05-31 | 2019-09-06 | 努比亚技术有限公司 | 屏幕界面长截图的方法、移动终端及计算机可读存储介质 |
CN110781688A (zh) * | 2019-09-20 | 2020-02-11 | 华为技术有限公司 | 机器翻译的方法和电子设备 |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0981566A (ja) | 1995-09-08 | 1997-03-28 | Toshiba Corp | 翻訳装置及び翻訳方法 |
WO2004092338A2 (en) * | 2003-04-11 | 2004-10-28 | Diadexus, Inc. | Compositions, splice variants and methods relating to cancer specific genes and proteins |
EP2347343A4 (en) * | 2008-10-29 | 2013-02-13 | Google Inc | SYSTEM AND METHOD FOR TRANSLUCTING TEXTUAL SUBTITLES FROM A VIDEO BROADCASTED ON THE WEB |
CN103294665A (zh) * | 2012-02-22 | 2013-09-11 | 汉王科技股份有限公司 | 电子阅读器文本翻译的方法及电子阅读器 |
US9570050B2 (en) * | 2012-03-13 | 2017-02-14 | Assima Switzerland Sa | System and method for enhanced screen copy |
US9985922B2 (en) * | 2015-05-29 | 2018-05-29 | Globechat, Inc. | System and method for multi-langual networking and communication |
CN105094628A (zh) * | 2015-07-31 | 2015-11-25 | 联想(北京)有限公司 | 一种截屏方法及电子设备 |
CN105487766A (zh) * | 2015-11-24 | 2016-04-13 | 努比亚技术有限公司 | 一种实现截图的方法和装置 |
US10324828B2 (en) * | 2016-03-28 | 2019-06-18 | Dropbox, Inc. | Generating annotated screenshots based on automated tests |
US9953030B2 (en) * | 2016-08-24 | 2018-04-24 | International Business Machines Corporation | Automated translation of screen images for software documentation |
JP2019537103A (ja) * | 2016-09-28 | 2019-12-19 | シストラン インターナショナル カンパニー.,リミテッド.Systran International Co.,Ltd. | 文字を翻訳する方法及びその装置 |
CN107967099A (zh) * | 2016-10-19 | 2018-04-27 | 中兴通讯股份有限公司 | 一种终端截屏的方法、装置及移动终端 |
CN107832311A (zh) * | 2017-11-30 | 2018-03-23 | 珠海市魅族科技有限公司 | 一种翻译方法、装置、终端及可读存储设备 |
CN108829686B (zh) * | 2018-05-30 | 2022-04-15 | 北京小米移动软件有限公司 | 翻译信息显示方法、装置、设备及存储介质 |
CN108959274B (zh) * | 2018-06-27 | 2022-09-02 | 维沃移动通信有限公司 | 一种应用程序的翻译方法及服务器 |
CN109271081B (zh) | 2018-07-28 | 2019-09-20 | 华为技术有限公司 | 滚动截屏的方法及电子设备 |
CN110442879B (zh) * | 2019-04-30 | 2024-02-13 | 华为技术有限公司 | 一种内容翻译的方法和终端 |
-
2019
- 2019-09-20 CN CN202010997440.4A patent/CN112183121B/zh active Active
- 2019-09-20 CN CN201910895234.XA patent/CN110781688B/zh active Active
-
2020
- 2020-09-18 WO PCT/CN2020/116128 patent/WO2021052458A1/zh unknown
- 2020-09-18 BR BR112022005108A patent/BR112022005108A2/pt unknown
- 2020-09-18 JP JP2022517924A patent/JP2022549236A/ja active Pending
- 2020-09-18 CN CN202080066200.0A patent/CN114503116A/zh active Pending
- 2020-09-18 EP EP20864367.6A patent/EP4033394A4/en active Pending
- 2020-09-18 US US17/762,169 patent/US11847314B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110216095A1 (en) * | 2010-03-04 | 2011-09-08 | Tobias Rydenhag | Methods, Devices, and Computer Program Products Providing Multi-Touch Drag and Drop Operations for Touch-Sensitive User Interfaces |
CN104636326A (zh) * | 2014-12-30 | 2015-05-20 | 小米科技有限责任公司 | 一种文字信息的翻译方法及装置 |
CN106776582A (zh) * | 2015-11-24 | 2017-05-31 | 英业达科技有限公司 | 实时翻译系统、方法及计算机可读取记录媒体 |
CN110209456A (zh) * | 2019-05-31 | 2019-09-06 | 努比亚技术有限公司 | 屏幕界面长截图的方法、移动终端及计算机可读存储介质 |
CN110781688A (zh) * | 2019-09-20 | 2020-02-11 | 华为技术有限公司 | 机器翻译的方法和电子设备 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4170476A4 (en) * | 2021-09-02 | 2024-01-24 | Honor Device Co., Ltd. | TRANSLATION METHOD AND ELECTRONIC DEVICE |
CN113970971A (zh) * | 2021-09-10 | 2022-01-25 | 荣耀终端有限公司 | 基于触控笔的数据处理方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN114503116A (zh) | 2022-05-13 |
CN112183121B (zh) | 2022-02-25 |
JP2022549236A (ja) | 2022-11-24 |
BR112022005108A2 (pt) | 2022-06-21 |
EP4033394A4 (en) | 2022-11-16 |
EP4033394A1 (en) | 2022-07-27 |
US11847314B2 (en) | 2023-12-19 |
US20220382448A1 (en) | 2022-12-01 |
CN110781688A (zh) | 2020-02-11 |
CN110781688B (zh) | 2023-11-07 |
CN112183121A (zh) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021052458A1 (zh) | 机器翻译的方法和电子设备 | |
WO2021103981A1 (zh) | 分屏显示的处理方法、装置及电子设备 | |
WO2020062294A1 (zh) | 系统导航栏的显示控制方法、图形用户界面及电子设备 | |
WO2021027725A1 (zh) | 显示页面元素的方法和电子设备 | |
KR102026717B1 (ko) | 사진 촬영 가이드 방법 및 이를 구현하는 휴대 단말 | |
WO2021104030A1 (zh) | 一种分屏显示方法及电子设备 | |
WO2020221063A1 (zh) | 切换父页面和子页面的方法、相关装置 | |
CN111176506A (zh) | 一种屏幕显示方法及电子设备 | |
WO2021000841A1 (zh) | 一种生成用户头像的方法及电子设备 | |
WO2021169399A1 (zh) | 一种暂存应用界面的方法及电子设备 | |
WO2022062898A1 (zh) | 一种窗口显示方法及设备 | |
WO2022068819A1 (zh) | 一种界面显示方法及相关装置 | |
CN110830645B (zh) | 一种操作方法和电子设备及计算机存储介质 | |
WO2022012418A1 (zh) | 拍照方法及电子设备 | |
CN112068907A (zh) | 一种界面显示方法和电子设备 | |
CN113536866A (zh) | 一种人物追踪显示方法和电子设备 | |
WO2022228042A1 (zh) | 显示方法、电子设备、存储介质和程序产品 | |
WO2023116012A9 (zh) | 屏幕显示方法和电子设备 | |
WO2022002213A1 (zh) | 翻译结果显示方法、装置及电子设备 | |
CN115268727A (zh) | 显示方法及其装置 | |
WO2024152676A1 (zh) | 一种窗口管理方法以及电子设备 | |
WO2024067122A1 (zh) | 一种窗口显示方法及电子设备 | |
WO2023160455A1 (zh) | 删除对象的方法及电子设备 | |
WO2023246666A1 (zh) | 一种搜索方法及电子设备 | |
EP4258649A1 (en) | Method for determining tracking target, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20864367 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022517924 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112022005108 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 2020864367 Country of ref document: EP Effective date: 20220420 |
|
ENP | Entry into the national phase |
Ref document number: 112022005108 Country of ref document: BR Kind code of ref document: A2 Effective date: 20220318 |