Dial push method, device, electronic device and computer-readable storage medium

By identifying images and combining time elements and database matching data to generate a diverse dial, the problem of single dial in traditional dial push methods is solved, and a richer dial push effect is achieved.

CN114067096BActive Publication Date: 2025-03-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010782953.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-06
Publication Date
2025-03-28
Estimated Expiration
2040-08-06

AI Technical Summary

Technical Problem

The traditional dial push method has fixed dial styles and colors, resulting in a single dial and lack of diversity.

Method used

By obtaining the image to be identified, identifying the identified content, combining the first time elements to generate the first type of dial, and searching for matching data from the database to determine the second type of dial, and finally pushing it based on at least one of the two types of dials.

Benefits of technology

It improves the diversity of pushed dials, enriches the types of dials to be pushed, and meets users' needs for diversified dials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067096B_ABST
    Figure CN114067096B_ABST
Patent Text Reader

Abstract

The present application relates to a dial push method, device, computer equipment and storage medium. The method comprises: obtaining an image to be identified; identifying the image to be identified to obtain identification content; obtaining a first time element, fusing the first time element and the identification content to obtain a first type of dial; searching for data matching the identification content from a database, and determining a second type of dial based on the search results; and pushing at least one of the first type of dial and the second type of dial to display on a wearable device. The use of this method can increase the diversity of dials pushed and enrich the dials to be pushed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a dial pushing method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of mobile technology, many traditional electronic products have also begun to add mobile functions. For example, watches that could only be used to tell time in the past can now be connected to the Internet through smartphones or home networks to display incoming call information, social media chat information, news, weather information and other content.

[0003] In the display interface of a device such as a smart watch or smart bracelet, a watch face can be set. The watch face is usually created by a developer through code programming, and then the created watch face is pushed to the user. However, this traditional watch face push method has a fixed style and color of the pushed watch face, and there is a problem of a single pushed watch face. Summary of the invention

[0004] The embodiments of the present application provide a dial pushing method, device, electronic device, and computer-readable storage medium, which can increase the diversity of pushed dials and enrich the dials to be pushed.

[0005] A dial pushing method, comprising:

[0006] Obtain an image to be recognized;

[0007] Identify the image to be identified to obtain identification content;

[0008] Acquire a first time element, and fuse the first time element and the identification content to obtain a first type of watch face;

[0009] Searching for data matching the identification content from a database, and determining a second type of watch dial based on the search results;

[0010] A watch dial is pushed based on at least one of the first type of watch dial and the second type of watch dial for display on a wearable device.

[0011] A dial push method, applied to a wearable device, comprising:

[0012] Receiving a target dial sent by an electronic device connected to the wearable device;

[0013] Displaying the target watch face in a display interface of the wearable device;

[0014] The target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to the obtained selection instruction; the dial to be pushed is determined from at least one of the first type of dials and the second type of dials;

[0015] The first type of dial is obtained by fusing the acquired first time element and the recognition content, and the recognition content is obtained by recognizing the acquired image to be recognized;

[0016] The second type of dial is obtained by searching a database for data matching the identification content and is determined based on the search results.

[0017] A dial pushing device, comprising:

[0018] An image acquisition module to be identified, used to acquire an image to be identified;

[0019] A recognition module, used to recognize the image to be recognized and obtain recognition content;

[0020] A first-category watch dial acquisition module, used to acquire a first time element, and fuse the first time element with the identification content to obtain a first-category watch dial;

[0021] A second-category watch dial acquisition module, configured to search a database for data matching the identified content, and determine a second-category watch dial based on the search results;

[0022] A push module is used to push a watch face based on at least one of the first type of watch face and the second type of watch face for display on a wearable device.

[0023] A dial pushing device, applied to a wearable device, comprising:

[0024] A receiving module, used to receive a target dial sent by an electronic device connected to the wearable device;

[0025] A display module is used to display the target dial in the display interface of the wearable device; the target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to the obtained selection instruction; the dial to be pushed is determined from a first category of dials and a second category of dials; the first category of dials is obtained by fusing the obtained first time element and recognition content, and the recognition content is obtained by recognizing the obtained image to be recognized; the second category of dials is searched from a database for data matching the recognition content, and is determined based on the search results.

[0026] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the dial push method as described above.

[0027] A wearable device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the dial push method as described above.

[0028] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0029] The above-mentioned dial push method, device, electronic device and computer-readable storage medium obtain an image to be identified; identify the image to be identified to obtain identification content; obtain a first time element, and fuse the first time element and the identification content to obtain a first type of dial; search for data matching the identification content from a database, and determine a second type of dial based on the search results, and obtain the first type of dial and the second type of dial in two different ways based on the identification content in the image to be identified, and then push at least one of the first type of dial and the second type of dial, which can improve the diversity of pushed dials and enrich the dials to be pushed. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A diagram showing an application environment of a dial push method in an embodiment;

[0032] Figure 2 It is a flowchart of a dial push method in one embodiment;

[0033] Figure 3 A flowchart of a step in an embodiment of obtaining a pattern dial based on a first time element and a pattern when the recognition content includes a pattern;

[0034] Figure 4 A flowchart of a step in an embodiment of searching a second subcategory watch face library that matches the identified content;

[0035] Figure 5 It is a flowchart of a dial pushing method in another embodiment;

[0036] Figure 6 It is a flowchart of a dial pushing method in another embodiment;

[0037] Figure 7 A flowchart of a step in an embodiment of determining a watch dial to be pushed that matches the color richness from a first category of watch dials and a second category of watch dials based on the color richness of the image to be identified;

[0038] Figure 8 It is a structural block diagram of a dial pushing device in one embodiment;

[0039] Fig. 9 It is a structural block diagram of a dial pushing device in another embodiment;

[0040] Fig.10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first time element may be referred to as a second time element, and similarly, a second time element may be referred to as a first time element. Both the first time element and the second time element are time elements, but they are not the same time element.

[0043] Figure 1 FIG. 1 is a schematic diagram of an application environment of a dial push method in an embodiment. Figure 1As shown, the application environment includes a wearable device 102 and an electronic device 104, and the wearable device 102 and the electronic device 104 communicate through a network. The electronic device 104 obtains an image to be identified; identifies the image to be identified to obtain identification content; obtains a first time element, merges the first time element and the identification content to obtain a first type of dial; searches for data matching the identification content from a database, and determines a second type of dial based on the search results; pushes a dial based on at least one of the first type of dial and the second type of dial to display on the wearable device. Further, the electronic device 104 can select a target dial from the first type of dial and the second type of dial and send it to the wearable device 102. After receiving the target dial, the wearable device 102 can display the target dial on the display interface of the wearable device 102. Among them, the wearable device 102 can be one of a smart watch, a smart bracelet, etc. The electronic device can be a personal computer, a laptop, a smart phone, a tablet computer, or an independent server or a server cluster composed of multiple servers.

[0044] Figure 2 FIG. 1 is a flow chart of a dial push method in one embodiment. Figure 2 As shown, the dial push method includes steps 202 to 212.

[0045] Step 202: Obtain an image to be recognized.

[0046] The image to be recognized may be an RGB (Red, Green, Blue) image, a grayscale image, a depth image, or the like.

[0047] In one embodiment, the image to be identified can be obtained by photographing a camera. For example, an RGB image can be obtained by photographing a color camera; a grayscale image can be obtained by photographing a black and white camera; and a depth image can be obtained by photographing a depth camera.

[0048] In another embodiment, the electronic device turns on the screen recognition function, and when a screenshot operation is detected, the display interface of the electronic device is screenshotted to obtain a screenshot image, which is the image to be recognized. The screenshot operation may be double-clicking the screen, long pressing the screen, and the like.

[0049] In other implementations, the image to be identified may also be obtained from a local memory, or may be searched from a network, but is not limited thereto.

[0050] Step 204: recognize the image to be recognized to obtain recognized content.

[0051] The recognition content refers to the content obtained by recognizing the image to be recognized. The recognition content can be at least one of a pattern, text, color, video, audio, scene, person, etc.

[0052] The dial application in the electronic device can perform pattern recognition on the image to be recognized, and the obtained recognition content can be the pattern in the image to be recognized. The electronic device performs text recognition on the image to be recognized, and the obtained recognition content can be the text in the image to be recognized. The electronic device performs color recognition on the image to be recognized, and the obtained recognition content can be the color in the image to be recognized. Among them, the dial application can communicate with the wearable device.

[0053] In order to improve the efficiency of recognition, the electronic device may also recognize the central area of ​​the image to be recognized, obtain recognition content, and use the recognition content as the recognition content of the image to be recognized.

[0054] Step 206, obtaining a first time element, and fusing the first time element and the identification content to obtain a first type of dial.

[0055] The first time element refers to an element including time information. The first time element may include a time scale, an hour hand, a minute hand, a second hand, etc. The style of the first time element is not limited, such as a cartoon style, a landscape style, an object style, etc. The time information included in the first time element may be running or static. For example, the first time element may be a running clock or a sticker including a clock, and the clock in the sticker is static.

[0056] The first type of dial refers to a dial obtained by fusing the first time element and the recognition content. Specifically, the electronic device can use the recognition content as the background and the first time element as the foreground for superposition processing to generate the first type of dial.

[0057] Step 208, searching the database for data matching the identified content, and determining the second type of dial based on the search results.

[0058] The second type of dial refers to a dial that matches the identified content and is searched from the database based on the identified content. The data included in the database can be pictures, dials, or texts of various styles. By matching the identified content with each data in the database, data matching the identified content can be obtained, and then the second type of dial is generated based on the matched data.

[0059] Specifically, data matching the identified content is searched from a database, and a second-category dial is determined based on the search results, including: searching an image matching the identified content from an image library, obtaining a second time element, and fusing the second time element and the matching image to obtain a first-subcategory dial; or searching a second-subcategory dial matching the identified content from a dial library; both the first-subcategory dial and the second-subcategory dial belong to the second-category dial.

[0060] An image library refers to a collection of stored images. Generally, an image library stores multiple images. Images in the image library may carry tags representing attributes.

[0061] For example, image A in the image library carries three tags: scenery, fresh, and simple, and the attributes representing image A have the three characteristics of scenery, fresh, and simple. Image B in the image library carries two tags: person and smiley face, and the attributes representing image A have the two characteristics of person and smiley face.

[0062] The matching image refers to an image in the image library that matches the recognized content. The second time element refers to an element that includes time information. The second time element may be the same as or different from the first time element. The first sub-category dial refers to a dial obtained by fusing the second time element and the matching image.

[0063] The second time element may include a time scale, an hour hand, a minute hand, a second hand, etc. The style of the second time element is not limited, such as a cartoon style, a landscape style, an object style, etc. The time information included in the second time element may be running or static. For example, the second time element may be a running clock or a sticker including a clock, and the clock in the sticker is static.

[0064] The electronic device matches the features of the recognized content with the features of each image in the image library, obtains a matching image that matches the features of the recognized content, uses the matching image as the background, and overlays the second time element as the foreground to generate a first subcategory dial.

[0065] The watch face library refers to a collection of watch faces. Generally, the watch face library stores multiple watch faces. The watch faces in the watch face library carry tags that represent attributes.

[0066] For example, watch face A in the watch face library carries two tags, "fresh" and "simple", which indicates that the attributes of watch face A have three characteristics, "fresh" and "simple". Watch face B in the watch face library carries three tags, "character", "smiley face", and "running", which indicates that the attributes of watch face A have three characteristics, "character", "smiley face", and "running".

[0067] The second subcategory dial refers to the dial in the dial library that matches the identified content. The electronic device matches the features of the identified content with the features of each dial in the dial library, and obtains the dial that matches the features of the identified content as the second subcategory dial.

[0068] Step 210: Push a watch face based on at least one of the first type of watch face and the second type of watch face to display on the wearable device.

[0069] After the electronic device obtains the first and second types of dials, it pushes at least one of the first and second types of dials to the user, that is, displays at least one of the first and second types of dials in the display interface of the electronic device.

[0070] The above-mentioned dial pushing method obtains an image to be identified; identifies the image to be identified to obtain identification content; obtains a first time element, and fuses the first time element and the identification content to obtain a first type of dial; searches for data matching the identification content from a database, and determines a second type of dial based on the search results, and obtains the first type of dial and the second type of dial in two different ways based on the identification content in the image to be identified, and then pushes at least one of the first type of dial and the second type of dial, which can improve the diversity of pushed dials and enrich the dials to be pushed.

[0071] In one embodiment, obtaining an image to be identified includes: obtaining an original image determined by a user; determining a region of interest from the original image; and generating an image to be identified based on the region of interest.

[0072] The original image refers to an image determined by the user. The original image may be an image input by the user, an image obtained by the user taking a screenshot of the display interface of the electronic device, or an image selected by the user from the Internet, but is not limited thereto.

[0073] For example, after obtaining a screenshot of an image to be recognized, the region of interest is selected by dragging, enlarging, or reducing a selection box.

[0074] The region of interest refers to the region in the original image that indicates the user's interest. In one embodiment, the electronic device obtains the region selected by the user in the original image and uses the region as the region of interest. In another embodiment, the electronic device may also use the central area in the original image as the region of interest. In other embodiments, the electronic device may also perform subject detection on the original image and use the detected subject area as the region of interest. After the electronic device obtains the region of interest, it uses the region of interest as a new image to obtain an image to be recognized.

[0075] In this embodiment, the original image determined by the user is obtained; the region of interest is determined from the original image; and the image to be recognized is generated based on the region of interest. Then, the electronic device can recognize only a part of the original image, namely the region of interest, thereby avoiding recognition of the entire original image, and improving the efficiency of image recognition. In addition, the region of interest is determined from the original image, and then a watch face is obtained based on the region of interest and pushed to the user, which can enhance the relevance of the watch face with the user and generate a watch face that is more popular with the user.

[0076] In one embodiment, determining a region of interest from an original image includes: dividing the original image into sub-regions; for each sub-region, determining from the sub-region each pair of pixels whose distance difference is within a preset range; obtaining the color value of each pixel included in each pixel pair; performing difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; and determining a region of interest from each sub-region based on the color difference of each pixel pair in each sub-region.

[0077] A sub-region refers to a region obtained by dividing the original image. A pixel pair refers to a pair of pixels, that is, it includes two pixels. The color value of a pixel refers to the value that represents the color of the pixel.

[0078] Determine from the sub-area each pixel pair whose distance difference is within a preset range, that is, the position difference between the two pixels included in the pixel pair is within the preset range, and the two pixels included in the pixel pair may be two pixels that are adjacent or close in position.

[0079] The larger the color difference of the pixel pair, the greater the color change between the two pixels included in the pixel pair. The greater the color change of the pixel pair, the higher the color diversity of the sub-region including the pixel pair, and the greater the possibility that the sub-region is the user's area of ​​interest.

[0080] In this embodiment, a more accurate region of interest may be determined based on the color difference between each pair of pixels in the sub-region.

[0081] In one embodiment, based on the color difference of each pixel pair in each sub-region, determining the region of interest from each sub-region includes: obtaining the color difference of all pixel pairs in the sub-region to determine the total color difference of the sub-region; and determining the sub-region whose total color difference is greater than a difference threshold from each sub-region as the region of interest.

