Method for generating text dial, terminal device and computer readable storage medium
By identifying text labels and matching templates to generate text dials, the problems of unsightly and limited choices in the prior art are solved, and the user experience and product playability are improved.
Patent Information
- Application Number
- CN202011138570.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-10-22
AI Technical Summary
The existing technology lacks classification and color optimization when generating text dials, resulting in the generated dials being unsightly, poor user experience, and limited choices.
By identifying text tags, matching the corresponding text templates, and generating text dials based on the templates, providing terminal devices and computer-readable storage media, processing of any text tags is realized, generating multiple text dials, and improving user experience.
Provide users with more choices, improve the playability and surprise of the product, enhance the user experience, and the generated dial is more beautiful and personalized.
Smart Images

Figure CN114387502B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of graphics, and in particular to a method for generating a text dial, a terminal device and a computer-readable storage medium. Background Art
[0002] In the prior art, the styles of generating other related text dials based on pictures containing text are very fixed, without classification and without optimization of extracted colors. For example, the generation scheme of the dressing dial is not beautiful and has poor playability. Moreover, the number is relatively small, and the user experience is not good. Summary of the invention
[0003] The embodiments of the present invention provide a method for generating a text dial, a terminal device, and a computer-readable storage medium, which are used for the terminal device to process any text label to generate a text dial, thereby providing users with more choices and improving user experience.
[0004] In view of this, a first aspect of an embodiment of the present invention provides a method for generating a text dial, which may include:
[0005] Recognize text labels;
[0006] Matching a corresponding text template according to the text label;
[0007] A text dial is generated according to the text template.
[0008] A second aspect of an embodiment of the present invention provides a terminal device, which may include:
[0009] Acquisition module, used to identify text labels;
[0010] The processing module is used to match the corresponding text template according to the text label; and generate a text dial according to the text template.
[0011] A third aspect of an embodiment of the present invention provides a terminal device, which may include:
[0012] A memory storing executable program code;
[0013] a processor coupled to the memory;
[0014] and a display connected to the processor;
[0015] The processor calls the executable program code stored in the memory to execute the method described in the first aspect of the present invention, and the processor is used to control the display to execute the method described in the first aspect of the present invention.
[0016] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect of the present invention.
[0017] A fifth aspect of an embodiment of the present invention discloses a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present invention.
[0018] A sixth aspect of an embodiment of the present invention discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect of the embodiment of the present invention.
[0019] It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
[0020] In the embodiment of the present invention, the text label is identified; the corresponding text template is matched according to the text label; and the text dial is generated according to the text template. That is, the terminal device can process any text label and generate one or more text dials, providing users with more choices, improving user experience, and increasing the playability and surprise of the product. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and other drawings can be obtained based on these drawings.
[0022] Figure 1 A schematic diagram of an embodiment of a method for generating a text dial in an embodiment of the present invention;
[0023] Figure 2A A schematic diagram of a terminal device acquiring and displaying a first image in an embodiment of the present invention;
[0024] Figure 2B A schematic diagram of cropping a first picture to obtain a second picture in an embodiment of the present invention;
[0025] Figure 3 It is a schematic diagram of another embodiment of the method for generating a text dial in an embodiment of the present invention;
[0026] Figure 4A A schematic diagram of a process for generating a dial in an embodiment of the present invention;
[0027] Figure 4B A schematic diagram of generating a dial for a wearable device in an embodiment of the present invention;
[0028] Figure 5A A schematic diagram of an embodiment of a terminal device in an embodiment of the present invention;
[0029] Figure 5B A schematic diagram of another embodiment of a terminal device in an embodiment of the present invention;
[0030] Figure 6 FIG. 2 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The embodiments of the present invention provide a method for generating a text dial, a terminal device, and a computer-readable storage medium, which are used for the terminal device to process any text label to obtain other related text dials, thereby providing users with more choices and improving user experience.
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments in the present invention, they should all fall within the scope of protection of the present invention.
[0033] It can be understood that the terminal devices involved in the embodiments of the present invention may include general handheld electronic terminals, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDA), portable multimedia players (Personal Media Player, PMP) devices, laptop computers, notebooks (NotePad), wireless broadband (Wireless Broadband, Wibro) terminals, tablet computers (personal computers, PCs), smart PCs, POS (Point of Sales, sales terminals) and vehicle-mounted computers, etc.
[0034] The wearable device involved in the embodiment of the present invention refers to a portable electronic device that can be directly worn on a person, or integrated into the person's clothes or accessories. Wearable devices are not only hardware devices, but can also realize powerful intelligent functions through software support, data interaction, and cloud interaction, such as: calculation function, positioning function, and alarm function, and can also be connected to mobile phones and various terminals. The wearable device in the embodiment of the present invention has the function of displaying pictures, and may include but is not limited to watches supported by wrists (such as watches, wrists, etc.), shoes supported by feet (such as shoes, socks or other products worn on the legs), Glass supported by the head (such as glasses, helmets, headbands, etc.) and various non-mainstream product forms such as smart clothing, school bags, crutches, accessories, etc.
[0035] The technical solution of the present invention is further described below by way of embodiments. Figure 1 FIG. 1 is a schematic diagram of an embodiment of a method for generating a text dial in an embodiment of the present invention, which may include:
[0036] 101. Identify text labels.
[0037] It is understandable that a text label refers to content related to text, such as the text part in a picture, the text part in a web page, the text part in an interactive interface, the text content input by a user, etc. Optionally, the text itself can be divided into many types, which can be called text types; among them, the text type can include Chinese, English, French, etc.
[0038] The terminal device recognizes the text label, which may include but is not limited to the following implementation methods:
[0039] (1) The terminal device recognizes a first image, where the first image includes text.
[0040] It is understandable that the first picture can be the first picture obtained by taking pictures by a camera of a terminal device; illustratively, the terminal device responds to a user's shooting operation, takes pictures by a camera, obtains the first picture and identifies it; or, the first picture is sent by other devices; or, the terminal device responds to a user's selection operation of a picture in a picture library (such as an album) to determine the first picture; or, the terminal device responds to a user's download operation (such as a user downloading photos on a web page or downloading photos in the display interface of each application) to obtain the first picture; or, the terminal device obtains the first picture by scanning a code (such as a QR code, a 3D code, a 4QR code, etc.); or, the terminal device obtains the first picture by taking a screenshot, etc., and no specific limitation is made here.
[0041] The terminal device receives the first image sent by the other device through a wired method or a wireless method (such as Bluetooth, Wireless Fidelity (Wi-Fi), etc.), which is not limited here. It is understandable that the text included in the first image can be Chinese, English, French, Japanese, Korean, etc., or a minority language, or a combination of various languages, which is not limited here. For example, Figure 2A , which is a schematic diagram of a terminal device acquiring and displaying a first image in an embodiment of the present invention.
[0042] Or, (2) the terminal device recognizes the text label in response to the user's operation of inputting text; for example, in response to the user opening a page for generating a text dial, if the terminal device detects the user's operation of inputting text, the text label can be automatically recognized. It should be noted that the terminal device does not need to detect what text is recognized, but only needs to detect that the user input is text, not an image, etc.
[0043] Or, (3) the terminal device recognizes the text label in response to the user's selection operation of the text type in the preset type. It can be understood that the preset type can be a plurality of types of generated dials preset on the terminal device, so that the user can select the type of dial to be generated. The preset type can include text type, grid type, stripe type, etc., which are not specifically limited here.
[0044] Optionally, the terminal device recognizes the text label when a preset condition is met, wherein the preset condition may include but is not limited to the following conditions:
[0045] The remaining memory of the terminal device is greater than a preset memory threshold;
[0046] The current temperature of the terminal device is less than a preset temperature threshold; and
[0047] The remaining power of the terminal device is greater than a preset power threshold.
[0048] Optionally, the terminal device identifies the first image, and if the first image includes text, then identifies the text label, which may include: if the first image includes text, the terminal device generates at least one candidate frame according to the first image; the terminal device obtains a target merge candidate frame according to the at least one candidate frame; the terminal device matches and obtains a text label according to the target merge candidate frame, and the target merge candidate frame includes the text. That is, the terminal device determines the text label that matches the target merge candidate frame.
[0049] Exemplarily, the terminal device places the target merged candidate frame in a mobilenet classification recognizer, and recognizes the text label after recognition. In the embodiment of the present invention, a grid label, a stripe label, etc. may also be included.
[0050] Optionally, the terminal device generates at least one candidate frame based on the first image, which may include: the terminal device responds to the user's cropping operation on the first image to obtain the second image; the terminal device generates at least one candidate frame based on the second image.
[0051] For example, the user can sample and select the first picture obtained by the terminal device, and intercept the content that the user wants to generate a personalized picture (for example, generate a dial). The terminal device responds to the user's cropping operation on the first picture and obtains the second picture. It is understandable that the second picture includes text. Figure 2B As shown, it is a schematic diagram of cropping the first picture to obtain the second picture in an embodiment of the present invention. In this embodiment, because the text portion of the second picture is greater than the text portion of the first picture, the reliability of the final generated picture with text content is higher.
[0052] Optionally, the terminal device generates at least one candidate box based on the first picture, which may be generating at least one candidate box in the first picture.
[0053] Optionally, the first candidate box in at least one candidate box includes text. That is, it can be understood that when there is only one candidate box, the candidate box includes text. When there are multiple candidate boxes, it must be ensured that at least one candidate box is a candidate box that includes text.
[0054] Optionally, the terminal device generates at least one candidate frame according to the first picture, which may include:
[0055] 1) The terminal device can perform content analysis on the first image and automatically generate at least one candidate frame. That is, the terminal device can perform preprocessing to detect the items, also known as objects, in the first image and split the items (or objects) into different candidate frames. Or,
[0056] 2) The terminal device generates at least one candidate frame according to the number of candidate frames and the first picture; optionally, the number of candidate frames may be preset or selected by the user. Or,
[0057] 3) The terminal device generates at least one candidate frame according to the number and size of the candidate frames and the first picture; optionally, the size of the candidate frame may be preset or set by the user. Or,
[0058] 4) The terminal device generates at least one candidate box based on the first picture in response to the user's operation on a control for generating a candidate box.
[0059] Optionally, the at least one candidate frame may include, but is not limited to, the following types of candidate frames: a candidate frame of a text portion, a candidate frame of a text+striped portion, and a candidate frame of a striped portion.
[0060] Optionally, the size of each candidate box may be the same or different.
[0061] Optionally, the candidate boxes in at least one candidate box may intersect or may not intersect, that is, at least one candidate box may have overlapping parts or may not have overlapping parts.
[0062] Optionally, the shape of the candidate box may be a rectangle, a circle, an ellipse, etc., which is not specifically limited here.
[0063] Optionally, the terminal device obtains a target merged candidate frame based on the at least one candidate frame, which may include: the terminal device extracts image features of the at least one candidate frame; the terminal device determines the target candidate frame based on the image features of the at least one candidate frame, and the proportion of text in the target candidate frame is greater than a first preset threshold; the terminal device merges the target candidate frames to obtain a target merged candidate frame.
[0064] Optionally, the terminal device can extract image features of at least one candidate box through Mobilenet-SSD Detect.
[0065] It is understandable that after extracting the image features of at least one candidate frame, the terminal device can determine whether the corresponding candidate frame is a target candidate frame or a background candidate frame, and output the target candidate frame. The target candidate frame here can be understood as a text candidate frame, that is, the text part may be included in multiple candidate frames. Here, the candidate frames including the text part can be merged into one to obtain a target merged candidate frame. It is also possible to call the candidate frame whose text ratio is greater than the first preset threshold as the target candidate frame, and the candidate frame whose text ratio is less than the first preset threshold as the background candidate frame.
[0066] Optionally, the terminal device may crop the target merging candidate frame in response to a cropping operation of the user, or the terminal device may automatically crop the target merging candidate frame after determining the target merging candidate frame.
[0067] 102. Match a corresponding text template according to the text label.
[0068] Optionally, the terminal device matches a corresponding text template according to the text label, which may include: the terminal device matches a text template corresponding to the text label in preset classification templates.
[0069] It can be understood that the preset classification template can also be called a classifier, or a recognizer, etc. The preset classification template includes image libraries corresponding to different labels, also called templates, such as image libraries corresponding to text labels, also called text templates; image libraries corresponding to stripe labels, also called stripe templates; image libraries corresponding to grid labels, also called grid templates, etc. Then, it can also be understood that the preset classification templates can include image templates about stripes, image templates about grids, image templates about text, etc.
[0070] Exemplarily, the terminal device searches for a text tag that matches the text tag in the SVG image library according to the text tag, determines various types of SVG image resources according to the text tag, and obtains a corresponding SVG image resource library, that is, a corresponding text template.
[0071] Among them, SVG is an image file format. Its full English name is Scalable Vector Graphics, which means scalable vector graphics. SVG is a language defined in XML, used to describe two-dimensional vector and vector / raster graphics. SVG provides three types of graphic objects: vector graphic shapes (for example, paths composed of straight lines and curves), images, and text. Graphic objects can also be grouped, styled, transformed, and combined. The feature set includes nested transformations, clipping paths, alpha masks, filter effects, template objects, and other extensions. SVG graphics are interactive and dynamic. Animation elements can be embedded in SVG files or animations can be defined through scripts.
[0072] 103. Generate a text dial according to the text template.
[0073] Optionally, the method may further include: the terminal device acquires the target image color; the terminal device generates a text dial according to the text template, which may include: the terminal device fills the image color into the text template to generate a text dial.
[0074] Optionally, the terminal device obtains the color of the image, which may include but is not limited to the following implementation methods:
[0075] (1) The terminal device obtains a target image color of the first image; optionally, the terminal device determines a proportion of each image color of the first image, and determines N image colors with the highest to lowest proportions as the target image colors.
[0076] Exemplarily, the terminal device performs color recognition on the first image to obtain the proportion of each image color of the first image, and then sorts the proportion of each image color to obtain three target image colors with the proportion from high to low.
[0077] Or, (2) the terminal device responds to the user's operation of inputting the color of the picture to determine the target picture color; illustratively, the user can input the desired picture colors on the terminal device, and the terminal device responds to the user's operation of inputting the desired picture colors to determine the target picture color.
[0078] Or, (3) the terminal device responds to the user's selection operation of the picture color in the preset colors and determines the target picture color. Exemplarily, the terminal device has various picture colors preset, and the user does not need to manually input the picture color, but only needs to select and determine the desired picture color.
[0079] Optionally, the terminal device acquiring the target picture color of the first picture may include: the terminal device determining N colors in the first picture with the highest to lowest color proportions;
[0080] The terminal device fills the picture color into the text template to generate a text dial, which may include: the terminal device fills the N colors into the corresponding N channels in the text template respectively to generate a text dial.
[0081] Optionally, the N colors include a first color, a second color and a third color; the terminal device fills the N colors into the corresponding N channels in the text template respectively to generate a text dial, which may include: the terminal device fills the first color, the second color and the third color into the first channel, the second channel and the third channel in the text template respectively to generate a text dial.
[0082] Exemplarily, the terminal device can also determine the color proportion of the content in the first image, determine the primary color, secondary color and tertiary color in the first image, and fill these three colors into the main channel (also called layer 1), secondary channel (also called layer 2) and third channel (also called layer 3) of the SVG image respectively to generate an SVG image with a similar color to the text dial.
[0083] Optionally, the text dial includes a static text dial and / or a dynamic text dial.
[0084] Optionally, the number of text dials is at least one.
[0085] Optionally, the text in the text dial may be the same as or different from the text included in the first picture. It is understandable that the text in the text dial may correspond to the text included in the first picture. The text in the text dial may be words, sentences or related ancient poems, etc. composed according to the text included in the first picture. For example: the text included in the first picture is "sky", and the text in the text dial may be "blue sky and white clouds", "clear sky", "There is a fish in the North Sea, its name is Kun. Kun is so big that no one knows how many thousand miles it is; it turns into a bird, its name is Peng. Peng's back is so big that no one knows how many thousand miles it is; it flies in anger, its wings are like clouds hanging from the sky", or "sky".
[0086] Optionally, the text type in the text dial may be the same as or different from the text type included in the first picture.
[0087] It is understandable that the terminal device can generate pictures of positive words or sentences after taking photos with fonts, and present them visually.
[0088] It should be noted that the executor of steps 101-103 can be a terminal device (such as a mobile phone), a wearable device (such as a watch), or a system consisting of a terminal device and a wearable device, which is not specifically limited here.
[0089] In an embodiment of the present invention, a text label is identified; a corresponding text template is matched according to the text label; and a text dial is generated according to the text template. That is, the terminal device can process any text label to generate a text dial, provide more choices for users, improve user experience, and increase the playability and surprise of the product. Exemplarily, the terminal device can modify the texture and color matching of the picture information including text to generate a new style of picture, provide more choices for users, improve user experience, and increase the playability and surprise of the product.
[0090] like Figure 3 FIG. 1 is a schematic diagram of another embodiment of a method for generating a text dial in an embodiment of the present invention, which may include:
[0091] 301. Identify text labels.
[0092] 302. Match a corresponding text template according to the text label.
[0093] 303. Generate a text dial according to the text template.
[0094] It should be noted that steps 301-303 and Figure 1 Steps 101-103 in the illustrated embodiment are similar and will not be described in detail here.
[0095] 304. Send a target text dial to a wearable device, where the target text dial is used for the wearable device to generate a dial, and the text dial includes the target text dial.
[0096] 305. The wearable device generates a watch dial according to the target text watch dial.
[0097] For example, Figure 4A As shown, it is a schematic diagram of a process of generating a dial in an embodiment of the present invention.
[0098] Optionally, the target text dial is used for generating and displaying a dial on the wearable device.
[0099] Optionally, the terminal device sends the target text dial to the wearable device, which may include but is not limited to the following implementation methods:
[0100] (1) Display the target text dial and send the target text dial to the wearable device; optionally, the terminal device generates multiple text dials. Assume that the number of text dials is 3, and the terminal device can periodically rotate and display these 3 text dials. For example, text dial A is displayed for 5 seconds, then switched to text dial B for another 5 seconds, then switched to text dial C for another 5 seconds, and then switched to text dial A, and the cycle repeats. It should be noted that the display order and corresponding display time of the text dials can be pre-set or adjusted according to user needs, and are not specifically limited here.
[0101] It should be noted that when the terminal device displays the target text dial, it sends the currently displayed target text dial to the wearable device. It can be understood that when the terminal device displays the target text dial, the wearable device also needs to generate and display the dial according to the target text dial. In this way, the user can intuitively feel the display effect of the wearable device generating the dial according to the target text dial, and select the favorite target text dial on the terminal device according to their preferences, and generate the dial on the wearable device. Because the display screen of the terminal device is usually larger than that of the wearable device, it is convenient for the user to operate.
[0102] For example, if the user sees text dial B and likes the effect of generating a dial on the wearable device, the user can select text dial B on the terminal device. The terminal device responds to the user's selection operation, generates a first instruction, and sends the first instruction to the wearable device. After the wearable device receives the first instruction, it selects text dial B to generate a dial according to the first instruction. Figure 4BAs shown, it is a schematic diagram of a wearable device generating a dial in an embodiment of the present invention. Optionally, the wearable device can delete other text dials to save memory space of the wearable device.
[0103] For example, if the user sees text dial B and likes the effect of generating a dial on the wearable device, the user can also select text dial B on the wearable device. The wearable device responds to the user's selection operation and generates a second instruction. According to the second instruction, the text dial B is selected to generate a dial. Optionally, the wearable device can delete other text dials to save memory space of the wearable device.
[0104] Or, (2) in response to the user's selection operation of the target text dial in the text dial, the target text dial is sent to the wearable device; in this implementation, the terminal device may not display the text dial, but only display the logo of the text dial, and the user may select the logo of the target text dial in the text dial, and then the terminal device automatically sends the corresponding target text dial to the wearable device according to the logo of the selected text dial, but when the wearable device receives the target text dial, it needs to generate a dial according to the target text dial. The user can intuitively feel the display effect of the dial generated by the wearable device according to the target text dial, and according to his own preferences, select the favorite target text dial on the terminal device or wearable device, and then generate the dial on the wearable device. An implementation method for generating a dial is provided.
[0105] Or, (3) in response to the user's selection operation of the target text dial in the text dial, the target text dial is displayed and the target text dial is sent to the wearable device; in this implementation, the terminal device does not display the text dial, but only displays the logo of the text dial. After the user selects the logo of the target text dial in the text dial, the corresponding target text dial is displayed on the terminal device. Then, the terminal device automatically sends the corresponding target text dial to the wearable device. When the wearable device receives the target text dial, it needs to generate a dial according to the target text dial. The user can intuitively feel the display effect of the wearable device generating a dial according to the target text dial, and according to his own preferences, select a favorite target text dial on the terminal device or the wearable device, and then generate a dial on the wearable device. An implementation method for generating a dial is provided.
[0106] Or, (4) in response to the user's selection operation of the target text dial in the text dial, the target text dial is displayed, and in response to the user's sending operation of the target text dial, the target text dial is sent to the wearable device; in this implementation, the terminal device may not display the text dial, but only display the logo of the text dial, the user may select the logo of the target text dial in the text dial, and then the corresponding target text dial is displayed on the terminal device accordingly, and then the terminal device needs to respond to the user's sending operation and generate a sending instruction, and the terminal device sends the corresponding target text dial to the wearable device according to the sending instruction, and when the wearable device receives the target text dial, it needs to generate a dial according to the target text dial. The user can intuitively feel the display effect of the dial generated by the wearable device according to the target text dial, and select the favorite target text dial on the terminal device or the wearable device according to his or her own preferences, and then generate the dial on the wearable device. An implementation method for generating a dial is provided.
[0107] Or, (5) sending the target text dial to the wearable device, the text dial being the same as the target text dial; in this implementation, the terminal device can automatically send all generated text dials as target text dials to the wearable device, the wearable device generates and displays a dial based on the target text dial, and the user directly selects the target text dial to generate the dial on the wearable device. Optionally, the wearable device can also periodically rotate the display of the target text dial in response to the user's selection operation of a target text dial, and finally generate a dial. An implementation method for generating a dial is provided.
[0108] Or, (6) in response to the user's sending operation on the target text dial, the target text dial is sent to the wearable device, and the text dial is the same as the target text dial. In this implementation, the terminal device can respond to the user's sending operation, and send all generated text dials as target text dials to the wearable device. The wearable device generates and displays a dial based on the target text dial, and the user directly selects the target text dial to generate the dial on the wearable device. Optionally, the wearable device can also periodically rotate the display of the target text dial, respond to the user's selection operation on a target text dial, and finally generate a dial. An implementation method for generating a dial is provided.
[0109] Optionally, the terminal device responds to the user's selection operation, or sending operation, etc., by operating the corresponding controls on the terminal device or wearable device, or by audio detection, or by detection of biometric features (such as iris detection, number of blinks, etc.), or by remote operation, or by scanning a code, etc., the specifics are not limited here.
[0110] Optionally, the terminal device sends the target text dial to the wearable device when a preset condition is met. The preset condition may include but is not limited to the following conditions:
[0111] The remaining memory of the terminal device is greater than a preset memory threshold, for example, the remaining memory is greater than 30%;
[0112] The current temperature of the terminal device is less than a preset temperature threshold; and
[0113] The remaining power of the terminal device is greater than a preset power threshold, for example, the remaining power is greater than 20%.
[0114] It should be noted that steps 304 and 305 are optional steps.
[0115] In an embodiment of the present invention, a text label is identified; a corresponding text template is matched according to the text label; and a text dial is generated according to the text template. That is, the terminal device can process and generate a text dial according to any text label, thereby providing users with more choices, improving user experience, and increasing the playability and surprise of the product. Further, the target text dial is sent to the wearable device, and the target text dial is used to generate a dial for the wearable device, and the text dial includes the target text dial. Further, other text dials can also be sent to the wearable device. For example, when the wearable device is a smart watch, a dial can be generated according to the text dial. The terminal device can modify the texture and color matching of the picture information including text to generate a new style of picture, thereby providing users with more choices to generate dials, improving user experience, and increasing the playability and surprise of the product.
[0116] like Figure 5A FIG. 1 is a schematic diagram of an embodiment of a terminal device in an embodiment of the present invention, which may include:
[0117] The processing module 501 is used to identify a text label; match a corresponding text template according to the text label; and generate a text dial according to the text template.
[0118] Optionally, the processing module 501 is specifically configured to identify a first image, wherein the first image includes text; or
[0119] The processing module 501 is specifically configured to identify a text label in response to a user's text input operation; or
[0120] The processing module 501 is specifically configured to identify a text label in response to a user's selection operation of a text type in a preset type.
[0121] Optionally, the acquisition module 502 is further used to acquire the color of the target image;
[0122] The processing module 501 is specifically used to fill the picture color into the text template to generate a text dial.
[0123] Optionally, the acquisition module 502 is specifically configured to acquire the target image color of the first image; or,
[0124] The acquisition module 502 is specifically used to respond to the user's operation of inputting the color of the picture and determine the target picture color; or,
[0125] The acquisition module 502 is specifically used to respond to the user's selection operation of the picture color in the preset colors and determine the target picture color.
[0126] Optionally, the acquisition module 502 is specifically configured to determine N colors in the first image with the highest to lowest color proportions;
[0127] The processing module 501 is specifically configured to fill the N colors into the corresponding N channels in the text template respectively, so as to generate a text dial.
[0128] Optionally, the N colors include a first color, a second color and a third color;
[0129] The processing module 501 is specifically configured to fill the first color, the second color and the third color into the first channel, the second channel and the third channel in the text template respectively, so as to generate a text dial.
[0130] Optional, such as Figure 5B FIG. 5 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention. The terminal device further includes a sending module 503.
[0131] The sending module 503 is specifically used to display the target text dial and send the target text dial to the wearable device; or,
[0132] The sending module 503 is specifically configured to respond to the user's selection operation of a target text dial in the text dial and send the target text dial to the wearable device; or,
[0133] The sending module 503 is specifically used to respond to the user's selection operation of the target text dial in the text dial, display the target text dial, and send the target text dial to the wearable device; or,
[0134] The sending module 503 is specifically used to respond to the user's selection operation on the target text dial in the text dial, display the target text dial, and respond to the user's sending operation on the target text dial to send the target text dial to the wearable device; or,
[0135] The sending module 503 is specifically used to send a target text dial to the wearable device, wherein the text dial is the same as the target text dial; or,
[0136] The sending module 503 is specifically used to respond to the user's sending operation on the target text dial and send the target text dial to the wearable device, and the text dial is the same as the target text dial.
[0137] Optionally, the processing module 501 is specifically configured to generate at least one candidate frame according to the first image; obtain a target merged candidate frame according to the at least one candidate frame; and obtain a text label by matching according to the target merged candidate frame.
[0138] Optionally, the processing module 501 is specifically used to extract image features of the at least one candidate frame; determine a target candidate frame based on the image features of the at least one candidate frame, wherein the text ratio in the target candidate frame is greater than a first preset threshold; and merge the target candidate frames to obtain a target merged candidate frame.
[0139] Optionally, the text dial includes a static text dial and / or a dynamic text dial.
[0140] like Figure 6 FIG. 1 is a schematic diagram of another embodiment of a terminal device in an embodiment of the present invention, which may include:
[0141] Figure 6 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present invention. Figure 6 The mobile phone includes: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, a processor 680, and a power supply 690. Those skilled in the art will appreciate that Figure 6 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0142] Combine the following Figure 6 A detailed introduction to the various components of the mobile phone:
[0143] The RF circuit 610 can be used for receiving and sending signals during the process of sending and receiving information or making calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 680 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 610 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 610 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0144] The memory 620 can be used to store software programs and modules. The processor 680 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 620. The memory 620 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 620 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0145] The input unit 630 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 631 or near the touch panel 631 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 631 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, the other input devices 632 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0146] The display unit 640 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 631 may cover the display panel 641. When the touch panel 631 detects a touch operation on or near it, it is transmitted to the processor 680 to determine the type of touch event. Subsequently, the processor 680 provides a corresponding visual output on the display panel 641 according to the type of touch event. Although in Figure 6 In the embodiment, the touch panel 631 and the display panel 641 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 631 and the display panel 641 can be integrated to realize the input and output functions of the mobile phone.
[0147] The mobile phone may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 641 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0148] The audio circuit 660, the speaker 661, and the microphone 662 can provide an audio interface between the user and the mobile phone. The audio circuit 660 can transmit the received audio data to the speaker 661 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, and then the audio data is output to the processor 680 for processing, and then sent to another mobile phone through the RF circuit 610, or the audio data is output to the memory 620 for further processing.
[0149] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 670. It provides users with wireless broadband Internet access. Figure 6 A WiFi module 670 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0150] The processor 680 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 620, and calling data stored in the memory 620, it executes various functions of the mobile phone and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 680.
[0151] The mobile phone also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 680 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0152] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0153] In the embodiment of the present invention, the processor 680 is used to identify a text label; match a corresponding text template according to the text label; and generate a text dial according to the text template.
[0154] Optionally, the processor 680 is specifically configured to identify a first image, where the first image includes text; or,
[0155] The processor 680 is specifically configured to recognize a text label in response to a text input operation by a user; or
[0156] The processor 680 is specifically configured to identify a text label in response to a user's selection operation of a text type in a preset type.
[0157] Optionally, the processor 680 is further configured to obtain the color of the target image;
[0158] The processor 680 is specifically configured to fill the text template with the picture color to generate a text dial.
[0159] Optionally, the processor 680 is specifically configured to obtain a target image color of the first image; or,
[0160] The processor 680 is specifically configured to respond to the user's operation of inputting the color of the picture and determine the color of the target picture; or,
[0161] The processor 680 is specifically configured to respond to a user's selection operation of a picture color from among preset colors and determine a target picture color.
[0162] Optionally, the processor 680 is specifically configured to determine N colors in the first image with the color proportions from high to low;
[0163] The processor 680 is specifically configured to fill the N colors into the corresponding N channels in the text template respectively to generate a text dial.
[0164] Optionally, the N colors include a first color, a second color and a third color;
[0165] The processor 680 is specifically configured to fill the first color, the second color and the third color into the first channel, the second channel and the third channel in the text template respectively, so as to generate a text dial.
[0166] Optionally, the RF circuit 610 is specifically used to display a target text dial and send the target text dial to the wearable device; or,
[0167] The RF circuit 610 is specifically configured to respond to a user's selection operation of a target text dial in the text dial and send the target text dial to the wearable device; or,
[0168] The RF circuit 610 is specifically configured to respond to a user's selection operation on a target text dial in the text dial, display the target text dial, and send the target text dial to the wearable device; or,
[0169] The RF circuit 610 is specifically used to respond to the user's selection operation on the target text dial in the text dial, display the target text dial, and respond to the user's sending operation on the target text dial to send the target text dial to the wearable device; or,
[0170] The RF circuit 610 is specifically configured to send a target text dial to the wearable device, wherein the text dial is the same as the target text dial; or
[0171] The RF circuit 610 is specifically used to respond to the user's sending operation on the target text dial and send the target text dial to the wearable device. The text dial is the same as the target text dial.
[0172] Optionally, the processor 680 is specifically configured to generate at least one candidate frame according to the first image; obtain a target merged candidate frame according to the at least one candidate frame; and obtain a text label by matching according to the target merged candidate frame.
[0173] Optionally, the processor 680 is specifically used to extract image features of the at least one candidate box; determine a target candidate box based on the image features of the at least one candidate box, wherein the text ratio in the target candidate box is greater than a first preset threshold; and merge the target candidate boxes to obtain a target merged candidate box.
[0174] Optionally, the text dial includes a static text dial and / or a dynamic text dial.
[0175] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0176] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0177] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0178] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0180] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0181] If the integrated unit 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. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0182] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a text dial, characterized in that: include: Recognize text labels; Matching a text template corresponding to the text label in a preset classification template, wherein the preset classification template includes a picture template about stripes, a picture template about grids, and a picture template about text; Generate a text dial according to the text template, where the number of the text dials is at least two; A target text dial is displayed and sent to a wearable device, wherein the target text dial is used for generating a dial for the wearable device, and the text dial includes the target text dial.
2. The method according to claim 1, characterized in that The identification text label includes: identifying a first image, wherein the first image includes text; or, In response to a user's operation of inputting text, identifying a text tag; or, In response to a user's selection operation of a text type in a preset type, a text label is identified.
3. The method according to claim 2, characterized in that The method further comprises: Get the target image color; Generating a text dial according to the text template includes: The picture color is filled into the text template to generate a text dial.
4. The method according to claim 3, characterized in that: The step of obtaining the color of the picture includes: Obtaining a target image color of the first image; or, In response to a user inputting an image color operation, determining a target image color; or, In response to the user's selection operation of a picture color from the preset colors, a target picture color is determined.
5. The method according to claim 4, characterized in that The obtaining the target image color of the first image includes: Determine N colors in the first image with the highest to lowest color proportions; Filling the picture color into the text template to generate a text dial includes: The N colors are respectively filled into the corresponding N channels in the text template to generate a text dial.
6. The method according to claim 5, characterized in that The N colors include a first color, a second color, and a third color; and the N colors are respectively filled into the corresponding N channels in the text template to generate a text dial, including: The first color, the second color and the third color are respectively filled into the first channel, the second channel and the third channel in the text template to generate a text dial.
7. The method according to claim 6, characterized in that The method further comprises: displaying a target text dial, and sending the target text dial to the wearable device; or, In response to a user selecting a target text dial in the text dial, sending the target text dial to the wearable device; or, In response to a user's selection operation on a target text dial in the text dial, display the target text dial, and send the target text dial to the wearable device; or, In response to a user's selection operation on a target text dial in the text dial, the target text dial is displayed; in response to a user's sending operation on the target text dial, the target text dial is sent to a wearable device; or, Sending a target text dial to the wearable device, wherein the text dial is the same as the target text dial; or, In response to the user's sending operation on the target text dial, the target text dial is sent to the wearable device, and the text dial is the same as the target text dial.
8. The method according to claim 2, characterized in that: The step of identifying the first image and identifying a text label if the first image includes text includes: If the first picture includes text, generating at least one candidate box according to the first picture; Obtaining a target merged candidate frame according to the at least one candidate frame; The candidate boxes are merged according to the target and matched to obtain text labels.
9. The method according to claim 8, characterized in that The step of obtaining a target merged candidate frame according to the at least one candidate frame includes: Extracting image features of the at least one candidate frame; Determine a target candidate frame according to the image features of the at least one candidate frame, wherein a proportion of text in the target candidate frame is greater than a first preset threshold; The target candidate frames are merged to obtain a target merged candidate frame.
10. A terminal device, characterized in that: include: A processing module, used for identifying a text label; matching a text template corresponding to the text label in a preset classification template, wherein the preset classification template includes a picture template about stripes, a picture template about grids, and a picture template about text; Generate a text dial according to the text template, where the number of the text dials is at least two; A display module, used for displaying a target text dial; A sending module is used to send a target text dial to a wearable device, wherein the target text dial is used for the wearable device to generate a dial, and the text dial includes the target text dial.
11. A terminal device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; and a display connected to the processor; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 9, and the processor is used to control the display to execute the method according to any one of claims 1 to 9.
12. A computer-readable storage medium comprising instructions, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 9.
