CN116228924A - Color coating method based on AI image processing algorithm - Google Patents

Color coating method based on AI image processing algorithm Download PDF

Info

Publication number
CN116228924A
CN116228924A CN202310343591.1A CN202310343591A CN116228924A CN 116228924 A CN116228924 A CN 116228924A CN 202310343591 A CN202310343591 A CN 202310343591A CN 116228924 A CN116228924 A CN 116228924A
Authority
CN
China
Prior art keywords
portrait
image processing
sketch
processing algorithm
users
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.)
Granted
Application number
CN202310343591.1A
Other languages
Chinese (zh)
Other versions
CN116228924B (en
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.)
Wuxi Kexiu Technology Co ltd
Original Assignee
Wuxi Kexiu Technology 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 Wuxi Kexiu Technology Co ltd filed Critical Wuxi Kexiu Technology Co ltd
Priority to CN202310343591.1A priority Critical patent/CN116228924B/en
Publication of CN116228924A publication Critical patent/CN116228924A/en
Application granted granted Critical
Publication of CN116228924B publication Critical patent/CN116228924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a coloring method based on an AI image processing algorithm. The invention has the following beneficial effects: (1) AI image processing is carried out on the portrait photos uploaded by the user so as to automatically generate a portrait sketch map, a large number of designers do not need to be invested to sketch portrait patterns by hand, and the investment of labor cost is greatly reduced; (2) The color-coated pattern selection is not limited by the portrait pattern which is manufactured in advance by a manufacturer, and a user can select to upload portrait photos by himself, so that the interesting experience of the user is improved; (3) In addition, the hyperlink is further shared on line to other users by generating the hyperlink containing the portrait sketch, so that the other users can paint the portrait sketch contained in the hyperlink, and the interaction fun among the users is increased.

Description