[0082] The larger the total color difference of a sub-region is, the larger the color difference between each pixel pair in the sub-region is, and the higher the color diversity in the sub-region is, the more content information the sub-region includes, and the more likely it is the user's area of ​​interest.

[0083] The number of sub-regions whose total color difference is greater than the difference threshold may be one or at least two. When the number of sub-regions whose total color difference is greater than the difference threshold is one, the sub-region whose total color difference is greater than the difference threshold is taken as the region of interest. When the number of sub-regions whose total color difference is greater than the difference threshold is at least two, the sub-regions whose total color difference is greater than the difference threshold are superimposed to obtain the region of interest.

[0084] In this embodiment, the color difference values ​​of all pixel pairs in the sub-region are obtained to determine the total color difference value of the sub-region; and a more accurate region of interest can be determined by selecting the sub-region whose total color difference value is greater than the difference threshold value from among the sub-regions.

[0085] In another embodiment, the electronic device may further use the sub-region with the largest total color difference as the region of interest.

[0086] In another embodiment, determining a region of interest from an original image includes: obtaining a preset window; moving the preset window on the original image to obtain a region image within the preset window; for each region image, determining from the region image each pixel pair whose distance difference is within a preset range; obtaining the color value of each pixel included in each pixel pair; performing difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; determining a total color difference of the region image based on the color difference of each pixel pair, and determining, from each region image, a sub-region whose total color difference is greater than a difference threshold as a region of interest.

[0087] The preset window is a window used to obtain a region image from an original image. The preset window can be set by the user in advance. The region image is the image in the preset window. A pixel pair refers to a pair of pixels, that is, it includes two pixels. The color value of a pixel refers to the value that represents the color of the pixel.

[0088] The electronic device may move the preset window on the original image according to a preset rule. The preset rule may be set in advance as needed. For example, the preset rule may be that the preset window moves from left to right, from top to bottom, on the original image once every 1 pixel; the preset rule may also be that the preset window moves from left to right, from top to bottom, on the original image once every 10 pixels; the preset rule may also be that the preset window moves from top to bottom, from left to right, on the original image once every 10 pixels, and is not limited thereto. After the preset window moves once, an image of the area within the preset window is acquired.

[0089] Determine from the regional image each pixel pair whose distance difference is within a preset range, that is, the position difference between the two pixels included in the pixel pair is within the preset range, and the two pixels included in the pixel pair may be two pixels that are adjacent or close in position.

[0090] The larger the color difference of the pixel pair, the greater the color change between the two pixels included in the pixel pair. The greater the color change of the pixel pair, the higher the color diversity of the regional image including the pixel pair, and the greater the possibility that the regional image is the user's area of ​​interest.

[0091] The larger the total color difference of the regional image is, the larger the color difference between each pixel pair in the regional image is, and the higher the color diversity in the regional image is, the more content information the regional image includes, and the more likely it is the user's area of ​​interest.

[0092] The number of regional images whose total color difference is greater than the difference threshold may be one or at least two. When the number of regional images whose total color difference is greater than the difference threshold is one, the regional image whose total color difference is greater than the difference threshold is taken as the region of interest. When the number of regional images whose total color difference is greater than the difference threshold is at least two, the regional images whose total color difference is greater than the difference threshold are superimposed to obtain the region of interest.

[0093] In this embodiment, the color difference values ​​of all pixel pairs in the regional image are obtained to determine the total color difference value of the regional image; and a more accurate region of interest can be determined by selecting the regional images whose total color difference value is greater than the difference threshold value from among the regional images.

[0094] In another embodiment, the electronic device may also use the image of the region with the largest total color difference as the region of interest.

[0095] In another embodiment, determining a region of interest from an original image includes: taking the original image as a segmentation object, dividing the segmentation object to obtain at least two sub-objects; for each sub-object, determining from the sub-object each pixel pair whose distance difference is within a preset range; obtaining the color value of each pixel included in each pixel pair; performing difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; determining the total color difference of the sub-object based on the color difference of each pixel pair; obtaining from each sub-object a sub-object whose total color difference is greater than a difference threshold as a new segmentation object, returning to execute the step of dividing the segmentation object to obtain at least two sub-objects, until the number of divisions reaches the number threshold, and obtaining from each sub-object obtained from the last division a sub-object whose total color difference is greater than the difference threshold as the region of interest.

[0096] A sub-object refers to an object obtained by dividing a segmented object. A pixel pair refers to a pair of pixels, that is, it includes two pixels. The color value of a pixel refers to the value that represents the color of the pixel.

[0097] Determine from the sub-object each pixel pair whose distance difference is within a preset range, that is, the position difference between the two pixels included in the pixel pair is within the preset range, and the two pixels included in the pixel pair may be two pixels that are adjacent or close in position.

[0098] The larger the color difference of the pixel pair, the greater the color change between the two pixels included in the pixel pair, and the greater the color change of the pixel pair, the higher the color diversity of the sub-object including the pixel pair, and the greater the possibility that the sub-object is the user's area of ​​interest.

[0099] The larger the total color difference of a sub-object is, the larger the color difference between each pixel pair in the sub-object is, and the higher the color diversity in the sub-object is, the more content information the sub-object includes, and the more likely it is the user's area of ​​interest.

[0100] The number of sub-objects whose total color difference is greater than the difference threshold may be one or at least two. When the number of sub-objects whose total color difference is greater than the difference threshold is one, the sub-object whose total color difference is greater than the difference threshold is taken as the region of interest. When the number of sub-objects whose total color difference is greater than the difference threshold is at least two, the sub-objects whose total color difference is greater than the difference threshold are superimposed to obtain the region of interest.

[0101] In this embodiment, a sub-object whose total color difference is greater than a difference threshold is obtained from each sub-object obtained by the last division. The sub-object has a higher color diversity and includes more content information. The sub-object is determined as a region of interest, which can improve the accuracy of the determined region of interest. In one embodiment, the recognition content includes at least one of text and pattern. The first time element and the recognition content are fused to obtain a first type of dial, including: when the recognition content includes text, the first time element and the text are fused to obtain a text dial; when the recognition content includes a pattern, a pattern dial is obtained based on the first time element and the pattern; both the text dial and the pattern dial belong to the first type of dial.

[0102] A text dial refers to a dial obtained by integrating the first time element and text. A pattern dial refers to a dial obtained by integrating the first time element and a pattern.

[0103] When the recognized content includes text, the first time element and the text are merged to obtain a text dial. For example, the recognized content includes text, and the text is the four words "smart bracelet", then the four words are used as the background, and the first time element is used as the foreground, and then superimposed to obtain a text dial. Furthermore, the electronic device can process the text in the text, such as randomly using text styles to generate artistic words, and using different layout templates according to the number of words in the text to determine the size and position of the text. Among them, the color of the first time element and the color of the text can be set by the user, or randomly selected colors, without limitation.

[0104] When the recognized content includes a pattern, the first time element and the pattern are merged to obtain a pattern dial. For example, if the recognized content includes a pattern, and the pattern is "pet dog", the "pet dog" pattern is used as the background, and the first time element is used as the foreground, and then superimposed processing is performed to obtain a pattern dial.

[0105] In this embodiment, when the recognized content includes text, the first time element and the text are merged to obtain a text dial; when the recognized content includes a pattern, a pattern dial is obtained based on the first time element and the pattern, which can provide a more diverse dial.

[0106] In one embodiment, Figure 3 As shown, when the recognition content includes a pattern, a pattern dial is obtained based on the first time element and the pattern, including:

[0107] Step 302: When the identification content includes a pattern, the resolution of the pattern is detected.

[0108] The resolution of a pattern refers to the precision of the pattern. The higher the resolution of a pattern, the more precise and clear the pattern is, and the higher the quality of the pattern is.

[0109] Step 304: when the resolution is greater than or equal to the resolution threshold, the first time element and the pattern are merged to obtain a pattern dial.

