WO2019242274A1 - 一种内容处理方法及装置 - Google Patents

一种内容处理方法及装置 Download PDF

Info

Publication number
WO2019242274A1
WO2019242274A1 PCT/CN2018/123798 CN2018123798W WO2019242274A1 WO 2019242274 A1 WO2019242274 A1 WO 2019242274A1 CN 2018123798 W CN2018123798 W CN 2018123798W WO 2019242274 A1 WO2019242274 A1 WO 2019242274A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
multimedia file
interface
generate
screenshot
Prior art date
Application number
PCT/CN2018/123798
Other languages
English (en)
French (fr)
Inventor
刘叶舟
Original Assignee
北京搜狗科技发展有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京搜狗科技发展有限公司 filed Critical 北京搜狗科技发展有限公司
Publication of WO2019242274A1 publication Critical patent/WO2019242274A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04842Selection of displayed objects or displayed text elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to a content processing method and device.
  • embodiments of the present application provide a content processing method and device to solve the technical problem that users cannot share or save text by copying text in the traditional manner.
  • a content processing method includes:
  • a function option control In response to a selection operation on text, a function option control is displayed, and the function option control includes at least one operation option;
  • the generating a multimedia file including the text includes:
  • the generating the multimedia file including the text according to the preset display style according to the identified content of the text includes:
  • the generating a multimedia file including the text includes:
  • the processing the interface screenshot to generate a multimedia file including the text includes:
  • cropping processing is performed on the interface screenshot to generate a static image including the text.
  • the processing the interface screenshot to generate a multimedia file including the text includes:
  • the method further includes:
  • a content processing device includes:
  • a display unit configured to display a function option control in response to a selection operation on the text, where the function option control includes at least one operation option;
  • a generating unit configured to generate a multimedia file including the text in response to a trigger on any of the operation options
  • the processing unit is configured to send the multimedia file to a target object according to the triggered operation option, and / or save the multimedia file.
  • the generating unit specifically includes:
  • a recognition subunit configured to recognize the content of the text according to the selection operation
  • the first generating subunit is configured to generate a multimedia file including the text according to the recognized content of the text according to a preset display style.
  • the first generating subunit is specifically configured to edit the content of the recognized text according to a preset static display style to generate a static image including the text; or, Edit the content of the recognized text according to a preset dynamic display style to generate a dynamic image or video including the text.
  • the generating unit specifically includes:
  • a screenshot subunit configured to take a screenshot of the original display interface including the text, and generate a screenshot of the interface
  • a second generating subunit is configured to process the screenshot of the interface to generate a multimedia file including the text.
  • the second generating subunit is specifically configured to crop the interface screenshot in response to a cropping operation of the interface screenshot to generate a static image including the text.
  • the second generating subunit is specifically configured to identify a display position of the text on the interface screenshot, and crop the interface screenshot according to the display position, and generate Text still images.
  • the device when the triggered operation option is a sharing option, the device further includes:
  • the obtaining unit is configured to trigger display of a target object selection interface and obtain a selected target object.
  • An apparatus for content processing includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors
  • the program contains instructions for:
  • a function option control In response to a selection operation on text, a function option control is displayed, and the function option control includes at least one operation option;
  • the apparatus when executed by one or more processors, the apparatus is caused to execute the content processing method as described above.
  • the terminal device displays a function option control in response to the user's selection operation on the text, and generates the text including the text according to the user's trigger on the operation option in the option control.
  • FIG. 1 is a schematic framework diagram of an exemplary application scenario according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a content processing method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for generating a static multimedia file according to an embodiment of the present application
  • FIG. 4 is an effect drawing of an English character generation picture provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a dynamic multimedia file generation method according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for a terminal to generate a still image according to a user cropping operation according to an embodiment of the present application
  • FIG. 7 is a flowchart of a method for automatically cropping a terminal to generate a still image according to an embodiment of the present application
  • FIG. 8 is a flowchart of a method for sharing text content according to an embodiment of the present application.
  • FIG. 9 is a flowchart of a method for saving text content according to an embodiment of the present application.
  • FIG. 10 is a structural diagram of a content processing apparatus according to an embodiment of the present application.
  • FIG. 11 is a structural diagram of another content processing apparatus according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a server device according to an embodiment of the present application.
  • the inventor has found in traditional text processing research that when users want to share and / or save a text, they can use the copy function of the terminal system to copy the text of interest and share the copied text with friends Or save it in a local terminal.
  • users are restricted from copying text, such as dictionary applications, because the copyright restrictions do not allow users to copy text, so users cannot copy the corresponding text, resulting in users Unable to share or save text.
  • embodiments of the present application provide a content processing method and device.
  • the selected text is not copied, but the selected text is converted into a multimedia file according to the operation option selected by the user. , And then share the multimedia file to the target object, and / or save it locally on the terminal to share or save the text.
  • FIG. 1 is a schematic diagram of a frame of an exemplary application scenario provided by an embodiment of the present application.
  • the content processing method provided in the embodiment of the present application may be applied to the terminal 10, and the server 20 may receive the multimedia file sent by the terminal 10 and an identification about a target object, such as the terminal 30, so as to share the multimedia file to the terminal 30.
  • the user can use the terminal 10 to select the text to be shared or saved.
  • the terminal 10 displays the function option control in response to the user's selection operation.
  • the user triggers the operation option in the function option control through the terminal 10, such as sharing, and the terminal 10 responds.
  • a multimedia file including selected text is generated, and then the multimedia file is sent to the server 20 according to the target object selected by the user, and the server 20 sends the multimedia file to the terminal 30 to complete the sharing of the text content.
  • FIG. 1 is only an example in which the implementation of the present application can be implemented.
  • the scope of application of the embodiments of the present invention is not limited by any aspect of the framework.
  • the terminal 10 or the terminal 30 in the embodiment of the present application may be existing, being developed or developed in the future, and can be connected through any form of wired and / or wireless (for example, Wi-Fi, LAN, (Cellular, coaxial cable, etc.) any user equipment that enables interaction with the server 20, including but not limited to: existing, ongoing or future smart phones, non-smart phones, tablets, laptop personal computers, desktops Personal computers, small computers, medium computers, mainframe computers, etc.
  • the server 20 may be an example of an existing, under development, or future development device capable of providing information recommendation application services to users. The embodiments of the present application are not limited in this regard.
  • FIG. 2 is a flowchart of a content processing method according to an embodiment of the present application, which may include the following steps:
  • the text selection operation is triggered first, for example, by long-pressing the text on the terminal touch screen to trigger the text selection operation, the terminal responds to the user's text selection operation.
  • the corresponding function option control can be displayed on the terminal touch screen.
  • the function option control may include at least one operation option, for example, operation options such as sharing, saving, sharing and saving, sharing to a circle of friends, and sharing to Weibo.
  • the setting of the operation options can be divided into two cases.
  • One setting is that the operation options only include sharing and / or saving action instructions.
  • the terminal performs a sharing operation for the user's trigger for the operation option;
  • the function option control includes save, the terminal performs a save operation for the user's trigger for the operation option; when the function option control
  • the terminal saves the local operation when the user triggers the operation option while sharing.
  • the operation options may include not only share and / or saved action instructions, but also the target audience for sharing.
  • the terminal when the function option control includes share to friends circle, the terminal performs a share operation for the user's triggering of the operation option, and the target audience for sharing is “ Circle of friends”.
  • the operation options in the function option control can be displayed as pop-up bubbles or displayed to the user as an operation menu.
  • the user's operation of selecting text can be divided into two cases.
  • One is that the user can select specific text.
  • the user uses the terminal to translate "harmony" in the Oxford dictionary.
  • the display interface of the terminal displays the word "harmonious" and an example sentence using the word.
  • the user can select an example sentence.
  • the interface for displaying the example sentence can be long-triggered. According to the user's triggering operation, the selected cursor appears in the current interface.
  • the user can move the cursor to the starting position of the example sentence and drag With the cursor at the end of the example sentence, the terminal can select the example sentence according to the user's trigger to complete the operation, and then display a function option control in the interface for the user to choose.
  • the terminal may determine the user's long-trigger operation that includes a text interface as the selected operation, and then display a function option control in the interface for the user to select. For example, the user uses the terminal to trigger the interface displaying the word "harmonious" and the example sentence. The terminal determines the user's long-triggered operation as the selected operation, and then displays at least one operation option in the interface, such as sharing. When the user triggers the sharing operation, the terminal S202 is performed according to a user's trigger operation.
  • the terminal may generate a multimedia file including the text.
  • multimedia files can be in various media forms such as images and videos.
  • the selection operation may include two different situations.
  • the specific generation method may be different. Different forms of generating multimedia files including text will be described in subsequent embodiments. Detailed description.
  • the method may further include: triggering the display of the target object selection interface, and acquiring the selected target object so that the terminal S203 is performed according to the selected target object.
  • the terminal displays the target object selection interface to the user according to the sharing option triggered by the user.
  • the interface may include options such as “share to friends circle”, “share to Weibo”, and the terminal according to the user Trigger operation on the selection interface to obtain the selected target object. For example, if the user triggers "Share to Weibo", the terminal acquires the user selects the target object as "Weibo".
  • the terminal may generate multimedia files at different timings according to different operation option settings. For example, when the operation option includes a sharing action instruction, the terminal will generate a multimedia file including text according to the trigger of the sharing option by the user, and display the target object selection interface to the user, obtain the selected target object, and then execute S203; or, The terminal displays the target object selection interface to the user according to the user's trigger for the sharing option, acquires the selected target object, and then generates a multimedia file including text, and executes S203.
  • the operation option includes a sharing action instruction
  • the terminal will generate a multimedia file including text according to the trigger of the sharing option by the user, and display the target object selection interface to the user, obtain the selected target object, and then execute S203; or, The terminal displays the target object selection interface to the user according to the user's trigger for the sharing option, acquires the selected target object, and then generates a multimedia file including text, and executes S203.
  • the terminal device when the user wants to share the selected text to WeChat friend A, the terminal device first converts the text content into a multimedia file according to the sharing operation option triggered by the user, and then jumps to the social media platform selection interface, where the selection interface is It includes options such as "Share to friends", "Share to WeChat friends” and "Share to QQ friends". The terminal jumps to the WeChat friend selection interface based on the "Share to WeChat friends" selected by the user.
  • the WeChat friend selection interface is the target object selection interface. If the user selects friend A, that is, the target object is A, the terminal jumps to the user and A.
  • the terminal device jumps to the social media platform selection interface according to the sharing option triggered by the user, and selects "Share to WeChat friends" in the selection interface, and the terminal according to the user's Select to jump to the WeChat friend selection interface. Based on the user's operation of selecting friend A, the terminal jumps to the dialog window between the user and A, generates a multimedia file from the selected text, and sends the multimedia file to A.
  • the selection interface of the social media platform is the target object selection interface, "Friends Circle” or “Weibo” Is the target audience.
  • S203 Send the multimedia file to the target object according to the triggered operation option, and / or save the multimedia file.
  • the terminal shares and / or saves the multimedia file according to a user's trigger operation on an operation option.
  • the terminal sends the multimedia file to the target object according to the target object selected by the user.
  • the terminal saves the multimedia file on the local terminal.
  • the terminal sends the multimedia file to the target object according to the target object selected by the user, and simultaneously saves the multimedia file in the local terminal.
  • the terminal sends the generated multimedia file and the selected friend ID to the server according to the user's share to WeChat friend operation option triggered by the user, and the server sends the multimedia file to the user's selected friend according to the friend ID sent by the terminal.
  • the friend identifier is used to represent the unique friend corresponding to the identifier, and may be a friend's username, nickname, and the like.
  • the terminal can save the generated multimedia file to the local system album, so that the user can view the text information saved in the picture or video mode through the system album.
  • the terminal can also save multimedia files to the cloud to ensure that the multimedia files will not be lost.
  • the user wants to view the multimedia files, he can download from the cloud through the terminal.
  • the terminal device displays a function option control in response to the user's selection operation on the text, and generates the function option control based on the user's triggering of the operation option in the option control.
  • the multimedia file includes text, and the multimedia file is sent to the target object according to the triggered operation option, and / or the multimedia file is saved.
  • the terminal can perform different operations when generating multimedia files.
  • the specific operations of the terminal for generating multimedia files will be described in detail below.
  • the terminal recognizes the content of the text according to the selected operation, and generates the multimedia file including the text according to the preset display style of the recognized text content.
  • the terminal when the user can select specific text content, the terminal recognizes the text content selected by the user to obtain information such as the number of characters and the character type of the text content. Then, according to the recognition result, a preset display style is determined. Finally, a multimedia file including text is generated according to a preset display style.
  • the preset display style includes a display format, a display position, a fill color, and the like.
  • the display format may include a font, a color, a glyph (inclined, bold), a font size, and the like of the text.
  • the display position can be centered, left-justified text, right-justified text, or justified.
  • the fill color can be the background color of the generated multimedia file to beautify the multimedia file and improve the user's reading or viewing experience.
  • the terminal recognizes the content of the text, which may specifically include information such as identifying the type of text content (such as language information, Chinese or English, etc.) and identifying the number of characters included in the text content.
  • identifying the type of text content such as language information, Chinese or English, etc.
  • multimedia files need to be generated according to their inherent characteristics. If there is no distinction between Chinese and English, generating multimedia files in a unified manner may affect the display effect of the file, for example, "harmonious” and “harmonious”. If you generate multimedia files in the font "Songti", the display effect will be unsightly. Therefore, before generating a multimedia file, the terminal needs to identify the content of the text, so that the terminal can generate multimedia files with different effects according to the type of text content and the number of characters, and improve the visual effect of the user.
  • the multimedia file may include multiple media files such as sound, image, and video
  • the multimedia file may include a static multimedia file and a dynamic multimedia file.
  • a static multimedia file such as a static image may have a file format of JPEG, PNG, etc.
  • a dynamic multimedia file such as a moving image or video
  • a file format of a dynamic image may be GIF
  • a file format of a video may be MP4, RMVB, and the like.
  • the terminal when the terminal generates a static multimedia file or a dynamic multimedia file, the specific display styles on which the terminal is based may be different. Based on this, the generation of static multimedia files and the generation of dynamic multimedia files will be introduced separately.
  • FIG. 3 is a flowchart of a static multimedia file generation method according to an embodiment of the present application.
  • the method may include:
  • S301 Recognize the content of the text according to the selected operation.
  • the terminal recognizes the text content selected by the user to identify information such as the character type, number of characters, and font of the selected text content, so as to determine a static display style according to the identification information.
  • S302 Edit the content of the recognized text according to a preset static display style to generate a static image including a file.
  • the terminal may edit the selected text content according to a preset static display style.
  • the static display style may include a display format, a display position, and a color. For example, edit the font size, glyph, display position, and size of the still image in the text content to generate a preset still image.
  • the terminal may determine the display position of the text content according to the selected number of characters and the preset number of displayed characters per line. For example, if the selected text content includes 50 characters, and the number of characters displayed in each line is preset to 10, the generated static image includes 5 lines of selected text content.
  • the terminal can also display the selected text content in the original manner. For example, if the selected text content includes 2 lines and a total of 50 characters, the generated static image still displays the text content in 2 lines.
  • the character types include Chinese characters and English characters.
  • the terminal can perform different editing according to the type of the selected character.
  • the terminal edits according to a preset static display style. For example, for example, if the selected text is "A book selected of poems", the terminal can edit the font as "Times New Roman”, the glyph as “bold and slant”, the font size as "four”, and the number of characters (Space) 24, according to the center, two lines of display to generate a static image, as shown in Figure 4 generated effect.
  • the content of the selected text is "This is a collection of poems", the terminal can edit its font as “kai”, glyph as “inclined”, font size as "small four”, and the number of characters (including punctuation) 15 according to both ends Aligned, two-line display produces still images.
  • FIG. 5 is a flowchart of a method for generating a dynamic multimedia file according to an embodiment of the present application.
  • the method may include:
  • S501 Recognize the content of the text according to the selected operation.
  • the terminal recognizes the text content selected by the user to identify information such as the character type, number of characters, and font of the selected text content, so as to determine a dynamic display style according to the identification information.
  • S502 Edit the content of the recognized text according to a preset dynamic display style to generate a dynamic image or video including the text.
  • the terminal determines a dynamic display style according to the recognition result, and then edits the text content according to a preset dynamic display style.
  • the dynamic display style may include basic display formats, display positions, and other styles, and may also include animation effects. For example, displaying the selected text content in a fly-in form can achieve the effect of displaying the text one by one like typing. In addition, it can also be displayed in the form of rotation, floating, etc. to improve the visual effect of the user.
  • the terminal edits a text display format, a display position, and an animation effect according to a preset dynamic display style, and generates a dynamic image or video according to the editing result.
  • the above embodiment describes the operation of the terminal to generate a multimedia file when the user can select specific text.
  • the following describes another operation of the terminal to generate multimedia files when the user cannot select specific text and only triggers the terminal to display the interface.
  • the terminal takes a screenshot of the original display interface including text to generate an interface screenshot; and processes the interface screenshot to generate a multimedia file including text.
  • the terminal may take a screenshot of the original display interface including the text according to the user's long-trigger operation on the original display interface to obtain an interface screenshot.
  • the terminal may process the screenshot of the interface according to preset conditions to obtain a multimedia file including text.
  • the original display interface refers to a display interface including text. Because the data displayed on the terminal screen is distributed in multiple layers on the screen, the data displayed in each layer may be different. For example, when the user triggers the terminal screen, the first layer is used to display the text, and the second layer is used to display the function option control. When the terminal takes a screenshot of the text according to the user's trigger operation, the screenshot object should include the text The first layer, to generate a screenshot of the interface.
  • the generated interface screenshot is a screenshot of the complete original display interface and may include some non-essential information. To ensure that the generated interface screenshot includes only the text that the user wants to share or save, it is sent to the target object and / Or save the screenshot before processing to generate a multimedia file that includes only text.
  • the processing operations of the interface screenshot may include operations such as cropping, filtering, and adjusting brightness.
  • the cropping operation of the interface screenshot can be automatically completed by the terminal, or the terminal can complete the corresponding cropping in response to the cropping operation triggered by the user. Based on this, the processes of automatic cropping and manual cropping of interface screenshots by the terminal will be introduced separately.
  • the method may include:
  • S601 Take a screenshot of the original display interface including text, and generate a screenshot of the interface.
  • the user uses the terminal to trigger the cropping operation of the interface screenshot, and crops according to the desired screenshot.
  • the terminal device generates a static image including text in response to the cropping operation completed by the user. For example, a user triggers a screenshot of an interface, and the terminal displays a cropping option to the user according to the triggering operation of the user, and the user triggers the cropping option to crop the screenshot of the interface.
  • users can crop interface screenshots in up, down, left, and other directions to obtain the screenshots they need.
  • the terminal generates static images including text based on the user's cropping results.
  • the terminal generates a static image according to the user's cropping.
  • the following will introduce the automatic cropping of the terminal to generate a still image with reference to the drawings.
  • FIG. 7 is an embodiment of a method for generating a static image by automatically cropping an interface screenshot of a terminal according to an embodiment of the present application.
  • the method may include:
  • S701 Take a screenshot of the original display interface including text, and generate a screenshot of the interface.
  • S702 Identify the display position of the text in the interface screenshot, and crop the interface screenshot according to the display position to generate a static image including the text.
  • the terminal can automatically identify the display position of the text in the interface screenshot, for example, recognize the coordinate information of the text in the interface screenshot, automatically crop the interface screenshot based on the coordinate information, remove the non-text content in the interface screenshot, and only retain The text content and then generate a still image that retains only the text.
  • the terminal may also save the display position of the display interface where the text is located when the user selects the specific text.
  • you can crop the interface screenshot according to the saved historical display position. For example, when the user can select specific text, the starting coordinates of the selected text are (x1, y1) and the ending coordinates are (x2, y2), then the terminal saves the starting coordinates and the ending coordinates.
  • the terminal device automatically crops the interface screenshot, the interface screenshot may be cropped according to the above coordinate information to obtain a static image including text.
  • the terminal when the user can select specific text, the terminal can recognize the text content according to the operation option selected by the user to generate a multimedia file including the text according to a preset display style.
  • the terminal may take a screenshot of the original display interface including text according to the trigger operation, obtain an interface screenshot, and process the interface screenshot to generate a multimedia file including the text. It can be seen that, with the method provided in this embodiment, regardless of whether a user selects specific text, a multimedia file including the text can be generated, so that the multimedia file can be shared and / or saved.
  • FIG. 8 is a flowchart of a method for sharing text content according to an embodiment of the present application.
  • the method may include:
  • S801 Display a picture sharing option to the user according to the user's selection operation on the text.
  • the user can trigger the operation option of sharing in the form of pictures.
  • a social media selection interface is displayed in a pop-up window for the user to select.
  • the social media selection interface can be further displayed.
  • multiple social media icons can be displayed to the user. According to their own needs, the user triggers an icon to select the social media to share.
  • S803 Receive the social media selected by the user, and trigger the display of the target friend selection interface.
  • the target friend selection interface can be understood as a target object display interface, and in the target friend display interface, information such as avatars and nicknames of all friends related to the user in the social media can be displayed to the user.
  • the user can trigger a friend's avatar to determine the target friend.
  • S804 Receive the target friend selected by the user, and jump to the input window of the user and the target friend.
  • the user may further jump to the input window with the target friend in the social media, wherein the input window between the user and the target friend may be a chat window.
  • S805 Generate a picture including text according to a preset display style.
  • the preset display style may include information such as a display position and a display format. For a specific manner of generating a picture, refer to the foregoing embodiment.
  • S806 Display the picture in the input window and send it to the target friend.
  • the text selected by the user is converted into a picture, which is sent to a target friend via social media, and the text is shared.
  • FIG. 9 is a flowchart of a method for saving text content according to an embodiment of the present application.
  • the method may include:
  • S901 Display a picture saving option to the user according to the user's selection operation on the text.
  • the user can trigger to display the operation options saved in the form of pictures.
  • the display style of the picture can be set in advance and saved in the terminal.
  • the terminal When the user triggers the picture saving option, the terminal generates a picture including text according to the saved picture display style according to the user's trigger.
  • the terminal For a specific manner of generating the picture, refer to the foregoing embodiment.
  • pictures can also be saved to the cloud.
  • a user needs to view a picture including text, the user can view the picture stored in the cloud through a terminal.
  • the text selected by the user is converted into a picture for saving, thereby saving the text.
  • the present application further provides a content processing device, which will be described below with reference to the accompanying drawings.
  • the apparatus may include:
  • the display unit 1001 is configured to display a function option control in response to a selection operation on the text, where the function option control includes at least one operation option;
  • a generating unit 1002 configured to generate a multimedia file including the text in response to a trigger on any of the operation options
  • the processing unit 1003 is configured to send the multimedia file to a target object according to the triggered operation option, and / or save the multimedia file.
  • the generating unit specifically includes:
  • a recognition subunit configured to recognize the content of the text according to the selection operation
  • the first generating subunit is configured to generate a multimedia file including the text according to the recognized content of the text according to a preset display style.
  • the first generating subunit is specifically configured to edit the content of the recognized text according to a preset static display style to generate a static image including the text; or The content of the text is edited according to a preset dynamic display style to generate a dynamic image or video including the text.
  • the generating unit specifically includes:
  • a screenshot subunit configured to take a screenshot of the original display interface including the text, and generate an interface screenshot
  • a second generating subunit is configured to process the screenshot of the interface to generate a multimedia file including the text.
  • the second generating subunit is specifically configured to crop the interface screenshot in response to a cropping operation of the interface screenshot to generate a static image including the text.
  • the second generating subunit is specifically configured to identify a display position of the text on the interface screenshot, and perform cropping processing on the interface screenshot according to the display position to generate a text including the text. Still image.
  • the device when the triggered operation option is a sharing option, the device further includes:
  • the obtaining unit is configured to trigger display of a target object selection interface and obtain a selected target object.
  • the terminal device displays a function option control in response to the user's selection operation on the text, and generates the text including the text according to the user's trigger on the operation option in the option control.
  • the multimedia file and send the multimedia file to the target object according to the operation options triggered by the user, and / or save the multimedia file, so that when the user cannot copy or share the text, it can solve the problem by
  • the shared or saved text is converted into a multimedia file, and then the multimedia file is shared to the target object, and / or saved on the local terminal, so that the text is shared or saved.
  • FIG. 11 shows a block diagram of a content processing apparatus 1100.
  • the device 1100 may be a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the device 1100 may include one or more of the following components: a processing component 1102, a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, And communication components 1116.
  • a processing component 1102 a memory 1104, a power component 1106, a multimedia component 1108, an audio component 1110, an input / output (I / O) interface 1112, a sensor component 1114, And communication components 1116.
  • the processing component 1102 generally controls overall operations of the device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing element 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the method described above.
  • the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components.
  • the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
  • the memory 1104 is configured to store various types of data to support operation at the device 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Programming read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM Programming read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • the power supply assembly 1106 provides power to various components of the device 1100.
  • the power component 1106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1100.
  • the multimedia component 1108 includes a screen that provides an output interface between the device 1100 and a user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 1108 includes a front camera and / or a rear camera. When the device 1100 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 1110 is configured to output and / or input audio signals.
  • the audio component 1110 includes a microphone (MIC) that is configured to receive an external audio signal when the device 1100 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in the memory 1104 or transmitted via the communication component 1116.
  • the audio component 1110 further includes a speaker for outputting audio signals.
  • the I / O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, a button, or the like. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.
  • the sensor assembly 1114 includes one or more sensors for providing status assessment of various aspects of the device 1100.
  • the sensor component 1114 can detect the on / off state of the device 1100 and the relative positioning of the components.
  • the component is the display and keypad of the device 1100.
  • the sensor component 1114 can also detect changes in the position of the device 1100 or a component of the device 1100 , The presence or absence of the user's contact with the device 1100, the orientation or acceleration / deceleration of the device 1100, and the temperature change of the device 1100.
  • the sensor assembly 1114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • the sensor component 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 1114 may further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 1116 is configured to facilitate wired or wireless communication between the device 1100 and other devices.
  • the device 1100 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
  • the communication section 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
  • the communication component 1116 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra wideband
  • Bluetooth Bluetooth
  • the device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation to perform the following methods:
  • ASICs application-specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable Gate array
  • controller microcontroller, microprocessor, or other electronic component implementation to perform the following methods:
  • a function option control In response to a selection operation on text, a function option control is displayed, and the function option control includes at least one operation option;
  • the generating a multimedia file including the text includes:
  • generating the multimedia file including the text according to the preset display style according to the identified content of the text includes:
  • the generating a multimedia file including the text includes:
  • processing the screenshot of the interface to generate a multimedia file including the text includes:
  • cropping processing is performed on the interface screenshot to generate a static image including the text.
  • processing the screenshot of the interface to generate a multimedia file including the text includes:
  • the method further includes:
  • a non-transitory computer-readable storage medium including instructions can be executed by the processor 1120 of the device 1100 to complete the foregoing method.
  • the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
  • a non-transitory computer-readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enable the mobile terminal to execute a content processing method, the method includes:
  • a function option control In response to a selection operation on text, a function option control is displayed, and the function option control includes at least one operation option;
  • the generating a multimedia file including the text includes:
  • generating the multimedia file including the text according to the preset display style according to the identified content of the text includes:
  • the generating a multimedia file including the text includes:
  • processing the screenshot of the interface to generate a multimedia file including the text includes:
  • cropping processing is performed on the interface screenshot to generate a static image including the text.
  • processing the screenshot of the interface to generate a multimedia file including the text includes:
  • the method further includes:
  • FIG. 12 is a schematic structural diagram of a server in an embodiment of the present invention.
  • the server 1200 may have a large difference due to different configurations or performance, and may include one or more central processing units (CPUs) 1222 (for example, one or more processors) and memory 1232, one or one.
  • the above storage medium 1230 eg, one or one storage device with an amount of Shanghai
  • the memory 1232 and the storage medium 1230 may be temporary storage or persistent storage.
  • the program stored in the storage medium 1230 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server.
  • the central processing unit 1222 may be configured to communicate with the storage medium 1230, and execute a series of instruction operations in the storage medium 1230 on the server 1200.
  • the terminal 1200 may also include one or more power sources 1226, one or more wired or wireless network interfaces 1250, one or more input / output interfaces 1258, one or more keyboards 1256, and / or, one or more operating systems 1241. , Such as Windows ServerTM, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM and so on.
  • At least one (a), a, b, or c can represent: a, b, c, "a and b", “a and c", “b and c", or "a and b and c" ", Where a, b, and c can be single or multiple.
  • RAM random access memory
  • ROM read-only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disks, removable disks, CD-ROMs, or in technical fields Any other form of storage medium is known.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种内容处理方法和装置,其中处理方法包括:响应于对文本的选中操作,显示功能选项控件,功能选项控件中包括至少一个操作选项;响应于对任一操作选项的触发,生成包括文本的多媒体文件;根据所触发的操作选项,将多媒体文件发送给目标对象,和/或,将多媒体文件进行保存,从而可以解决当用户无法对文本进行复制分享或保存时,通过将需要分享或保存的文本转换为多媒体文件,再将多媒体文件分享给目标对象,和/或保存在本地终端,实现对该文本的分享或保存。

Description

一种内容处理方法及装置
本申请要求于2018年6月22日提交中国专利局、申请号为201810654760.2、发明名称为“一种内容处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及互联网技术领域,具体涉及一种内容处理方法及装置。
背景技术
随着互联网特别是移动互联网的日趋普及,越来越多的用户会使用各类应用程序浏览信息,在某些场景下用户也希望将信息分享给其他用户,或者将浏览的信息进行保存,例如将浏览的某段文本进行复制,将复制的文本进行分享或保存。
但是,在一些应用程序中,会限制用户对文本进行复制,例如在词典类应用程序中会因为版权等原因的限制,不允许用户进行复制等操作,从而用户无法复制文本进行分享或保存。
发明内容
有鉴于此,本申请实施例提供一种内容处理方法及装置,以解决传统方式中用户无法通过复制文本进行分享或保存的技术问题。
为解决上述问题,本申请实施例提供的技术方案如下:
一种内容处理方法,所述方法包括:
响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
在一种可能的实现方式中,所述生成包括所述文本的多媒体文件,包括:
根据所述选中操作对所述文本的内容进行识别;
将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
在一种可能的实现方式中,所述将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件,包括:
将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;
或,
将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
在一种可能的实现方式中,所述生成包括所述文本的多媒体文件,包括:
对包括所述文本的原始显示界面进行截图,生成界面截图;
对所述界面截图进行处理,生成包括所述文本的多媒体文件。
在一种可能的实现方式中,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一种可能的实现方式中,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一种可能的实现方式中,当所述所触发的操作选项为分享选项,所述方法还包括:
触发显示目标对象选择界面,获取选择的目标对象。
一种内容处理装置,所述装置包括:
显示单元,用于响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
生成单元,用于响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
处理单元,用于根据所触发的操作选项,将所述多媒体文件发送给目标对 象,和/或,将所述多媒体文件进行保存。
在一种可能的实现方式中,所述生成单元具体包括:
识别子单元,用于根据所述选中操作对所述文本的内容进行识别;
第一生成子单元,用于将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
在一种可能的实现方式中,所述第一生成子单元,具体用于将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;或,将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
在一种可能的实现方式中,所述生成单元具体包括:
截图子单元,用于对包括所述文本的原始显示界面进行截图,生成界面截图;
第二生成子单元,用于对所述界面截图进行处理,生成包括所述文本的多媒体文件。
在一种可能的实现方式中,所述第二生成子单元,具体用于响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一种可能的实现方式中,所述第二生成子单元,具体用于识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一种可能的实现方式中,当所述触发的操作选项为分享选项,所述装置还包括:
获取单元,用于触发显示目标对象选择界面,获取选择的目标对象。
一种用于内容处理的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
在一种可能的实现方式中,当由一个或多个处理器执行时,使得装置执行如上述的内容处理方法。
由此可见,本申请实施例具有如下有益效果:
在本申请实施例中,当用户想要分享和/或保存文本时,终端设备响应于用户对文本的选中操作,显示功能选项控件,根据用户对选项控件中操作选项的触发,生成包括该文本的多媒体文件,并根据用户所触发的操作选项,将多媒体文件发送给目标对象,和/或,将该多媒体文件进行保存。从而可以解决当用户无法对文本进行复制分享或保存时,通过将需要分享或保存的文本转换为多媒体文件,再将多媒体文件分享给目标对象,和/或保存在本地终端,实现对该文本的分享或保存。
附图说明
图1为本申请实施例提供的示例性应用场景的框架示意图;
图2为本申请实施例提供的一种内容处理的方法流程图;
图3为本申请实施例提供的一种静态多媒体文件生成方法流程图;
图4为本申请实施例提供的一种英文字符生成图片效果图;
图5为本申请实施例提供的一种动态多媒体文件生成方法流程图;
图6为本申请实施例提供的一种终端根据用户裁剪操作生成静态图像的方法流程图;
图7为本申请实施例提供的一种终端自动裁剪生成静态图像的方法流程图;
图8为本申请实施例提供的一种分享文本内容的方法流程图;
图9为本申请实施例提供的一种保存文本内容的方法流程图;
图10为本申请实施例提供的一种内容处理装置结构图;
图11为本申请实施例提供的另一种内容处理装置结构图;
图12为本申请实施例提供的一种服务器设备结构示意图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请实施例作进一步详细的说明。
发明人在对传统的文本处理研究中发现,当用户想要分享和/或保存某文本时,可以利用终端系统的复制功能,对感兴趣的文本进行复制操作,并将复制的文本分享给好友或者保存在本地终端,然而,在一些应用程序中,会限制用户对文本进行复制,例如字典类应用程序,因为版权的限制不允许用户对文本进行复制,从而用户无法复制相应的文本,导致用户无法分享或保存文本。
基于此,本申请实施例提供了一种内容处理方法及装置,响应于用户对文本的选中操作,不对选中的文本进行复制,而是根据用户选择的操作选项,将选中的文本转换为多媒体文件,然后将多媒体文件分享给目标对象,和/或,保存在终端本地,从而实现对文本的分享或保存。
参见图1,该图为本申请实施例提供的示例性应用场景的框架示意图。其中,本申请实施例提供的内容处理方法可以应用于终端10,服务器20可以接收终端10发送的多媒体文件以及关于目标对象的标识,目标对象如终端30,以便将多媒体文件分享给终端30。
实际应用时,用户可以使用终端10选中所要分享或保存的文本,终端10响应于用户的选中操作,显示功能选项控件,用户通过终端10触发功能选项控件中的操作选项,例如分享,终端10响应于用户的触发操作,生成包括选择文本的多媒体文件,然后根据用户选择的目标对象,将多媒体文件发送至服务器20,服务器20将多媒体文件发送给终端30,完成文本内容的分享。
本领域技术人员可以理解,图1所示的框架示意图仅是本申请的实施方式可以在其中得以实现的一个示例。本发明实施方式的适用范围不受到该框架任何方面的限制。
需要注意的是,本申请实施例中的终端10或终端30可以是现有的、正在研发的或将来研发的、能够通过任何形式的有线和/或无线连接(例如,Wi-Fi、LAN、蜂窝、同轴电缆等)实现与服务器20交互的任何用户设备,包括但不限于:现有的、正在研发的或将来研发的智能手机、非智能手机、平板电脑、膝上型个人计算机、桌面型个人计算机、小型计算机、中型计 算机、大型计算机等。还需要注意的是,本申请实施例中服务器20可以是现有的、正在研发的或将来研发的、能够向用户提供信息推荐的应用服务的设备的一个示例。本申请的实施方式在此方面不受任何限制。
以下将结合附图对本申请实施例提供的内容处理方法进行详细说明。
参见图2,该图为本申请实施例提供的一种内容处理方法流程图,可以包括以下步骤:
S201:响应于对文本的选中操作,显示功能选项控件。
当用户需要对应用程序中某些文本进行分享或保存时,首先会触发对文本的选中操作,例如通过在终端触摸屏上长按文本触发针对文本的选中操作,终端响应于用户对于文本的选中操作,可以在终端触摸屏上显示相应的功能选项控件。
其中,功能选项控件可以包括至少一个操作选项,例如,分享、保存、分享且保存、分享至朋友圈、分享至微博等操作选项。对于操作选项的设置可以分为两种情况,一种设置是操作选项仅包括分享和/或保存的动作指令。例如,当功能选项控件包括分享时,终端针对用户对于该操作选项的触发,进行分享操作;当功能选项控件包括保存时,终端针对用户对于该操作选项的触发,进行保存操作;当功能选项控件包括分享且保存操作选项时,终端针对用户对于该操作选项的触发,在分享的同时,进行本地保存。另一种设置是操作选项不仅可以包括分享和/或保存的动作指令,还包括分享的目标对象。例如,上述“分享至朋友圈”、“分享至微博”等等,当功能选项控件包括分享至朋友圈时,终端针对用户对于该操作选项的触发,进行分享操作,分享的目标对象为“朋友圈”。功能选项控件中的操作选项可以以弹出气泡,或者以操作菜单方式向用户显示。
本实施例中,用户对于文本的选中操作可以分为两种情况,一种是用户可以选择具体的文本。例如,用户利用终端在牛津字典中翻译“和谐”,终端的显示界面显示该单词“harmonious”以及使用该单词的例句,用户可以选择例句。在具体实现,当用户想要选中例句时,可以长触发显示例句的界面,终端根据用户的触发操作,在当前界面内出现选中光标,用户可以将光标移动至例句的起始位置,然后拖动光标至例句的终止位置,终端可以根据用户对完成操 作的触发实现例句的选中,然后在界面内显示功能选项控件,以供用户进行选择。
另一种情况是,用户无法选择具体的文本,终端可以将用户对于包含文本界面的长触发操作确定为选中操作,然后在界面内显示功能选项控件,以供用户进行选择。例如,用户通过终端长触发显示单词“harmonious”以及例句的界面,终端将用户的长触发操作确定为选中操作,然后在界面内显示至少一个操作选项,例如分享,当用户触发分享操作时,终端根据用户的触发操作执行S202。
S202:响应于对任意操作选项的触发,生成包括文本的多媒体文件。
本实施例中,终端在获取到用户对某操作选项的触发操作后,可以生成包括该文本的多媒体文件。其中,多媒体文件可以为图像、视频等多种媒体形式。
根据步骤S201可知,选中操作可以包括两种不同的情况,针对不同的选中操作,终端在生成多媒体文件时,具体的生成方式可能不同,对于生成包括文本的多媒体文件不同形式将在后续实施例中详细说明。
本实施例中,当操作选项仅包括动作指令,不包括目标对象时,当所触发的操作选项为分享选项时,该方法还可以包括:触发显示目标对象选择界面,获取选择的目标对象,以便终端根据所选择的目标对象执行S203。
当显示功能选项控件至少包括分享选项时,终端根据用户触发的分享选项,向用户展示目标对象选择界面,该界面可以包括“分享至朋友圈”、“分享至微博”等选项,终端根据用户在选择界面的触发操作,获取选择的目标对象。例如,用户触发的是“分享至微博”,则终端获取用户选择目标对象为“微博”。
另外,终端根据操作选项设置不同,生成多媒体文件的时机也可以不同。例如,当操作选项包括分享的动作指令时,终端根据用户对于分享选项的触发,将生成包括文本的多媒体文件,并向用户显示目标对象选择界面,获取选择的目标对象,然后执行S203;或者,终端根据用户对于分享选项的触发,向用户显示目标对象选择界面,获取选择的目标对象,再生成包括文本的多媒体文件,执行S203。
例如,当用户想要将选中的文本分享至微信好友A时,终端设备根据用户触发的分享操作选项,先将文本内容转换成多媒体文件,再跳转至社交媒体平台选择界面,在该选择界面内包括“分享至朋友圈”、“分享给微信好友”和“分享给QQ好友”等选项。终端基于用户选择的“分享给微信好友”跳转至微信好友选择界面,该微信好友选择界面即为目标对象选择界面,用户选择好友A,即目标对象为A,则终端跳转至用户与A的对话窗口,将生成的多媒体文件发送给A;或者,终端设备根据用户触发的分享选项,跳转至社交媒体平台选择界面,在该选择界面内选择“分享给微信好友”,终端根据用户的选择,跳转至微信好友选择界面,基于用户选择好友A的操作,终端跳转至用户与A的对话窗口,将选中的文本生成多媒体文件,然后将该多媒体文件发送给A。
可以理解的是,当用户在社交媒体平台选择界面选择“分享至朋友圈”或“分享至微博”时,则社交媒体平台选择界面为目标对象选择界面,“朋友圈”或“微博”为目标对象。
S203:根据触发的操作选项,将多媒体文件发送给目标对象,和/或,将多媒体文件进行保存。
本实施例中,终端根据用户对于某操作选项的触发操作,将多媒体文件进行分享和/或保存。当用户触发“分享”选项时,终端根据用户选择的目标对象,将多媒体文件发送给目标对象。当用户触发“保存”选项时,终端将多媒体文件保存在本地终端。当用户触发“分享且保存”选项时,终端根据用户选择的目标对象,将多媒体文件发送给目标对象,同时将多媒体文件保存在本地终端。
在具体实现时,例如,终端根据用户触发的分享至微信好友操作选项,将生成的多媒体文件以及选择的好友标识发送至服务器,服务器根据终端发送的好友标识将多媒文件发送给用户选择的好友对应的终端。其中,好友标识用于表征该标识对应的唯一好友,可以为好友的用户名,昵称等等。
另外,对于用户触发的保存选项,终端可以将生成的多媒体文件保存至本地系统相册,以便用户通过系统相册就可以查看以图片或者视频方式保存的文本信息。当然,终端也可以将多媒体文件保存至云端,保证多媒体文件不会丢失,当用户想要查看该多媒体文件时,可以通过终端从云端中下载。
通过本实施例提供的内容处理方法,当用户想要分享和/或保存文本时,终端设备响应于用户对文本的选中操作,显示功能选项控件,根据用户对选项控件中操作选项的触发,生成包括文本的多媒体文件,并根据触发的操作选项,将多媒体文件发送给目标对象,和/或,将该多媒体文件进行保存。可见,通过本申请提供的内容处理方法,可以解决当用户无法对文本进行复制分享或保存时,通过将需要分享或保存的文本转换为多媒体文件,再将多媒体文件分享给目标对象,和/或保存在本地终端,实现对该文本的分享或保存。
通过上述实施例可知,用户对于文本的选中操作可能存在两种情况,一种是选择具体的文本,另一种是无法选择具体文本。终端针对上述两种情况,在生成多媒体文件时,可以执行不同的操作,下面将详细介绍终端生成多媒体文件的具体操作。
在第一种生成多媒体文件的方式中,终端根据选中操作对文本的内容进行识别,将识别到的文本的内容按照预设的显示样式,生成包括文本的多媒体文件。
本实施例中,当用户可以选择具体的文本内容时,终端对用户选中的文本内容进行识别,以获得文本内容的字符个数以及字符类型等信息。然后根据识别结果,确定预设的显示样式。最后按照预设的显示样式生成包括文本的多媒体文件。
其中,预先的显示样式,包括显示格式、显示位置、填充颜色等等,显示格式可以包括文本的字体、颜色、字形(倾斜、加粗)、字号等等。显示位置可以为居中、文本左对齐、文本右对齐或者两端对齐等,填充颜色可以为所生成的多媒体文件的背景颜色,以美化多媒体文件,提高用户阅读或查看体验。
本实施例中,终端识别文本的内容,具体可以包括识别文本内容的类型(例如语种信息,中文或英文等)、识别文本内容包含的字符数等信息。由于中英文本身所具有的特征,需要根据其固有特征生成多媒体文件。如果中英文不区分,按照统一的方式生成多媒体文件,可能会影响文件显示效果,例如,“和谐”和“harmonious”,如果均按照字体为“宋体”生成多媒体文件,会造成显示效果不美观。因此,在生成多媒体文件之前,终端需要对文本的内容进行 识别,以便终端可以根据文本内容的类型以及字符数等信息生成不同效果的多媒体文件,提高用户视觉效果。
通过上述实施例可知,多媒体文件可以包括声音、图像、视频等多种媒体文件,多媒体文件可以包括静态多媒体文件和动态多媒体文件。其中,静态多媒体文件如静态图像,其文件格式可以为JPEG、PNG等,动态多媒体文件例如动态图像或视频,动态图像的文件格式可以为GIF,视频的文件格式可以为MP4、RMVB等。可以理解的是,终端在生成静态多媒体文件或动态多媒体文件时,具体所依据的显示样式可能不同。基于此,将分别介绍静态多媒体文件的生成和动态多媒体文件的生成。
参见图3,该图为本申请实施例提供的静态多媒体文件生成方法流程图,该方法可以包括:
S301:根据选中操作对文本的内容进行识别。
本实施例中,终端对用户选中的文本内容进行识别,以识别选中文本内容的字符类型、字符数、字体等信息,以便根据识别信息确定静态显示样式。
S302:将识别到的文本的内容按照预设的静态显示样式进行编辑,生成包括文件的静态图像。
本实施例中,终端可以根据预先设置的静态显示样式对选中的文本内容进行编辑。其中,静态显示样式可以包括显示格式、显示位置、颜色等。例如,编辑文本内容中字体的大小、字形、显示位置以及静态图像的大小,以生成预设的静态图像。其中,关于显示位置的编辑,终端可以根据选中的字符数以及预设的每行显示字符的个数,确定文本内容的显示位置。例如,选中的文本内容包括50个字符,预设每行显示字符的个数为10,则生成静态图像包括5行选中的文本内容。当然,终端也可以根据所选中的文本内容的原有方式进行显示,比如,选中的文本内容包括2行共50个字符,则生成的静态图像仍以2行形式显示文本内容。
可以理解的是,字符类型包括中文字符和英文字符,在具体实现时,终端可以根据选中字符的类型进行不同的编辑。
为了便于理解终端按照预设的静态显示样式进行编辑。举例说明,例如,选中的文本内容为“A book of selected poems”,终端可以编辑其字体为“Times  New Roman”,字形为“加粗倾斜”,字体大小为“四号”,字符数(计空格)24,则按照居中、两行显示生成静态图像,如图4所示生成的效果图。
例如选中的文本内容为“这是一本诗集”,终端可以编辑其字体为“楷体”,字形为“倾斜”,字体大小为“小四”,字符数(包括标点)15,则按照两端对齐、两行显示生成静态图像。
上述实施例介绍了静态多媒体文件的生成,下面将结合附图对动态多媒体文件的生成进行解释说明。
参见图5,该图为本申请实施例提供的一种动态多媒体文件生成方法流程图,该方法可以包括:
S501:根据选中操作对文本的内容进行识别。
本实施例中,终端对用户选中的文本内容进行识别,以识别选中文本内容的字符类型、字符数、字体等信息,以便根据识别信息确定动态显示样式。
S502:将识别到的文本的内容按照预设的动态显示样式进行编辑,生成包括文本的动态图像或视频。
本实施例中,终端根据识别结果确定动态显示样式,然后按照预设的动态显示样式对文本内容进行编辑。其中,动态显示样式可以包括基本的显示格式、显示位置等样式,还可以包括动画效果。例如,以飞入的形式显示选中的文本内容,从而可以达到像打字一样将文字一一展示的效果。另外,还可以以旋转、浮入等形式进行显示,以提高用户视觉效果。
本实施例中,终端根据预设的动态显示样式编辑文本的显示格式、显示位置以及动画效果,并根据编辑结果生成动态图像或者视频。
上述实施例描述了当用户可以选中具体文本时,终端生成多媒体文件的操作。下面将介绍另一种当用户无法选中具体文本,仅触发终端显示界面时,终端生成多媒体文件的操作。
在第二种生成多媒体文件的方式中,终端对包括文本的原始显示界面进行截图,生成界面截图;对界面截图进行处理,生成包括文本的多媒体文件。
在具体实现时,终端可以根据用户对于原始显示界面的长触发操作,对包括文本的原始显示界面进行截图,获得界面截图。终端可以根据预设条件对界面截图进行处理,获得包括文本的多媒体文件。
其中,原始显示界面是指包括文本的显示界面。由于终端屏幕显示的数据是分布在屏幕的多个图层中,每个图层显示的数据可能是不相同的。例如,当用户触发终端屏幕时,第一图层用于显示文本,第二图层用于显示功能选项控件,当终端根据用户的触发操作,对文本进行截图时,则截图对象应该为包括文本的第一图层,生成界面截图。
本实施例中,生成的界面截图是完整原始显示界面的截图,可能包括一些非必要的信息,为保证所生成的界面截图仅包括用户想要分享或保存的文本,在发送给目标对象和/或保存之前,对界面截图进行处理,以生成仅包括文本的多媒体文件。
在具体实现时,对于界面截图的处理操作,可以包括裁剪、滤镜、调整亮度等操作。其中,对于界面截图的裁剪操作,可以由终端自动完成,也可以由终端响应于用户触发的裁剪操作,完成相应的裁剪。基于此,将分别介绍终端对界面截图自动裁剪和人工裁剪的过程。
参见图6,该图为本申请实施例提供的一种终端根据用户裁剪操作生成多媒体文件的方法流程图,该方法可以包括:
S601:对包括文本的原始显示界面进行截图,生成界面截图。
S602:响应于对界面截图的裁剪操作,对界面截图进行裁剪处理,生成包括文本的静态图像。
本实施例中,用户利用终端触发对界面截图的裁剪操作,按照自身想要的截图进行裁剪,终端设备响应于用户完成的裁剪操作,生成包括文本的静态图像。例如,用户触发界面截图,终端根据用户的触发操作,向用户显示裁剪选项,用户触发裁剪选项,对界面截图进行裁剪。在具体应用时,用户可以在上下、左右等方向对界面截图进行裁剪,从而获得自身所需的截图,终端根据用户的裁剪结果,生成包括文本的静态图像。
上述实施例介绍了终端根据用户的裁剪生成静态图像,下面将结合附图对终端自动裁剪生成静态图像进行介绍。
参见图7,该图为本申请实施例提供的一种终端自动裁剪界面截图生成静态图像的方法实施例,该方法可以包括:
S701:对包括文本的原始显示界面进行截图,生成界面截图。
S702:识别文本在界面截图的显示位置,根据显示位置对界面截图进行裁剪处理,生成包括文本的静态图像。
本实施例中,终端可以自动识别界面截图中文本所在的显示位置,例如,识别文本在界面截图中的坐标信息,根据坐标信息自动对界面截图进行裁剪,去除界面截图中非文本内容,仅保留文本内容,然后生成仅保留文本的静态图像。
另外,终端也可以保存用户在选中具体文本时,该文本所在显示界面的显示位置。当终端自动裁剪时,可以根据保存的历史显示位置对界面截图进行裁剪处理。例如,用户在可以选中具体文本时,所选中文本的起始坐标为(x1,y1),终止坐标为(x2,y2),则终端将该起始坐标和终止坐标进行保存。当终端设备自动裁剪界面截图时,可以根据上述坐标信息对界面截图进行裁剪处理,以得到包括文本的静态图像。
通过本实施例提供的方法,当用户可以选择具体文本时,终端可以根据用户选择的操作选项对文本内容进行识别,以按照预设的显示样式,生成包括文本的多媒体文件,当用户仅触发文本所在的显示界面时,终端可以根据触发操作对包括文本的原始显示界面进行截图,获得界面截图,并对界面截图进行处理,生成包括文本的多媒文件。可见,通过本实施例提供的方法,无论用户是否选择具体文本,都可以生成包括该文本的多媒体文件,以使得该多媒体文件可以被分享和/或保存。
为便于本领域技术人员充分理解本申请提供的技术方案,下面将结合具体应用场景对本申请实施例提供的内容处理方法进行详细介绍。
参见图8,该图为本申请实施例提供的一种分享文本内容的方法流程图。
为便于理解该方法,下面将以用户选中具体文本且以图片形式分享至某好友为例进行说明,该方法可以包括:
S801:根据用户对文本的选中操作,向用户显示图片分享选项。
本实施例中,用户对需要分享的文本进行选中操作后,可以触发显示以图片方式分享的操作选项。
S802:根据用户对于图片分享选项的触发,以弹窗形式显示社交媒体选择界面,以供用户选择。
当用户触发图片分享选项,可以进一步显示社交媒体选择界面。在该社交媒体选择界面内,可以向用户显示多个社交媒体的图标。用户根据自身需求,触发某图标,从而选中要分享的社交媒体。
S803:接收用户选择的社交媒体,触发显示目标好友选择界面。
目标好友选择界面可以理解为目标对象显示界面,在该目标好友显示界面内,可以向用户显示该社交媒体内与用户相关的所有好友的头像、昵称等信息。用户可以触发某好友的头像,以确定目标好友。
S804:接收用户选择的目标好友,跳转至用户与该目标好友的输入窗口。
在用户对目标对象即目标好友进行选择后,可以进一步跳转到该社交媒体中与该目标好友的输入窗口,其中,用户与目标好友的输入窗口,可以为聊天窗口。
S805:按照预设的显示样式,生成包括文本的图片。
其中,预设的显示样式可以包括显示位置、显示格式等信息,具体生成图片的方式可以参见上述实施例。
S806:并将该图片显示在该输入窗口,发送给目标好友。
需要说明的是,本实施例中各步骤的其它可能实现方式可以参见上述方法实施例,在此不再赘述。
在本实施例中,实现了将用户所选择的文本转换为图片,通过社交媒体发送给目标好友,实现了对文本的分享。
参见图9,该图为本申请实施例提供的一种保存文本内容的方法流程图。
为便于理解,下面将以图片形式保存选中文本为例进行说明,该方法可以包括:
S901:根据用户对文本的选中操作,向用户显示图片保存选项。
本实施例中,用户对需要保存的文本进行选中操作后,可以触发显示以图片方式保存的操作选项。
S902:响应于用户对于图片保存选项的触发操作,按照预设的图片显示样式,生成包括文本的图片。
本实施例中,图片的显示样式可以预先设置并保存在终端。当用户触发图片保存选项时,终端根据用户的触发,按照保存的图片显示样式生成包括文本的图片,具体生成图片的方式可以参见上述实施例。
S903:将图片保存到系统相册。
可以理解的是,图片还可以保存到云端,当用户需要查看包括文本的图片时,用户可以通过终端阅览保存在云端的图片。
需要说明的是,本实施例中各步骤的其它可能实现方式可以参见上述方法实施例,在此不再赘述。
在本实施例中,实现了将用户所选择的文本转换为图片进行保存,从而实现了对文本的保存。
基于上述方法实施例,本申请还提供了一种内容处理装置,下面将结合附图对该装置进行介绍。
参见图10,该图为本申请实施提供的一种内容处理装置,该装置可以包括:
显示单元1001,用于响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
生成单元1002,用于响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
处理单元1003,用于根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
在一些实施方式中,所述生成单元具体包括:
识别子单元,用于根据所述选中操作对所述文本的内容进行识别;
第一生成子单元,用于将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
在一些实施方式中,所述第一生成子单元,具体用于将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;或,将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
在一些实施方式中,所述生成单元具体包括:
截图子单元,用于对包括所述文本的原始显示界面进行截图,生成界面截 图;
第二生成子单元,用于对所述界面截图进行处理,生成包括所述文本的多媒体文件。
在一些实施方式中,所述第二生成子单元,具体用于响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一些实施方式中,所述第二生成子单元,具体用于识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
在一些实施方式中,当所述触发的操作选项为分享选项,所述装置还包括:
获取单元,用于触发显示目标对象选择界面,获取选择的目标对象。
在本申请实施例中,当用户想要分享和/或保存文本时,终端设备响应于用户对文本的选中操作,显示功能选项控件,根据用户对选项控件中操作选项的触发,生成包括该文本的多媒体文件,并根据用户所触发的操作选项,将多媒体文件发送给目标对象,和/或,将该多媒体文件进行保存,从而可以解决当用户无法对文本进行复制分享或保存时,通过将需要分享或保存的文本转换为多媒体文件,再将多媒体文件分享给目标对象,和/或保存在本地终端,实现对该文本的分享或保存。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图11示出了一种内容处理装置1100的框图。例如,装置1100可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图11,装置1100可以包括以下一个或多个组件:处理组件1102,存储器1104,电源组件1106,多媒体组件1108,音频组件1110,输入/输出(I/O)的接口1112,传感器组件1114,以及通信组件1116。
处理组件1102通常控制装置1100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1102可以包括一个或多个处理器1120来执行指令,以完成上述的方法的全部或部分步 骤。此外,处理组件1102可以包括一个或多个模块,便于处理组件1102和其他组件之间的交互。例如,处理部件1102可以包括多媒体模块,以方便多媒体组件1108和处理组件1102之间的交互。
存储器1104被配置为存储各种类型的数据以支持在设备1100的操作。这些数据的示例包括用于在装置1100上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件1106为装置1100的各种组件提供电力。电源组件1106可以包括电源管理系统,一个或多个电源,及其他与为装置1100生成、管理和分配电力相关联的组件。
多媒体组件1108包括在所述装置1100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1108包括一个前置摄像头和/或后置摄像头。当设备1100处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1110被配置为输出和/或输入音频信号。例如,音频组件1110包括一个麦克风(MIC),当装置1100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1104或经由通信组件1116发送。在一些实施例中,音频组件1110还包括一个扬声器,用于输出音频信号。
I/O接口1112为处理组件1102和外围接口模块之间提供接口,上述 外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件1114包括一个或多个传感器,用于为装置1100提供各个方面的状态评估。例如,传感器组件1114可以检测到设备1100的打开/关闭状态,组件的相对定位,例如所述组件为装置1100的显示器和小键盘,传感器组件1114还可以检测装置1100或装置1100一个组件的位置改变,用户与装置1100接触的存在或不存在,装置1100方位或加速/减速和装置1100的温度变化。传感器组件1114可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1114还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1114还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1116被配置为便于装置1100和其他设备之间有线或无线方式的通信。装置1100可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1116还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置1100可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行下述方法:
响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
可选的,所述生成包括所述文本的多媒体文件,包括:
根据所述选中操作对所述文本的内容进行识别;
将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
可选的,所述将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件,包括:
将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;
或,
将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
可选的,所述生成包括所述文本的多媒体文件,包括:
对包括所述文本的原始显示界面进行截图,生成界面截图;
对所述界面截图进行处理,生成包括所述文本的多媒体文件。
可选的,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
可选的,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
可选的,当所述所触发的操作选项为分享选项,所述方法还包括:
触发显示目标对象选择界面,获取选择的目标对象。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1104,上述指令可由装置1100的处理器1120执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种内容处理方法,所述方法包括:
响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
可选的,所述生成包括所述文本的多媒体文件,包括:
根据所述选中操作对所述文本的内容进行识别;
将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
可选的,所述将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件,包括:
将所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;
或,
将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
可选的,所述生成包括所述文本的多媒体文件,包括:
对包括所述文本的原始显示界面进行截图,生成界面截图;
对所述界面截图进行处理,生成包括所述文本的多媒体文件。
可选的,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
可选的,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
可选的,当所述所触发的操作选项为分享选项,所述方法还包括:
触发显示目标对象选择界面,获取选择的目标对象。
图12是本发明实施例中服务器的结构示意图。该服务器1200可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1222(例如,一个或一个以上处理器)和存储器1232,一个或一个以上存储应用程序1242或数据1244的存储介质1230(例如一个或一个以上海量存储设备)。其中,存储器1232和存储介质1230可以是短暂存储或持久存储。存储在存储介质1230的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1222可以设置为与存储介质1230通信,在服务器1200上执行存储介质1230中的一系列指令操作。
终端1200还可以包括一个或一个以上电源1226,一个或一个以上有线或无线网络接口1250,一个或一个以上输入输出接口1258,一个或一个以上键盘1256,和/或,一个或一个以上操作系统1241,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统或装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素 的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (16)

  1. 一种内容处理方法,其特征在于,所述方法包括:
    响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
    响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
    根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
  2. 根据权利要求1所述的方法,其特征在于,所述生成包括所述文本的多媒体文件,包括:
    根据所述选中操作对所述文本的内容进行识别;
    将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
  3. 根据权利要求2所述的方法,其特征在于,所述将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件,包括:
    将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;
    或,
    将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
  4. 根据权利要求1所述的方法,其特征在于,所述生成包括所述文本的多媒体文件,包括:
    对包括所述文本的原始显示界面进行截图,生成界面截图;
    对所述界面截图进行处理,生成包括所述文本的多媒体文件。
  5. 根据权利要求4所述的方法,其特征在于,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
    响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
  6. 根据权利要求4所述的方法,其特征在于,所述对所述界面截图进行处理,生成包括所述文本的多媒体文件,包括:
    识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
  7. 根据权利要求1所述的方法,其特征在于,当所述所触发的操作选项为分享选项,所述方法还包括:
    触发显示目标对象选择界面,获取选择的目标对象。
  8. 一种内容处理装置,其特征在于,所述装置包括:
    显示单元,用于响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
    生成单元,用于响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
    处理单元,用于根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
  9. 根据权利要求8所述的装置,其特征在于,所述生成单元具体包括:
    识别子单元,用于根据所述选中操作对所述文本的内容进行识别;
    第一生成子单元,用于将识别到的所述文本的内容按照预设的显示样式,生成包括所述文本的多媒体文件。
  10. 根据权利要求9所述的装置,其特征在于,所述第一生成子单元,具体用于将识别到的所述文本的内容按照预设的静态显示样式进行编辑,生成包括所述文本的静态图像;或,将识别到的所述文本的内容按照预设的动态显示样式进行编辑,生成包括所述文本的动态图像或者视频。
  11. 根据权利要求8所述的装置,其特征在于,所述生成单元具体包括:
    截图子单元,用于对包括所述文本的原始显示界面进行截图,生成界面截图;
    第二生成子单元,用于对所述界面截图进行处理,生成包括所述文本的多媒体文件。
  12. 根据权利要求11所述的装置,其特征在于,所述第二生成子单元,具体用于响应于对所述界面截图的裁剪操作,对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
  13. 根据权利要求11所述的装置,其特征在于,所述第二生成子单元, 具体用于识别所述文本在所述界面截图的显示位置,根据所述显示位置对所述界面截图进行裁剪处理,生成包括所述文本的静态图像。
  14. 根据权利要求8所述的装置,其特征在于,当所述触发的操作选项为分享选项,所述装置还包括:
    获取单元,用于触发显示目标对象选择界面,获取选择的目标对象。
  15. 一种用于内容处理的装置,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
    响应于对文本的选中操作,显示功能选项控件,所述功能选项控件中包括至少一个操作选项;
    响应于对任一所述操作选项的触发,生成包括所述文本的多媒体文件;
    根据所触发的操作选项,将所述多媒体文件发送给目标对象,和/或,将所述多媒体文件进行保存。
  16. 一种计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1至7中一个或多个所述的内容处理方法。
PCT/CN2018/123798 2018-06-22 2018-12-26 一种内容处理方法及装置 WO2019242274A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810654760.2 2018-06-22
CN201810654760.2A CN110704647B (zh) 2018-06-22 2018-06-22 一种内容处理方法及装置

Publications (1)

Publication Number Publication Date
WO2019242274A1 true WO2019242274A1 (zh) 2019-12-26

Family

ID=68983480

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123798 WO2019242274A1 (zh) 2018-06-22 2018-12-26 一种内容处理方法及装置

Country Status (2)

Country Link
CN (1) CN110704647B (zh)
WO (1) WO2019242274A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221457A (zh) * 2020-01-08 2020-06-02 腾讯科技(深圳)有限公司 多媒体内容的调整方法、装置、设备及可读存储介质
CN111506310A (zh) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 生成多平台样式的方法、装置、设备及存储介质
CN113347479A (zh) * 2021-05-31 2021-09-03 网易(杭州)网络有限公司 多媒体素材的编辑方法、装置、设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507352B (zh) * 2020-04-16 2021-09-28 腾讯科技(深圳)有限公司 一种图像处理方法、装置、计算机设备以及存储介质
CN114063854A (zh) * 2021-11-24 2022-02-18 维沃移动通信有限公司 文件编辑处理方法、装置和电子设备
CN117651198A (zh) * 2022-09-02 2024-03-05 腾讯云计算(北京)有限责任公司 媒体内容的创作方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625696A (zh) * 2009-08-03 2010-01-13 孟智平 一种构造和生成网页中视频元素的方法及系统
CN102193905A (zh) * 2011-05-26 2011-09-21 广东威创视讯科技股份有限公司 基于gdi/gdi+的虚拟文本编辑方法及装置
CN103634700A (zh) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 移动通信终端向智能电视推送多媒体文件的方法及装置
CN104660797A (zh) * 2013-11-25 2015-05-27 中兴通讯股份有限公司 操作处理方法及装置

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294981A1 (en) * 2007-05-21 2008-11-27 Advancis.Com, Inc. Page clipping tool for digital publications
US8312390B2 (en) * 2009-06-10 2012-11-13 Microsoft Corporation Dynamic screentip language translation
CN102779008B (zh) * 2012-06-26 2016-06-22 北京奇虎科技有限公司 一种屏幕截图方法和系统
CN102855059B (zh) * 2012-08-21 2015-04-08 东莞宇龙通信科技有限公司 终端和信息分享方法
CN104123383B (zh) * 2014-08-04 2018-04-10 杭州网易云音乐科技有限公司 一种在媒体应用中使用的方法及装置
CN105739821B (zh) * 2016-01-26 2019-11-15 三星电子(中国)研发中心 移动终端的操作处理方法及装置
US10324828B2 (en) * 2016-03-28 2019-06-18 Dropbox, Inc. Generating annotated screenshots based on automated tests
CN105912610A (zh) * 2016-04-06 2016-08-31 乐视控股(北京)有限公司 一种基于文字信息引导分享的方法和装置
CN106469094A (zh) * 2016-09-05 2017-03-01 维沃移动通信有限公司 一种文字信息分享方法及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625696A (zh) * 2009-08-03 2010-01-13 孟智平 一种构造和生成网页中视频元素的方法及系统
CN102193905A (zh) * 2011-05-26 2011-09-21 广东威创视讯科技股份有限公司 基于gdi/gdi+的虚拟文本编辑方法及装置
CN104660797A (zh) * 2013-11-25 2015-05-27 中兴通讯股份有限公司 操作处理方法及装置
CN103634700A (zh) * 2013-12-23 2014-03-12 乐视致新电子科技(天津)有限公司 移动通信终端向智能电视推送多媒体文件的方法及装置

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221457A (zh) * 2020-01-08 2020-06-02 腾讯科技(深圳)有限公司 多媒体内容的调整方法、装置、设备及可读存储介质
CN111506310A (zh) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 生成多平台样式的方法、装置、设备及存储介质
CN111506310B (zh) * 2020-03-24 2024-04-05 深圳赛安特技术服务有限公司 生成多平台样式的方法、装置、设备及存储介质
CN113347479A (zh) * 2021-05-31 2021-09-03 网易(杭州)网络有限公司 多媒体素材的编辑方法、装置、设备及存储介质
CN113347479B (zh) * 2021-05-31 2023-05-26 网易(杭州)网络有限公司 多媒体素材的编辑方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN110704647A (zh) 2020-01-17
CN110704647B (zh) 2024-04-16

Similar Documents

Publication Publication Date Title
WO2019242274A1 (zh) 一种内容处理方法及装置
US10728196B2 (en) Method and storage medium for voice communication
WO2022063176A1 (zh) 用于发布视频或图像的方法、装置、设备和介质
KR102350329B1 (ko) 전화 통화 동안의 실시간 공유 기법
US10852912B2 (en) Image creation app in messaging app
US9560414B1 (en) Method, apparatus and system for dynamic content
CN109089044B (zh) 用于图像处理的便携式通信设备
CN107113468B (zh) 一种移动计算设备以及实现的方法、计算机存储介质
WO2016124095A1 (zh) 生成视频的方法、装置及终端
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
KR20230007517A (ko) 공유 방법, 공유 장치와 전자 기기
US10957012B2 (en) System and method for processing image information
WO2017088247A1 (zh) 输入处理方法、装置及设备
CN111970571B (zh) 视频制作方法、装置、设备及存储介质
WO2022142871A1 (zh) 视频录制方法及装置
CN108495168B (zh) 弹幕信息的显示方法及装置
WO2017080084A1 (zh) 字体添加方法及装置
US20210165670A1 (en) Method, apparatus for adding shortcut plug-in, and intelligent device
US11836342B2 (en) Method for acquiring historical information, storage medium, and system
WO2023061414A1 (zh) 一种文件生成方法、装置及电子设备
KR20150068509A (ko) 메신저 프로그램에서의 이미지를 이용한 커뮤니케이션 방법, 이를 위한 장치 및 시스템
US20150350120A1 (en) Method and device for managing instant message
WO2022068721A1 (zh) 截屏方法、装置及电子设备
WO2022134390A1 (zh) 标注方法及装置、电子设备和存储介质
CN109756783B (zh) 海报的生成方法及装置

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: 18923231

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18923231

Country of ref document: EP

Kind code of ref document: A1