CN107357570B - Color filling image generation method and user terminal - Google Patents

Color filling image generation method and user terminal Download PDF

Info

Publication number
CN107357570B
CN107357570B CN201710469264.5A CN201710469264A CN107357570B CN 107357570 B CN107357570 B CN 107357570B CN 201710469264 A CN201710469264 A CN 201710469264A CN 107357570 B CN107357570 B CN 107357570B
Authority
CN
China
Prior art keywords
image
color
user
color filling
user terminal
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.)
Active
Application number
CN201710469264.5A
Other languages
Chinese (zh)
Other versions
CN107357570A (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.)
Guangdong Xiaotiancai Technology Co Ltd
Original Assignee
Guangdong Xiaotiancai 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 Guangdong Xiaotiancai Technology Co Ltd filed Critical Guangdong Xiaotiancai Technology Co Ltd
Priority to CN201710469264.5A priority Critical patent/CN107357570B/en
Publication of CN107357570A publication Critical patent/CN107357570A/en
Application granted granted Critical
Publication of CN107357570B publication Critical patent/CN107357570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Abstract

The invention discloses a color filling image generation method and a user terminal, wherein the method comprises the following steps: after the color filling application of the user terminal is started, prompting the user to upload an image, acquiring the image uploaded by the user, performing black and white processing on the acquired image to obtain a black and white image, performing linearization processing on the black and white image to obtain a linearized image, determining the linearized image as the color filling image of the color filling application, and outputting the color filling image. By implementing the embodiment of the invention, the personalized color filling image can be automatically generated, and the interest of the user in color filling painting is favorably improved.

Description