[0110] When the resolution of the pattern is greater than or equal to the resolution threshold, it means that the pattern is clearer and has higher quality, so the first time element and the pattern can be directly merged to obtain a pattern dial.

[0111] Furthermore, when the resolution is greater than or equal to the resolution threshold, a noise reduction algorithm may be used to perform noise reduction processing on the pattern to obtain a pattern with lower noise, and then the first time element and the pattern after noise reduction processing are fused to obtain a pattern dial.

[0112] Step 306: When the resolution is less than the resolution threshold, determine the target color from the pattern, and fuse the first time element and the target color to obtain a pattern dial.

[0113] The target color refers to the color determined from the pattern to be used to blend the pattern dial.

[0114] When the resolution is less than the resolution threshold, it means that the resolution of the pattern is low, the pattern is blurry, and the quality is not high, so the target color is determined from the pattern, and the first time element and the target color are merged to obtain the pattern dial.

[0115] In one embodiment, when the resolution is less than the resolution threshold, the electronic device may randomly select at least one color from the pattern as the target color. In another embodiment, when the resolution is less than the resolution threshold, the electronic device may select a user-determined color from the pattern as the target color.

[0116] In this embodiment, the resolution of the pattern is detected. When the resolution is greater than or equal to the resolution threshold, the first time element and the pattern are fused to obtain a pattern dial with higher resolution and clearer clarity. When the resolution is less than the resolution threshold, the target color is determined from the pattern, and the first time element and the target color are fused to obtain the pattern dial. Based on the different resolutions of the patterns, different pattern dials are generated in different ways, which improves the diversity of the pattern dials and enriches the dials to be pushed.

[0117] In one embodiment, when the resolution is less than a resolution threshold, a target color is determined from the pattern, and a first time element and the target color are merged to obtain a pattern dial, including: when the resolution is less than a resolution threshold, at least two target colors are determined from the pattern; the proportion of the area occupied by the target color in the pattern is greater than a proportion threshold; a background image is generated based on at least two target colors, and the first time element and the background image are merged to obtain a pattern dial.

[0118] The ratio of the target color in the pattern is greater than the ratio threshold, indicating that the target color in the pattern has a larger ratio. The electronic device uses the color whose ratio in the pattern is greater than the ratio threshold as the target color, and the target color can more accurately represent the attributes of the pattern, such as black indicates that the pattern belongs to the cool color system, and red indicates that the pattern has a passionate attribute.

[0119] The background image refers to the image in the background layer. Correspondingly, the first time element is in the foreground layer.

[0120] Furthermore, the electronic device performs gradient processing on at least two target colors to obtain a gradient background image, and then superimposes the first time element and the gradient background image to obtain a pattern dial.

[0121] In this embodiment, the electronic device determines the color whose proportion of the area occupied in the pattern is greater than the proportion threshold as the target color. The target color can characterize the attributes of the pattern. A background image is generated based on at least two target colors, and then the first time element and the background image are merged to obtain a more accurate pattern dial. The background image in the pattern dial includes the main colors of the pattern in the image to be identified.

[0122] In one embodiment, Figure 4 As shown, the second subcategory watch face that matches the identified content is searched from the watch face library, including:

[0123] Step 402, respectively obtain a preview image of each candidate watch face in the watch face library.

[0124] The preview image can be an RGB (Red, Green, Blue) image, a grayscale image, a depth image, etc. A candidate watch face refers to a watch face in the watch face library. The preview image of a candidate watch face can be an image of the entire candidate watch face being previewed, or an image of the background of the candidate watch face.

[0125] Step 404 , matching the identified content with each preview image respectively, and obtaining the matching degree between the identified content and each candidate watch face respectively.

[0126] The matching degree refers to the degree of matching. The higher the matching degree between the recognized content and the candidate watch face, the higher the matching degree between the recognized content and the candidate watch face, and the closer the features between the recognized content and the candidate watch face. The recognized content may be text, pattern, etc.

[0127] The electronic device extracts features from each preview image to obtain features of each preview image; obtains features of the identified content, matches the features of the identified content with features of each preview image respectively, obtains a matching degree between the identified content and the preview image, and uses the matching degree between the identified content and the preview image as a matching degree between candidate dials of the identified content.

[0128] When the recognized content is text, semantic analysis is performed on the text to obtain the features of the text, and the features of the text are matched with the features of each preview image to obtain the matching degree between the text and the preview image, and the matching degree is used as the matching degree between the recognized content and the candidate dial.

[0129] When the recognized content is a pattern, feature extraction is performed on the pattern to obtain the features of the pattern, and the features of the pattern are matched with the features of each preview image to obtain the matching degree between the pattern and the preview image, and the matching degree is used as the matching degree between the recognized content and the candidate dial.

[0130] Step 406: Based on the matching degree between the identified content and each candidate watch face, a candidate watch face with a matching degree higher than a matching degree threshold is obtained as a second subcategory watch face.

[0131] The matching degree threshold can be set according to user needs.

[0132] In this embodiment, preview images of each candidate watch face in the watch face library are obtained respectively; the recognition content is matched with each preview image respectively to obtain the matching degree between the recognition content and each candidate watch face; based on the matching degree between the recognition content and each candidate watch face respectively, the candidate watch face with a matching degree higher than the matching degree threshold is obtained as the second sub-category watch face, and the obtained second sub-dial is more matched with the image to be recognized.

[0133] In another embodiment, the electronic device may also obtain a preset number of candidate watch faces with the highest matching degree as the second subcategory watch faces.

[0134] In one embodiment, pushing a watch face based on at least one of the first and second watch faces includes: in response to a trigger operation performed on at least one of the first and second watch faces, taking the watch face selected by the trigger operation as a target watch face, and sending the target watch face to the wearable device, so that the wearable device displays the target watch face in the display interface of the wearable device.

[0135] The trigger operation can be a click, slide, long press, voice trigger, etc. The target dial refers to the selected dial, which is used to display in the display interface of the wearable device. Wearable devices include smart bracelets, smart watches, etc.

[0136] When the user performs a trigger operation on at least one of the first type of watch dial and the second type of watch dial displayed in the display interface of the electronic device, the watch dial selected by the trigger operation is used as the target watch dial, and the target watch dial is sent to the wearable device.

[0137] Furthermore, in order to save processing resources, the electronic device can compress the target dial to obtain a resource compression package, and then send the resource compression package to the wearable device.

[0138] After receiving the target dial, the wearable device displays the target dial in the display interface. The complex steps of data processing and fusion to obtain the dial in the process of generating the dial are performed in the electronic device, while the wearable device only needs to obtain the target dial for display, which reduces the operating pressure of the wearable device and can better realize other functions of the wearable device.

[0139] A ColorOS Watch engine can be built into the wearable device, and the resource compression package on the memory of the wearable device can be directly parsed and rendered through the ColorOS Watch engine. Among them, the parsing is based on a set of grammatical description rules customized in the XML file. The wearable device obtains the resource compression package of the dial from the memory. The ColorOSWatch engine can read the XML file and the required image resources and other materials from the resource compression package, and describe the effect of the dial in the XML file according to the designed grammatical rules, such as which pictures or texts to display, how to display, what the animation rules are, etc., and then parse the XML file based on the rules in the XML file to render it into the actual display content of the dial.

[0140] In one embodiment, Figure 5 As shown, the electronic device executes step 502 to obtain an original image. The original image may be an image obtained by taking a screenshot of the screen of the electronic device. Step 504 is executed to determine a region of interest from the original image to obtain an image to be identified. The region of interest may be a region selected by a user from the original image.

