CN113298897A - Method and device for generating intelligent watch dial, storage medium, intelligent watch and system - Google Patents

Method and device for generating intelligent watch dial, storage medium, intelligent watch and system Download PDF

Info

Publication number
CN113298897A
CN113298897A CN202010113023.9A CN202010113023A CN113298897A CN 113298897 A CN113298897 A CN 113298897A CN 202010113023 A CN202010113023 A CN 202010113023A CN 113298897 A CN113298897 A CN 113298897A
Authority
CN
China
Prior art keywords
color
picture
target
colors
reference picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010113023.9A
Other languages
Chinese (zh)
Inventor
陈德银
李羿瑺
赵文慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010113023.9A priority Critical patent/CN113298897A/en
Priority to PCT/CN2021/077439 priority patent/WO2021169945A1/en
Priority to US17/183,298 priority patent/US20210264191A1/en
Priority to EP21158731.6A priority patent/EP3869466A1/en
Publication of CN113298897A publication Critical patent/CN113298897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the application provides a method, a device, a storage medium, an intelligent watch and a system for generating an intelligent watch dial, wherein the method comprises the following steps: acquiring a preset template picture according to the texture features of the reference picture; acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture; performing color conversion on one or more colors to obtain corresponding one or more target colors; filling one or more target colors into a preset template picture to obtain a target picture; and generating an intelligent watch dial according to the target picture. In the method for generating the intelligent watch dial plate, the reference picture can be selected or set by the user, so that the target picture finally obtained according to the reference picture has personalized elements of the user, the generated dial plate is also the dial plate with the user personalization, the dial plate is rich in form, and the form diversity of the dial plate is enhanced.

Description