Color coating method based on AI image processing algorithm
Technical Field
The invention relates to the technical field of image processing, in particular to a coloring method based on an AI image processing algorithm.
Background
Overseas mobile application markets have a leisure mini-game of the "painted" type which is popular in the market and has a large scale, and the main playing method of the painted game is to display a portrait pattern of a sketched line, wherein the portrait pattern comprises a plurality of areas to be painted which are formed by a plurality of adjacent sketched lines, and a user player fills in colors for each blank area to be painted.
The color-coated game has the following technical problems: (1) A large number of designers need to be invested to manually draw portrait patterns outlining lines, and the labor cost is high; (2) The user can only play the painting of the portrait pattern which is prefabricated by the manufacturer, so that the interesting experience of the user is affected; (3) lack of interactive enjoyment between users.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a coloring method based on an AI image processing algorithm, which can solve the technical problems.
(II) technical scheme
In order to solve the technical problems, the invention provides the following technical scheme: a coloring method based on an AI image processing algorithm comprises the following steps:
s1: uploading a portrait photo by a user;
s2: AI image processing is carried out on the portrait photo so as to automatically generate a portrait sketch, wherein the portrait sketch comprises a plurality of sketch lines and a plurality of areas to be painted, and a plurality of adjacent sketch lines form an area to be painted;
s3: generating a hyperlink containing a portrait sketch map;
s4: sharing hyperlinks on line to other users;
s5: other users click on the hyperlink to paint each region to be painted of the portrait sketch.
Preferably, the AI image processing of step S2 specifically includes the sub-steps of:
s21: automatically extracting image content of a portrait area from a portrait photo;
s22: and automatically extracting a sketch line from the image content of the portrait area to automatically generate a portrait sketch map.
Preferably, after step S2, the method further comprises:
s2a: extracting all color values of each corresponding position area from the portrait photo corresponding to each area to be painted;
s2b: and calculating the color average value of the corresponding position area according to all the color values.
Preferably, the step S3 specifically includes: the portrait sketch and the average value of each color are stored into a data file to generate a hyperlink.
Preferably, the hyperlink also contains a manner of rewards.
Preferably, the mode of the customs rewards is as follows: judging whether the ranking of the color scores of the users is within the preset ranking, if so, giving the users the downloading permission of the preset files.
Preferably, the mode of the customs rewards is as follows: judging whether the color marking score of the user is higher than a preset score, and if so, giving the user the downloading authority of the preset file.
Preferably, the preset file is text, picture or audio.
Preferably, after step S5, the method further comprises:
s6: calculating the deviation value between the average value of the colors coated by the user in each region to be coated and the average value of the colors in the step S2b, wherein the smaller the deviation value is, the higher the coating score is.
Preferably, after step S6, the method further comprises:
s7: judging whether the color grading meets the rewarding condition of the customs rewarding mode, and if so, triggering rewarding content of the customs rewarding mode correspondingly.
(III) beneficial effects
Compared with the prior art, the invention provides a coloring method based on an AI image processing algorithm, which has the following beneficial effects: (1) AI image processing is carried out on the portrait photos uploaded by the user so as to automatically generate a portrait sketch map, a large number of designers do not need to be invested to sketch portrait patterns by hand, and the investment of labor cost is greatly reduced; (2) The color-coated pattern selection is not limited by the portrait pattern which is manufactured in advance by a manufacturer, and a user can select to upload portrait photos by himself, so that the interesting experience of the user is improved; (3) In addition, the hyperlink is further shared on line to other users by generating the hyperlink containing the portrait sketch, so that the other users can paint the portrait sketch contained in the hyperlink, and the interaction fun among the users is increased.
Drawings
FIG. 1 is a flowchart showing steps of a first embodiment of a painting method based on an AI image processing algorithm;
fig. 2 is a flowchart showing the steps of a second embodiment of a painting method based on an AI image processing algorithm according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a first embodiment of a painting method based on an AI image processing algorithm of the present invention includes the following steps:
s1: the user uploads the portrait photo. The user can freely choose to upload portrait photos including himself or others.
S2: and carrying out AI image processing on the portrait photo to automatically generate a portrait sketch, wherein the portrait sketch comprises a plurality of sketch lines and a plurality of areas to be painted, and a plurality of adjacent sketch lines form an area to be painted. It should be appreciated that the area to be painted is blank; the region to be painted may be specifically a region of eyes, ears, etc. of a person, where there is no excessive limitation.
Preferably, the AI image processing of this step S2 specifically includes the following sub-steps:
s21: image content of the portrait area is automatically extracted from the portrait photos.
S22: and automatically extracting a sketch line from the image content of the portrait area to automatically generate a portrait sketch map.
S3: a hyperlink is generated that includes a portrait sketch.
S4: hyperlinks are shared online to other users. The hyperlink can be shared to other users by various social platforms or communication software and the like, and the hyperlink is not limited in any way.
S5: other users click on the hyperlink to paint each region to be painted of the portrait sketch.
Compared with the prior art, the invention provides a coloring method based on an AI image processing algorithm, which has the following beneficial effects: (1) AI image processing is carried out on the portrait photos uploaded by the user so as to automatically generate a portrait sketch map, a large number of designers do not need to be invested to sketch portrait patterns by hand, and the investment of labor cost is greatly reduced; (2) The color-coated pattern selection is not limited by the portrait pattern which is manufactured in advance by a manufacturer, and a user can select to upload portrait photos by himself, so that the interesting experience of the user is improved; (3) In addition, the hyperlink is further shared on line to other users by generating the hyperlink containing the portrait sketch, so that the other users can paint the portrait sketch contained in the hyperlink, and the interaction fun among the users is increased.
Referring to fig. 2, a second embodiment of a painting method based on an AI image processing algorithm of the present invention includes the following steps:
s1: the user uploads the portrait photo.
S2: and carrying out AI image processing on the portrait photo to automatically generate a portrait sketch, wherein the portrait sketch comprises a plurality of sketch lines and a plurality of areas to be painted, and a plurality of adjacent sketch lines form an area to be painted.
S2a: and extracting all color values of each corresponding position area from the portrait photo corresponding to each area to be painted.
S2b: the color average value of the corresponding position area is calculated according to all the color values to be used as a standard color value of the area to be painted for comparison with the color filled by the user. For example, the region a to be painted of the portrait sketch corresponds to the corresponding position region a of the portrait photo in position (for example, both are left eyes), the corresponding position region a is divided into a plurality of sub-regions, and the step S2a is to extract RGB color values of all sub-regions in the corresponding position region a; further, the step S2b is, for example, calculating an RGB color average value according to the RGB color values of all the sub-areas in the a.
S3: a hyperlink is generated that includes a portrait sketch. The step S3 specifically includes: and (3) saving the portrait sketch and the average value of each color calculated in the step (S2 b) into a data file to generate a hyperlink, namely forming a painted game stage.
In addition, the hyperlinks may also contain information about the manner in which the rewards are awarded. The mode of the customs rewarding is as follows: judging whether the ranking of the color scores of the users is within the preset ranking, if so, giving the users the downloading permission of the preset files. The mode of the customs rewards can also be as follows: judging whether the color marking score of the user is higher than a preset score, and if so, giving the user the downloading authority of the preset file. Of course, other means of bonus points may be used without undue limitation.
The preset file may be text, picture, audio, etc. The text can specifically contain a coupon redemption code of an online commodity so as to meet the popularization requirement of an electronic commerce; the pictures can be, for example, star limit version wallpaper so as to meet the popularization and propaganda requirements of the star; the audio may be, for example, a song recently released by a singer, so as to meet the requirement of promotion and propaganda of the song. Of course, other forms of content of the default file may be used as the customs clearance, without limitation.
S4: hyperlinks are shared online to other users.
S5: other users click on the hyperlink to paint each region to be painted of the portrait sketch.
S6: calculating the deviation value between the average value of the colors coated by the user in each region to be coated and the average value of the colors in the step S2b, wherein the smaller the deviation value is, the higher the coating score is.
S7: judging whether the color grading meets the rewarding condition of the customs rewarding mode, if so, triggering rewarding content of the customs rewarding mode correspondingly; in addition, when the reward condition is met, the bonus window may be popped up specifically to display the reward content. For example, the painting score of the user B is ranked as the fifth name among all users painted with the portrait sketch and is in a preset ranking (the first six names), so that the reward condition is met, and the user B is correspondingly given the downloading authority of a certain picture.
In addition, after the painting of a portrait sketch is completed, the painting scores of all users who paint the portrait sketch and the respective painting score ranks may be displayed.
It should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. The coloring method based on the AI image processing algorithm is characterized by comprising the following steps:
s1: uploading a portrait photo by a user;
s2: performing AI image processing on the portrait photo to automatically generate a portrait sketch, wherein the portrait sketch comprises a plurality of sketch lines and a plurality of areas to be painted, and a plurality of adjacent sketch lines form one area to be painted;
s3: generating a hyperlink containing the portrait sketch map;
s4: sharing the hyperlinks on line to other users;
s5: and clicking the hyperlink by other users to paint each region to be painted of the portrait sketch.
2. The AI image processing algorithm-based painting method according to claim 1, characterized in that the AI image processing of step S2 comprises in particular the sub-steps of:
s21: automatically extracting image content of a portrait area from the portrait photo;
s22: and automatically extracting the sketching lines from the image content of the portrait area so as to automatically generate the portrait sketching map.
3. The AI image processing algorithm-based painting method according to claim 1, characterized by further comprising, after said step S2:
s2a: extracting all color values of each corresponding position area from the portrait photo corresponding to each area to be painted;
s2b: and calculating the color average value of the corresponding position area according to the color values.
4. The AI image processing algorithm-based painting method according to claim 3, wherein the step S3 is specifically: and storing the portrait sketch and each color average value into a data file to generate the hyperlink.
5. The AI image processing algorithm-based painting method according to claim 4, wherein: the hyperlink also contains a bonus manner.
6. The AI image processing algorithm-based painting method according to claim 5, wherein: the mode of the customs clearance rewarding is as follows: judging whether the ranking of the color scores of the users is within the preset ranking, if so, giving the users the downloading permission of the preset files.
7. The AI image processing algorithm-based painting method according to claim 5, wherein: the mode of the customs clearance rewarding is as follows: judging whether the color marking score of the user is higher than a preset score, and if so, giving the user the downloading authority of the preset file.
8. The AI image processing algorithm-based coloring method according to claim 6 or 7, characterized in that: the preset file is text, picture or audio.
9. The AI image processing algorithm-based painting method according to claim 8, further comprising, after the step S5:
s6: calculating a deviation value between the average value of the colors coated by the user in each region to be coated and the average value of the colors in the step S2b, wherein the smaller the deviation value is, the higher the coating score is.
10. The AI image processing algorithm-based painting method according to claim 9, characterized by further comprising, after the step S6:
s7: judging whether the color grading meets the rewarding condition of the customs rewarding mode, and if so, triggering rewarding content of the customs rewarding mode correspondingly.
CN202310343591.1A 2023-03-31 2023-03-31 Color coating method based on AI image processing algorithm Active CN116228924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310343591.1A CN116228924B (en) 2023-03-31 2023-03-31 Color coating method based on AI image processing algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310343591.1A CN116228924B (en) 2023-03-31 2023-03-31 Color coating method based on AI image processing algorithm