[0141] The electronic device executes step 506, obtains a first time element, and fuses the first time element and the identified content to obtain a first-category watch face. The electronic device executes step 508, searches for a matching image that matches the identified content from the image library, obtains a second time element, and fuses the second time element and the matching image to obtain a first-subcategory watch face. The electronic device executes 510, and searches for a second-category watch face that matches the identified content from the watch face library.

[0142] The electronic device executes step 512 to select a target dial from the first type of dial, the first sub-type of dial, and the second sub-type of dial. The electronic device executes step 514 to convert the target dial into a resource compression package. The electronic device executes step 516 to send the resource compression package to the wearable device. The wearable device executes step 516, and the wearable device parses and renders the resource compression package.

[0143] In one embodiment, the above method also includes: respectively obtaining a first proportion of the first category of dials and a second proportion of the second category of dials; the first proportion and the second proportion are updated according to statistical results, and the statistical results are obtained by counting the situations in which the dials used within a preset time belong to the first category of dials or the second category of dials; determining a first quantity based on the first proportion, and determining a second quantity based on the second proportion; obtaining a first time element, and fusing the first time element and the identification content to obtain a first quantity of first category dials, including: obtaining the first time element, and fusing the first time element and the identification content to obtain a first quantity of first category dials; searching from a database based on the identification content to obtain a second category of dials that matches the identification content, including: searching from a database based on the identification content to obtain a second quantity of second category dials that matches the identification content.

[0144] The first proportion refers to the proportion of the number of generated first-type dials in all generated dials. The second proportion refers to the proportion of the number of generated second-type dials in all generated dials.

[0145] The electronic device obtains the total quantity, multiplies the first proportion by the total quantity to obtain the first quantity, and multiplies the second proportion by the total quantity to obtain the second quantity. The total quantity may be set by default or may be set according to user needs.

[0146] Further, respectively obtain a first proportion of the first category of dials, a first sub-proportion of the first sub-category of dials, and a second sub-proportion of the second sub-category of dials; determine a first quantity based on the first proportion, determine a first sub-quantity based on the first sub-proportion, and determine a second sub-quantity based on the second sub-proportion; obtain a first time element, and fuse the first time element and the identification content to obtain a first category of dials, including: obtain the first time element, fuse the first time element and the identification content to obtain a first quantity of first category dials; fuse the second time element and the matching image to obtain a first sub-quantity of first sub-category dials, including: fuse the second time element and the matching image to obtain a first sub-quantity of first sub-category dials; search from the dial library based on the identification content to obtain a second sub-category of dials that matches the identification content, including: search from the dial library based on the identification content to obtain a second sub-quantity of second sub-category dials that matches the identification content.

[0147] The first sub-proportion refers to the proportion of the number of generated first sub-category dials in all generated dials. The second sub-proportion refers to the proportion of the number of generated second sub-category dials in all generated dials.

[0148] The first sub-quantity refers to the number of generated dials of the first sub-category. The second sub-quantity refers to the number of generated dials of the second sub-category.

[0149] The electronic device obtains the total quantity, multiplies the first proportion by the total quantity to obtain the first quantity, multiplies the first sub-proportion by the total quantity to obtain the first sub-quantity, and multiplies the second sub-proportion by the total quantity to obtain the second sub-quantity. The total quantity may be set by default or may be set according to user needs.

[0150] In one embodiment, after pushing a watch face based on at least one of the first and second categories of watch faces, it also includes: collecting statistics on whether the watch face selected within a preset time belongs to the first or second category of watch faces to obtain statistical results; updating the first proportion and the second proportion according to the statistical results; determining an updated first quantity based on the updated first proportion, and determining an updated second quantity based on the updated second proportion; when a watch face recommendation request is received, generating a new first category watch face and a new second category watch face based on the updated first proportion and the updated second proportion, respectively; and pushing at least one of the new first category watch face and the new second category watch face.

[0151] The electronic device counts whether the selected dial belongs to the first category or the second category within a preset time, that is, counts whether the selected dial belongs to the first category or the second category, and obtains a statistical result.

[0152] Determine the watch face of the type that is selected the most times from the statistical results, increase the corresponding weight of the watch face of this type, and reduce the weights of the other two types of watch faces. For example, in the statistical results, the number of times the user selects the first type of watch face is the largest, indicating that the user prefers to obtain the target watch face from the first type of watch face, and the first type of watch face is more in line with the user's preferences, so the first weight of the first type of watch face is increased to obtain the updated first weight, and the second weight is reduced to obtain the updated first weight and the updated second weight.

[0153] Therefore, the updated first quantity determined by the updated first proportion is larger, and more new first-category watch faces can be acquired based on the updated first proportion, so that more watch faces that meet the user's preferences can be pushed to the user.

[0154] Furthermore, statistics are collected on whether the selected dial within the preset time belongs to the first category of dials, the first subcategory of dials or the second subcategory of dials to obtain statistical results; the first proportion, the first sub-proportion and the second sub-proportion are updated according to the statistical results; an updated first quantity is determined based on the updated first proportion, an updated first sub-quantity is determined based on the updated first sub-proportion, and an updated second sub-quantity is determined based on the updated second sub-proportion; when a dial push request is received, a new first category dial, a new first subcategory dial and a new second subcategory dial are generated based on the updated first proportion, the updated first sub-proportion and the updated second sub-proportion, respectively; and at least one of the new first category dial, the new first subcategory dial and the new second subcategory dial is pushed.

[0155] The electronic device counts whether the selected dial belongs to the first category dial, the first subcategory dial or the second subcategory dial within a preset time, that is, counts whether the selected dial belongs to the first category dial, the first subcategory dial or the second subcategory dial to obtain a statistical result.

[0156] Determine the watch face of the type that is selected the most times from the statistical results, increase the corresponding weight of the watch face of this type, and reduce the weights of the other two types of watch faces. For example, in the statistical results, the number of times the user selects the second sub-category watch face is the largest, indicating that the user prefers to obtain the target watch face from the second sub-category watch face, and the second sub-category watch face is more in line with the user's preferences, so the second sub-weight of the second sub-category watch face is increased to obtain an updated second sub-weight, and the first weight and the first sub-weight are reduced to obtain an updated first weight and an updated first sub-weight.

[0157] Therefore, the updated second sub-number determined by the updated second sub-proportion is larger, and more new second sub-category watch faces can be obtained based on the updated second sub-proportion, so that watch faces that are more in line with user preferences can be pushed to users.

[0158] In one embodiment, Figure 6 As shown, the identification content also includes the color present in the image to be identified; and the dial is pushed based on at least one of the first type of dial and the second type of dial, including:

[0159] Step 602: Acquire the colors existing in the image to be recognized from the recognition content.

[0160] The electronic device obtains an image to be recognized; recognizes the image to be recognized to obtain recognition content, and obtains the color existing in the image to be recognized from the recognition content.

[0161] Step 604: Determine the color richness of the image to be identified based on the colors existing in the image to be identified.

[0162] Color richness refers to the richness of colors. The more colors there are in the image to be identified, the higher the color richness; the fewer colors there are in the image to be identified, the lower the color richness.

[0163] Step 606: Based on the color richness of the image to be identified, determine the watch face to be pushed that matches the color richness from the first category of watch faces and the second category of watch faces, and push the watch face to be pushed.

[0164] It is understandable that the first type of dial is obtained by integrating the first time element and the identification content, and is usually a simple type of dial. The second type of dial is searched from the database, and the search range from the database is large, and richer dials can be obtained.

[0165] Therefore, based on the color richness of the image to be identified, a watch dial to be pushed that matches the color richness of the image to be identified is determined, and the watch dial to be pushed is pushed.

[0166] Furthermore, the above method also includes: determining the color type based on the color existing in the image to be identified; determining the dial to be pushed that matches the color richness from the first category of dials and the second category of dials, including: determining the dial to be pushed that matches the color richness and matches the color type from the first category of dials and the second category of dials.