Method and device for generating intelligent watch dial, storage medium, intelligent watch and system
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method, an apparatus, a storage medium, an intelligent watch, and a system for generating a dial plate of the intelligent watch.
Background
With the rapid development of electronic technology, electronic devices such as smartwatches have become more and more versatile. The user can not only look over time, date through intelligent wrist-watch, can also communicate, amusement etc. through intelligent wrist-watch.
At present, the intelligence wrist-watch dial plate all is invariable usually, for example the dial plate only shows the background of time, date and system setting usually to intelligence wrist-watch dial plate form is single, lacks the variety.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium, an intelligent watch and a system for generating an intelligent watch dial, which can generate the intelligent watch dial according to a reference picture, so that the watch dial is rich in form.
The embodiment of the application provides a method for generating a smart watch dial, which comprises the following steps:
acquiring a preset template picture according to the texture features of the reference picture;
acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture;
performing color conversion on the one or more colors to obtain corresponding one or more target colors;
filling the one or more target colors into the preset template picture to obtain a target picture;
and generating an intelligent watch dial according to the target picture.
The embodiment of the present application still provides a device for generating intelligent wrist-watch dial plate, includes:
the image acquisition module is used for acquiring a preset template image according to the texture characteristics of the reference image;
the color obtaining module is used for obtaining one or more colors with the most color proportion in the reference picture according to the color characteristics of the reference picture;
the color conversion module is used for performing color conversion on the one or more colors to obtain one or more corresponding target colors;
the color filling module is used for filling the one or more target colors into the preset template picture to obtain a target picture;
and the dial plate generation module is used for generating an intelligent watch dial plate according to the target picture.
The embodiment of the application also provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the method for generating the intelligent watch dial.
The embodiment of the application further provides the intelligent watch, and the intelligent watch is used for executing the method for generating the intelligent watch dial plate.
The embodiment of the present application further provides a system for generating intelligent watch dial plate, including intelligent watch and with intelligent watch communication connection's mobile terminal, mobile terminal is used for:
acquiring a preset template picture according to the texture features of the reference picture;
acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture;
performing color conversion on the one or more colors to obtain corresponding one or more target colors;
filling the one or more target colors into the preset template picture to obtain a target picture, and sending the target picture to the smart watch;
the smart watch is configured to:
and generating an intelligent watch dial according to the target picture.
According to the method for generating the intelligent watch dial plate, a preset template picture and one or more colors are obtained according to a reference picture, the one or more colors are converted to obtain corresponding target colors, the target colors are filled in the preset template picture to obtain the target picture, and the intelligent watch dial plate is generated according to the target picture. Because the reference picture can be selected or set by a user, the target picture finally obtained according to the reference picture has personalized elements of the user, and the generated dial plate also has personalized elements of the user, so that the dial plate has rich forms, and the form diversity of the dial plate is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first flowchart of a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 2 is a second flowchart illustration of a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 3 is a third flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 4 is a fourth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 5 is a fifth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 6 is a sixth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 7 is a seventh flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 8 is an eighth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application.
Fig. 9 is a schematic diagram of a smart watch dial provided in an embodiment of the present application.
Fig. 10 is a smart watch provided in an embodiment of the present application.
Fig. 11 is a system for generating a smart watch dial according to an embodiment of the present application.
Fig. 12 is an apparatus for generating a smart watch dial according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a method for generating a watch dial of an intelligent watch. The method can be executed by a system consisting of the smart watch and the mobile terminal to generate a personalized dial on the smart watch. The mobile terminal may include, for example, a terminal device such as a smart phone, a tablet computer, and a notebook computer. Furthermore, the method may also be performed by the smart watch alone to generate a personalized watch face on the smart watch.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. The method for generating the intelligent watch dial comprises the following steps:
and 110, acquiring a preset template picture according to the texture features of the reference picture.
The reference picture may be any picture, and the reference picture may be selected or set by a user. For example, the user may select one picture from a plurality of existing pictures as a reference picture, or select a partial region of one picture as a reference picture. For another example, a picture may be taken through a camera of the mobile terminal, and the taken picture or a partial region in the picture may be used as a reference picture. For another example, a camera may be disposed on the smart watch, a picture may be taken through the camera of the smart watch, and the taken picture or a partial region in the picture may be used as a reference picture.
After the reference picture is determined, the texture features of the reference picture can be extracted, and the preset template picture corresponding to the texture features is obtained from the multiple preset template pictures according to the extracted texture features. The texture features represent texture features of the reference picture, and for example, the texture features may be of a pure color, a lattice, a stripe, a complex type, and the like. Pure color means no texture on the reference picture, and complex means that the reference picture is not a texture of the type of pure color, lattice, stripe, etc.
The preset template picture is a preset picture. The preset template picture may be a picture in SVG (Scalable Vector Graphics) format. The preset template picture can be used for generating a dial plate of the smart watch. It should be noted that the preset template picture may not include a color, that is, the preset template picture only includes a picture frame, and the color is not filled.
And 120, acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture.
After the reference picture is determined, the color features of the reference picture can be further extracted. The color feature represents the color distribution of the reference picture. Then, the ratios of the various colors in the reference picture can be determined according to the extracted color features, and one or more colors with the highest ratio of the colors in the reference picture can be obtained according to the ratios of the various colors. It is understood that the number of colors to be acquired may be set or adjusted by a user, may be set automatically by the system, and may be set automatically according to the number of colors included in the reference picture.
For example, when the reference picture is a pure color picture, that is, the reference picture includes only one color, for example, blue, then only one color with the largest color ratio in the reference picture, that is, blue, can be obtained. For another example, if the reference picture includes 5 colors: the color ratio of the obtained color is 50%, 15%, 20%, 5% and 10%, and the 3 colors to be obtained are 3, so that the 3 colors with the largest color ratio can be obtained as blue, red and green.
It should be noted that the color or colors with the largest ratio of acquired colors may not necessarily be represented by color names, but may be represented by other means such as color codes, color parameters, and the like, and may be represented by R (red), G (green), and B (blue) values of colors, for example.
And 130, performing color conversion on the one or more colors to obtain one or more corresponding target colors.
It will be appreciated that the color or colors obtained from the reference picture are not necessarily preferred by the user or are not necessarily suitable for use as the dial color, and thus the color or colors may be color converted to obtain the corresponding target color or colors. The target color may be a preset color suitable for use as a dial, or the target color may be understood as a color preferred by the user.
Wherein, a color conversion relationship or a color optimization algorithm may be preset, and the one or more colors are color-converted by the color conversion relationship or the color optimization algorithm.
For example, if the acquired colors include 3 colors such as light red, gray, and navy blue, the light red, gray, and dark blue may be converted to obtain 3 target colors such as pomegranate red corresponding to light red, navy blue corresponding to gray, and light green corresponding to navy blue.
And 140, filling the one or more target colors into the preset template picture to obtain a target picture.
After one or more target colors are obtained, the one or more target colors can be filled into the preset template picture to obtain a target picture. The target picture is filled with one or more target colors, so that the color is rich, and the target picture is filled with the color which is liked by the user and has the personalized elements of the user, so that the target picture can be used for generating the dial plate with the user personalization.
And 150, generating an intelligent watch dial according to the target picture.
And after the target picture is obtained, generating an intelligent watch dial according to the target picture. For example, the target picture is set as the background of the dial plate, and then information such as time, weather and the like is displayed on the background of the dial plate, so that the dial plate with user individuation can be generated.
It can be understood that, when the system composed of the smart watch and the mobile terminal executes the method, the mobile terminal may process the target picture to obtain a target picture, and send the obtained target picture to the smart watch, and then the smart watch may generate a dial according to the received target picture. When the intelligent watch independently executes the method, the intelligent watch can automatically process the target picture to obtain the target picture, and the dial plate is generated according to the target picture.
According to the method for generating the intelligent watch dial plate, a preset template picture and one or more colors are obtained according to a reference picture, the one or more colors are converted to obtain corresponding target colors, the target colors are filled in the preset template picture to obtain the target picture, and the intelligent watch dial plate is generated according to the target picture. Because the reference picture can be selected or set by a user, the target picture finally obtained according to the reference picture has personalized elements of the user, and the generated dial plate also has personalized elements of the user, so that the dial plate has rich forms, and the form diversity of the dial plate is enhanced.
Referring to fig. 2, fig. 2 is a second flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. In some embodiments, obtaining the preset template picture according to the texture feature of the reference picture includes:
111, obtaining a pixel value of each pixel point of a reference picture;
112, determining the proportion of each color in the reference picture according to the pixel value of each pixel point;
113, determining the texture feature type of the reference picture according to the proportion of each color in the reference picture;
and 114, acquiring a corresponding preset template picture according to the texture feature type.
After the reference picture is determined, each pixel point of the reference picture can be traversed to obtain a pixel value of each pixel point of the reference picture. It can be understood that before traversing each pixel point of the reference picture, gray processing may be performed on the reference picture to convert the reference picture into a gray map, then normalization processing may be performed on the gray map obtained by conversion, and then traversing each pixel point of the reference picture after normalization processing.
And then, according to the acquired pixel value of each pixel point, counting the pixel value to determine the ratio of each color in the reference picture. That is, the area ratio of the region of each color in the reference picture in the entire reference picture is determined.
Then, the texture feature type of the reference picture is determined according to the duty ratio of each color. For example, when the ratio of the color with the largest color ratio is greater than 70%, the texture feature type of the reference picture is considered to be a pure color; when the ratio of the color to the most one color is greater than 50% and less than 60%, and the ratio of the color to the second one color is greater than 30% and less than 40%, the texture feature type of the reference picture is considered as a stripe, and so on.
After the texture feature type of the reference picture is determined, the corresponding preset template picture can be obtained according to the texture feature type.
Referring to fig. 3, fig. 3 is a third schematic flowchart of a method for generating a smart watch dial according to an embodiment of the present application. In some embodiments, before obtaining the pixel value of each pixel point of the reference picture, the method further includes:
115, setting a template picture resource library, wherein the template picture resource library comprises a plurality of preset template pictures, and each preset template picture corresponds to one texture feature type;
acquiring a corresponding preset template picture according to the texture feature type, wherein the method comprises the following steps:
1141, obtaining the corresponding preset template picture from the template picture resource library according to the texture feature type and the corresponding relation between the texture feature type and the preset template picture.
Wherein, a template picture resource library can be preset. For example, the template picture repository may be as shown in table 1 below:
TABLE 1
Texture feature type Presetting template picture
Pure color (C) Presetting template picture 1
Grid Presetting template picture 2
Stripe Presetting template picture 3
Complexity of Presetting template picture 4
…… ……
The template picture resource library comprises a plurality of preset template pictures, and each preset template picture corresponds to one texture feature type.
After the texture feature type of the reference picture is determined, the corresponding preset template picture can be obtained from the template picture resource library according to the texture feature type and the corresponding relation between the texture feature type and the preset template picture. For example, if the determined texture feature type of the reference picture is a stripe, the preset template picture corresponding to the texture feature type of the reference picture can be obtained as the preset template picture 3.
Referring to fig. 4, fig. 4 is a fourth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. In some embodiments, obtaining one or more colors with the highest color ratio in the reference picture according to the color features of the reference picture includes:
121, converting the reference picture into a spatial color model;
122, counting each color of a hue channel of the spatial color model to obtain a ratio of each color of the hue channel;
and 123, determining one or more colors with the highest ratio according to the ratio of each color of the hue channel.
After determining the reference picture, format conversion may be performed on the reference picture to convert the reference picture into a spatial color model (Hue, Saturation, Value, HSV model). The HSV model comprises three channels, namely hue H, saturation S and brightness V.
Then, each color of the hue channel of the HSV model is counted to obtain the proportion of each color of the hue channel. Then, the most-occupied color or colors are determined according to the occupation ratio of each color of the hue channel.
For example, as a statistical result, the ratio of blue is 50%, the ratio of green is 15%, the ratio of red is 20%, the ratio of gray is 5%, and the ratio of white is 10%, and 3 colors to be determined are provided, so that the 3 colors with the largest ratio of colors can be determined as blue, red, and green.
Referring to fig. 5, fig. 5 is a fifth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. Wherein, in some embodiments, color converting the one or more colors to obtain corresponding one or more target colors comprises:
131, presetting the corresponding relation between the initial color and the converted target color;
and 132, sequentially taking each color in the one or more colors as an initial color and converting according to the corresponding relationship to obtain a target color corresponding to each color.
Wherein, the corresponding relationship between the initial color and the converted target color may be preset. For example, the correspondence may be as shown in table 2 below:
TABLE 2
Figure BDA0002390656030000081
Figure BDA0002390656030000091
In the correspondence, each target color may correspond to one or more initial colors. And when color conversion is carried out, sequentially taking each color of the obtained one or more colors as an initial color and carrying out conversion according to the corresponding relation so as to obtain a target color corresponding to each color.
For example, if the acquired multiple colors include colors a1, a2, and a3, the target color b1 corresponding to the color a1, the target color b2 corresponding to the color a2, and the target color b2 corresponding to the color a3 may be obtained through sequential conversion.
Referring to fig. 6, fig. 6 is a sixth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. In some embodiments, the filling the one or more target colors into the preset template picture to obtain a target picture includes:
141, obtaining the number k1 of the target colors and the number k2 of the color channels of the preset template picture, wherein k1 and k2 are positive integers;
142, when k1 is less than or equal to k2, sequentially filling each target color into an unfilled color channel in the k1 color channels of the preset template picture;
143, when k1 is greater than k2, each of the color channels is filled with one unfilled target color of k2 target colors in turn.
The number k1 of the target colors and the number k2, k1, and k2 of the color channels of the preset template picture may be obtained first. For example, k1 and k2 may be 1, 2, 3, etc.
Subsequently, when color filling is performed, when k1 is less than or equal to k2, sequentially filling each of the target colors into an unfilled color channel of the k1 color channels of the preset template picture; when k1 is greater than k2, each of the color channels is filled with one unfilled target color of k2 target colors in turn.
For example, when k1 is 2 and k2 is 3, each target color is sequentially filled into one unfilled color channel of the 2 color channels. For example, if the target color includes b1 and b2 and the color channel includes c1, c2 and c3, the target color b2 may be filled into the color channel c1, the target color b2 may be filled into the color channel c2, and the color channel c3 may not be filled.
For another example, when k1 is 3 and k2 is 2, each color channel is sequentially filled with one unfilled target color of the 2 target colors. For example, if the target color includes b1, b2, b3 and the color channel includes c1, c2, the target color b1 may be filled in the color channel c1, the target color b2 may be filled in the color channel c2, and the target color c3 may not be filled.
Referring to fig. 7, fig. 7 is a seventh flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. In some embodiments, after filling each of the target colors into one of the k1 color channels of the preset template picture in sequence, the method further includes:
144, when k1 is smaller than k2, converting at least one of k1 target colors according to a preset color conversion relation to obtain a converted target color;
145, filling the converted target color into a color channel of the preset template picture, which is not filled with the target color.
When k1 is less than k2, that is, the number of target colors is less than the number of color channels, at least one of the k1 target colors may be converted according to a preset color conversion relationship to obtain a converted target color. The preset color conversion relationship can be set by a user or automatically set by a system.
And then, filling the converted target color into a color channel which is not filled with the target color in the preset template picture.
For example, when the target color only includes b1 and the color channel includes c1 and c2, after the target color b1 is filled into the color channel c1, the target color b1 may be converted, for example, to obtain a converted target color b11, and then the target color b11 is filled into the color channel c 2.
For another example, when the target color includes b1, b2, and the color channel includes c1, c2, c3, and c4, the target color b1 is filled into the color channel c1, and the target color b2 is filled into the color channel c2, the target colors b1, b2 may be converted, for example, to obtain the converted target colors b11, b21, and then the target color b11 is filled into the color channel c3, and the target color b21 is filled into the color channel c 4.
Referring to fig. 8, fig. 8 is an eighth flowchart illustrating a method for generating a smart watch dial according to an embodiment of the present application. Wherein, in some embodiments, generating a smart watch dial according to the target picture comprises:
151, adding information to be displayed on the target picture;
152, displaying the target picture and the information to be displayed to generate the intelligent watch dial.
When the intelligent watch dial is generated, information to be displayed can be added to the obtained target picture. The information to be displayed may include, for example, time, date, weather, user health information, and the like. It is understood that the style of the content such as time, date, weather, user health information, etc. may not be limited, and for example, the time may be represented by a number or a pointer.
Subsequently, the target picture and the information to be displayed are displayed to generate an intelligent watch dial, the generated intelligent watch dial is, for example, as shown in fig. 9, and fig. 9 is a schematic view of the intelligent watch dial provided in the embodiment of the present application.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the method for generating an intelligent watch dial provided in the embodiment of the present application, a preset template picture and one or more colors are obtained according to a reference picture, the one or more colors are converted to obtain corresponding target colors, the target colors are filled in the preset template picture to obtain the target picture, and the intelligent watch dial is generated according to the target picture. Because the reference picture can be selected or set by a user, the target picture finally obtained according to the reference picture has personalized elements of the user, and the generated dial plate also has personalized elements of the user, so that the dial plate has rich forms, and the form diversity of the dial plate is enhanced.
The embodiment of the application further provides an intelligent watch. Referring to fig. 10, fig. 10 is a smart watch 200 according to an embodiment of the present application.
The smart watch 200 is configured to execute the method for generating a smart watch dial according to any of the embodiments. It is understood that the smart watch 200 may be provided with a camera, a processor, and a memory. The camera can be used for taking a picture and taking the taken picture or a partial area of the picture as a reference picture. The processor may be configured to perform data processing to perform the method of any of the embodiments described above to generate a smart watch dial. The memory may be used for storing data, such as pictures, as well as data required and generated during operation of the processor.
It can be understood that in practical application, the user can shoot the picture of the clothing worn by the user as a reference picture, so that the generated intelligent watch dial can be matched with the wearing of the user, and the wearing coordination of the intelligent watch and the user is enhanced.
The embodiment of the application also provides a system for generating the intelligent watch dial plate. Referring to fig. 11, fig. 11 is a system 300 for generating a smart watch dial according to an embodiment of the present application.
The system 300 for generating a smart watch dial is configured to perform the method for generating a smart watch dial according to any of the embodiments described above. The system 300 for generating the intelligent watch dial comprises the intelligent watch 31 and the mobile terminal 32. The smart watch 31 is in communication connection with the mobile terminal 32. For example, the smart watch 31 may be communicatively connected to the mobile terminal 32 by bluetooth or the like. The mobile terminal 32 may include a terminal device such as a smart phone, a tablet computer, and a notebook computer.
Wherein the mobile terminal 32 is configured to:
acquiring a preset template picture according to the texture features of the reference picture;
acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture;
performing color conversion on the one or more colors to obtain corresponding one or more target colors;
filling the one or more target colors into the preset template picture to obtain a target picture, and sending the target picture to the smart watch;
the smart watch 31 is configured to:
and generating an intelligent watch dial according to the target picture.
Wherein, a camera may be disposed on the mobile terminal 32. The camera can be used for taking a picture and taking the taken picture or a partial area of the picture as a reference picture. After obtaining the target picture, the mobile terminal 32 may send the target picture to the smart watch 31 in a bluetooth mode or the like.
For a specific implementation manner of each step executed by the mobile terminal 32, please refer to the above description, which is not described herein again. Please refer to the above description for a specific implementation manner of each step performed by the smart watch 31, which is not described herein again.
The embodiment of the application also provides a device for generating the intelligent watch dial plate. The apparatus may be integrated in the smart watch 200 described above, or may also be integrated in the system 300 described above for generating a smart watch dial.
Referring to fig. 12, fig. 12 is a diagram of an apparatus 400 for generating a smart watch dial according to an embodiment of the present application. The device 400 comprises a picture acquisition module 401, a color acquisition module 402, a color conversion module 403, a color filling module 404 and a dial generation module 405. Wherein:
the image obtaining module 401 is configured to obtain a preset template image according to a texture feature of a reference image.
The reference picture may be any picture, and the reference picture may be selected or set by a user. For example, the user may select one picture from a plurality of existing pictures as a reference picture, or select a partial region of one picture as a reference picture. For another example, a picture may be taken through a camera of the mobile terminal, and the taken picture or a partial region in the picture may be used as a reference picture. For another example, a camera may be disposed on the smart watch, a picture may be taken through the camera of the smart watch, and the taken picture or a partial region in the picture may be used as a reference picture.
After the reference picture is determined, the texture features of the reference picture can be extracted, and the preset template picture corresponding to the texture features is obtained from the multiple preset template pictures according to the extracted texture features. The texture features represent texture features of the reference picture, and for example, the texture features may be of a pure color, a lattice, a stripe, a complex type, and the like. Pure color means no texture on the reference picture, and complex means that the reference picture is not a texture of the type of pure color, lattice, stripe, etc.
The preset template picture is a preset picture. The preset template picture may be a picture in SVG (Scalable Vector Graphics) format. The preset template picture can be used for generating a dial plate of the smart watch. It should be noted that the preset template picture may not include a color, that is, the preset template picture only includes a picture frame, and the color is not filled.
A color obtaining module 402, configured to obtain one or more colors with the highest color ratio in the reference picture according to the color features of the reference picture.
After the reference picture is determined, the color features of the reference picture can be further extracted. The color feature represents the color distribution of the reference picture. Then, the ratios of the various colors in the reference picture can be determined according to the extracted color features, and one or more colors with the highest ratio of the colors in the reference picture can be obtained according to the ratios of the various colors. It is understood that the number of colors to be acquired may be set or adjusted by a user, may be set automatically by the system, and may be set automatically according to the number of colors included in the reference picture.
For example, when the reference picture is a pure color picture, that is, the reference picture includes only one color, for example, blue, then only one color with the largest color ratio in the reference picture, that is, blue, can be obtained. For another example, if the reference picture includes 5 colors: the color ratio of the obtained color is 50%, 15%, 20%, 5% and 10%, and the 3 colors to be obtained are 3, so that the 3 colors with the largest color ratio can be obtained as blue, red and green.
It should be noted that the color or colors with the largest ratio of acquired colors may not necessarily be represented by color names, but may be represented by other means such as color codes, color parameters, and the like, and may be represented by R (red), G (green), and B (blue) values of colors, for example.
A color conversion module 403, configured to perform color conversion on the one or more colors to obtain one or more corresponding target colors.
It will be appreciated that the color or colors obtained from the reference picture are not necessarily preferred by the user or are not necessarily suitable for use as the dial color, and thus the color or colors may be color converted to obtain the corresponding target color or colors. The target color may be a preset color suitable for use as a dial, or the target color may be understood as a color preferred by the user.
Wherein, a color conversion relationship or a color optimization algorithm may be preset, and the one or more colors are color-converted by the color conversion relationship or the color optimization algorithm.
For example, if the acquired colors include 3 colors such as light red, gray, and navy blue, the light red, gray, and dark blue may be converted to obtain 3 target colors such as pomegranate red corresponding to light red, navy blue corresponding to gray, and light green corresponding to navy blue.
A color filling module 404, configured to fill the one or more target colors into the preset template picture to obtain a target picture.
After one or more target colors are obtained, the one or more target colors can be filled into the preset template picture to obtain a target picture. The target picture is filled with one or more target colors, so that the color is rich, and the target picture is filled with the color which is liked by the user and has the personalized elements of the user, so that the target picture can be used for generating the dial plate with the user personalization.
And a dial plate generation module 405 for generating an intelligent watch dial plate according to the target picture.
And after the target picture is obtained, generating an intelligent watch dial according to the target picture. For example, the target picture is set as the background of the dial plate, and then information such as time, weather and the like is displayed on the background of the dial plate, so that the dial plate with user individuation can be generated.
The device 400 for generating the intelligent watch dial plate, provided by the embodiment of the application, acquires a preset template picture and one or more colors according to a reference picture, converts the one or more colors to obtain corresponding target colors, fills the target colors into the preset template picture to obtain the target picture, and generates the intelligent watch dial plate according to the target picture. Because the reference picture can be selected or set by a user, the target picture finally obtained according to the reference picture has personalized elements of the user, and the generated dial plate also has personalized elements of the user, so that the dial plate has rich forms, and the form diversity of the dial plate is enhanced.
In some embodiments, the picture taking module 401 is configured to:
acquiring a pixel value of each pixel point of a reference picture;
determining the proportion of each color in the reference picture according to the pixel value of each pixel point;
determining the texture feature type of the reference picture according to the proportion of each color in the reference picture;
and acquiring a corresponding preset template picture according to the texture feature type.
After the reference picture is determined, each pixel point of the reference picture can be traversed to obtain a pixel value of each pixel point of the reference picture. It can be understood that before traversing each pixel point of the reference picture, gray processing may be performed on the reference picture to convert the reference picture into a gray map, then normalization processing may be performed on the gray map obtained by conversion, and then traversing each pixel point of the reference picture after normalization processing.
And then, according to the acquired pixel value of each pixel point, counting the pixel value to determine the ratio of each color in the reference picture. That is, the area ratio of the region of each color in the reference picture in the entire reference picture is determined.
Then, the texture feature type of the reference picture is determined according to the duty ratio of each color. For example, when the ratio of the color with the largest color ratio is greater than 70%, the texture feature type of the reference picture is considered to be a pure color; when the ratio of the color to the most one color is greater than 50% and less than 60%, and the ratio of the color to the second one color is greater than 30% and less than 40%, the texture feature type of the reference picture is considered as a stripe, and so on.
After the texture feature type of the reference picture is determined, the corresponding preset template picture can be obtained according to the texture feature type.
In some embodiments, before obtaining the pixel value of each pixel point of the reference picture, the picture obtaining module 401 is further configured to:
setting a template picture resource library, wherein the template picture resource library comprises a plurality of preset template pictures, and each preset template picture corresponds to one texture feature type;
when a corresponding preset template picture is obtained according to the texture feature type, the picture obtaining module 401 is configured to:
and acquiring a corresponding preset template picture from the template picture resource library according to the texture feature type and the corresponding relation between the texture feature type and the preset template picture.
Wherein, a template picture resource library can be preset. The template picture resource library comprises a plurality of preset template pictures, and each preset template picture corresponds to one texture feature type.
After the texture feature type of the reference picture is determined, the corresponding preset template picture can be obtained from the template picture resource library according to the texture feature type and the corresponding relation between the texture feature type and the preset template picture.
In some embodiments, the color acquisition module 402 is configured to:
converting the reference picture to a spatial color model;
counting each color of a hue channel of the space color model to obtain the proportion of each color of the hue channel;
and determining one or more colors with the highest ratio according to the ratio of each color of the hue channel.
After determining the reference picture, format conversion may be performed on the reference picture to convert the reference picture into a spatial color model (Hue, Saturation, Value, HSV model). The HSV model comprises three channels, namely hue H, saturation S and brightness V.
Then, each color of the hue channel of the HSV model is counted to obtain the proportion of each color of the hue channel. Then, the most-occupied color or colors are determined according to the occupation ratio of each color of the hue channel.
For example, as a statistical result, the ratio of blue is 50%, the ratio of green is 15%, the ratio of red is 20%, the ratio of gray is 5%, and the ratio of white is 10%, and 3 colors to be determined are provided, so that the 3 colors with the largest ratio of colors can be determined as blue, red, and green.
In some embodiments, the color conversion module 403 is configured to:
presetting a corresponding relation between an initial color and a converted target color;
and taking each color in the one or more colors as an initial color in turn and converting according to the corresponding relation to obtain a target color corresponding to each color.
Wherein, the corresponding relationship between the initial color and the converted target color may be preset. In the correspondence, each target color may correspond to one or more initial colors. And when color conversion is carried out, sequentially taking each color of the obtained one or more colors as an initial color and carrying out conversion according to the corresponding relation so as to obtain a target color corresponding to each color.
In some embodiments, the color fill module 404 is configured to:
acquiring the number k1 of the target colors and the number k2 of color channels of the preset template picture, wherein both k1 and k2 are positive integers;
when k1 is less than or equal to k2, sequentially filling each target color into an unfilled color channel in k1 color channels of the preset template picture;
when k1 is greater than k2, each of the color channels is filled with one unfilled target color of k2 target colors in turn.
The number k1 of the target colors and the number k2, k1, and k2 of the color channels of the preset template picture may be obtained first. For example, k1 and k2 may be 1, 2, 3, etc.
Subsequently, when color filling is performed, when k1 is less than or equal to k2, sequentially filling each of the target colors into an unfilled color channel of the k1 color channels of the preset template picture; when k1 is greater than k2, each of the color channels is filled with one unfilled target color of k2 target colors in turn.
For example, when k1 is 2 and k2 is 3, each target color is sequentially filled into one unfilled color channel of the 2 color channels. For example, if the target color includes b1 and b2 and the color channel includes c1, c2 and c3, the target color b2 may be filled into the color channel c1, the target color b2 may be filled into the color channel c2, and the color channel c3 may not be filled.
For another example, when k1 is 3 and k2 is 2, each color channel is sequentially filled with one unfilled target color of the 2 target colors. For example, if the target color includes b1, b2, b3 and the color channel includes c1, c2, the target color b1 may be filled in the color channel c1, the target color b2 may be filled in the color channel c2, and the target color c3 may not be filled.
In some embodiments, after filling each of the target colors into one of the k1 color channels of the preset template picture in turn, the color filling module 404 is further configured to:
when k1 is smaller than k2, converting at least one of k1 target colors according to a preset color conversion relation to obtain a converted target color;
and filling the converted target color into a color channel which is not filled with the target color in the preset template picture.
When k1 is smaller than k2, that is, the number of target colors is smaller than the number of color channels, the target colors may be converted according to a preset color conversion relationship to obtain converted target colors. The preset color conversion relationship can be set by a user or automatically set by a system.
And then, filling the converted target color into a color channel which is not filled with the target color in the preset template picture.
For example, when the target color only includes b1 and the color channel includes c1 and c2, after the target color b1 is filled into the color channel c1, the target color b1 may be converted, for example, to obtain a converted target color b11, and then the target color b11 is filled into the color channel c 2.
For another example, when the target color includes b1, b2, and the color channel includes c1, c2, c3, and c4, the target color b1 is filled into the color channel c1, and the target color b2 is filled into the color channel c2, the target colors b1, b2 may be converted, for example, to obtain the converted target colors b11, b21, and then the target color b11 is filled into the color channel c3, and the target color b21 is filled into the color channel c 4.
In some embodiments, the dial generation module 405 is to:
adding information to be displayed on the target picture;
and displaying the target picture and the information to be displayed so as to generate an intelligent watch dial.
When the intelligent watch dial is generated, information to be displayed can be added to the obtained target picture. The information to be displayed may include, for example, time, date, weather, user health information, and the like. It is understood that the style of the content such as time, date, weather, user health information, etc. may not be limited, and for example, the time may be represented by a number or a pointer.
And then, displaying the target picture and the information to be displayed to generate the intelligent watch dial.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the apparatus 400 for generating an intelligent watch dial plate, provided by the embodiment of the present application, obtains a preset template picture and one or more colors according to a reference picture, converts the one or more colors to obtain corresponding target colors, fills the target colors into the preset template picture to obtain the target picture, and generates the intelligent watch dial plate according to the target picture. Because the reference picture can be selected or set by a user, the target picture finally obtained according to the reference picture has personalized elements of the user, and the generated dial plate also has personalized elements of the user, so that the dial plate has rich forms, and the form diversity of the dial plate is enhanced.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the method for generating a smart watch dial according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The method, the device, the storage medium, the smart watch and the system for generating the watch dial of the smart watch provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A method of generating a smart watch dial, comprising:
acquiring a preset template picture according to the texture features of the reference picture;
acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture;
performing color conversion on the one or more colors to obtain corresponding one or more target colors;
filling the one or more target colors into the preset template picture to obtain a target picture;
and generating an intelligent watch dial according to the target picture.
2. The method of claim 1, wherein obtaining the default template picture according to texture features of the reference picture comprises:
acquiring a pixel value of each pixel point of a reference picture;
determining the proportion of each color in the reference picture according to the pixel value of each pixel point;
determining the texture feature type of the reference picture according to the proportion of each color in the reference picture;
and acquiring a corresponding preset template picture according to the texture feature type.
3. The method of claim 2, wherein before obtaining the pixel value of each pixel point of the reference picture, the method further comprises:
setting a template picture resource library, wherein the template picture resource library comprises a plurality of preset template pictures, and each preset template picture corresponds to one texture feature type;
acquiring a corresponding preset template picture according to the texture feature type, wherein the method comprises the following steps:
and acquiring a corresponding preset template picture from the template picture resource library according to the texture feature type and the corresponding relation between the texture feature type and the preset template picture.
4. The method according to any one of claims 1 to 3, wherein obtaining one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture comprises:
converting the reference picture to a spatial color model;
counting each color of a hue channel of the space color model to obtain the proportion of each color of the hue channel;
and determining one or more colors with the highest ratio according to the ratio of each color of the hue channel.
5. A method according to any one of claims 1 to 3, wherein color converting the one or more colors to obtain corresponding one or more target colors comprises:
presetting a corresponding relation between an initial color and a converted target color;
and taking each color in the one or more colors as an initial color in turn and converting according to the corresponding relation to obtain a target color corresponding to each color.
6. The method according to any one of claims 1 to 3, wherein the filling the one or more target colors into the preset template picture to obtain a target picture comprises:
acquiring the number k1 of the target colors and the number k2 of color channels of the preset template picture, wherein both k1 and k2 are positive integers;
when k1 is less than or equal to k2, sequentially filling each target color into an unfilled color channel in k1 color channels of the preset template picture;
when k1 is greater than k2, each of the color channels is filled with one unfilled target color of k2 target colors in turn.
7. The method as claimed in claim 6, wherein the step of sequentially filling each target color into one of the k1 color channels of the preset template picture further comprises:
when k1 is smaller than k2, converting at least one of k1 target colors according to a preset color conversion relation to obtain a converted target color;
and filling the converted target color into a color channel which is not filled with the target color in the preset template picture.
8. The method of any of claims 1 to 3, wherein generating a smart watch dial from the target picture comprises:
adding information to be displayed on the target picture;
and displaying the target picture and the information to be displayed so as to generate an intelligent watch dial.
9. An apparatus for generating a smart watch dial, comprising:
the image acquisition module is used for acquiring a preset template image according to the texture characteristics of the reference image;
the color obtaining module is used for obtaining one or more colors with the most color proportion in the reference picture according to the color characteristics of the reference picture;
the color conversion module is used for performing color conversion on the one or more colors to obtain one or more corresponding target colors;
the color filling module is used for filling the one or more target colors into the preset template picture to obtain a target picture;
and the dial plate generation module is used for generating an intelligent watch dial plate according to the target picture.
10. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the method of generating a smart watch dial of any one of claims 1 to 8.
11. A smartwatch characterized in that it is configured to carry out the method of generating a smartwatch dial according to any one of claims 1 to 8.
12. A system for generating a smart watch dial, comprising a smart watch and a mobile terminal in communication connection with the smart watch, wherein the mobile terminal is configured to:
acquiring a preset template picture according to the texture features of the reference picture;
acquiring one or more colors with the highest color ratio in the reference picture according to the color characteristics of the reference picture;
performing color conversion on the one or more colors to obtain corresponding one or more target colors;
filling the one or more target colors into the preset template picture to obtain a target picture, and sending the target picture to the smart watch;
the smart watch is configured to:
and generating an intelligent watch dial according to the target picture.
CN202010113023.9A 2020-02-24 2020-02-24 Method and device for generating intelligent watch dial, storage medium, intelligent watch and system Pending CN113298897A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202010113023.9A CN113298897A (en) 2020-02-24 2020-02-24 Method and device for generating intelligent watch dial, storage medium, intelligent watch and system
PCT/CN2021/077439 WO2021169945A1 (en) 2020-02-24 2021-02-23 Method and device for picture generation, electronic device, and storage medium
US17/183,298 US20210264191A1 (en) 2020-02-24 2021-02-23 Method and device for picture generation, electronic device, and storage medium
EP21158731.6A EP3869466A1 (en) 2020-02-24 2021-02-23 Method and device for picture generation, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010113023.9A CN113298897A (en) 2020-02-24 2020-02-24 Method and device for generating intelligent watch dial, storage medium, intelligent watch and system