Publications (2)

Publication Number Publication Date
CN116228924A true CN116228924A (en) 2023-06-06
CN116228924B CN116228924B (en) 2023-11-14

Family

ID=86582663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310343591.1A Active CN116228924B (en) 2023-03-31 2023-03-31 Color coating method based on AI image processing algorithm

Country Status (1)

Country Link
CN (1) CN116228924B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007017469A (en) * 2005-07-05 2007-01-25 Yoshimichi Shimizu Picture for coloring
CN101602315A (en) * 2009-06-30 2009-12-16 张磊 A kind of method by image Processing of Preparation oil painting
US8770584B1 (en) * 2006-05-31 2014-07-08 Paul Miravete Picture game
KR20160022579A (en) * 2014-08-20 2016-03-02 오소이 Portarait making method using pop art portarait techniques
KR20170115413A (en) * 2016-04-07 2017-10-17 (주)이누크리에이티브앤미디어 Method And Apparatus for Providing Reward Based on Image
CN110347456A (en) * 2019-05-28 2019-10-18 北京奇艺世纪科技有限公司 Image processing method, device, computer equipment and storage medium
CN111179370A (en) * 2019-12-30 2020-05-19 北京猎豹网络科技有限公司 Picture generation method and device, electronic equipment and storage medium
CN111612864A (en) * 2020-04-27 2020-09-01 厦门盈趣科技股份有限公司 Drawing method and system based on photo and image recognition
CN111724461A (en) * 2020-05-14 2020-09-29 北京枫谷科技有限公司 Animation painting system and painting method based on mobile terminal
CN112349159A (en) * 2020-11-07 2021-02-09 漫语微视(北京)传媒科技有限公司 AI enabling online education ecological business model
KR20210092454A (en) * 2020-01-16 2021-07-26 한국건설교육원 주식회사 Automatic evaluation system for craftsman architectural painting test, and its evaluation method using thereof
KR20210119059A (en) * 2020-03-24 2021-10-05 예스튜디오 주식회사 Picture service and social sharing platform
CN114283211A (en) * 2021-12-30 2022-04-05 西安纽扣软件科技有限公司 Pixel color filling game system and processing method
CN114827643A (en) * 2021-12-29 2022-07-29 广州方硅信息技术有限公司 Live broadcast room approach method and device based on cover wiping drawing and computer equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007017469A (en) * 2005-07-05 2007-01-25 Yoshimichi Shimizu Picture for coloring
US8770584B1 (en) * 2006-05-31 2014-07-08 Paul Miravete Picture game
CN101602315A (en) * 2009-06-30 2009-12-16 张磊 A kind of method by image Processing of Preparation oil painting
KR20160022579A (en) * 2014-08-20 2016-03-02 오소이 Portarait making method using pop art portarait techniques
KR20170115413A (en) * 2016-04-07 2017-10-17 (주)이누크리에이티브앤미디어 Method And Apparatus for Providing Reward Based on Image
CN110347456A (en) * 2019-05-28 2019-10-18 北京奇艺世纪科技有限公司 Image processing method, device, computer equipment and storage medium
CN111179370A (en) * 2019-12-30 2020-05-19 北京猎豹网络科技有限公司 Picture generation method and device, electronic equipment and storage medium
KR20210092454A (en) * 2020-01-16 2021-07-26 한국건설교육원 주식회사 Automatic evaluation system for craftsman architectural painting test, and its evaluation method using thereof
KR20210119059A (en) * 2020-03-24 2021-10-05 예스튜디오 주식회사 Picture service and social sharing platform
CN111612864A (en) * 2020-04-27 2020-09-01 厦门盈趣科技股份有限公司 Drawing method and system based on photo and image recognition
CN111724461A (en) * 2020-05-14 2020-09-29 北京枫谷科技有限公司 Animation painting system and painting method based on mobile terminal
CN112349159A (en) * 2020-11-07 2021-02-09 漫语微视(北京)传媒科技有限公司 AI enabling online education ecological business model
CN114827643A (en) * 2021-12-29 2022-07-29 广州方硅信息技术有限公司 Live broadcast room approach method and device based on cover wiping drawing and computer equipment
CN114283211A (en) * 2021-12-30 2022-04-05 西安纽扣软件科技有限公司 Pixel color filling game system and processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王晓慧;覃京燕;全烘辰;: "基于AI画作生成的个性化文化创意产品设计方法", 包装工程, no. 06 *

