CN109816743A - Generate the method and terminal device of identification pattern - Google Patents

Generate the method and terminal device of identification pattern Download PDF

Info

Publication number
CN109816743A
CN109816743A CN201811555766.0A CN201811555766A CN109816743A CN 109816743 A CN109816743 A CN 109816743A CN 201811555766 A CN201811555766 A CN 201811555766A CN 109816743 A CN109816743 A CN 109816743A
Authority
CN
China
Prior art keywords
image
software program
identification pattern
pattern
character
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
CN201811555766.0A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811555766.0A priority Critical patent/CN109816743A/en
Publication of CN109816743A publication Critical patent/CN109816743A/en
Priority to PCT/CN2019/124205 priority patent/WO2020125481A1/en
Priority to US17/350,625 priority patent/US11995747B2/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/60Creating or editing images; Combining images with text
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/20Drawing from basic elements
    • G06T11/23Drawing from basic elements using straight lines or curves

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)
  • User Interface Of Digital Computer (AREA)
  • Image Analysis (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本申请提供了生成标识图案的方法和终端设备等。该方法包括:获取第一图像,所述第一图像用于表示中文字符、英文字符以及阿拉伯数字字符中的任意一种;根据所述第一图像的轮廓线对所述第一图像进行变换,以得到第二图像,其中,所述第二图像包括所述第一图像和多条轮廓线;根据所述第二图像生成软件程序的标识图案。本申请能够提高标识图案的显示效果。

The present application provides a method, a terminal device, and the like for generating an identification pattern. The method includes: acquiring a first image, where the first image is used to represent any one of Chinese characters, English characters and Arabic numerals; transforming the first image according to the outline of the first image, to obtain a second image, wherein the second image includes the first image and a plurality of contour lines; and a logo pattern of a software program is generated according to the second image. The present application can improve the display effect of the logo pattern.

Description

Method for generating identification pattern and terminal equipment
Technical Field
The present application relates to the field of terminal device technology, and more particularly, to a method for generating an identification pattern and a terminal device.
Background
Software programs in terminal devices often use corresponding logo patterns to represent software program icons or information displayed inside the software programs. For example, contact persons in the address book are often provided with contact person avatars, and one main purpose of setting the contact person avatars is to improve the display effect of contact person information, distinguish different contact persons, and improve the experience of a user when viewing the contact person information.
The traditional scheme is to extract a Chinese character image in the name of the contact or a character image of the pinyin initial of the contact as the head portrait of the contact. For example, a contact of the week of the last name may directly use the character image of the chinese character "week" as the head portrait of the contact, or may use the character image of the pinyin initial "Z" of the week of the chinese character as the head portrait of the contact.
The traditional scheme has the defects that the display mode of directly extracting the character image as the head portrait of the contact person is single, the display effect is poor, and the corresponding user experience needs to be improved.
Disclosure of Invention
The application provides a method and terminal equipment for generating an identification pattern, so that the display effect of the identification pattern is improved.
In a first aspect, a method for generating a marking pattern is provided, the method comprising: acquiring a first image, wherein the first image is used for representing any one of Chinese characters, English characters and Arabic numeral characters;
transforming the first image according to the contour lines of the first image to obtain a second image, wherein the second image comprises the first image and a plurality of contour lines; and generating an identification pattern of the software program according to the second image.
In some implementations, the identification pattern is the second image.
In other implementations, the identification pattern is part of the second image.
Optionally, the identification pattern includes the second image and other images, or the identification pattern is transformed from the second image, and so on.
Optionally, the software program is any one of an address book, a memo, a calendar, weather software, a music player and an album.
Optionally, the acquiring the first image includes: and acquiring a first image according to the display information of the software program.
Specifically, when the software program is an address book, the first image may be acquired through contact information in the address book.
Optionally, before transforming the first image according to the contour line of the first image, the method further comprises: and acquiring the contour line of the first image according to an edge detection algorithm.
The contour line of the first image may be an outer contour line of the first image or an inner contour line of the first image.
The outer contour line of the first image may be a contour line formed around the peripheral edge (or the entire edge) of the first image.
The inner contour of the first image may be a contour formed by a plurality of edges of the first image.
Further, the inner contour of the first image may be a contour formed by all edges of the first image together.
In the application, the first image is converted, the second image comprising the plurality of contour lines can be obtained, the identification pattern of the software program with more various display styles can be obtained according to the second head portrait, the display effect of the identification pattern of the software program can be improved to a certain extent, and the user experience is improved.
With reference to the first aspect, in some implementations of the first aspect, the transforming the first image according to the contour line of the first image to obtain a second image includes: and expanding the outer contour line of the first image to the periphery of the first image to obtain the second image, wherein the outer contour line of the first image is a contour line formed around the peripheral edge of the first image.
By expanding the outer contour line around the first image, a second image composed of the first image and a plurality of outer contour lines around the first image can be obtained.
It should be understood that when the first image is a solid character image or an outline character image, the second image may be obtained by expanding the outline lines to the periphery of the first image.
By expanding the outer contour line of the first image to the periphery of the first image, a second image with a larger image area can be obtained, so that the identification pattern of the software program can be generated according to the second image more flexibly.
With reference to the first aspect, in certain implementations of the first aspect, the transforming the first image according to the contour line of the first image to obtain a second image includes: expanding the inner contour line of the first image to the inside of the first image to obtain the second image, wherein the inner contour line of the first image is a contour line formed by a plurality of edges of the first image.
With reference to the first aspect, in certain implementations of the first aspect, the first image is a solid character image, and expanding an inner contour line of the first image towards an inside of the first image to obtain the second image includes: converting the first image to obtain a converted first image, wherein the converted first image is a hollow character image; and expanding the inner contour line of the transformed first image to the inside of the transformed first image to obtain the second image.
With reference to the first aspect, in certain implementations of the first aspect, the contour line of the first image is a rectangular contour line, and before transforming the first image according to the contour line of the first image, the method further includes: processing the contour line of the first image to obtain a processed first image, wherein the contour line of the processed first image is a rounded contour line; the transforming the first image according to the contour line of the first image to obtain a second image comprises: and transforming the processed first image according to the fillet contour line to obtain the second image.
In the application, the right-angle contour line of the first image is converted into the round-angle contour line, so that the second image with the round-angle contour line can be obtained, and the display effect of the identification pattern of the software program generated according to the second image can be improved.
With reference to the first aspect, in certain implementations of the first aspect, the identification pattern is a hot area image of the second image, where the hot area image of the second image is a sub-image of the second image that can identify a character represented by the second image.
Optionally, the generating an identification pattern of the software program according to the second image includes: determining an image of a partial region of the second image as an identification pattern of the software program.
The partial region may be a central region of the second image, and the central region of the second image may be a region extending a distance along a geometric center of the second image to the periphery of the second image.
By using the image of the partial area or the hot area image in the second image as the identification pattern of the software program, a more concise identification pattern can be obtained, and the display effect of the identification pattern can be improved.
With reference to the first aspect, in certain implementations of the first aspect, the software program is an address book, and the identification pattern of the software program is a contact avatar in the address book.
It should be understood that when the identification pattern of the software program is the head portrait of the contact in the address book, the head portrait of the contact can also be used as a calling display picture.
With reference to the first aspect, in certain implementations of the first aspect, the density of the contour lines in the identification pattern has a positive correlation with the contact frequency and/or the density of the contact represented by the identification pattern.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the intimacy degree of the contour lines in the identification patterns, and the display effect is better.
With reference to the first aspect, in certain implementations of the first aspect, the shade of the color of the identification pattern is in positive correlation with the contact frequency and/or the intimacy degree of the contact represented by the identification pattern.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the color depth degree of the identification pattern, and the display effect is better.
With reference to the first aspect, in some implementations of the first aspect, the software program is an album (which may refer to an album application displayed on a main interface or a single album in the album application), and the identification pattern of the software program is a pattern of an album cover; or the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
In a second aspect, there is provided a method of generating a marker pattern, the method comprising: acquiring a first image, wherein the first image is used for representing any one of Chinese characters, English characters and Arabic numeral characters, and the first image is a hollow character image; superposing the dot matrix image or the line image with the first image to obtain a superposed image; moving part of pixel points in the dot matrix or the line in the superposed image by a preset distance to obtain a second image; and generating an identification pattern of the software program according to the second image.
In the application, dot matrix images or line images are superposed on the first images, so that second images with more various display styles can be obtained, identification patterns of software programs with more various display styles can be obtained according to the second head portrait, the display effect of the identification patterns of the software programs can be improved to a certain extent, and the user experience is improved.
Optionally, moving a part of pixel points in the dot matrix or the line in the superimposed image by a preset distance includes: and moving the pixel points positioned inside the outer contour line of the first image in the superposed image by a preset distance.
When moving part of the pixels in the superimposed image, the image located inside the outer contour line of the first image may be moved some distance in one direction (for example, in the horizontal direction) and then moved some distance in another direction (for example, in the vertical direction).
With reference to the second aspect, in some implementations of the second aspect, the identification pattern is a hot-area image of the second image, and the hot-area image of the second image is a sub-image of a character that can be identified in the second image.
Optionally, the generating an identification pattern of the software program according to the second image includes: determining an image of a partial region of the second image as an identification pattern of the software program.
The partial region may be a central region of the second image. The central region of the second image may be a region extending a distance along a geometric center of the second image to a periphery of the second image.
By using the image of the partial region in the second image or the hot area image as the identification pattern of the software program, a more concise identification pattern can be obtained, and the display effect can be improved.
With reference to the second aspect, in some implementations of the second aspect, the software program is an address book, and the identification pattern of the software program is a head portrait of a contact in the address book.
With reference to the second aspect, in some implementations of the second aspect, the density of the lattices or lines in the identification pattern has a positive correlation with the contact frequency and/or the density of the contact represented by the identification pattern.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the density degree of the dot matrix or lines in the identification pattern, and the display effect is better.
With reference to the second aspect, in some implementations of the second aspect, the shade of the color of the identification pattern is in positive correlation with the contact frequency and/or the intimacy of the contact represented by the identification pattern.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the color depth degree of the identification pattern, and the display effect is better.
With reference to the second aspect, in some implementations of the second aspect, the software program is an album, and the identification pattern of the software program is a pattern of an album cover; or the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
In a third aspect, a method for generating a marking pattern is provided, the method comprising: acquiring a first image, wherein the first image is used for representing English characters or Arabic numeral characters; determining a target picture matched with the first image from a picture library, wherein the target picture comprises a reference image with the similarity greater than or equal to a preset similarity with the first image; and generating an identification pattern of the software program according to the reference image.
In the application, the picture matched with the first image is selected from the picture library, and the pattern contained in the picture is richer, so that the identification pattern with richer display styles can be obtained according to the reference image in the target picture, and the display effect of the identification pattern can be improved.
With reference to the third aspect, in certain implementations of the third aspect, the identification pattern is a hot-area image of the reference image, where the hot-area image of the reference image is a sub-image of a character in the reference image that the reference image represents can be recognized.
Optionally, the generating an identification pattern of the software program according to the reference image includes: determining an image of a partial region of the reference image as an identification pattern of the software program.
The partial region may be a central region of the reference image, and the central region of the reference image may be a region extending a distance to the periphery of the reference image along the geometric center of the reference image.
By using the image of the partial region in the reference image or the hot area image as the identification pattern of the software program, a more concise identification pattern of the software program can be obtained, and the display effect can be improved.
With reference to the third aspect, in certain implementations of the third aspect, the texture profile of the pictures in the picture library satisfies golden section ratio or fibonacci series characteristics.
In the application, the texture distribution of the pictures in the picture library meets the golden section proportion or Fibonacci number series characteristics, so that the identification pattern of the software program obtained according to the pictures in the picture library has certain aesthetic feeling, and better user experience can be brought.
With reference to the third aspect, in certain implementations of the third aspect, the software program is an address book, and the identification pattern of the software program is a contact avatar in the address book; or the software program is an album, and the identification pattern of the software program is a pattern of an album cover; or the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
In a fourth aspect, a terminal device is provided, where the terminal device includes a module configured to perform the method in any one of the implementation manners of the first aspect and the first aspect.
In a fifth aspect, a terminal device is provided, where the terminal device includes a module configured to execute the method in any implementation manner of the second aspect and the second aspect.
A sixth aspect provides a terminal device, which includes means for performing the method in any one of the implementation manners of the third aspect and the third aspect.
In a seventh aspect, a terminal device is provided, which includes a memory and a processor, where the memory is configured to store a program, and the processor is configured to execute the program stored in the memory, and when the program stored in the memory is executed by the processor, the processor is configured to execute the method in any one of the implementation manners of the first aspect and the first aspect.
In an eighth aspect, a terminal device is provided, which includes a memory for storing a program and a processor for executing the program stored in the memory, and when the program stored in the memory is executed by the processor, the processor is configured to execute the method in any one of the implementation manners of the second aspect and the second aspect.
In a ninth aspect, a terminal device is provided, which includes a memory for storing a program and a processor for executing the program stored in the memory, and when the program stored in the memory is executed by the processor, the processor is configured to execute the method in any one of the implementation manners of the third aspect and the third aspect.
Optionally, the memory is a non-volatile memory.
Optionally, the memory and the processor are coupled to each other.
A tenth aspect provides a computer-readable storage medium for storing program code, which, when executed by a computer, is configured to perform the method of any one of the implementations of the first aspect and the first aspect.
In an eleventh aspect, a computer-readable storage medium is provided, which is used for storing program code, and when the program code is executed by a computer, the computer is used for executing the method in any one implementation manner of the second aspect and the second aspect.
In a twelfth aspect, a computer-readable storage medium is provided, which is used for storing program codes, and when the program codes are executed by a computer, the computer is used for executing the method in any one implementation manner of the third aspect and the third aspect.
Alternatively, the computer-readable storage medium may be located inside the terminal device, and the program code stored in the computer-readable storage medium may be executed by the terminal device.
The program code stored by the computer readable storage medium, when executed by a terminal device, enables the terminal device to perform the method of any one of the above-described implementations of the first, second, and third aspects.
In a thirteenth aspect, a chip is provided, where the chip includes a processor, and the processor is configured to execute the method in any one of the implementations of the first aspect and the first aspect.
In a fourteenth aspect, a chip is provided, where the chip includes a processor, and the processor is configured to execute the method in any one of the implementation manners of the second aspect and the second aspect.
In a fifteenth aspect, a chip is provided, where the chip includes a processor, and the processor is configured to perform the method in any one of the implementation manners of the third aspect and the third aspect.
Optionally, the chip is mounted inside the terminal device.
A sixteenth aspect provides a computer program (or computer program product) for causing a computer or terminal device to perform the method in any one of the implementations of the first aspect and the first aspect.
A seventeenth aspect provides a computer program (or computer program product) for causing a computer or terminal device to execute the method in any one of the implementations of the second aspect and the second aspect.
In an eighteenth aspect, a computer program (or computer program product) is provided for causing a computer or terminal device to execute the method in any one of the implementation manners of the third aspect and the third aspect.
Alternatively, the above-mentioned computer program may be stored in the terminal device, and the computer program may be executed by the terminal device.
When the computer program is executed by a terminal device, the terminal device is capable of performing the method in an implementation manner of any one of the first, second and third aspects described above.
Drawings
FIG. 1 is a schematic flow chart diagram of a method of generating a marking pattern in an embodiment of the present application;
FIG. 2 is a schematic diagram of an outer contour line of a character image acquired in an embodiment of the present application;
fig. 3 is a schematic view of an inner contour line of a character image in the embodiment of the present application;
FIG. 4 is a schematic illustration of a second image from a solid character image;
FIG. 5 is a schematic illustration of a second image from an outline character image;
FIG. 6 is a schematic illustration of a second image from a solid character image;
FIG. 7 is a schematic diagram of processing a right-angled contour of a first image to obtain a rounded contour;
FIG. 8 is a schematic illustration of the generation of a marker pattern from a second image;
FIG. 9 is a schematic illustration of an identification pattern as a contact avatar;
FIG. 10 is a diagram of a contact avatar as an incoming display;
FIG. 11 is a schematic illustration of a contact avatar having different densities of contours and different shades of color;
FIG. 12 is a schematic view of a portion of an image in a hidden logo pattern;
FIG. 13 is a schematic diagram of sparseness of outline lines in a contact avatar varying with a call;
FIG. 14 is a schematic flow chart diagram of a method of generating a marker pattern in an embodiment of the present application;
FIG. 15 is a schematic diagram of a first image superimposed with a dot matrix image to obtain a second image;
FIG. 16 is a schematic diagram of a first image superimposed with a line image to produce a second image;
FIG. 17 is a schematic view of a logo pattern derived from a second image;
FIG. 18 is a schematic flow chart diagram of a method of generating a marking pattern in an embodiment of the present application;
FIG. 19 is a schematic diagram of a logo pattern derived from a target picture;
FIG. 20 is a schematic view of a weather image superimposed on a logo image;
FIG. 21 is a schematic diagram of a process for generating a contact avatar according to an embodiment of the present application;
figure 22 is a schematic of the convolution kernel of 5 x 5;
FIG. 23 is a schematic diagram of a process for generating a contact avatar according to an embodiment of the present application;
FIG. 24 is a schematic diagram of a process for generating a contact avatar according to an embodiment of the present application;
FIG. 25 is a schematic diagram of a process for generating a contact avatar according to an embodiment of the present application;
FIG. 26 is a schematic diagram of a process for generating a contact avatar according to an embodiment of the present application;
FIG. 27 is a schematic diagram of a process for generating a temperature display icon in an embodiment of the present application;
FIG. 28 is a schematic view of a logo pattern as a lock screen pattern in an embodiment of the present application;
fig. 29 is a schematic view of a logo pattern as a display icon of a calendar application in the embodiment of the present application;
FIG. 30 is a schematic view showing a logo as a memo title icon in the embodiment of the present application;
FIG. 31 is a schematic view of a logo as the title of a reminder event in an embodiment of the present application;
fig. 32 is a schematic view of a logo pattern as a music menu icon in the embodiment of the present application;
FIG. 33 is a schematic diagram of an embodiment of the present application in which the logo is used as a voice assistant icon;
FIG. 34 is a diagram illustrating an identification pattern as an icon for displaying a sound-recorded person in a multi-person sound recording scenario in an embodiment of the present application;
FIG. 35 is a schematic view of a logo pattern as an icon of an album cover in the embodiment of the present application;
fig. 36 is a schematic block diagram of a terminal device of an embodiment of the present application;
fig. 37 is a schematic block diagram of a terminal device of an embodiment of the present application;
fig. 38 is a schematic block diagram of a terminal device of an embodiment of the present application;
fig. 39 is a schematic block diagram of a terminal device of an embodiment of the present application;
fig. 40 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
The method for generating the identification pattern in the present application may be performed by a terminal device, which may be a mobile terminal (e.g., a smart phone), a computer, a personal digital assistant, a wearable device, an in-vehicle device, an internet of things device, and the like. In addition, the terminal device may be other devices capable of displaying a screen.
The terminal device may be a device running various operating systems. For example, the terminal device may be a device running an android system, a device running an IOS system, or a device running a windows system.
In the conventional scheme, a software program in the terminal device often directly selects a character image (chinese character, english character or) as a corresponding display icon. For example, a character image of one word in the name of a contact or a character image of the first letter of the pinyin of the name (before being used as an identification pattern, some artistic processing such as random color background filling and the like may also be performed on the character images) is generally selected in the address book of the terminal device as the identification pattern of the contact (or becomes a display avatar of the contact). The identification patterns generated in the mode are limited in types and have common display effects.
Therefore, in order to generate the identification pattern with better display effect, the application provides a new identification pattern generation method, the image is transformed through the extracted contour line of the image, and then the identification pattern of the software program is generated according to the transformed image, so that more different identification patterns can be generated, the display effect can be improved, and the user experience can be further improved.
The method for generating the identification pattern according to the embodiment of the present application will be described in detail with reference to fig. 1.
Fig. 1 is a schematic flow chart of a method of generating a logo pattern according to an embodiment of the present application. The method shown in fig. 1 may be performed by a terminal device, and the method shown in fig. 1 includes steps 110 to 130, and the steps 110 to 130 are described in detail below.
110. A first image is acquired.
The first image may be used to represent any one of chinese characters, english characters, and arabic numeral characters.
In step 110, a first image may be acquired according to a software program. Specifically, the first image may be acquired according to display information of the software program.
For example, if the software program is currently displaying a Chinese character, then the first image may be an image representing the Chinese character. The first image may be pre-stored or may be acquired in real time from a network.
It should be understood that the software program described above may be a software program in a terminal device.
Specifically, the software program may be an address book, a memo, a calendar, weather software, a music player, an album, or the like.
When the software program is an address book, the first image can be acquired according to the contact information in the address book. For example, a particular contact's family name week, then a character image of one "week" may be captured as the first image.
When the software program is weather software, the first image may be acquired according to a display temperature in the weather software. For example, when the temperature of the weather software reality is 28 degrees, a character image of "28" may be selected as the first image.
When the software program is a memo, the first image can be acquired according to memo information in the memo. For example, a character image of a first character in a certain piece of memo information in a memo may be extracted as a first image.
120. And transforming the first image according to the contour line of the first image to obtain a second image.
The second image comprises a first image and a plurality of contour lines.
The contour line of the first image may be an outer contour line of the first image or an inner contour line of the first image. The outer contour or inner contour of the first image may be acquired by an edge detection algorithm.
The outer contour line of the first image may be a contour line formed around the peripheral edge (or the entire edge) of the first image.
For example, as shown in fig. 2, when the character image of "week" is a solid character image, the character image of "week" and its outer contour line are shown on the left and right sides of fig. 2, respectively.
While fig. 2 above shows only the case of the outer contour line when the character image of "week" is a solid character image, the outer contour line when the character image of "week" is a hollow character image is similar to the case shown in fig. 2, and the outer contour line is still the contour line formed around the peripheral edge of the character image.
The inner contour of the first image may be a contour formed by a plurality of edges of the first image.
In general, when a character image is an outline character image, the character image has an inner contour line. For example, as shown in fig. 3, the character image of "week" is an outline character image, and the inner contour lines of the character image of "week" are all the edge lines forming the character image.
In the step 120, transforming the first image according to the contour line of the first image may refer to copying a plurality of contour lines along the contour line of the first image into or around the first image.
The manner in which the first image is transformed based on the contour lines of the first image is described in detail below.
Transformation mode 1: and expanding the outer contour lines of the first image to the periphery of the first image to obtain a second image.
In the alternative 1, the extension of the outer contour line of the first image to the periphery of the first image may be to point to an outer contour line that duplicates the first image at the periphery of the first image. The number of the outer contour lines to be copied to the periphery of the first image may be one or more (at least one).
For example, as shown in fig. 4, the first image is a character image of a chinese character "week", and the second image shown on the right side of fig. 4 can be obtained by transforming the first image in the transformation mode 1, and as can be seen from fig. 4, the second image is composed of the first image and a plurality of outer contour lines around the first image.
When the first image is a solid character image or an outline character image, the first image may be converted by the above conversion method 1.
Transformation mode 2: the inner contour line of the first image is expanded to the inside of the first image to obtain a second image.
Expanding the inner contour line of the first image inside the first image may also be referred to as shrinking the inner contour line of the first image, i.e. copying the inner contour line of the first image inside the first image. When copying the inner contour of the first image to the first image, the number of lines to be copied may be one or a plurality of lines.
For example, as shown in fig. 5, the first image is a character image of a chinese character "week", and the second image shown on the right side of fig. 5 can be obtained by transforming the first image in the transformation mode 2, and as can be seen from fig. 5, the second image is composed of the first image and a plurality of inner contour lines inside the first image.
When the first image is an outline character image, the first image may be converted by the above conversion method 2. When the first image is a solid character image, the first image may be transformed to obtain a transformed first image, where the transformed first image is an outline character image. Next, the transformed first image may be transformed to obtain a second image by using the transformation method 2.
Specifically, as shown in fig. 6, the first image is a solid character image, the first image is transformed to obtain a transformed first image, and then the inner contour line of the transformed first image is expanded into the first image to obtain a second image.
130. An identification pattern of the software program is generated from the second image.
In step 130, the second image may be directly used as the identification pattern of the software program, an image of the central area of the second image may be selected as the identification pattern of the software program, or an image of the hot area of the second image may be selected as the identification pattern of the software program.
In the application, the first image is converted, the second image comprising the plurality of contour lines can be obtained, the identification pattern of the software program with more various display styles can be obtained according to the second head portrait, the display effect of the identification pattern of the software program can be improved to a certain extent, and the user experience is improved.
In order to further improve the display effect, when the contour line of the first image is a right-angle contour line, the contour line of the first image may be processed to obtain a processed first image, wherein the contour line of the processed first image is a rounded contour line, and then the processed first image is transformed according to the rounded contour line to obtain a second image.
As shown in fig. 7, the contour line of the first image is a right-angled contour line, and the processed contour line of the first image is obtained by processing the contour line of the first image (specifically, rounding the contour line of the first image), and the contour line of the processed first image is a rounded contour line.
In the application, the right-angle contour line of the first image is converted into the round-angle contour line, so that the second image with the round-angle contour line can be obtained, and the display effect of the identification pattern of the software program generated according to the second image can be improved.
It will be appreciated that in generating the identification pattern of the software program from the second image, the second image may be used directly as the identification pattern of the software program.
In order to obtain a more compact identification pattern, the partial image in the second image may also be selected as the identification pattern of the software program. For example, an image of a center region in the second image may be selected as the identification image of the software program, where the center region of the second image may be a region that extends a distance around the second image along the geometric center of the second image.
Optionally, as an embodiment, the identification pattern is a hot area image of the second image.
Wherein the hot-zone image of the second image is a sub-image of a character in the second image that the second image represents is recognizable. The portion of the region from which the image is cut from the second image may also be referred to as a visual hot-zone.
For example, as shown in fig. 8, the second image has many contour lines, which is not compact (or may not be beautiful) if the second image is directly used as the logo pattern of the software program, and in order to improve the display effect, the image of a partial region in the second image may be selected as the logo pattern, wherein the second image can be recognized as the chinese character "week" according to the image in the logo pattern.
Alternatively, a neural network model may be employed to identify and intercept the hotspot images of the second image.
Specifically, a preset number of character images can be selected, hot area images of the character images can be manually intercepted, a character image training set is formed and input into the neural model for training, and after training, the terminal device can have the capability of identifying and intercepting the hot area images in the preset number of character images, so that when the obtained second image is an image in the preset number of character images, the terminal device can identify and intercept the hot area images of the second image.
In addition, in the training process, the training picture may also include an image generated by the terminal device in the process of generating the identification pattern.
Optionally, as an embodiment, the software program is an address book, and the identification pattern of the software program is a contact photo in the address book.
For example, as shown in fig. 9, after the identification pattern is obtained, the identification pattern may be used as a contact avatar. If the identification pattern is relatively large, the identification pattern can be compressed and then the compressed identification pattern can be used as the head portrait of the contact.
In addition, when the identification pattern of the software program is the head portrait of the contact in the address book, if the incoming call of the contact is received, the head portrait of the contact can also be used as the incoming call display picture.
For example, as shown in fig. 10, the head portrait of the contact may be used as the incoming call display screen.
Optionally, when the identification pattern of the software program is the head portrait of the contact in the address book, the density of the contour lines in the identification pattern and the contact frequency or the density of the contact may be in a positive correlation (specifically, may be in a direct relationship).
Specifically, the density of the contour lines in the avatar of the contact is generated to be greater as the contact frequency of the contact in the address book is greater. When the contact intimacy degree of the contact persons in the address book is larger, the density degree of the contour lines in the head portrait of the contact persons is also larger.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the intimacy degree of the contour lines in the identification patterns, and the display effect is better.
Optionally, when the identification pattern of the software program is the head portrait of the contact in the address book, the color shade degree of the identification pattern has a positive correlation with the contact frequency and/or the intimacy degree of the contact represented by the identification pattern.
Specifically, the color of the avatar of the contact is darker as the contact frequency of the contact in the address book is higher, and the color of the avatar of the contact is darker as the contact intimacy of the contact in the address book is higher.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the color depth degree of the identification pattern, and the display effect is better.
In the application, when the identification pattern is the head portrait of the contact person in the address book, the contact persons using the same character image as the head portrait of the contact person can be distinguished according to the density of the contour lines in the head portrait of the contact person or the color depth of the head portrait of the contact person.
For example, as shown in fig. 11, when a plurality of contacts in the address book having last names are displayed, the contacts may be displayed in an order in which the density of the outline in the contact avatar is gradually decreased, or the contacts may be displayed in an order in which the color of the contact avatar is gradually reduced.
Optionally, when the logo pattern is displayed, a partial image in the logo pattern may be hidden in order to enhance the display effect.
Specifically, part of lines in the logo pattern may be hidden, and part of the logo pattern may also be hidden according to a certain geometric shape.
For example, as shown in fig. 12, some lines in the lower part of the logo pattern may be hidden, and images in some circular areas in the logo pattern may also be hidden.
Optionally, when the identification pattern is a contact head portrait in the address book, the density of the contour lines in the identification pattern may also be dynamically changed according to the length of the call time.
Specifically, the density of the contour lines in the identification pattern may be in direct proportion to the length of the call time, when the call is just connected, the contour lines in the identification pattern are relatively sparse, and the contour lines in the identification pattern become denser and denser as the call time increases.
For example, as shown in fig. 13, at the beginning of a call, the number of contour lines in the contact avatar is only 2, the contour lines are very sparse, the contour lines in the contact avatar increase to 3 by 5 minutes of the call, the density of the contour lines increases, the contour lines in the contact avatar change to 4 by 10 minutes of the call, the density of the contour lines further increases, and the number of contour lines in the contact avatar has increased much by 30 minutes of the call, and the contour lines become very dense.
It should be understood that the software program in the method shown in fig. 1 may be various software programs in the terminal device, and the identification pattern of the software program may be an identification pattern of an icon of the software program, or the identification pattern of the software program may also be an identification pattern of display contents in the software program.
Besides transforming the first image according to the contour lines of the first image, the first image can be superimposed with a dot matrix image or a line image to obtain a second image. This variation is described in detail below in conjunction with fig. 14.
Fig. 14 is a schematic flow chart of a method of generating a logo pattern according to an embodiment of the present application. The method shown in fig. 14 may be performed by a terminal device, and the method shown in fig. 14 includes steps 210 to 240, and the steps 210 to 240 are described in detail below.
210. A first image is acquired.
The first image in step 210 may be used to represent any one of chinese characters, english characters, and arabic numeral characters, and the first image is an outline character image.
In step 210, a first image may be acquired according to a software program. Specifically, the first image may be acquired according to display information of the software program.
For example, when the character currently displayed by the software program is "week", an image representing the character "week" may be acquired as the first image, and the first image may be pre-stored or acquired from a network in real time.
The specific process performed in step 210 is similar to the specific process performed in step 110, and the related definitions and explanations in step 110 apply to step 210, and step 210 is not described in detail herein to avoid unnecessary repetition.
220. And superposing the dot matrix image or the line image with the first image to obtain a superposed image.
The dot matrix image may be an image with sparsely distributed pixels, and the line image may be an image formed by arranging a plurality of lines.
230. And moving part of pixel points in the dot matrix or the line in the superposed image by a preset distance to obtain a second image.
Optionally, moving a part of pixel points in the dot matrix or the line in the superimposed image by a preset distance includes: and moving the pixel points positioned inside the outer contour line of the first image in the superposed image by a preset distance.
Specifically, when moving a part of the pixels in the superimposed image, the image located inside the outer contour line of the first image may be moved some distance in one direction (for example, may be a horizontal direction) and then moved some distance in another direction (for example, may be a vertical direction).
For example, as shown in fig. 15, assuming that the pitch of the pixel points in the dot matrix image is d (for example, d may be 6), the image obtained by superimposing the dot matrix image on the first image may be as shown in the middle of fig. 15, and then the pixel points located inside the outer contour line of the first image may be moved to the right side of the image (for example, d/2 pixels may be moved), and then moved upward (for example, d/2 pixels may be moved), and the final second image is as shown in the rightmost side of fig. 15.
For example, as shown in fig. 16, assuming that the line pitch in the line image is d (for example, d may be 2), the image obtained by superimposing the line image on the first image may be as shown in the middle of fig. 16, and then, the pixel points located inside the outer contour line of the first image may be moved toward the upper side of the image (for example, d/2 pixels may be moved), and the final second image is as shown in the rightmost side of fig. 16.
In this application, through with dot matrix image or lines image stack to some pixel points of removal outer profile line inside can obtain the second image that has the third dimension, thereby make the identification pattern who obtains according to the second image also have the stereoeffect, can improve ultimate display effect.
240. An identification pattern of the software program is generated from the second image.
In step 240, the entire second image may be used as the identification pattern of the software program, or the central region of the second image may be selected as the identification pattern of the software program.
It should be understood that step 240 is similar to the specific implementation of step 130 above, and the relevant definitions and explanations in step 130 above apply to step 240, and step 240 is not described in detail herein to avoid unnecessary repetition.
In the application, dot matrix images or line images are superposed on the first images, so that second images with more various display styles can be obtained, identification patterns of software programs with more various display styles can be obtained according to the second head portrait, the display effect of the identification patterns of the software programs can be improved to a certain extent, and the user experience is improved.
Optionally, as an embodiment, the identification pattern is a hot area image of the second image.
Wherein the hot-zone image of the second image is a sub-image of a character in the second image that the second image represents is recognizable. The portion of the region from which the image is cut from the second image may also be referred to as a visual hot-zone.
For example, as shown in fig. 17, since the image area of the second image is large, it is not concise (or may not be beautiful) if the second image is directly used as the identification pattern of the software program, and in order to improve the display effect, the hot area image in the second image may be selected as the identification pattern, wherein the second image can be recognized as the chinese character "week" according to the image in the identification pattern.
Optionally, as an embodiment, the software program in the method shown in fig. 14 is an address book, and the identification pattern of the software program is a contact head portrait in the address book.
Optionally, when the identification pattern of the software program is the contact head portrait in the address book, the density of the dot matrix or the line in the identification pattern is in a positive correlation with the contact frequency and/or the density of the contact represented by the identification pattern.
Specifically, the greater the contact frequency of the contact person in the address book, the greater the density of the dot matrix or the line in the avatar of the contact person is generated. When the contact intimacy degree of the contacts in the address book is larger, the density degree of the dot matrix or the line in the head portrait of the contacts is also larger.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the density degree of the dot matrix or lines in the identification pattern, and the display effect is better.
Optionally, when the identification pattern of the software program is the head portrait of the contact in the address book, the shade of the color of the identification pattern is in positive correlation with the contact frequency and/or the intimacy of the contact represented by the identification pattern.
Specifically, the color of the avatar of the contact is darker as the contact frequency of the contact in the address book is higher, and the color of the avatar of the contact is darker as the contact intimacy of the contact in the address book is higher.
In the application, the contact persons with different contact frequencies or different intimacy degrees can be identified through the color depth degree of the identification pattern, and the display effect is better.
In the application, when the identification pattern is the contact person head portrait in the address book, the contact persons using the same character image as the contact person head portrait can be distinguished according to the density of dot matrixes or lines in the contact person head portrait or the color depth of the contact person head portrait.
In the application, besides the first image is subjected to some transformation processing to obtain the second image, in order to obtain a richer display effect, a reference picture matched with the first image can be searched from a picture library, and then the identification pattern of the software program can be generated according to a reference image similar to the first image in the reference picture. This variation is described in detail below in conjunction with fig. 18.
Fig. 18 is a schematic flow chart of a method of generating a logo pattern according to an embodiment of the present application. The method shown in fig. 18 may be performed by a terminal device, and the method shown in fig. 18 includes steps 310 to 330, and the steps 310 to 330 are described in detail below.
310. A first image is acquired.
The first image in step 310 may be an image for representing english characters or arabic numeral characters.
In step 310, a first image may be acquired according to a software program. Specifically, the first image may be acquired according to display information of the software program.
For example, when the currently displayed character of the software program is "28", an image representing the character "28" may be acquired as the first image, and the first image may be pre-stored or acquired in real time from a network.
The specific process performed in step 310 is similar to the specific process performed in step 110, and the related definitions and explanations in step 110 above apply to step 310 as well, and repeated descriptions are omitted here as appropriate to avoid unnecessary repetition.
320. And determining a target picture matched with the first image from a picture library.
The target picture in step 320 includes a reference picture whose similarity to the first picture is greater than or equal to a preset similarity.
The picture library contains a plurality of pictures, and the pictures can contain images similar to some common English characters or Arabic numeral character patterns.
For example, the picture library may include pictures composed of images similar to english characters a to Z (the images in these pictures are similar to english characters a to Z), and the picture library may also include pictures composed of images similar to arabic numerals 0 to 9 (the images in these pictures are similar to arabic numerals 0 to 9).
In step 320, a target picture matching the first image may be obtained through the neural network model.
330. And generating an identification pattern of the software program according to the reference image.
The specific implementation of step 330 is similar to that of step 130, except that step 130 is to generate the identification pattern from the second image, and step 330 is to generate the identification pattern from the reference image, the above definition and explanation of step 130 are also applicable to step 330, and the repeated descriptions are omitted here as appropriate to avoid unnecessary repetition.
In the application, the picture matched with the first image is selected from the picture library, and the pattern contained in the picture is richer, so that the identification pattern with richer display styles can be obtained according to the reference image in the target picture, and the display effect of the identification pattern can be improved.
Optionally, before step 330, the method shown in fig. 18 further includes: and intercepting or extracting a reference image from the target picture.
Optionally, as an embodiment, the identification pattern is a hot area image of the reference image, where the hot area image of the reference image is a sub-image of a character in the reference image, which can be identified by the reference image.
For example, as shown in fig. 19, assuming that the first image is a character image of the letter "W", a target picture in which a reference image is similar to the letter "W" can be found from a picture library. Next, a reference image may be extracted from the target picture, and then a hot-zone image of the reference image may be intercepted as an identification pattern of the software program.
Optionally, as an embodiment, the texture distribution of the pictures in the picture library satisfies golden section ratio or fibonacci series characteristics.
In the application, the texture distribution of the pictures in the picture library meets the golden section proportion or Fibonacci number series characteristics, so that the identification pattern of the software program obtained according to the pictures in the picture library has certain aesthetic feeling, and better user experience can be brought.
In addition, in the application, in order to further improve the display effect, an image of the current weather condition can be superimposed on the identification pattern according to the weather information.
For example, as shown in fig. 20, an image representing rain may be superimposed on the logo pattern, thereby adding the effect of a raindrop to the resulting logo pattern.
The identification pattern in the embodiment of the present application may be used as a contact avatar, and a specific process for generating the contact avatar is described in detail below with reference to fig. 21 to 26.
Fig. 21 is a schematic diagram of a process of generating a contact avatar according to an embodiment of the present application. The process shown in fig. 21 includes steps 410 through 460, which are described in detail below.
410. A character image 1001 is acquired.
The character image 1001 may be a pre-stored character image, and when the head portrait of the "week" last name contact needs to be generated, the character image 1001 may be extracted from the pre-stored character image.
Alternatively, the character image 1001 may be an outline character image in addition to a solid character image.
Specifically, in step 410, when a contact with the name "XX" is obtained from the address book, then the character image of the "XX" character (the first name or the first initial of the last name may be selected, or the character in the first name may be selected) may be selected and obtained.
Generally, the terminal device will store character images of common names, 26 letters or arabic numerals 0-9, and when the character images are obtained in step 410, the corresponding character images can be obtained from pictures stored in the terminal device according to name information of the contacts.
420. The character image 1001 is subjected to expansion processing to obtain an expanded image 1002.
In step 420, an image 1002 in which a white expansion area is formed around the image can be obtained by performing expansion processing on the character image 1001.
Specifically, in step 420, the dilated image 1002 may be obtained by morphological dilation of the character image 1001. The principle of image dilation is briefly described below.
During the expansion process, a convolution kernel B (kernel may also be referred to as template or mask) may be defined, and the convolution kernel may be of any shape and size and has a separately defined reference point-anchor point (anchor). Typically, the convolution kernel is a square or a circular disk with reference points. In the embodiment of the present application, the convolution kernel B may use a convolution kernel having a size of 3 × 3 (a convolution kernel having a size of 5 × 5 may also be used) as shown in fig. 22.
After the convolution kernel B is obtained, the convolution kernel B and the image a (original image) may be convolved, and a pixel preset value of a coverage area of the kernel B is calculated, so as to obtain an image after convolution processing.
Convolution is an operation in analytical mathematics. The convolution operation is performed on the digital image, namely, a convolution kernel (convolution template) is utilized to slide on the image, the gray value of the pixel on the image point is multiplied by the numerical value on the corresponding convolution kernel, then all multiplied values are added to be used as the gray value of the pixel on the image corresponding to the middle pixel of the convolution kernel, and finally the process of sliding all the images is completed.
In step 420, the character image 1001 may be convolved with the transform kernel B to obtain an image 1002 in which the black area is expanded by 1 pixel, where the gray frame in the image 1002 does not actually exist, but merely represents the expanded white area for convenience.
430. An outer contour image of the image 1002 is extracted.
In step 430, the edge of the character can be detected by a character edge detection method, and the outline image 1003 including the black contour is finally obtained.
The outline image may be a character image including an outline line.
440. And (5) expanding the outline image 1003 equidistantly to obtain a character expanded image 1004.
In step 440, the outline image 1003 is extended equidistantly, which may also be understood as extending the outer contour lines of the image 1003 equidistantly, the distance between the extended outer contour lines may be 5 pixels, and the number of the extended outer contour lines may be 10.
The character-expanded image 1004 corresponds to the second image described above, and a contact avatar can be generated from the character-expanded image 1004 when the character-expanded image 1004 is obtained.
In step 440, the number of expanded outer contour lines may be determined according to the contact intimacy degree or the contact frequency, for example, when the contact intimacy degree is higher or the contact frequency is higher, the number of expanded outer contour lines is larger, whereas when the contact intimacy degree is lower or the contact frequency is lower, the number of expanded outer contour lines is smaller.
The contact intimacy degree or the contact frequency can be reflected by the number of the outer contour lines which are extended outwards, so that the finally obtained contact head portrait has a better display effect.
450. The hotspot image of the character expansion image 1004 is intercepted and taken as the contact avatar.
In step 450, the resulting contact avatar is shown as 1006 in FIG. 21.
Fig. 23 is a schematic diagram of a process of generating a contact avatar according to an embodiment of the present application. The process shown in fig. 23 includes steps 510 through 550, which are described in detail below.
510. The character image 2001 is processed to obtain an outline character image 2002.
The character image 2001 may be a pre-stored character image, and when the head portrait of the "week" family name contact needs to be generated, the character image 2001 may be extracted from the pre-stored character image.
Or, when the head portrait of the surname contact in "week" needs to be generated, the outline character image of the character "week" can also be directly obtained, and then the outline character image 2002 is directly obtained.
Since the character image 2001 is a solid character image, in order to perform the process of contracting the inner contour, it is necessary to convert the character image 2001 from the solid character image to an outline character image.
If the character image 2001 is an outline character image, the process in step 510 may not be performed on the character image 2001, but step 520 may be directly performed.
520. The character image 2002 is subjected to rounding processing, resulting in a character image 2003 having a rounded outline.
Since the outline of the character image 2002 is a rectangular outline, the outline of the character image 2002 can be converted from a rectangular outline to a rounded outline to obtain the character image 2003, in order to further improve the display effect.
530. And (4) retracting the inner contour lines of the character images equidistantly to obtain retracted character images 2004.
By retracting the inner contours at equal distances, the resulting character image 2004 includes contours that are arranged in order, and the final display effect can be improved.
In step 530, the number of the inner contour lines may be determined according to the contact intimacy degree or the contact frequency, for example, when the contact intimacy degree is higher or the contact frequency is higher, the number of the inner contour lines is larger, and vice versa, when the contact intimacy degree is lower or the contact frequency is lower, the number of the inner contour lines is smaller.
The intimating degree or the contact frequency of the contact person can be reflected by the number of the retracted inner contour lines, so that the finally obtained contact person head portrait has a better display effect.
540. The hot area image of the character image 2004 is cut out to obtain a character image 2005.
The manner in which the hotspot image is captured in step 540 is similar to the manner in which the image is captured as described above and will not be described in detail herein.
550. The cut character image 2005 is taken as a contact avatar.
The resulting display effect of the contact avatar is shown as image 2006 in fig. 23.
Fig. 24 is a schematic diagram of a process of generating a contact avatar according to an embodiment of the present application. The process shown in fig. 24 includes steps 610 through 650, which are described in detail below.
610. The character image 3001 is processed to obtain an outline character image 3002.
The character image 3001 may be a pre-stored character image, and when the head portrait of the "week" last name contact needs to be generated, the character image 3001 may be extracted from the pre-stored character image.
Or, when the head portrait of the surname contact person in the week needs to be generated, the outline character image of the character "week" can be directly obtained, and then the outline character image 3002 is directly obtained.
620. The dot matrix image is superimposed on the character image 3002 to obtain a superimposed image 3003.
The superimposed image 3003 is composed of a character image 3002 and a dot matrix.
The dot matrix image may be an image having an image area equal to or larger than the character image 3001, and the dot matrix image may completely cover the character image 3001 when superimposed on the character image 3001.
In addition, when the contact frequency or the intimacy degree of the surname contact person in the week is high, the dot matrix image with the dense dot matrix can be selected to be overlapped with the character image 3001, and when the contact frequency or the intimacy degree of the surname contact person in the week is low, the dot matrix image with the sparse dot matrix can be selected to be overlapped with the character image 3001. Therefore, the density degree of the dot matrix in the finally obtained contact person head portrait can reflect the contact frequency or the contact density degree of the contact person, and different contact persons can be better distinguished.
630. The pixels of the dot matrix in the character image 3002 in the superimposed image are moved by a preset distance, and a character image 3004 with pixels shifted is obtained.
In step 630, by performing pixel shift, the shifted image region can be made to show a stereoscopic effect, and the display effect of the image can be improved (as shown in fig. 24, the characters in the image 3003 show a stereoscopic effect).
640. The hot area image of the character image 3004 is cut out to obtain the character image 3005.
The manner in which the hotspot image is captured in step 640 is similar to the manner in which the image is captured as described above and will not be described in detail herein.
650. The cut character image 3005 is used as a contact avatar.
The resulting display effect of the contact avatar of step 650 is shown as image 3006 in fig. 24.
Fig. 25 is a flowchart of a method of generating a logo pattern according to an embodiment of the present application. The method shown in FIG. 25 illustrates the entire process of generating a contact avatar, taking a week name contact as an example. The method shown in fig. 25 includes steps 710 to 750, and the steps 710 to 750 are described in detail below.
710. And acquiring the character image 4001 according to the contact information.
The character image 4001 may be a pre-stored character image, and when the head portrait of the "week" family name contact needs to be generated, the character image 4001 may be extracted from the pre-stored character image.
Alternatively, when the head portrait of the surname contact in "week" needs to be generated, the solid character image of the character "week" may be obtained first, and then the solid character image may be converted into the outline character image, so as to obtain the character image 4001.
720. The line image and the character image 4001 are superimposed to obtain a superimposed image 4002.
The line image may be an image having an image area equal to or larger than the character image 4001, and the line image may completely cover the character image 4001 when superimposed on the character image 4001.
In addition, when the contact frequency or the intimacy degree of the last name contact person in the week is high, the line image with dense lines can be selected to be overlapped with the character image 4001, and when the contact frequency or the intimacy degree of the last name contact person in the week is low, the line image with sparse lines can be selected to be overlapped with the character image 4001. Therefore, the density degree of lines in the finally obtained contact person head portrait can reflect the contact frequency or the contact density degree of the contact persons, and different contact persons can be better distinguished.
Alternatively, in step 720, the dot matrix image may be superimposed on the character image 4001.
730. The pixels of the lines in the character image 4002 in the image 4002 are moved by a preset distance, and an image 4003 after pixel shift is obtained.
In step 730, by performing pixel shift, the shifted image region can be made to appear stereoscopic, and the display effect of the image can be improved (as shown in fig. 25, characters in the image 4003 appear stereoscopic).
740. The image 4004 is obtained by cutting out the image of the hot area in the image 4003.
The manner in which the hotspot image is captured in step 740 is similar to the manner in which the image is captured as described above and will not be described in detail herein.
750. And taking the intercepted image 4004 as a contact photo.
After step 750, the resulting contact avatar is shown as image 4005 in FIG. 25.
Fig. 25 is a flowchart of a method of generating a logo pattern according to an embodiment of the present application. The process of generating the identification pattern shown in fig. 26 includes steps 810 to 850, which are described in detail below.
810. A character image 5001 of "W" is acquired.
For example, for a contact with a name of "Waddel," the first character W of the contact name can be extracted, and then the character image 5001 of "W" can be obtained first.
The above-described character image 5001 may be a character image stored in advance, and when it is necessary to generate an avatar of a contact of which the first character is "W", the character image 5001 may be extracted from the character image stored in advance.
820. A picture 5002 matching the image of the character image 5001 is determined from the picture library.
It is understood that the picture 5002 may contain a target image having a higher degree of similarity to the image 5001 (the degree of similarity of the target image to the image 5001 is greater than a preset threshold).
830. The letter region in the picture 5002 is identified.
The letter region in the picture 5002 is also the region where the target image in the picture 5002 is located, and the letter region in the picture 5002 is an image region similar to the letter W.
In order to find a picture matching with a corresponding character image in the picture library, the neural network model may be trained in advance by using some training pictures, which may include images similar to some commonly used english characters or numeric characters, for example, the training pictures may include images similar to 26 english characters (a-Z) or 10 numeric characters (0-9).
Specifically, before training, an alphabet region of a training picture and an alphabet corresponding to the training picture may be manually marked (for example, for a picture, if an image region similar to the alphabet a is included in the picture, an image region similar to the character a in the picture may be manually marked, and the alphabet corresponding to the picture is marked as a), so as to form a training set, and then the neural network model is trained by using the training set.
In addition, the pictures in the training set can be texture images with golden section or Fibonacci series characteristics, so that the finally obtained identification pattern is more attractive.
The training process for the letter a is described in detail below as an example.
The method comprises the steps of finding a target picture (the target picture contains an image similar to the character A), marking an image area similar to the character A in the target picture, inputting the picture into a neural network model, classifying each pixel (for example, the area where the character A is located is in one type, and the area outside the character A area is in another type), and forming a mask image (for example, the area A is black, and the area A is not white) with the same size as the target picture, wherein the mask image is output as a result of training of the neural network model.
Similarly, the above operation is repeated for a predetermined number (e.g., 1000 times) with another picture (the picture containing an image similar to the letter a), and the training for the letter "a" is completed for the predetermined number. At this time, the computer has the ability to recognize the letter "a" region in the preset picture through the above training.
The neural network model may be a Convolutional Neural Network (CNN) or a full convolutional neural network (FCN), and the like.
840. The letter region image is truncated to obtain image 5004.
Since the image 5004 is similar to the character image 5001 of "W" and the display style of the image 5004 is more unique, the final contact avatar is generated from the image 5004, so that the display effect of the finally generated contact avatar can be better.
850. The image of the hot zone in image 5004 is truncated to provide image 5005.
The manner in which the hotspot image is captured in step 850 is similar to the manner in which the image is captured as described above and will not be described in detail herein.
In addition, in order to obtain a better display effect, before step 850, the image 5004 may be processed according to the method for generating the identification pattern in fig. 1 or fig. 14 in the embodiment of the present application, for example, the image 5004 is transformed according to the contour line of the image 5004, or the dot matrix image or the line image is superimposed on the image 5004 to obtain a processed image, and then step 850 is performed to make the finally obtained identification pattern achieve a better display effect.
860. The image 5005 is taken as a contact avatar.
After step 860, the resulting effect of the contact avatar is shown as image 5006 in fig. 26.
The identification pattern in the embodiment of the present application may also be a temperature number in a weather application, and details of the case where the identification pattern is the temperature number in the weather application will be described below with reference to fig. 27.
Fig. 27 is a schematic diagram of a process of generating a temperature display icon according to an embodiment of the present application. The process of generating the identification pattern shown in fig. 27 includes steps 910 to 960, which are described in detail below.
910. And acquiring a character image of the current temperature.
In step 910, when the current temperature is 28 °, the acquired 28 ° character image is shown as 6001.
The above character image 6001 may be a character image stored in advance, and a character image of 28 ° may be extracted from a digital character image stored in advance when the current temperature is 28 °.
920. The character image 6001 is processed to obtain an outline character image 6002.
It should be understood that if the 28 ° character image acquired in step 910 is an outline character image, step 920 may not be performed and step 930 may be performed directly.
930. The dot matrix image and the character image 6002 are superimposed to obtain a superimposed image 6003.
The image area of the above dot matrix image may be larger than or equal to the image area of the character image 4001, and the dot matrix image may completely cover the character image 6002 when superimposed with the character image 6002.
Alternatively, as the temperature represented by the character image 6002 is higher, the dot matrix of the dot matrix image superimposed with the character image 6002 is denser.
Different temperature levels can be represented through the dot matrixes with different density degrees, and the display effect is better.
940. The pixels of the dot matrix located in the character region in the image 6003 are moved by a preset distance, and an image 6004 with the pixels shifted is obtained.
In step 940, the pixels of the dot matrix in the character region are shifted, so that the shifted image region can be made to show a stereoscopic effect, and the display effect of the image can be improved (as shown in fig. 27, the character region in the image 6004 shows a stereoscopic effect).
950. The hot zone image in image 6004 is truncated to give image 6005.
The manner in which the hotspot image is captured in step 950 is similar to the manner in which the image is captured above and will not be described in detail herein.
960. The clipped image 6005 is used as a temperature display icon.
After step 960, the resulting temperature display icon is shown as image 6006 in FIG. 27.
It should be understood that the identification pattern of the embodiment of the present application may be a display icon related to various software programs besides a contact photo, and the application examples of the software programs and the identification pattern of the software programs of the embodiment of the present application may be as follows:
(1) the software program is an album, and the identification pattern of the software program is a pattern of an album cover;
(2) the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum;
(3) the software program is a music application, and the identification pattern of the software program is a song list cover in the music application;
(4) the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant;
(4) the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded;
(5) the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
These application scenarios are described in detail below with reference to fig. 28 to 35.
Optionally, the identification pattern of the embodiment of the present application is a screen locking pattern.
For example, if a user sets a segment of text "open every day" on the lock screen, the method for generating the identification pattern according to the embodiment of the present application may extract the character image of the character "open" for processing, and the display effect of generating the final identification pattern is as shown in fig. 28.
Optionally, the identification pattern of the embodiment of the present application is also a display icon of the calendar application.
For example, assuming that the number is 9 today and the number "9" is displayed on a calendar application, the method for generating the identification pattern according to the embodiment of the present application may be adopted to extract the character image of the number "9" and process the character image of the number "9", and the display effect of the generated identification pattern is as shown in fig. 29.
Optionally, the identification pattern of the embodiment of the present application is an icon of a title of a memo, a document, or a note.
For example, if the user records a piece of memo information in the memo, and the title of the memo information is "drive to pick up children", the method for generating the identification pattern according to the embodiment of the present application processes the character image whose title extracts the first character "on", and the display effect of the icon of the generated title is as shown in fig. 30.
Optionally, the identification pattern of the embodiment of the present application is an icon of an event title of an alarm clock or a reminder event.
For example, if a user sets a reminder event "drive to pick up children" in a mobile phone, the user may extract an "on" character image in the title of the reminder event, and then process the "on" character image by using the method for generating an identification pattern according to the embodiment of the present application, where a display effect of the icon of the title of the reminder event is shown in fig. 31.
Optionally, the identification pattern in the embodiment of the present application is a music song list icon.
For example, if a song list in a music application is a choice of a song from linnhao, the character image of "li" can be processed by the method for generating the identification pattern of the embodiment of the present application, and the display effect of the generated song list icon is as shown in fig. 32.
Optionally, the identification pattern in the embodiment of the present application is a voice assistant icon.
Specifically, the icon of the voice assistant is a character image of "S", and the character image of "S" is processed by the method for generating the identification pattern according to the embodiment of the present application, and the generated icon of the voice assistant is as shown in fig. 33.
Optionally, the identification pattern in the embodiment of the present application is a display icon of a person to be recorded in a multi-person recording scene.
Specifically, the embodiment of the application can be applied to a scene of multi-person recording. In a scene of recording a plurality of surrounding mobile phones by using the mobile phones, the mobile phones can judge the position of a sound source, and display a recorded icon at a corresponding position on a recording interface. For example, when a plurality of persons are recorded with a current mobile phone, and the recorded persons include li xiao and zhou xiao, character images of "li" and "zhou" may be extracted, and the character images of "li" and "zhou" are processed by using the method for generating an identification pattern according to the embodiment of the present application, the generated icons are used to identify icons of two users at corresponding positions of the recording interface, and the specific display is shown in fig. 34.
Optionally, the identification pattern in the embodiment of the present application is an icon of a cover of the album.
Specifically, the method for generating the identification pattern according to the embodiment of the present application may be used to generate the identification pattern of information such as place name, holiday, name of person, etc. related to the album, and then superimpose the identification pattern on the cover of the album in the gallery to form an icon of the cover of the album.
For example, if the user is on vacation to a Buddha mountain to play, and an album named as "Buddha" is generated in the picture application, the character image of the album name first "Buddha" may be extracted, and then the character image of "Buddha" is processed by using the method for generating the identification pattern according to the embodiment of the present application, and the generated icon of the album cover is shown on the left side of fig. 35. Similarly, for an album named "summer vacation" in a picture application, a character image of the album name first "summer" may be extracted and then processed by the method for generating an identification pattern according to the embodiment of the present application, and an icon of the album cover is generated as shown on the right side of fig. 35.
While the terminal device for generating an identification pattern according to the embodiment of the present application has been described in detail with reference to fig. 1 to 35, and the terminal device for generating an identification pattern according to the embodiment of the present application will be described with reference to fig. 36 to 40, it should be understood that the terminal device in fig. 36 to 40 is capable of executing the terminal device for generating an identification pattern according to the embodiment of the present application, and the description thereof will be appropriately omitted.
Fig. 36 is a schematic block diagram of a terminal device according to an embodiment of the present application. Terminal apparatus 7000 in fig. 36 includes:
an obtaining module 7010, configured to obtain a first image, where the first image is used to represent any one of a chinese character, an english character, and an arabic numeral character;
a processing module 7020, wherein processing module 7020 is configured to:
transforming the first image according to the contour lines of the first image to obtain a second image, wherein the second image comprises the first image and a plurality of contour lines;
and generating an identification pattern of the software program according to the second image.
In the application, the first image is converted, the second image comprising the plurality of contour lines can be obtained, the identification pattern of the software program with more various display styles can be obtained according to the second head portrait, the display effect of the identification pattern of the software program can be improved to a certain extent, and the user experience is improved.
Optionally, as an embodiment, the processing module 7020 is configured to:
and expanding the outer contour line of the first image to the periphery of the first image to obtain the second image, wherein the outer contour line of the first image is a contour line formed around the peripheral edge of the first image.
Optionally, as an embodiment, the first image is an outline character image, and the processing module 7020 is configured to:
expanding the inner contour line of the first image to the inside of the first image to obtain the second image, wherein the inner contour line of the first image is a contour line formed by a plurality of edges of the first image.
Optionally, as an embodiment, the first image is a solid character image, and the processing module 7020 is configured to:
converting the first image to obtain a converted first image, wherein the converted first image is a hollow character image;
and expanding the inner contour line of the transformed first image to the inside of the transformed first image to obtain the second image.
Optionally, as an embodiment, an outline of the first image is a rectangular outline, and the processing module 7020 is configured to:
processing the contour line of the first image to obtain a processed first image, wherein the contour line of the processed first image is a rounded contour line;
and transforming the processed first image according to the fillet contour line to obtain the second image.
Optionally, as an embodiment, the processing module 7020 is configured to:
and determining a hot area image of the second image as an identification pattern of the software program, wherein the hot area image of the second image is a sub-image of the character represented by the second image which can be recognized in the second image.
Optionally, as an embodiment, the software program is an address book, and the identification pattern of the software program is a contact photo in the address book.
Optionally, as an embodiment, the density of the contour lines in the identification pattern has a positive correlation with the contact frequency and/or the density of the contact represented by the identification pattern.
Optionally, as an embodiment, the shade of the color of the identification pattern has a positive correlation with the contact frequency and/or the intimacy degree of the contact represented by the identification pattern.
Optionally, as an embodiment, the software program is an album, and the identification pattern of the software program is a pattern of an album cover; or,
the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or,
the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or,
the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or,
the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or,
the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
Fig. 37 is a schematic block diagram of a terminal device of an embodiment of the present application. The terminal device 8000 in fig. 37 includes:
an acquiring module 8010, configured to acquire a first image, where the first image is used to represent any one of a chinese character, an english character, and an alphanumeric character, and the first image is an outline character image;
superposing the dot matrix image or the line image with the first image to obtain a superposed image;
a processing module 8020, the processing module 8020 being configured to:
moving part of pixel points in the dot matrix or the line in the superposed image by a preset distance to obtain a second image;
and generating an identification pattern of the software program according to the second image.
In the application, dot matrix images or line images are superposed on the first images, so that second images with more various display styles can be obtained, identification patterns of software programs with more various display styles can be obtained according to the second head portrait, the display effect of the identification patterns of the software programs can be improved to a certain extent, and the user experience is improved.
Optionally, as an embodiment, the identification pattern is a hot area image of the second image, where the hot area image of the second image is a sub-image of a character that can be recognized in the second image.
Optionally, as an embodiment, the software program is an address book, and the identification pattern of the software program is a contact photo in the address book.
Optionally, as an embodiment, the density of the dot matrix or the line in the identification pattern is in a positive correlation with the contact frequency and/or the affinity of the contact represented by the identification pattern.
Optionally, as an embodiment, the shade of the color of the identification pattern has a positive correlation with the contact frequency and/or the intimacy degree of the contact represented by the identification pattern.
Optionally, as an embodiment, the software program is an album, and the identification pattern of the software program is a pattern of a cover of the album; or,
the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or,
the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or,
the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or,
the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
Fig. 38 is a schematic block diagram of a terminal device according to an embodiment of the present application. The terminal device 9000 in fig. 38 includes:
an obtaining module 9010, configured to obtain a first image, where the first image is used to represent an english character or an arabic numeral character;
a processing module 9020, where the processing module 9020 is configured to:
determining a target picture matched with the first image from a picture library, wherein the target picture comprises a reference image with the similarity greater than or equal to a preset similarity with the first image; and generating an identification pattern of the software program according to the reference image.
In the application, dot matrix images or line images are superposed on the first images, so that second images with more various display styles can be obtained, identification patterns of software programs with more various display styles can be obtained according to the second head portrait, the display effect of the identification patterns of the software programs can be improved to a certain extent, and the user experience is improved.
Optionally, as an embodiment, the identification pattern is a hot area image of the reference image, where the hot area image of the reference image is a sub-image of a character in the reference image, which can be identified by the reference image.
Optionally, as an embodiment, the texture distribution of the pictures in the picture library satisfies golden section ratio or fibonacci series characteristics.
Optionally, as an embodiment, the software program is an album, and the identification pattern of the software program is a pattern of an album cover; or,
the software program is a memorandum, and the identification pattern of the software program is the identification pattern of memorandum information in the memorandum; or,
the software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or the software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or,
the software program is a recording application, and the identification pattern of the software program is the head portrait of the person to be recorded; or,
the software program is a weather application, and the identification pattern of the software program is a display icon of the weather application.
Fig. 39 is a schematic block diagram of a terminal device according to an embodiment of the present application. The terminal device 10000 shown in fig. 39 includes:
a memory 10010 for storing a program;
a processor 10020 configured to execute the program stored in the memory 10010, wherein when the program stored in the memory 10010 is executed, the processor 10020 is configured to perform the steps of the method for generating an identification pattern according to the embodiment of the present application.
It should be understood that the acquiring module 7010 and the processing module 7020 in the terminal device 7000 are equivalent to the processor 10020, the acquiring module 8010 and the processing module 8020 in the terminal device 8000 are equivalent to the processor 10020, and the acquiring module 9010 and the processing module 9020 in the device 9000 are equivalent to the processor 10020.
Fig. 40 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
It is to be understood that the specific structures of the terminal device 7000, the terminal device 8000, the terminal device 9000 and the terminal device 1000 shown in fig. 36 to 39 may be as shown in fig. 40.
The terminal device in fig. 40 includes a communication module 3010, a sensor 3020, a user input module 3030, an output module 3040, a processor 3050, an audio-video input module 3060, a memory 3070, and a power supply 3080. The terminal device shown in fig. 40 may perform various steps of the method for generating a marker pattern according to the embodiment of the present application, and specifically, the processor 3050 in the terminal device shown in fig. 40 may perform various steps of the method for generating a marker pattern according to the embodiment of the present application.
The respective modules of the terminal device in fig. 40 are described in detail below.
The communication module 3010 may include at least one module that enables communication between the terminal device and other terminal devices. For example, the communication module 3010 may include one or more of a wired network interface, a broadcast receiving module, a mobile communication module, a wireless internet module, a local area communication module, and a location (or position) information module.
The sensor 3020 may sense some operations of the user, and the sensor 3020 may include a distance sensor, a touch sensor, and the like. The sensor 3020 may sense an operation of a user touching or approaching the screen.
The user input module 3030 is used for receiving input digital information, character information or contact touch operation/non-contact gesture, receiving signal input related to user setting and function control of the system, and the like. The user input module 3030 includes a touch panel and/or other input devices.
The output module 3040 includes a display panel for displaying information input by a user, information provided to the user, various menu interfaces of the system, and the like. Alternatively, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. In other embodiments, the touch panel can be overlaid on the display panel to form a touch display screen. In addition, the output module 3040 may further include an audio output module, an alarm, a haptic module, and the like.
The audio/video input module 3060 is used for inputting audio signals or video signals. The audio/video input module 3060 may include a camera and a microphone.
The power supply 3080 may receive external power and internal power under the control of the processor 3050 and provide power required for the operation of the respective modules of the entire terminal apparatus.
Processor 3050 may be indicative of one or more processors, e.g., processor 3050 may include one or more central processors, or a central processor and a graphics processor, or an application processor and a coprocessor (e.g., a microcontroller unit or a neural network processor). When the processor 3050 includes a plurality of processors, the plurality of processors may be integrated on the same chip or may be independent chips. A processor may include one or more physical cores, where a physical core is the smallest processing module.
The memory 3070 stores computer programs including an operating system program 3071, application programs 3072, and the like. Typical operating systems are those for desktop or notebook computers such as Windows from Microsoft corporation, MacOS from apple Inc., and others such as those developed by Google IncAndroid ofSystem, etc. for a mobile terminal. When the resource scheduling terminal device according to the embodiment of the present application is implemented by software, it may be considered to be implemented by the application 3071.
The memory 3070 may be one or more of the following types: flash (flash) memory, hard disk type memory, micro multimedia card type memory, card type memory (e.g., SD or XD memory), Random Access Memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable ROM, magnetic storage, magnetic disk, or optical disk. In other embodiments, the memory 3070 can also be a network storage device on the internet, and the system can perform operations such as updating or reading the memory 3070 on the internet.
The processor 3050 is used to read the computer program in the memory 3070 and then execute the computer program defined terminal device, for example, the processor 3050 reads the operating system program 3072 to run an operating system on the system and implement various functions of the operating system, or reads the one or more application programs 3071 to run applications on the system.
For example, the memory 3070 may store a computer program (the computer program is a program corresponding to the resource scheduling terminal device according to the embodiment of the present application), and when the processor 3050 executes the computer program, the processor 3050 may execute the resource scheduling terminal device according to the embodiment of the present application.
The memory 3070 also stores other data 3073 than computer programs, for example, the memory 3070 may store load characteristics of the framing threads involved in the resource scheduling terminal device of the present application, load prediction values of the framing threads, and the like.
The connection relationship of each module in fig. 40 is only an example, and the terminal device provided in any embodiment of the present application may also be applied to terminal devices in other connection manners, for example, all modules are connected through a bus.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (21)

1.一种生成标识图案的方法,其特征在于,包括:1. a method for generating identification pattern, is characterized in that, comprises: 获取第一图像,所述第一图像用于表示中文字符、英文字符以及阿拉伯数字字符中的任意一种;acquiring a first image, where the first image is used to represent any one of Chinese characters, English characters and Arabic numerals; 根据所述第一图像的轮廓线对所述第一图像进行变换,以得到第二图像,其中,所述第二图像包括所述第一图像和多条轮廓线;Transforming the first image according to the contour lines of the first image to obtain a second image, wherein the second image includes the first image and a plurality of contour lines; 根据所述第二图像生成软件程序的标识图案。A logo pattern of the software program is generated from the second image. 2.如权利要求1所述的方法,其特征在于,所述根据所述第一图像的轮廓线对所述第一图像进行变换,以得到第二图像,包括:2. The method according to claim 1, wherein the transforming the first image according to the contour of the first image to obtain the second image, comprising: 将所述第一图像的外轮廓线向所述第一图像的四周扩展,以得到所述第二图像,其中,所述第一图像的外轮廓线是围绕所述第一图像的四周边缘形成的轮廓线。Extending the outer contour of the first image to the periphery of the first image to obtain the second image, wherein the outer contour of the first image is formed around the periphery of the first image contour lines. 3.如权利要求1所述的方法,其特征在于,所述第一图像为空心字符图像,所述根据所述第一图像的轮廓线对所述第一图像进行变换,以得到第二图像,包括:3. The method of claim 1, wherein the first image is a hollow character image, and the first image is transformed according to the outline of the first image to obtain the second image ,include: 将所述第一图像的内轮廓线向所述第一图像内部扩展,以得到所述第二图像,其中,所述第一图像的内轮廓线是所述第一图像的多个边缘形成的轮廓线。Extending the inner contour of the first image to the inside of the first image to obtain the second image, wherein the inner contour of the first image is formed by multiple edges of the first image outline. 4.如权利要求1所述的方法,其特征在于,所述第一图像为实心字符图像,所述根据所述第一图像的轮廓线对所述第一图像进行变换,以得到所述第二图像,包括:4 . The method of claim 1 , wherein the first image is a solid character image, and the first image is transformed according to the outline of the first image to obtain the first image. 5 . Two images, including: 对所述第一图像进行变换,得到变换后的第一图像,所述变换后的第一图像为空心字符图像;Transforming the first image to obtain a transformed first image, where the transformed first image is a hollow character image; 将所述变换后的第一图像的内轮廓线向所述变换后的第一图像内部扩展,以得到所述第二图像。Extending the inner contour of the transformed first image to the inside of the transformed first image to obtain the second image. 5.如权利要求1-4中任一项所述的方法,其特征在于,所述第一图像的轮廓线为直角轮廓线,在根据所述第一图像的轮廓线对所述第一图像进行变换之前,所述方法还包括:5. The method according to any one of claims 1-4, wherein the contour of the first image is a right-angle contour, and the contour of the first image is compared to the first image according to the contour of the first image. Before performing the transformation, the method further includes: 对所述第一图像的轮廓线进行处理,以得到处理后的第一图像,所述处理后的第一图像的轮廓线为圆角轮廓线;processing the outline of the first image to obtain a processed first image, where the outline of the processed first image is a rounded outline; 所述根据所述第一图像的轮廓线对所述第一图像进行变换,以得到第二图像,包括:The transforming the first image according to the contour of the first image to obtain the second image, including: 根据所述圆角轮廓线对所述处理后的第一图像进行变换,以得到所述第二图像。Transform the processed first image according to the rounded contour line to obtain the second image. 6.如权利要求1-5中任一项所述的方法,其特征在于,所述标识图案为所述第二图像的热区图像,其中,所述第二图像的热区图像是所述第二图像中能够识别出所述第二图像表示的字符的子图像。6. The method of any one of claims 1-5, wherein the identification pattern is a thermal image of the second image, wherein the thermal image of the second image is the thermal image of the second image. A sub-image of the character represented by the second image can be identified in the second image. 7.如权利要求1-6中任一项所述的方法,其特征在于,所述软件程序为通信录,所述软件程序的标识图案为所述通信录中的联系人头像。7. The method according to any one of claims 1-6, wherein the software program is an address book, and the identification pattern of the software program is a contact avatar in the address book. 8.如权利要求7所述的方法,其特征在于,所述标识图案中的轮廓线的密集程度与所述标识图案所表示的联系人的联系频率和/或亲密程度呈正相关关系。8 . The method according to claim 7 , wherein the density of contour lines in the identification pattern is positively correlated with the contact frequency and/or intimacy of the contacts represented by the identification pattern. 9 . 9.如权利要求7或8所述的方法,其特征在于,所述标识图案的颜色深浅程度与所述标识图案所表示的联系人的联系频率和/或亲密程度呈正相关关系。9. The method according to claim 7 or 8, wherein the color depth of the identification pattern is positively correlated with the contact frequency and/or intimacy of the contact person represented by the identification pattern. 10.如权利要求1-6中任一项所述的方法,其特征在于,所述软件程序为相册,所述软件程序的标识图案为相册封面的图案;或者,10. The method according to any one of claims 1-6, wherein the software program is an album, and the identification pattern of the software program is the pattern of the album cover; or, 所述软件程序为备忘录,所述软件程序的标识图案为备忘录中的备忘信息的标识图案;或者,The software program is a memo, and the identification pattern of the software program is an identification pattern of the memo information in the memo; or, 所述软件程序为音乐应用,所述软件程序的标识图案为音乐应用中的歌单封面;或者,The software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or, 所述软件程序为语音助手,所述软件程序的标识图案为语音助手的显示图标;或者,The software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or, 所述软件程序为录音应用,软件程序的标识图案为被录音者的头像;或者,The software program is a recording application, and the logo pattern of the software program is the avatar of the person being recorded; or, 所述软件程序为天气应用,软件程序的标识图案为天气应用的显示图标。The software program is a weather application, and the identification pattern of the software program is a display icon of the weather application. 11.一种生成标识图案的方法,其特征在于,包括:11. A method of generating an identification pattern, comprising: 获取第一图像,其中,所述第一图像用于表示中文字符、英文字符以及阿拉伯数字字符中的任意一种,且所述第一图像为空心字符图像;acquiring a first image, wherein the first image is used to represent any one of Chinese characters, English characters and Arabic numerals, and the first image is an image of hollow characters; 将点阵图像或者线条图像与所述第一图像叠加,得到叠加后的图像;superimposing a bitmap image or a line image with the first image to obtain a superimposed image; 将所述叠加后的图像中的点阵或者线条中的部分像素点移动预设距离,得到第二图像;moving some pixels in the dot matrix or lines in the superimposed image by a preset distance to obtain a second image; 根据所述第二图像生成软件程序的标识图案。A logo pattern of the software program is generated from the second image. 12.如权利要求11所述的方法,其特征在于,所述标识图案为所述第二图像的热区图像,其中,所述第二图像的热区图像是所述第二图像中能够识别出所述第二图像表示的字符的子图像。12 . The method of claim 11 , wherein the identification pattern is a hot area image of the second image, wherein the hot area image of the second image is a recognizable image in the second image. 13 . A sub-image of the character represented by the second image is generated. 13.如权利要求11或12所述的方法,其特征在于,所述软件程序为通信录,所述软件程序的标识图案为所述通信录中的联系人头像。13. The method according to claim 11 or 12, wherein the software program is an address book, and the identification pattern of the software program is an avatar of a contact in the address book. 14.如权利要求13所述的方法,其特征在于,所述标识图案中的点阵或者线条的密集程度与所述标识图案所表示的联系人的联系频率和/或亲密程度呈正相关关系。14 . The method according to claim 13 , wherein the density of dots or lines in the identification pattern is positively correlated with the contact frequency and/or intimacy of the contacts represented by the identification pattern. 15 . 15.如权利要求13或14所述的方法,其特征在于,所述标识图案的颜色深浅程度与所述标识图案所表示的联系人的联系频率和/或亲密程度呈正相关关系。15. The method according to claim 13 or 14, wherein the color depth of the identification pattern is positively correlated with the contact frequency and/or intimacy of the contact person represented by the identification pattern. 16.如权利要求11或12所述的方法,其特征在于,所述软件程序为相册,所述软件程序的标识图案为相册封面的图案;或者,16. The method according to claim 11 or 12, wherein the software program is an album, and the identification pattern of the software program is the pattern of the album cover; or, 所述软件程序为备忘录,所述软件程序的标识图案为备忘录中的备忘信息的标识图案;或者,The software program is a memo, and the identification pattern of the software program is an identification pattern of the memo information in the memo; or, 所述软件程序为音乐应用,所述软件程序的标识图案为音乐应用中的歌单封面;或者,The software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or, 所述软件程序为语音助手,所述软件程序的标识图案为语音助手的显示图标;或者,The software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or, 所述软件程序为录音应用,软件程序的标识图案为被录音者的头像;或者,The software program is a recording application, and the logo pattern of the software program is the avatar of the person being recorded; or, 所述软件程序为天气应用,软件程序的标识图案为天气应用的显示图标。The software program is a weather application, and the identification pattern of the software program is a display icon of the weather application. 17.一种生成标识图案的方法,其特征在于,包括:17. A method of generating an identification pattern, comprising: 获取第一图像,所述第一图像用于表示英文字符或者阿拉伯数字字符;acquiring a first image, where the first image is used to represent English characters or Arabic numerals; 从图片库中确定出与所述第一图像匹配的目标图片,其中,所述目标图片中包含与所述第一图像的相似度大于或者等于预设相似度的参考图像;Determine a target picture matching the first image from the picture library, wherein the target picture includes a reference image with a similarity greater than or equal to a preset similarity with the first image; 根据所述参考图像生成软件程序的标识图案。A logo pattern of the software program is generated from the reference image. 18.如权利要求17所述的方法,其特征在于,所述标识图案为所述参考图像的热区图像,其中,所述参考图像的热区图像是所述参考图像中能够识别出所述参考图像表示的字符的子图像。18. The method according to claim 17, wherein the identification pattern is a hot area image of the reference image, wherein the hot area image of the reference image is a hot area image in the reference image that can identify the A sub-image of the character represented by the reference image. 19.如权利要求17或18所述的方法,其特征在于,所述图片库中的图片的纹理分布满足黄金分割比例或者斐波那契数列特性。19. The method according to claim 17 or 18, wherein the texture distribution of the pictures in the picture library satisfies the golden section ratio or the Fibonacci sequence property. 20.如权利要求17-19中任一项所述的方法,其特征在于,所述软件程序为通信录,所述软件程序的标识图案为所述通信录中的联系人头像;或者,20. The method according to any one of claims 17-19, wherein the software program is an address book, and the identification pattern of the software program is a contact avatar in the address book; or, 所述软件程序为相册,所述软件程序的标识图案为相册封面的图案;或者,The software program is an album, and the logo pattern of the software program is the pattern of the album cover; or, 所述软件程序为备忘录,所述软件程序的标识图案为备忘录中的备忘信息的标识图案;或者,The software program is a memo, and the identification pattern of the software program is an identification pattern of the memo information in the memo; or, 所述软件程序为音乐应用,所述软件程序的标识图案为音乐应用中的歌单封面;或者,The software program is a music application, and the identification pattern of the software program is a song list cover in the music application; or, 所述软件程序为语音助手,所述软件程序的标识图案为语音助手的显示图标;或者,The software program is a voice assistant, and the identification pattern of the software program is a display icon of the voice assistant; or, 所述软件程序为录音应用,软件程序的标识图案为被录音者的头像;或者,The software program is a recording application, and the logo pattern of the software program is the avatar of the person being recorded; or, 所述软件程序为天气应用,软件程序的标识图案为天气应用的显示图标。The software program is a weather application, and the identification pattern of the software program is a display icon of the weather application. 21.一种终端设备,其特征在于,所述终端设备包括存储器和处理器,所述存储器用于存储程序,所述处理器用于执行所述存储器存储的程序,当所述处理器执行所述存储器存储的程序时,所述处理器用于执行如权利要求1-20中任一项权利要求所述的方法。21. A terminal device, characterized in that the terminal device comprises a memory and a processor, the memory is used to store a program, and the processor is used to execute the program stored in the memory, when the processor executes the When a program is stored in the memory, the processor is adapted to perform the method of any one of claims 1-20.
CN201811555766.0A 2018-12-19 2018-12-19 Generate the method and terminal device of identification pattern Pending CN109816743A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811555766.0A CN109816743A (en) 2018-12-19 2018-12-19 Generate the method and terminal device of identification pattern
PCT/CN2019/124205 WO2020125481A1 (en) 2018-12-19 2019-12-10 Method for generating identification pattern, and terminal device
US17/350,625 US11995747B2 (en) 2018-12-19 2021-06-17 Method for generating identification pattern and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811555766.0A CN109816743A (en) 2018-12-19 2018-12-19 Generate the method and terminal device of identification pattern

Publications (1)

Publication Number Publication Date
CN109816743A true CN109816743A (en) 2019-05-28

Family

ID=66602159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811555766.0A Pending CN109816743A (en) 2018-12-19 2018-12-19 Generate the method and terminal device of identification pattern

Country Status (3)

Country Link
US (1) US11995747B2 (en)
CN (1) CN109816743A (en)
WO (1) WO2020125481A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456517A (en) * 2019-08-20 2019-11-15 上海驾馥电子科技有限公司 3D display screen and 3D display method thereof
WO2020125481A1 (en) * 2018-12-19 2020-06-25 华为技术有限公司 Method for generating identification pattern, and terminal device
CN113986407A (en) * 2020-07-27 2022-01-28 华为技术有限公司 Cover generation method and device and computer storage medium
CN114356980A (en) * 2021-12-10 2022-04-15 北京金山云网络技术有限公司 Head portrait generation method, device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865856B (en) * 2018-08-27 2022-04-22 华为技术有限公司 Interface element color display method and device
US11195172B2 (en) * 2019-07-24 2021-12-07 Capital One Services, Llc Training a neural network model for recognizing handwritten signatures based on different cursive fonts and transformations

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069447A1 (en) * 2006-09-14 2008-03-20 Fujitsu Limited Character recognition method, character recognition device, and computer product
CN102096933A (en) * 2009-12-14 2011-06-15 方正国际软件(北京)有限公司 Method and device for modifying character style
US8332413B1 (en) * 2011-10-26 2012-12-11 Huawei Technologies Co., Ltd. Method and device for presenting relationship closeness
CN104503742A (en) * 2014-12-01 2015-04-08 北京金和软件股份有限公司 Method for automatically generating APP
CN105468574A (en) * 2015-11-19 2016-04-06 厦门大学 Decorative font synthesizing method
CN107818323A (en) * 2017-11-21 2018-03-20 北京百度网讯科技有限公司 Method and apparatus for handling image
CN108830275A (en) * 2018-05-07 2018-11-16 广东省电信规划设计院有限公司 Dot character, the recognition methods of dot matrix digit and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102054772B1 (en) * 2014-04-22 2019-12-13 한국전자통신연구원 Sentence hiding and displaying system and method
CN106534518A (en) * 2016-10-28 2017-03-22 珠海市魅族科技有限公司 Contact communication interface display method and device
US10282416B2 (en) * 2017-05-05 2019-05-07 Apple Inc. Unified framework for text conversion and prediction
CN109816743A (en) * 2018-12-19 2019-05-28 华为技术有限公司 Generate the method and terminal device of identification pattern

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080069447A1 (en) * 2006-09-14 2008-03-20 Fujitsu Limited Character recognition method, character recognition device, and computer product
CN102096933A (en) * 2009-12-14 2011-06-15 方正国际软件(北京)有限公司 Method and device for modifying character style
US8332413B1 (en) * 2011-10-26 2012-12-11 Huawei Technologies Co., Ltd. Method and device for presenting relationship closeness
CN104503742A (en) * 2014-12-01 2015-04-08 北京金和软件股份有限公司 Method for automatically generating APP
CN105468574A (en) * 2015-11-19 2016-04-06 厦门大学 Decorative font synthesizing method
CN107818323A (en) * 2017-11-21 2018-03-20 北京百度网讯科技有限公司 Method and apparatus for handling image
CN108830275A (en) * 2018-05-07 2018-11-16 广东省电信规划设计院有限公司 Dot character, the recognition methods of dot matrix digit and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020125481A1 (en) * 2018-12-19 2020-06-25 华为技术有限公司 Method for generating identification pattern, and terminal device
US11995747B2 (en) 2018-12-19 2024-05-28 Huawei Technologies Co., Ltd. Method for generating identification pattern and terminal device
CN110456517A (en) * 2019-08-20 2019-11-15 上海驾馥电子科技有限公司 3D display screen and 3D display method thereof
CN113986407A (en) * 2020-07-27 2022-01-28 华为技术有限公司 Cover generation method and device and computer storage medium
CN114356980A (en) * 2021-12-10 2022-04-15 北京金山云网络技术有限公司 Head portrait generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
US20210312679A1 (en) 2021-10-07
US11995747B2 (en) 2024-05-28
WO2020125481A1 (en) 2020-06-25

Similar Documents

Publication Publication Date Title
CN109816743A (en) Generate the method and terminal device of identification pattern
EP2937813A2 (en) Method of processing content and electronic device using the same
CN110674814A (en) Picture identification and translation method, terminal and medium
CN114332895B (en) Text image synthesis method, device, equipment, storage medium and program product
CN113273167B (en) Data processing equipment, methods and storage media
CN107133615B (en) Information processing apparatus, information processing method, and computer program
CN104778194A (en) Search method and device based on touch operation
US20160104052A1 (en) Text-based thumbnail generation
CN104778195A (en) Terminal and touch operation-based searching method
US20160300321A1 (en) Information processing apparatus, method for controlling information processing apparatus, and storage medium
KR20150106330A (en) Image display apparatus and image display method
US20150131925A1 (en) Image processing apparatus, image processing method, and non-transitory computer readable recording medium
CN111107264A (en) Image processing method, image processing device, storage medium and terminal
US10304232B2 (en) Image animation in a presentation document
US20180113849A1 (en) System and method for cheque image data masking
CN110533020A (en) A kind of recognition methods of text information, device and storage medium
JP2021157627A (en) Information processing device
US9542094B2 (en) Method and apparatus for providing layout based on handwriting input
JP6609181B2 (en) Character attribute estimation apparatus and character attribute estimation program
US20170262141A1 (en) Information processing apparatus, information processing method and non-transitory computer readable medium
CN115329720B (en) A document display method, apparatus, device, and storage medium
WO2016101768A1 (en) Terminal and touch operation-based search method and device
US11074392B2 (en) Information processing apparatus and non-transitory computer readable medium for switching between an attribute information mode and an image information mode
JP2008004116A (en) Character search method and apparatus in video
KR101935926B1 (en) Server and method for webtoon editing

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190528

RJ01 Rejection of invention patent application after publication