[0167] Color type refers to the type of color. For example, light color represents freshness, and dark color represents heaviness. The target strategy is used to generate a watch face to be pushed that matches the color richness and the color type. The generated watch face to be pushed is more matched with the image to be recognized.

[0168] Distinguish image types based on the color richness and image type mapping table, such as light colors correspond to freshness, dark colors correspond to heaviness, etc.

[0169] In one embodiment, Figure 7 As shown, based on the color richness of the image to be identified, determining a watch face to be pushed that matches the color richness from the first category of watch faces and the second category of watch faces, including:

[0170] Step 702: When the color richness of the image to be identified is less than or equal to a first richness threshold, the first type of watch face is determined as a watch face to be pushed that matches the color richness.

[0171] When the color richness of the image to be identified is less than or equal to the first richness threshold, it indicates that the image to be identified is a simple type image, and the first simple type dial is determined as the dial to be pushed that matches the color richness.

[0172] Step 704: When the color richness of the image to be identified is greater than the first richness threshold, the second type of watch face is determined as the watch face to be pushed that matches the color richness.

[0173] When the color richness of the image to be identified is greater than the first richness threshold, it means that the color richness of the image to be identified is high, and the second type of dial with more styles can be determined as the dial to be pushed that matches the color richness.

[0174] Further, when the color richness of the image to be identified is greater than the first richness threshold, the second category dial is determined as the dial to be pushed that matches the color richness, including: when the color richness of the image to be identified is greater than the first richness threshold and less than the second richness threshold, the first subcategory dial is determined as the dial to be pushed that matches the color richness; when the color richness of the image to be identified is greater than or equal to the second richness threshold, the second subcategory dial is determined. Wherein, the first richness threshold is less than the second richness threshold; the first subcategory dial and the second subcategory dial both belong to the second category dial.

[0175] When the color richness of the image to be identified is greater than the first richness threshold and less than the second richness threshold, it means that the color richness of the image to be identified is medium, and the first subcategory dial with more styles can be determined as the dial to be pushed that matches the color richness.

[0176] When the color richness of the image to be identified is greater than or equal to the second richness threshold, it means that there are more colors in the image to be identified and the image to be identified is an exquisite type of image. In this case, the second sub-dial with more styles and more exquisiteness is determined as the dial to be pushed that matches the color richness.

[0177] In this embodiment, based on the color richness of the image to be identified, different strategies can be used to generate different types of watch faces and push them to the user, and the pushed watch faces are more consistent with the type of the image to be identified.

[0178] In another embodiment, a dial push method is provided, which is applied to a wearable device, including: receiving a target dial sent by an electronic device connected to the wearable device; displaying the target dial in the display interface of the wearable device; the target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to an acquired selection instruction; the dial to be pushed is determined from at least one of a first category of dials and a second category of dials; the first category of dials is obtained by fusing an acquired first time element and recognition content, and the recognition content is obtained by recognizing an acquired image to be recognized; the second category of dials is determined based on the search results by searching for data matching the recognition content in a database.

[0179] The target watch face refers to a watch face selected by the electronic device from the first watch face category and the second watch face category, and is used for display in the display interface of the wearable device.

[0180] Wearable devices such as smart bracelets and smart watches. The complex steps of data processing and fusion to obtain the dial in the process of generating the dial are performed in the electronic device, while the wearable device only needs to obtain the target dial for display, which reduces the operating pressure of the wearable device and can better realize other functions of the wearable device.

[0181] It should be understood that although Figures 2 to 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 to 7 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0182] Figure 8 FIG. 1 is a structural block diagram of a dial pushing device according to an embodiment of the present invention. Figure 8 As shown, a dial pushing device 800 is provided, comprising: a to-be-recognized image acquisition module 802, a recognition module 804, a first-category dial acquisition module 806, a second-category dial acquisition module 808, and a pushing module 810, wherein:

[0183] The to-be-recognized image acquisition module 802 is used to acquire the to-be-recognized image.

[0184] The recognition module 804 is used to recognize the image to be recognized and obtain recognition content.

[0185] The first type of watch dial acquisition module 806 is used to acquire a first time element and fuse the first time element with the identification content to obtain a first type of watch dial.

[0186] The second-category watch dial acquisition module 808 is used to search the database for data matching the identified content, and determine the second-category watch dial based on the search results.

[0187] The push module 810 is used to push a watch face based on at least one of the first type of watch face and the second type of watch face for display on the wearable device.

[0188] The above-mentioned dial pushing device obtains an image to be identified; identifies the image to be identified to obtain identification content; obtains a first time element, and fuses the first time element and the identification content to obtain a first type of dial; searches for data matching the identification content from a database, and determines a second type of dial based on the search results, and obtains the first type of dial and the second type of dial in two different ways based on the identification content in the image to be identified, and then pushes at least one of the first type of dial and the second type of dial, which can improve the diversity of pushed dials and enrich the dials to be pushed.

[0189] In one embodiment, the second-category dial acquisition module 808 is also used to search for a matching image that matches the identified content from the image library, obtain a second time element, and fuse the second time element and the matching image to obtain a first subcategory dial; or search for a second subcategory dial that matches the identified content from the dial library; both the first subcategory dial and the second subcategory dial belong to the second category dial.

[0190] In one embodiment, the above-mentioned to-be-recognized image acquisition module 802 is further used to acquire an original image determined by a user; determine a region of interest from the original image; and generate an to-be-recognized image based on the region of interest.

[0191] In one embodiment, the above-mentioned module 802 for acquiring the image to be identified is also used to divide the original image into sub-regions; for each sub-region, determine from the sub-region each pixel pair whose distance difference is within a preset range; obtain the color value of each pixel included in each pixel pair; perform difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; and determine the region of interest from each sub-region based on the color difference of each pixel pair in each sub-region.

[0192] In one embodiment, the above-mentioned image acquisition module 802 is also used to obtain the color difference of all pixel pairs in the sub-region and determine the total color difference of the sub-region; from each sub-region, the sub-region whose total color difference is greater than the difference threshold is determined as the region of interest.

[0193] In one embodiment, the above-mentioned image acquisition module 802 for identification is also used to acquire a preset window; move the preset window on the original image to acquire the regional image within the preset window; for each regional image, determine from the regional image each pixel pair whose distance difference is within a preset range; acquire the color value of each pixel included in each pixel pair; perform difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; based on the color difference of each pixel pair, determine the total color difference of the regional image, and determine the sub-region whose total color difference is greater than the difference threshold from each regional image as the region of interest.

[0194] In one embodiment, the above-mentioned image acquisition module 802 for identification is also used to take the original image as a segmentation object, divide the segmentation object, and obtain at least two sub-objects; for each sub-object, determine each pixel pair whose distance difference is within a preset range from the sub-object; obtain the color value of each pixel included in each pixel pair; perform difference processing on the color values ​​of the pixels included in each pixel pair to determine the color difference of each pixel pair; based on the color difference of each pixel pair, determine the total color difference of the sub-object; obtain a sub-object whose total color difference is greater than a difference threshold from each sub-object as a new segmentation object, return to execute the step of dividing the segmentation object to obtain at least two sub-objects, until the number of divisions reaches the number threshold, and obtain a sub-object whose total color difference is greater than the difference threshold from each sub-object obtained by the last division as the area of ​​interest.

[0195] In one embodiment, the identified content includes at least one of text and pattern; the above-mentioned first-category dial acquisition module 806 is also used to fuse the first time element and the text to obtain a text dial when the identified content includes text; when the identified content includes a pattern, a pattern dial is obtained based on the first time element and the pattern; both the text dial and the pattern dial belong to the first category of dials.

[0196] In one embodiment, the above-mentioned first-category dial acquisition module 806 is also used to detect the resolution of the pattern when the recognition content includes a pattern; when the resolution is greater than or equal to the resolution threshold, the first time element and the pattern are merged to obtain a pattern dial; when the resolution is less than the resolution threshold, the target color is determined from the pattern, and the first time element and the target color are merged to obtain a pattern dial.

[0197] In one embodiment, the above-mentioned first-type dial acquisition module 806 is also used to determine at least two target colors from the pattern when the resolution is less than the resolution threshold; the proportion of the area occupied by the target color in the pattern is greater than the proportion threshold; generate a background image based on at least two target colors, and merge the first time element and the background image to obtain a pattern dial.

[0198] In one embodiment, the above-mentioned second-category dial acquisition module 808 is also used to respectively acquire preview images of each candidate dial in the dial library; match the identified content with each preview image respectively to obtain the matching degree between the identified content and each candidate dial; based on the matching degree between the identified content and each candidate dial respectively, obtain the candidate dial with a matching degree higher than the matching degree threshold as the second subcategory dial.

[0199] In one embodiment, the push module 810 is also used to respond to a trigger operation for selecting a first type of watch face and a second type of watch face, use the watch face selected by the trigger operation as the target watch face, and send the target watch face to the wearable device so that the wearable device can display the target watch face in the display interface of the wearable device.

[0200] In one embodiment, the above-mentioned dial pushing device also includes a specific gravity acquisition module, which is used to respectively obtain the first specific gravity of the first category of dials and the second specific gravity of the second category of dials; the first specific gravity and the second specific gravity are updated according to the statistical results, and the statistical results are obtained by counting the situations in which the dials used within the preset time belong to the first category of dials or the second category of dials; the first quantity is determined based on the first specific gravity, and the second quantity is determined based on the second specific gravity; the above-mentioned first category dial acquisition module 806 is also used to obtain the first time element, and fuse the first time element and the identification content to obtain the first quantity of first category dials; the above-mentioned second category dial acquisition module 808 is also used to search from the database based on the identification content to obtain the second quantity of second category dials that match the identification content.

[0201] In one embodiment, the above-mentioned dial pushing device also includes an updating module, which is used to count the situations in which the dials selected within a preset time belong to the first category of dials or the second category of dials to obtain statistical results; update the first proportion and the second proportion according to the statistical results; determine the updated first quantity based on the updated first proportion, and determine the updated second quantity based on the updated second proportion; when a dial pushing request is received, generate a new first category dial and a new second category dial based on the updated first proportion and the updated second proportion respectively; and push at least one of the new first category dial and the new second category dial.

[0202] In one embodiment, the recognition content also includes the colors existing in the image to be recognized; the above-mentioned push module 810 is also used to obtain the colors existing in the image to be recognized from the recognition content; based on the colors existing in the image to be recognized, determine the color richness of the image to be recognized; based on the color richness of the image to be recognized, determine the dial to be pushed that matches the color richness from the first category of dials and the second category of dials, and push the dial to be pushed.

[0203] In one embodiment, the push module 810 is also used to determine the first type of dial as the dial to be pushed that matches the color richness when the color richness of the image to be identified is less than or equal to the first richness threshold; when the color richness of the image to be identified is greater than the first richness threshold, determine the second type of dial as the dial to be pushed that matches the color richness.

[0204] Fig. 9 FIG. 2 is a structural block diagram of a dial pushing device according to another embodiment. Fig. 9As shown, a dial pushing device 900 is provided, including: a receiving module 902 and a display module 904, wherein:

[0205] The receiving module 902 is used to receive a target dial sent by an electronic device connected to the wearable device.

[0206] Display module 904 is used to display the target dial in the display interface of the wearable device; the target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to the obtained selection instruction; the dial to be pushed is determined from the first category of dials and the second category of dials; the first category of dials is obtained by fusing the obtained first time element and the recognition content, and the recognition content is obtained by recognizing the obtained image to be recognized; the second category of dials is determined based on the search results by searching for data matching the recognition content in the database.

[0207] In the above-mentioned dial pushing device, the target dial received is selected by the electronic device from various dials to be pushed, and the dials to be pushed are obtained in three different ways, which can improve the diversity of dials and enrich the dials to be pushed. In addition, the complex steps of data processing and fusion to obtain the dial in the process of generating the dial are performed in the electronic device, and the wearable device only needs to obtain the target dial for display, which reduces the operating pressure of the wearable device, so that other functions of the wearable device can be better realized.

[0208] The division of the various modules in the above-mentioned dial pushing device is only for illustration. In other embodiments, the dial pushing device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned dial pushing device.

[0209] For the specific definition of the dial pushing device, please refer to the definition of the dial pushing method above, which will not be repeated here. Each module in the above-mentioned dial pushing device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0210] Fig.10 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Fig.10As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a dial push method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.

[0211] The implementation of each module in the dial pushing device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of the electronic device. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.

[0212] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the dial pushing method.

[0213] A computer program product comprising instructions, when the computer program product is run on a computer, causes the computer to execute a dial push method.

[0214] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0215] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A dial pushing method, characterized in that: include: Obtain an image to be recognized; Identify the image to be identified to obtain identification content; The recognition content includes at least one of text and pattern; Acquire a first time element, and fuse the first time element and the identification content to obtain a first type of watch face; Searching for data matching the identification content from a database, and determining a second type of watch dial based on the search results; Pushing a watch face based on at least one of the first-category watch face and the second-category watch face to display on the wearable device; The step of fusing the first time element and the identification content to obtain a first type of watch face includes: When the identified content includes text, the first time element and the text are merged to obtain a text dial; When the identification content includes a pattern, detecting a resolution of the pattern; When the resolution is greater than or equal to a resolution threshold, the first time element and the pattern are merged to obtain a pattern dial; When the resolution is less than a resolution threshold, a target color is determined from the pattern, and the first time element and the target color are merged to obtain a pattern dial; the text dial and the pattern dial both belong to the first type of dial.

2. The method according to claim 1, characterized in that The database includes an image library and a dial library; searching the database for data matching the identified content and determining the second type of dial based on the search results includes: Searching the image library for a matching image that matches the identified content, obtaining a second time element, and fusing the second time element and the matching image to obtain a first sub-category dial; and / or A second subcategory dial matching the identified content is searched from the dial library; the first subcategory dial and the second subcategory dial both belong to the second category dial.

3. The method according to claim 1, characterized in that The step of obtaining the image to be identified comprises: Obtain the original image determined by the user; determining a region of interest from the original image; An image to be recognized is generated based on the region of interest.

4. The method according to claim 3, characterized in that Determining the region of interest from the original image comprises: Dividing the original image into sub-regions; For each of the sub-regions, determining from the sub-region each pair of pixels whose distance difference is within a preset range; Obtaining the color value of each pixel included in each of the pixel pairs; Performing difference processing on the color values ​​of the pixels included in each of the pixel pairs to determine the color difference of each of the pixel pairs; Based on the color difference value of each of the pixel pairs in each of the sub-regions, a region of interest is determined from each of the sub-regions.

5. The method according to claim 3, characterized in that: Determining the region of interest from the original image comprises: Get the preset window; Moving the preset window on the original image to obtain an area image within the preset window; For each of the regional images, determining from the regional images each pair of pixels whose distance difference is within a preset range; Obtaining the color value of each pixel included in each of the pixel pairs; Performing difference processing on the color values ​​of the pixels included in each of the pixel pairs to determine the color difference of each of the pixel pairs; Based on the color difference of each of the pixel pairs, a total color difference of the regional image is determined, and a sub-region in each regional image whose total color difference is greater than a difference threshold is determined as a region of interest.

6. The method according to claim 3, characterized in that Determining the region of interest from the original image comprises: Taking the original image as a segmentation object, and segmenting the segmentation object to obtain at least two sub-objects; For each of the sub-objects, determining from the sub-objects each pair of pixels whose distance difference is within a preset range; Obtaining the color value of each pixel included in each of the pixel pairs; Performing difference processing on the color values ​​of the pixels included in each of the pixel pairs to determine the color difference of each of the pixel pairs; Determine a total color difference of the sub-object based on the color difference of each of the pixel pairs; The sub-object whose total color difference is greater than the difference threshold is obtained from each of the sub-objects as a new segmentation object, and the step of dividing the segmentation object to obtain at least two sub-objects is returned to be executed until the number of divisions reaches the number threshold, and the sub-object whose total color difference is greater than the difference threshold is obtained from each of the sub-objects obtained by the last division as the region of interest.

7. The method according to claim 1, characterized in that When the resolution is less than a resolution threshold, determining a target color from the pattern includes: when the resolution is less than the resolution threshold, randomly selecting at least one color from the pattern as the target color, or selecting a color determined by a user from the pattern as the target color.

8. The method according to claim 1, characterized in that When the resolution is less than a resolution threshold, determining a target color from the pattern, and fusing the first time element and the target color to obtain a pattern dial, comprising: When the resolution is less than a resolution threshold, determining at least two target colors from the pattern; wherein a proportion of an area occupied by the target colors in the pattern is greater than a proportion threshold; A background image is generated based on at least two of the target colors, and the first time element and the background image are merged to obtain a pattern dial.

9. The method according to claim 8, characterized in that The step of generating a background image based on at least two of the target colors and fusing the first time element and the background image to obtain a pattern dial includes: At least two of the target colors are subjected to a gradient process to obtain a gradient background image, and then the first time element and the gradient background image are superimposed to obtain a pattern dial.

10. The method according to claim 2, characterized in that The step of searching the watch face library for a second subcategory watch face that matches the identified content includes: Obtaining preview images of candidate watch faces in the watch face library respectively; Matching the identified content with each of the preview images respectively to obtain a matching degree between the identified content and each of the candidate watch faces respectively; Based on the matching degree between the identified content and each of the candidate watch faces, the candidate watch faces with matching degrees higher than a matching degree threshold are obtained as the second subcategory watch faces.

11. The method according to any one of claims 1 to 10, characterized in that The pushing of a watch face based on at least one of the first-type watch faces and the second-type watch faces comprises: In response to a trigger operation performed on at least one of the first and second types of watch dials, the watch dial selected by the trigger operation is used as a target watch dial, and the target watch dial is sent to a wearable device so that the wearable device displays the target watch dial in a display interface of the wearable device.

12. The method according to claim 1, characterized in that The method further comprises: respectively obtaining a first proportion of the first type of watch dial and a second proportion of the second type of watch dial; the first proportion and the second proportion are updated according to statistical results, and the statistical results are obtained by counting whether the watch dials used within a preset time belong to the first type of watch dial or the second type of watch dial; determining a first quantity based on the first specific gravity, and determining a second quantity based on the second specific gravity; The acquiring the first time element and fusing the first time element with the identification content to obtain a first type of watch face includes: Acquire a first time element, and fuse the first time element with the identification content to obtain the first number of first-category watch faces; The step of searching a database based on the identification content to obtain a second type of watch dial that matches the identification content comprises: Based on the identification content, the second number of second-category watch dials matching the identification content are searched from a database.

13. The method according to claim 1, characterized in that The recognition content includes the color present in the image to be recognized; and the dial push based on at least one of the first type of dial and the second type of dial includes: Acquire the color existing in the image to be identified from the identification content; Determining the color richness of the image to be identified based on the colors present in the image to be identified; Based on the color richness of the image to be identified, a dial to be pushed that matches the color richness is determined from the first category of dials and the second category of dials, and the dial to be pushed is pushed.

14. The method according to claim 13, characterized in that The determining, based on the color richness of the image to be identified, a watch face to be pushed that matches the color richness from the first category of watch faces and the second category of watch faces comprises: When the color richness of the image to be identified is less than or equal to a first richness threshold, determining the first type of watch face as a watch face to be pushed that matches the color richness; When the color richness of the image to be identified is greater than a first richness threshold, the second type of watch dial is determined as a watch dial to be pushed that matches the color richness.

15. A dial pushing method, characterized in that: Applied to wearable devices, including: Receiving a target dial sent by an electronic device connected to the wearable device; Displaying the target watch face in a display interface of the wearable device; The target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to the obtained selection instruction; the dial to be pushed is determined from at least one of the first type of dials and the second type of dials; The first type of dial is obtained by fusing the acquired first time element and the recognition content, and the recognition content is obtained by recognizing the acquired image to be recognized; the recognition content includes at least one of text and pattern; when the recognition content includes text, the first time element and the text are fused to obtain a text dial; when the recognition content includes a pattern, the resolution of the pattern is detected; when the resolution is greater than or equal to a resolution threshold, the first time element and the pattern are fused to obtain a pattern dial; when the resolution is less than a resolution threshold, a target color is determined from the pattern, and the first time element and the target color are fused to obtain a pattern dial. The text dial and the pattern dial both belong to the first type of dial; The second type of dial is obtained by searching a database for data matching the identification content and is determined based on the search results.

16. A dial pushing device, characterized in that: include: An image acquisition module to be identified, used to acquire an image to be identified; A recognition module, used to recognize the image to be recognized and obtain recognition content; The recognition content includes at least one of text and pattern; A first-category dial acquisition module, used to acquire a first time element, and fuse the first time element and the recognition content to obtain a first-category dial; when the recognition content includes text, fuse the first time element and the text to obtain a text dial; when the recognition content includes a pattern, detect the resolution of the pattern; When the resolution is greater than or equal to a resolution threshold, the first time element and the pattern are merged to obtain a pattern dial; when the resolution is less than the resolution threshold, a target color is determined from the pattern, and the first time element and the target color are merged to obtain a pattern dial; the text dial and the pattern dial both belong to the first type of dial; A second-category watch dial acquisition module, configured to search a database for data matching the identified content, and determine a second-category watch dial based on the search results; A push module is used to push a watch face based on at least one of the first type of watch face and the second type of watch face for display on a wearable device.

17. A dial pushing device, characterized in that: Applied to wearable devices, including: A receiving module, used to receive a target dial sent by an electronic device connected to the wearable device; a display module, configured to display the target dial in the display interface of the wearable device; the target dial is selected by the electronic device from various dials to be pushed in the display interface of the electronic device according to the obtained selection instruction; the dial to be pushed is determined from a first type of dial and a second type of dial; the first type of dial is obtained by fusing the obtained first time element and the recognition content, and the recognition content is obtained by recognizing the obtained image to be recognized; the recognition content includes at least one of text and pattern; when the recognition content includes text, the first time element and the text are merged to obtain a text dial; when the recognition content includes a pattern, the resolution of the pattern is detected; when the resolution is greater than or equal to a resolution threshold, the first time element and the pattern are merged to obtain a pattern dial; when the resolution is less than the resolution threshold, a target color is determined from the pattern, and the first time element and the target color are merged to obtain a pattern dial; the text dial and the pattern dial both belong to the first type of dial; the second type of dial is searched from a database for data matching the recognition content, and is determined based on the search results.

18. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the dial pushing method according to any one of claims 1 to 14.

19. A wearable device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor performs the steps of the dial pushing method as claimed in claim 15.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.

21. A computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the steps of implementing the method as claimed in any one of claims 1 to 15.

Citation Information

Patent Citations

  • Wallpaper display method and device

    CN106406900A

  • Method and device for setting theme style of electronic equipment system and storage medium

    CN110362376A

  • Image processing method, device and equipment

    CN110456960A