Color filling image generation method and user terminal
Technical Field
The invention relates to the technical field of intelligent terminals, in particular to a color filling image generation method and a user terminal.
Background
Currently, in order to stimulate the practical ability and learning potential of children, parents often choose to install a color filling application in a learning mobile phone, a learning tablet and other user terminals, wherein the color filling application can provide pre-downloaded color filling images for the children to draw color filling pictures. In practical application, the color filling image resource which can be downloaded by the color filling application is fixed and limited, which is not beneficial to improving the interest of the color filling painting of the children.
Disclosure of Invention
The embodiment of the invention discloses a generation method of a color filling image and a user terminal, which can automatically generate a personalized color filling image and are beneficial to improving the interest of a user in color filling painting.
The first aspect of the embodiment of the invention discloses a method for generating a color filling image, which comprises the following steps:
after the color filling application of the user terminal is started, prompting a user to upload an image and acquiring the image uploaded by the user;
performing black-and-white processing on the acquired image to obtain a black-and-white image, and performing linearization processing on the black-and-white image to obtain a linearized image;
and determining the linearized image as a color filling image applied by the color filling class, and outputting the color filling image.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before determining the linearized image as the color filling image applied by the color filling class, the method further includes:
determining the size of the linearized image, judging whether the size of the linearized image meets a preset size condition or not, and triggering and executing the operation of determining the linearized image as a color filling image applied by the color filling class when the size of the linearized image is judged to meet the preset size condition;
the method further comprises the following steps:
and when the size of the linearized image is judged not to meet the preset size condition, editing the linearized image based on the preset size condition to obtain an edited linearized image, determining the edited linearized image as a color filling image applied by the color filling class, and outputting the color filling image.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after acquiring an image uploaded by a user, and before performing black-and-white processing on the acquired image to obtain a black-and-white image, the method further includes:
extracting feature information in the acquired image, detecting whether the feature information is matched with preset feature information or not, triggering and executing the black-and-white processing on the acquired image to acquire an operation of a black-and-white image when the feature information is not matched with the preset feature information, outputting prompt information when the feature information is detected to be matched with the preset feature information, triggering and executing the operation of prompting a user to upload the image and acquiring the image uploaded by the user again, wherein the prompt information is used for prompting the user that the image uploaded by the user does not meet requirements.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
and uploading the color filling image to a server corresponding to the color filling application.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after acquiring an image uploaded by a user, and before performing black-and-white processing on the acquired image to obtain a black-and-white image, the method further includes:
extracting the color categories of all colors in the acquired image;
after the outputting the color-filled image, the method further comprises:
and calling a virtual color selection board containing the color corresponding to the color category from the color resource library of the color filling application, and outputting the virtual color selection board.
A second aspect of the embodiments of the present invention discloses a user terminal, where the user terminal includes:
the prompting unit is used for prompting a user to upload an image after the color filling application of the user terminal is started;
the acquisition unit is used for acquiring images uploaded by a user;
the first processing unit is used for performing black-and-white processing on the acquired image to obtain a black-and-white image;
the second processing unit is used for carrying out linearization processing on the black and white image to obtain a linearized image;
a determination unit, configured to determine the linearized image as a color filling image applied by the color filling class;
an output unit for outputting the color-filled image.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the determining unit is further configured to determine a size of the linearized image before performing the operation of determining the linearized image as a color filling image applied in the color filling class;
the user terminal further comprises:
the judging unit is used for judging whether the size of the linearized image meets a preset size condition or not, and when the size of the linearized image meets the preset size condition, the determining unit is triggered to execute the operation of determining the linearized image as the color filling image applied by the color filling class;
the editing unit is used for executing editing operation on the linearized image according to the preset size condition when the size of the linearized image is judged not to meet the preset size condition, so as to obtain an edited linearized image;
the determining unit is further configured to determine the edited linearized image as a color filling image applied by the color filling class, and trigger the output unit to execute the operation of outputting the color filling image.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the user terminal further includes:
the first extraction unit is used for extracting feature information in the acquired image after the acquisition unit acquires the image uploaded by the user and before the first processing unit performs black-and-white processing on the acquired image to obtain a black-and-white image;
the detection unit is used for detecting whether the characteristic information is matched with preset characteristic information or not, and when the characteristic information is not matched with the preset characteristic information, the first processing unit is triggered to execute the black and white processing on the acquired image to obtain the operation of a black and white image;
and the output unit is further used for outputting prompt information when the characteristic information is detected to be matched with the preset characteristic information, and triggering the prompt unit to execute an operation of prompting a user to upload an image, wherein the prompt information is used for prompting the user that the image uploaded by the user does not meet requirements.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the user terminal further includes:
an uploading unit, configured to upload the color filling image to a server corresponding to the color filling application
An uploading unit, configured to upload the color filling image to a server corresponding to the color filling application
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the user terminal further includes:
the second extraction unit is used for extracting the color categories of all colors in the acquired image after the acquisition unit acquires the image uploaded by the user and before the first processing unit performs black-and-white processing on the acquired image to obtain a black-and-white image;
the calling unit is used for calling a virtual color selection plate containing the color corresponding to the color category from a color resource library applied by the color filling category after the output unit outputs the color filling image;
the output unit is further configured to output the virtual color selection board.
A third aspect of the present invention discloses another user terminal, where the user terminal includes:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the color-filling image generation method described in the first aspect of the embodiment of the present invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method for generating a color-filled image according to the first aspect of the embodiments of the present invention.
A fifth aspect of embodiments of the present invention discloses a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform the method for generating a color-filled image according to the first aspect of embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, after the color filling application of the user terminal is started, the user is prompted to upload an image, the image uploaded by the user is acquired, black and white processing is performed on the acquired image to acquire a black and white image, linearization processing is performed on the black and white image to acquire a linearized image, the linearized image is determined as the color filling image of the color filling application, and the color filling image is output. Therefore, the embodiment of the invention can process the image automatically uploaded by the user to obtain the new color filling image, so that the mode of automatically generating the personalized color filling image is beneficial to improving the interest of the user in color filling painting, and further improving the use experience of the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a color-filling image generation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another color-filling image generation method disclosed in the embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for generating a color-filled image according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a user terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another ue disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another user equipment disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another user equipment disclosed in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a color filling image generation method and a user terminal, which can process images independently uploaded by a user to obtain a new color filling image, so that the mode of automatically generating an individualized color filling image is beneficial to improving the interest of a user color filling picture, and further the use experience of the user is improved. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a color-filling image generating method according to an embodiment of the present invention. As shown in fig. 1, the color-filling image generation method may include the following operations:
101. after the color filling application of the user terminal is started, the user terminal prompts the user to upload images and obtains the images uploaded by the user.
In the embodiment of the present invention, the user terminal may be a user terminal installed with a color filling application, such as a smart phone (an Android phone, an iOS phone, and the like), a smart phone watch, a learning phone, a tablet computer, a palm computer, and a Mobile Internet Device (MID), and the embodiment of the present invention is not limited.
In the embodiment of the present invention, the image (also referred to as an "original image") uploaded by the user through the user terminal may be selected by the user from images already in an image library of the user terminal, or may be obtained by the user through shooting by a camera of the user terminal, which is not limited in the embodiment of the present invention.
102. And the user terminal performs black-and-white processing on the acquired image to obtain a black-and-white image, and performs linearization processing on the black-and-white image to obtain a linearized image.
In this embodiment of the present invention, the linearizing the black-and-white image by the user terminal to obtain a linearized image may include:
and the user terminal outlines the area with the black-white color difference in the processed black-white image by using a black line to obtain a linearized image.
103. The user terminal determines the linearized image as a color filling image for the color filling application, and outputs the color filling image.
In an embodiment of the present invention, after the user terminal determines the linearized image as a color filling image of the color filling application, the user terminal may also save the color filling image for the color filling application and output the color filling image, where the outputting of the color filling image by the user terminal may include:
the user terminal outputs the determined color filling image to a screen of the user terminal for a user of the user terminal to fill color and draw; alternatively, the first and second electrodes may be,
and the user terminal sends the determined color filling image to a printer with a pre-established connection relation according to the received printing instruction, so that the printer prints the color filling image for the user to fill color painting.
In an optional embodiment, after the step 101 is performed and before the step 102 is performed, the method for generating the color-filling image may further include the following operations:
and the user terminal determines the resolution of the acquired image, judges whether the resolution is greater than or equal to a preset resolution, triggers and executes the step 102 when the judgment result is yes, and can output prompt information when the judgment result is no, and re-triggers the operation of prompting the user to upload the image and acquiring the image uploaded by the user, wherein the prompt information is used for prompting the user that the resolution of the image uploaded by the user does not meet the requirement. This ensures the sharpness of the color-filled image that is subsequently generated.
In another optional embodiment, the color-filling image generation method may further include the following operations:
and the user terminal uploads the determined color filling image to a server corresponding to the color filling application so as to realize the sharing of the personalized color filling image.
In yet another alternative embodiment, after the step 101 is performed and before the step 102 is performed, the method for generating the color-filling image may further include the following operations:
and the user terminal extracts the color categories of all the colors in the acquired image.
In this further alternative embodiment, after the step 103 is performed, the method for generating the color-filling image may further include the following operations:
and the user terminal calls a virtual color selection board containing the colors corresponding to the color categories from the color resource library applied by the color filling type and outputs the virtual color selection board, so that the user of the user terminal can select proper colors to perform color filling drawing on the color filling image through the virtual color selection board corresponding to the colors contained in the color filling image.
In this further optional embodiment, further optionally, the method for generating the color-filling image may further include the following operations:
when detecting that the user performs color filling drawing on the determined color filling image, the user terminal determines the touch position of the user in the color filling image and the color required to be filled in the touch position, and highlights the color required to be filled in the touch position on the virtual color selection board. Therefore, the color filling painting of the user can be prompted, and the color filling enthusiasm of the user in the first experience is improved.
Therefore, by implementing the method for generating the color filling image described in fig. 1, the image autonomously uploaded by the user can be processed to obtain a new color filling image, so that the manner of automatically generating the personalized and diversified color filling image is beneficial to improving the interest of the color filling painting of the user, and further improving the use experience of the user.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another color-filling image generating method according to an embodiment of the present invention. As shown in fig. 2, the color-filling image generation method may include the following operations:
201. after the color filling application of the user terminal is started, the user terminal prompts the user to upload images and obtains the images uploaded by the user.
202. And the user terminal performs black-and-white processing on the acquired image to obtain a black-and-white image, and performs linearization processing on the black-and-white image to obtain a linearized image.
In the embodiment of the present invention, please refer to the description of step 101 and step 102 in the first embodiment for the detailed description of step 201 and step 202, which is not repeated herein.
203. The user terminal determines the size of the linearized image.
204. The user terminal determines whether the size of the linearized image satisfies a preset size condition, and if yes, triggers step 205, and if no, triggers steps 206-207.
205. The user terminal determines the linearized image as a color filling image for the color filling application, and outputs the color filling image.
206. And the user terminal executes editing operation on the linearized image according to the preset size condition to obtain an edited linearized image.
In the embodiment of the present invention, for example, the user terminal may perform editing operation on the linearized image according to a proportional size of 21 × 29.7 (unit: cm), so as to obtain an edited linearized image.
207. The user terminal determines the edited linearized image as a color filling image applied by the color filling class and outputs the color filling image.
In an optional embodiment, the color-filling image generation method may further include the following operations:
and the user terminal uploads the determined color filling image to a server corresponding to the color filling application so as to realize the sharing of the personalized color filling image.
Therefore, by implementing the method for generating the color filling image described in fig. 2, the image autonomously uploaded by the user can be processed to obtain a new color filling image, so that the method for automatically generating the personalized and diversified color filling image is beneficial to improving the interest of the user in color filling painting, further improving the user experience, and automatically editing the size of the image uploaded by the user, so that the method for generating the color filling image is more intelligent.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart of another color-filling image generating method according to an embodiment of the present invention. As shown in fig. 3, the color-filling image generation method may include the following operations:
301. and the user terminal prompts the user to upload the image and acquires the image uploaded by the user.
In the embodiment of the invention, after detecting that the color filling application of the user terminal is started, the user terminal executes the operation of prompting the user to upload the image and acquiring the image uploaded by the user.
302. And the user terminal extracts the acquired feature information in the image.
303. The user terminal detects whether the characteristic information matches with the preset characteristic information, and when the detection result of step 303 is yes, step 304 is triggered to be executed, and when the judgment result of step 303 is no, step 305 is triggered to be executed.
In this embodiment of the present invention, the preset feature information may be feature information used for identifying that the image is an unhealthy image (such as an image of an explosion or terrorism), which is not limited in this embodiment of the present invention.
304. And the user terminal outputs prompt information.
In the embodiment of the present invention, the prompt information is used to prompt the user that the uploaded image does not meet the requirement, and after the step 304 is completed, the step 301 may be triggered to be executed again.
In this embodiment of the present invention, optionally, after the step 304 is executed and before the step 301 is executed again, the method for generating the color-filling image may further include the following operations:
and the user terminal judges whether the output frequency of the prompt message reaches a preset frequency threshold value, if so, the process is ended, and if not, the step 301 is triggered again.
305. And the user terminal performs black-and-white processing on the acquired image to obtain a black-and-white image, and performs linearization processing on the black-and-white image to obtain a linearized image.
306. The user terminal determines the size of the linearized image.
307. The user terminal determines whether the size of the linearized image satisfies a preset size condition, and if yes in step 307, triggers step 308, and if no in step 307, triggers steps 309-310.
308. The user terminal determines the linearized image as a color filling image for the color filling application, and outputs the color filling image.
309. And the user terminal executes editing operation on the linearized image according to the preset size condition to obtain an edited linearized image.
310. The user terminal determines the edited linearized image as a color filling image applied by the color filling class and outputs the color filling image.
In the embodiment of the present invention, please refer to the description of step 101 and step 102 in the first embodiment for the detailed description of step 301 and step 302, which is not repeated herein.
In an optional embodiment, the color-filling image generation method may further include the following operations:
and the user terminal uploads the determined color filling image to a server corresponding to the color filling application so as to realize the sharing of the personalized color filling image.
Therefore, by implementing the method for generating the color filling image described in fig. 3, the image autonomously uploaded by the user can be processed to obtain a new color filling image, so that the method for automatically generating the personalized and diversified color filling image is beneficial to improving the interest of the user color filling painting, further improving the use experience of the user, and automatically editing the size of the image uploaded by the user, so that the method for generating the color filling image is more intelligent, the image uploaded by the user can be audited, and the health and the standardability of generating the color filling image are further improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of a ue according to an embodiment of the present invention. As shown in fig. 4, the user terminal 400 may include a prompting unit 401, an obtaining unit 402, a first processing unit 403, a second processing unit 404, a determining unit 405, and an output unit 406, where:
a prompting unit 401, configured to prompt the user to upload an image after the color filling application of the user terminal 400 is started.
An obtaining unit 402, configured to obtain an image uploaded by a user.
In this embodiment of the present invention, specifically, after the prompting unit 401 prompts the user to upload an image, the prompting unit 401 sends a trigger instruction to the obtaining unit 402 to trigger the obtaining unit 402 to execute an operation of obtaining the image uploaded by the user.
A first processing unit 403, configured to perform black-and-white processing on the image acquired by the acquisition unit 402 to obtain a black-and-white image.
A second processing unit 404, configured to perform linearization processing on the black-and-white image obtained by the first processing unit 403 to obtain a linearized image.
The second processing unit 404 performs linearization processing on the black-and-white image obtained by the first processing unit 403, and a specific manner of obtaining a linearized image may be as follows:
the areas with black-white color differences in the black-white image processed by the first processing unit 403 are outlined with black lines, so as to obtain a linearized image.
A determining unit 405, configured to determine the linearized image obtained by the second processing unit 404 as a color filling image applied by the color filling class.
An output unit 406, configured to output the color-filled image.
The specific way of outputting the color filling image by the output unit 406 is as follows:
outputting the determined color filling image to a screen of the user terminal 400 for a user of the user terminal 400 to draw a color filling picture; alternatively, the first and second electrodes may be,
and according to the received printing instruction, sending the determined color filling image to a printer with a pre-established connection relation so that the printer prints the color filling image for the color filling painting of the user terminal 400.
It should be noted that the user terminal 400 depicted in fig. 4 can be used to implement steps 101 to 103 in the first embodiment.
It can be seen that, by implementing the user terminal 400 described in fig. 4, the image uploaded by the user autonomously can be processed to obtain a new color-filling image, so that the manner of automatically generating the personalized and diversified color-filling image is beneficial to improving the interest of the user in color-filling painting, and further improving the user experience of the user.
In an optional embodiment, the user terminal 400 may further include a determining unit 407 and an editing unit 408, at this time, the structure of the user terminal 400 may be as shown in fig. 5, where fig. 5 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention. Wherein:
the determining unit 405 may be further configured to determine the size of the linearized image before performing the operation of determining the linearized image as the color filling image for the color filling type application.
A determining unit 407, configured to determine whether the size of the linearized image determined by the determining unit 405 satisfies a preset size condition, and when determining that the size of the linearized image satisfies the preset size condition, trigger the determining unit 405 to perform the operation of determining the linearized image as the color filling image for the color filling application.
An editing unit 408, configured to, when the determining unit 407 determines that the size of the linearized image does not satisfy the preset size condition, perform an editing operation on the linearized image based on the preset size condition to obtain an edited linearized image, where the size of the edited linearized image satisfies the preset size condition.
The determining unit 405 may be further configured to determine the edited linearized image as a color filling image applied by the color filling class, and trigger the output unit 406 to perform the operation of outputting the color filling image.
It should be noted that the user terminal 400 described in fig. 5 can be used to implement steps 201 to 207 in the second embodiment.
It can be seen that, the user terminal 400 described in fig. 5 can also automatically edit the size of the image uploaded by the user, which makes the color-filling image generation mode of the user terminal 400 more intelligent, and further improves the user experience.
In another optional embodiment, the user terminal 400 may further include a first extracting unit 409 and a detecting unit 410, at this time, the structure of the user terminal 400 may be as shown in fig. 6, and fig. 6 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention. Wherein:
a first extracting unit 409, configured to extract feature information in the acquired image after the acquiring unit 402 acquires the image uploaded by the user and before the first processing unit 403 performs black-and-white processing on the acquired image to obtain a black-and-white image.
A detecting unit 410, configured to detect whether the feature information extracted by the first extracting unit 409 matches preset feature information, and when detecting that the feature information does not match preset feature information, trigger the first processing unit 403 to perform the black-and-white processing on the acquired image to obtain a black-and-white image.
The output unit 406 is further configured to, when it is detected that the feature information matches the preset feature information, output a prompt message, and trigger the prompt unit 401 to execute the operation of prompting the user to upload the image, where the prompt message is used to prompt the user that the uploaded image does not meet the requirement.
It can be seen that, the implementation of the user terminal 400 described in fig. 6 also enables the images uploaded by the user to be audited, which further improves the health and normalization of generating color-filling images.
Further optionally, as shown in fig. 6, the user terminal 400 may further include an uploading unit 411, a second extracting unit 412, and a calling unit 413, where:
the uploading unit 411 is configured to upload the color filling image determined by the determining unit 405 to a server corresponding to the color filling application, so as to implement sharing of personalized color filling image resources.
A second extracting unit 412, configured to extract color categories of all colors in the acquired image after the acquiring unit 402 acquires the image uploaded by the user and before the first processing unit 403 performs black-and-white processing on the acquired image to obtain a black-and-white image.
And a retrieving unit 413 configured to retrieve a virtual color selection panel including a color corresponding to the color type from a color resource library applied by the color filling type after the color filling image is output by the output unit 406.
The output unit 406 may be further configured to output the virtual color selection board.
It should be noted that the user terminal 400 described in fig. 6 can be used to implement step 301 to step 310 in the third embodiment.
It can be seen that, by implementing the user terminal 400 described in fig. 6, the generated personalized color-filling image can be uploaded to the corresponding server, so as to implement sharing of personalized color-filling image resources, and a virtual color selection board matched with colors in the image uploaded by the user can be provided for the user, so that the user can conveniently perform color-filling drawing on the generated personalized color-filling image, and the user experience is further improved.
EXAMPLE five
As shown in fig. 7, fig. 7 is a schematic structural diagram of another user terminal disclosed in the embodiment of the present invention. As shown in fig. 7, the user terminal 700 may include: at least one processor 701, such as a CPU, memory 702, at least one communication bus 703, input devices 704, output devices 705. The communication bus 703 is used for realizing communication connection among the components. The memory 702 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 702 may optionally be at least one memory device located remotely from the processor 701. Wherein:
the processor 701 may be combined with the user terminal described in fig. 4 to 6, the memory 702 stores a set of program codes, and the processor 701 calls the program codes stored in the memory 702 to perform the following operations:
after the color filling application of the user terminal 700 is started, the output device 705 is controlled to prompt the user to upload an image, and the input device 704 is controlled to acquire the image uploaded by the user;
carrying out black-and-white processing on the acquired image to obtain a black-and-white image, and carrying out linearization processing on the black-and-white image to obtain a linearized image;
the linearized image is determined as a color filling image for a color filling class application, and the output device 705 is controlled to output the color filling image.
In an alternative embodiment, before determining the linearized image as a color-filled image for the color-filled class application, the processor 701 invokes program code stored in the memory 702, and is further operable to:
determining the size of the linearized image, judging whether the size of the linearized image meets a preset size condition or not, and triggering and executing the operation of determining the linearized image as a color filling image applied by the color filling class when the size of the linearized image is judged to meet the preset size condition;
when the size of the linearized image is determined not to satisfy the preset size condition, the linearized image is edited based on the preset size condition to obtain an edited linearized image, the edited linearized image is determined as a color filling image applied by the color filling class, and the output device 705 is controlled to output the color filling image.
In another alternative embodiment, after the control input device 704 obtains the image uploaded by the user, and before performing the above black-and-white processing on the obtained image to obtain a black-and-white image, the processor 701 may call the program code stored in the memory 702, and may further be configured to perform the following operations:
extracting feature information in the acquired image, detecting whether the feature information is matched with preset feature information or not, triggering and executing the operation of performing black-and-white processing on the acquired image to obtain a black-and-white image when detecting that the feature information is not matched with the preset feature information, controlling the output device 705 to output prompt information when detecting that the feature information is matched with the preset feature information, re-triggering and executing the control output device 705 to prompt a user to upload the image, and controlling the input device 704 to acquire the image uploaded by the user, wherein the prompt information is used for prompting the user that the uploaded image does not meet requirements.
In yet another alternative embodiment, the processor 701 invokes program code stored in the memory 702, and is further operable to:
and uploading the color filling image to a server corresponding to the color filling application.
In yet another alternative embodiment, after the control input device 704 obtains the image uploaded by the user, and before performing the above-mentioned black-and-white processing on the obtained image to obtain a black-and-white image, the processor 701 may call up the program code stored in the memory 702, and may further be configured to perform the following operations:
and extracting the color categories of all colors in the acquired image.
After the color filling image is output by the control output device 705, the processor 701 calls the program code stored in the memory 702, and may further be configured to:
the virtual color selection board containing the color corresponding to the color type is called from the color resource library of the color filling application, and the output device 705 is controlled to output the virtual color selection board.
It can be seen that, by implementing the user terminal 700 described in fig. 7, a new color-filling image can be obtained by processing an image autonomously uploaded by a user, so that a personalized and diversified color-filling image is automatically generated, which is beneficial to improving the interest of the user in color-filling painting, and further improving the user experience of the user.
EXAMPLE six
Referring to fig. 8, fig. 8 is a schematic structural diagram of another ue according to an embodiment of the present invention. As shown in fig. 8, the user terminal 800 may include: a Radio Frequency (RF) circuit 10, a memory 20, an input unit 30, a display unit 40, a sensor 50, an audio circuit 60, a Wireless Fidelity (WiFi) module 70, a processor 80, and a power supply 90. Those skilled in the art will appreciate that the user terminal architecture shown in fig. 8 is not intended to be limiting of user terminals and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the user terminal in detail with reference to fig. 8:
the RF circuit 10 may be used for the reception and transmission of information. In general, the RF circuit 10 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 10 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 20 may be used to store software programs and modules, and the processor 80 executes various functional applications and data processing of the user terminal by operating the software programs and modules stored in the memory 20. The memory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application interface display function, a telephone dialing function, etc.), and the like; the storage data area may store data created according to the use of the user terminal (such as a contact identification, a preset operation mode, etc.), and the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 30 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the user terminal. Specifically, the input unit 30 may include a touch panel 31 and other input devices 32. The touch panel 31, also called a touch screen, may collect touch operations of a user on or near the touch panel 31 (for example, operations of the user on or near the touch panel 31 using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 31 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 80, and can receive and execute commands sent by the processor 80. In addition, the touch panel 31 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 30 may include other input devices 32 in addition to the touch panel 31. In particular, other input devices 32 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 40 may be used to display information input by a user or information provided to the user and various menus of the user terminal. The Display unit 40 may include a Display panel 41, and optionally, the Display panel 41 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 31 may cover the display panel 41, and when the touch panel 31 detects a touch operation on or near the touch panel 31, the touch operation is transmitted to the processor 80 to determine the type of the touch event, and then the processor 80 provides a corresponding visual output on the display panel 41 according to the type of the touch event. Although in fig. 8, the touch panel 31 and the display panel 41 are two separate components to implement the input and output functions of the user terminal, in some embodiments, the touch panel 31 and the display panel 41 may be integrated to implement the input and output functions of the user terminal.
The user terminal may also include at least one sensor 50, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 41 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 41 and/or the backlight when the user terminal moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the user terminal, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured by the user terminal, further description is omitted here.
The audio circuitry 60, speaker 61, microphone 62 may provide an audio interface between the user and the user terminal. The audio circuit 60 may transmit the electrical signal converted from the received audio data to the speaker 61, and the electrical signal is converted into a sound signal by the speaker 61 and output; on the other hand, the microphone 62 converts the collected sound signal into an electric signal, which is received by the audio circuit 60 and converted into audio data, which is then processed by the audio data output processor 80, and then transmitted to, for example, another user terminal via the RF circuit 10, or the audio data is output to the memory 20 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and the user terminal can help the user send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 70, and provides wireless broadband internet access for the user. Although fig. 8 shows the WiFi module 70, it is understood that it does not belong to the essential constitution of the user terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 80 is a control center of the user terminal, connects various parts of the entire user terminal using various interfaces and lines, and performs various functions of the user terminal and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the user terminal. Alternatively, processor 80 may include one or more processing units; preferably, the processor 80 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 80.
The user terminal may also include a power supply 90 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 80 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown, the user terminal may further include a camera, a bluetooth module, and the like, which will not be described herein.
In the embodiments shown in fig. 1, fig. 2, and fig. 3, the method flows of the steps may be implemented based on the structure of the user terminal.
In the embodiments shown in fig. 4, fig. 5, and fig. 6, the functions of each unit may be implemented based on the structure of the user terminal.
Therefore, the user terminal described in fig. 8 can process the image uploaded by the user independently to obtain a new color filling image, so that the method of automatically generating the personalized and diversified color filling image is beneficial to improving the interest of the user in color filling painting, and further improving the use experience of the user.
EXAMPLE seven
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps in the color filling image generation method described in any one of the embodiments of fig. 1-3.
Example eight
An embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to make a computer execute the steps in the color filling image generation method described in any one of fig. 1-3.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The method for generating a color-filling image and the user terminal disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A method of generating a color-filled image, the method comprising:
after the color filling application of the user terminal is started, prompting a user to upload an image and acquiring the image uploaded by the user; extracting the color categories of all colors in the acquired image;
performing black-and-white processing on the acquired image to obtain a black-and-white image, and performing linearization processing on the black-and-white image to obtain a linearized image;
determining the linearized image as a color filling image applied by the color filling class and outputting the color filling image; calling a virtual color selection board containing colors corresponding to the color categories from a color resource library of the color filling application, and outputting the virtual color selection board;
the method further comprises the following steps:
when detecting that the color filling drawing is performed on the color filling image by the user, determining the touch position of the user in the color filling image and the color required to be filled in the touch position, and highlighting the color required to be filled in the touch position on the virtual color selection board.
2. The method of generating a color-filled image according to claim 1, wherein before the determining the linearized image as the color-filled image for the color-filled class application, the method further comprises:
determining the size of the linearized image, judging whether the size of the linearized image meets a preset size condition or not, and triggering and executing the operation of determining the linearized image as a color filling image applied by the color filling class when the size of the linearized image is judged to meet the preset size condition;
the method further comprises the following steps:
and when the size of the linearized image is judged not to meet the preset size condition, editing the linearized image based on the preset size condition to obtain an edited linearized image, determining the edited linearized image as a color filling image applied by the color filling class, and outputting the color filling image.
3. The method for generating a color-filled image according to claim 1 or 2, wherein after the acquiring an image uploaded by a user and before the performing black-and-white processing on the acquired image to obtain a black-and-white image, the method further comprises:
extracting feature information in the acquired image, detecting whether the feature information is matched with preset feature information or not, triggering and executing the black-and-white processing on the acquired image to acquire an operation of a black-and-white image when the feature information is not matched with the preset feature information, outputting prompt information when the feature information is detected to be matched with the preset feature information, triggering and executing the operation of prompting a user to upload the image and acquiring the image uploaded by the user again, wherein the prompt information is used for prompting the user that the image uploaded by the user does not meet requirements.
4. The method for generating a color-filled image according to claim 3, further comprising:
and uploading the color filling image to a server corresponding to the color filling application.
5. The method for generating a color-filled image according to any one of claims 1-2, further comprising:
and uploading the color filling image to a server corresponding to the color filling application.
6. A user terminal, characterized in that the user terminal comprises:
the prompting unit is used for prompting a user to upload an image after the color filling application of the user terminal is started;
the acquisition unit is used for acquiring images uploaded by a user;
the second extraction unit is used for extracting the color categories of all the colors in the acquired image;
the first processing unit is used for performing black-and-white processing on the acquired image to obtain a black-and-white image;
the second processing unit is used for carrying out linearization processing on the black and white image to obtain a linearized image;
a determination unit, configured to determine the linearized image as a color filling image applied by the color filling class;
an output unit configured to output the color-filled image;
the calling unit is used for calling a virtual color selection plate containing the color corresponding to the color category from a color resource library of the color filling application;
the output unit is further used for outputting the virtual color selection plate;
the output unit is further configured to highlight, in a virtual color selection board, the color to be filled in the touch position when the determination unit detects that the user performs color filling drawing on the color filling image and determines the touch position of the user in the color filling image and the color to be filled in the touch position.
7. The user terminal according to claim 6, wherein the determining unit is further configured to determine a size of the linearized image before performing the operation of determining the linearized image as a color filling image for the color filling class application;
the user terminal further comprises:
the judging unit is used for judging whether the size of the linearized image meets a preset size condition or not, and when the size of the linearized image meets the preset size condition, the determining unit is triggered to execute the operation of determining the linearized image as the color filling image applied by the color filling class;
the editing unit is used for executing editing operation on the linearized image according to the preset size condition when the size of the linearized image is judged not to meet the preset size condition, so as to obtain an edited linearized image;
the determining unit is further configured to determine the edited linearized image as a color filling image applied by the color filling class, and trigger the output unit to execute the operation of outputting the color filling image.
8. The user terminal according to claim 6 or 7, wherein the user terminal further comprises:
the first extraction unit is used for extracting feature information in the acquired image after the acquisition unit acquires the image uploaded by the user and before the first processing unit performs black-and-white processing on the acquired image to obtain a black-and-white image;
the detection unit is used for detecting whether the characteristic information is matched with preset characteristic information or not, and when the characteristic information is not matched with the preset characteristic information, the first processing unit is triggered to execute the black and white processing on the acquired image to obtain the operation of a black and white image;
and the output unit is further used for outputting prompt information when the characteristic information is detected to be matched with the preset characteristic information, and triggering the prompt unit to execute an operation of prompting a user to upload an image, wherein the prompt information is used for prompting the user that the image uploaded by the user does not meet requirements.
9. The user terminal according to claim 8, wherein the user terminal further comprises:
and the uploading unit is used for uploading the color filling image to a server corresponding to the color filling application.
10. The user terminal according to any of claims 6-7, wherein the user terminal further comprises:
and the uploading unit is used for uploading the color filling image to a server corresponding to the color filling application.
11. A user terminal, characterized in that the user terminal comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method of generating a color-filled image according to any one of claims 1 to 5.
12. A computer-readable storage medium characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the color-fill image generation method according to any one of claims 1 to 5.
CN201710469264.5A 2017-06-20 2017-06-20 Color filling image generation method and user terminal Active CN107357570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710469264.5A CN107357570B (en) 2017-06-20 2017-06-20 Color filling image generation method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710469264.5A CN107357570B (en) 2017-06-20 2017-06-20 Color filling image generation method and user terminal

Publications (2)

Publication Number Publication Date
CN107357570A CN107357570A (en) 2017-11-17
CN107357570B true CN107357570B (en) 2021-01-26

Family

ID=60272769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710469264.5A Active CN107357570B (en) 2017-06-20 2017-06-20 Color filling image generation method and user terminal

Country Status (1)

Country Link
CN (1) CN107357570B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189246A (en) * 2018-07-06 2019-01-11 北京奇宝科技有限公司 A kind of scribble content and handled methods, devices and systems on pair of handwriting pad
CN110124322B (en) * 2019-05-13 2020-05-12 北京乐信圣文科技有限责任公司 Color filling method and device for color filling game

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216945A (en) * 2014-07-31 2014-12-17 小米科技有限责任公司 4K picture management platform, information management method and downloading management method
CN104978758A (en) * 2015-06-29 2015-10-14 世优(北京)科技有限公司 Animation video generating method and device based on user-created images
CN105931506A (en) * 2016-07-12 2016-09-07 大连新锐天地传媒有限公司 Children painting system and display method thereof based on augmented reality
CN105989622A (en) * 2015-03-17 2016-10-05 贝洱工艺公司 Automated method and apparatus, preprocessing method, and computer readable medium
CN106095472A (en) * 2016-08-23 2016-11-09 上海卓易科技股份有限公司 A kind of head portrait setting method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9123174B2 (en) * 2012-04-03 2015-09-01 Ppg Industries Ohio, Inc. Method and apparatus for displaying a simulated application of at least one coating to a digital image
CN104392433B (en) * 2014-11-05 2017-05-17 浙江工业大学 Image-based digital oil painting canvas automatic generation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216945A (en) * 2014-07-31 2014-12-17 小米科技有限责任公司 4K picture management platform, information management method and downloading management method
CN105989622A (en) * 2015-03-17 2016-10-05 贝洱工艺公司 Automated method and apparatus, preprocessing method, and computer readable medium
CN104978758A (en) * 2015-06-29 2015-10-14 世优(北京)科技有限公司 Animation video generating method and device based on user-created images
CN105931506A (en) * 2016-07-12 2016-09-07 大连新锐天地传媒有限公司 Children painting system and display method thereof based on augmented reality
CN106095472A (en) * 2016-08-23 2016-11-09 上海卓易科技股份有限公司 A kind of head portrait setting method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一涂(图片上色)v1.0.0安卓网;匿名;《http://m.5577.com/d/85260》;20150908;第1-2页 *
涂色APP1.13安卓最新版;匿名;《https://www.cr173.com/soft/146123.html》;20150721;第1-2页 *

Also Published As

Publication number Publication date
CN107357570A (en) 2017-11-17

Similar Documents

Publication Publication Date Title
US20170195720A1 (en) Bullet screen posting method and mobile terminal
CN107005721B (en) Live broadcast room video stream push control method, corresponding server and mobile terminal
CN103489303B (en) A kind of remote control thereof and device
CN107977144B (en) Screen capture processing method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
WO2016041340A1 (en) An indication method and mobile terminal
CN107040609B (en) Network request processing method and device
TWI520043B (en) Method, device and moving terminal for examining messages
CN107193664B (en) Message display method and device and mobile terminal
US10269163B2 (en) Method and apparatus for switching real-time image in instant messaging
TWI512525B (en) Method and system for associating two terminals with each other, terminal and computer-readable storage medium
CN108021305B (en) Application association starting method and device and mobile terminal
CN107402709A (en) A kind of multi-screen display method, terminal and computer-readable recording medium
US10652287B2 (en) Method, device, and system for managing information recommendation
CN106341300B (en) Method, device and system for task release
CN106778175B (en) Interface locking method and device and terminal equipment
KR101978590B1 (en) Message updating method, device and terminal
CN106534941B (en) Method and device for realizing video interaction
CN107819935B (en) Control method of mobile terminal and mobile terminal
TWI512496B (en) Method and system for sharing resources
EP3396579B1 (en) Unlocking control method and mobile terminal
CN108920059B (en) Message processing method and mobile terminal
CN108228031B (en) Picture sharing method, picture display method and mobile terminal
CN108845853B (en) Application program starting method and mobile terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal

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