Also Published As

Publication number Publication date
CN116228924B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
Novak et al. Game development essentials
Male Illustration: a theoretical and contextual perspective
Walsh et al. core WEB3D
Miller Above the fold
US20130325647A1 (en) Virtual marketplace accessible to widgetized avatars
Hardy Smashing logo design: The art of creating visual identities
Smith Digital paint systems: An anecdotal and historical overview
Omernick Creating the Art of the Game
CN116228924B (en) Color coating method based on AI image processing algorithm
US20220045597A1 (en) Interactive illustration system, interactive animation system, and methods of use
Reunanen Computer Demos-What Makes Them Tick?
Fagan et al. Comic book collections for libraries
Daum et al. Video marketing for dummies
Elmenreich Short games: Quickly made, quickly played
CN111161377A (en) Method and device for adding characters into picture, electronic equipment and storage medium
Rässa Concept art creation methodologies: Visual Development of “Rock Boy”
Lewis et al. Digital Media Foundations: An Introduction for Artists and Designers
Carman Visual Design Concepts for Mobile Games
Maijanen 2D animation vs. visual novels: mediums in comparison
KR102556034B1 (en) System for providing hangul card game service
Thorn Mastering Unity 5. x
Zimmer The art of spray paint: inspirations and techniques from masters of aerosol
Švelch Red Stars, Biorhythms, and Circuit Boards
Panlibuton Designing a Cohesive and Iconic Brand Identity for Cal Poly Men’s Soccer Club
Furgang Cool Careers Without College for People Who Love Gaming

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
GR01 Patent grant
GR01 Patent grant