Publications (1)

Publication Number Publication Date
CN113298897A true CN113298897A (en) 2021-08-24

Family

ID=77317967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010113023.9A Pending CN113298897A (en) 2020-02-24 2020-02-24 Method and device for generating intelligent watch dial, storage medium, intelligent watch and system

Country Status (1)

Country Link
CN (1) CN113298897A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101686451B1 (en) * 2015-08-28 2016-12-14 주식회사 앱포스터 Method and apparatus for setting a screen of a smart watch
US20180107365A1 (en) * 2016-10-19 2018-04-19 Apposter Inc. Method and apparatus for generating watch screen design for smart watch
WO2018143660A1 (en) * 2017-01-31 2018-08-09 삼성전자 주식회사 Electronic device for controlling watch face of smart watch and operation method therefor
CN110378838A (en) * 2019-06-25 2019-10-25 深圳前海达闼云端智能科技有限公司 Become multi-view image generation method, device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101686451B1 (en) * 2015-08-28 2016-12-14 주식회사 앱포스터 Method and apparatus for setting a screen of a smart watch
US20180107365A1 (en) * 2016-10-19 2018-04-19 Apposter Inc. Method and apparatus for generating watch screen design for smart watch
WO2018143660A1 (en) * 2017-01-31 2018-08-09 삼성전자 주식회사 Electronic device for controlling watch face of smart watch and operation method therefor
CN110378838A (en) * 2019-06-25 2019-10-25 深圳前海达闼云端智能科技有限公司 Become multi-view image generation method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN113763296B (en) Image processing method, device and medium
CN110929569A (en) Face recognition method, device, equipment and storage medium
CN113012081B (en) Image processing method, device and electronic system
CN113518185B (en) Video conversion processing method and device, computer readable medium and electronic equipment
CN107204034A (en) A kind of image processing method and terminal
CN108806638B (en) Image display method and device
US11962917B2 (en) Color adjustment method, color adjustment device, electronic device and computer-readable storage medium
US11380284B2 (en) Color space mapping method, equipment, computer readable storage medium, and device
CN111062993A (en) Color-merged drawing image processing method, device, equipment and storage medium
CN116188808B (en) Image feature extraction method and system, storage medium and electronic device
CN113421312A (en) Method and device for coloring black and white video, storage medium and terminal
CN105681775A (en) White balance method and device
CN110599554A (en) Method and device for identifying face skin color, storage medium and electronic device
CN112991371A (en) Automatic image coloring method and system based on coloring overflow constraint
CN111179370B (en) Picture generation method and device, electronic equipment and storage medium
CN112991497B (en) Method, device, storage medium and terminal for coloring black-and-white cartoon video
CN114663570A (en) Map generation method and device, electronic device and readable storage medium
CN112200747B (en) Image processing method and device and computer readable storage medium
CN112489144B (en) Image processing method, image processing device, terminal device and storage medium
CN117061882A (en) Video image processing method, apparatus, device, storage medium, and program product
CN113298897A (en) Method and device for generating intelligent watch dial, storage medium, intelligent watch and system
CN107454340B (en) Image synthesis method and device based on high dynamic range principle and mobile terminal
CN114707013A (en) Image color matching method and device, terminal and readable storage medium
CN114494069A (en) Image processing method, apparatus, device, medium, and product
CN114782249A (en) Super-resolution reconstruction method, device and equipment for image and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination