CN103578124B - Method and device for switching digital painting and calligraphy backgrounds - Google Patents

Method and device for switching digital painting and calligraphy backgrounds Download PDF

Info

Publication number
CN103578124B
CN103578124B CN201310552916.3A CN201310552916A CN103578124B CN 103578124 B CN103578124 B CN 103578124B CN 201310552916 A CN201310552916 A CN 201310552916A CN 103578124 B CN103578124 B CN 103578124B
Authority
CN
China
Prior art keywords
background
handwriting
calligraphy
module
painting
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
CN201310552916.3A
Other languages
Chinese (zh)
Other versions
CN103578124A (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.)
Inlife Handnet Co Ltd
Original Assignee
Inlife Handnet 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 Inlife Handnet Co Ltd filed Critical Inlife Handnet Co Ltd
Priority to CN201310552916.3A priority Critical patent/CN103578124B/en
Publication of CN103578124A publication Critical patent/CN103578124A/en
Application granted granted Critical
Publication of CN103578124B publication Critical patent/CN103578124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a method and device for switching digital painting and calligraphy backgrounds. Firstly, data signals of a calligraphy picture and a background picture are received; all pixel points of the calligraphy picture are sequentially scanned one by one, and whether the pixel points have calligraphy or not is determined, if yes, R, G and B values of the pixel points of the calligraphy picture are copied to the corresponding pixel points on a target picture, and if not, R, G and B values of the pixel points of the background picture are copied to the corresponding pixel points of the target picture; the target picture of which the background is switched is generated; data signals of the target picture are output finally. The method and device for switching the digital painting and calligraphy backgrounds have the advantages that paintings and calligraphy can be placed on different backgrounds, a user only needs to write once, the backgrounds can be switched freely according to hobbies of the user, and therefore the artistic expressing force in creation of the digital paintings and the calligraphy is enhanced.

Description

A kind of method and device of switching numeral painting and calligraphy background
Technical field
The present invention relates to the method for switching background, more particularly, to a kind of method of switching numeral painting and calligraphy background.In addition, also relating to And a kind of device of the digital painting and calligraphy background of switching.
Background technology
Existing painting and calligraphy device, once it is determined that line translation cannot be entered, this limits painting and calligraphy wound to background to a certain extent Make.
Content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, provides a kind of switching digital book Draw the method and device of background.
The technical solution adopted for the present invention to solve the technical problems is:A kind of method of switching numeral painting and calligraphy background, bag Include following steps:
S1, definition person's handwriting figure, Background, target figure, are respectively used to pen trace, background, final result, person's handwriting figure, the back of the body Jing Tu, the size all same of target figure;Receive the data signal of person's handwriting figure and Background;
S2, a pixel of scanning person's handwriting figure, determine whether this pixel has person's handwriting;
If this pixel of person's handwriting figure has person's handwriting, R, G, B value of this pixel of person's handwriting figure is copied to target figure On corresponding pixel points;If this pixel no person's handwriting of person's handwriting figure, R, G, B value of this pixel of Background is copied to The corresponding pixel points of target figure;
S3, in order one by one scan person's handwriting figure each pixel, determine whether pixel has person's handwriting;Repeat step S2 is straight Generate the corresponding pixel points of target figure to each pixel of person's handwriting figure, you can generate the target figure after switching background;
The data signal of the target figure that S4, output step S3 obtain.
A kind of device of switching numeral painting and calligraphy background, including signal receiving module, painting and calligraphy background handover module, signal output Module and supply module, described supply module and described signal receiving module, painting and calligraphy background handover module, signal output module electricity Property connect, wherein,
Described signal receiving module is used for receiving the person's handwriting figure of digital painting and calligraphy and the data signal of Background;
Described painting and calligraphy background handover module is used for the method according to the described digital painting and calligraphy background of switching, by person's handwriting figure and the back of the body Scape figure is overlapped, and result preserves to target figure;
Described signal output module finishes changing the data signal of the target figure of background for outputting cutting;
Described supply module is described signal receiving module, painting and calligraphy background handover module, signal output module are powered.
Preferably, described painting and calligraphy background handover module includes scan module and replication module;
Described scan module is used for scanning each pixel of person's handwriting figure in order one by one, and determines this pixel of person's handwriting figure Whether point has person's handwriting;
Described replication module, according to the scanning result of scan module, determines clone method:If there being person's handwriting, by handwriting image R, G, B value of vegetarian refreshments is copied to the corresponding pixel points on target figure;If no person's handwriting, R, G, B value of background image vegetarian refreshments is multiple Make the corresponding pixel points to target figure.
Preferably, described supply module be described signal receiving module, painting and calligraphy background handover module, signal output module supply Electricity.
The beneficial effects of enforcing the present invention are:A kind of method and device of switching numeral painting and calligraphy background can be realized painting and calligraphy Person's handwriting is placed on different backgrounds, and user can be according to itself hobby, free switching background, thus when strengthening digital painting and calligraphy creation Artistic expression.
Brief description
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is a kind of flow chart of the preferred embodiment of method of the digital painting and calligraphy background of switching of the present invention;
Fig. 2 is a kind of structural representation of the preferred embodiment of device of the digital painting and calligraphy background of switching of the present invention.
Specific embodiment
The present invention is described further below in conjunction with the accompanying drawings.
As shown in figure 1, the method that the present invention preferred embodiment provides a kind of digital painting and calligraphy background of switching, including with Lower step:
S1, definition person's handwriting figure, Background, target figure, are respectively used to pen trace, background, finally show result, person's handwriting Figure, Background, the size all same of target figure;Receive the data signal of person's handwriting figure and Background;
S2, scanning person's handwriting figure a pixel, determine whether pixel has person's handwriting, and according to determined by result generate Target image vegetarian refreshments corresponding with handwriting image vegetarian refreshments;Specifically generation method is:
If this pixel has person's handwriting, R, G, B value of handwriting image vegetarian refreshments is copied to corresponding target image vegetarian refreshments; If this pixel no person's handwriting, R, G, B value of corresponding background image vegetarian refreshments is copied to corresponding target image vegetarian refreshments (RGB is a kind of color mode, is distributed in the range of a 0-255 using the RGB component that RGB model is each of image pixel Intensity level, tri- alphabetical meanings of R, G, B are red, green, blue respectively);
S3, scan each handwriting image vegetarian refreshments in order one by one, determine whether pixel has person's handwriting;Repeat step S2, directly Generate corresponding target image vegetarian refreshments to each handwriting image vegetarian refreshments, that is, obtain the target figure after switching background;
The data signal of the target figure that S4, output step S3 obtain.
As shown in Fig. 2 another preferred embodiment of the present invention provides a kind of device of the digital painting and calligraphy background of switching, including Signal receiving module 100, painting and calligraphy background handover module 200, signal output module 300 and supply module, supply module and signal Receiver module 100, painting and calligraphy background handover module 200, signal output module 300 are electrically connected with;
Signal receiving module 100, can be the input of computer, including network interface card, antenna etc., for receiving digital painting and calligraphy Person's handwriting figure and Background data signal;
Painting and calligraphy background handover module 200, can be the CPU of computer, for switching digital painting and calligraphy background, scan each pen Mark image vegetarian refreshments, determines whether pixel has person's handwriting, and according to determined by result generate mesh corresponding with handwriting image vegetarian refreshments Mark on a map pixel, result preserves to target figure;
Signal output module 300, can be the outfan of computer, finish changing the data of the target figure of background for outputting cutting Signal;
Supply module is signal receiving module 100, painting and calligraphy background handover module 200, signal output module 300 are powered.
Preferably, painting and calligraphy background handover module 200 includes scan module 201 and replication module 202;
Scan module 201 is used for scanning each handwriting image vegetarian refreshments one by one in order, and whether determines handwriting image vegetarian refreshments There is person's handwriting;
Replication module 202 is used for the scanning result according to scan module 201, determines clone method:If there being person's handwriting, should R, G, B value of handwriting image vegetarian refreshments is copied to corresponding target image vegetarian refreshments;If no person's handwriting, by corresponding background image vegetarian refreshments R, G, B value be copied to corresponding target image vegetarian refreshments.
It is understood that because scan module 201 is in units of pixel, the precision of scanning is very high, so can guarantee that Very clear with the boundary at no person's handwriting at person's handwriting having, also so that on target figure, person's handwriting can be merged well with background.
The beneficial effects of enforcing the present invention are:A kind of method and device of switching numeral painting and calligraphy background can be realized painting and calligraphy Person's handwriting is placed on different backgrounds, and user can be according to itself hobby, free switching background, thus when strengthening digital painting and calligraphy creation Artistic expression.
Above example only technology design to illustrate the invention and feature, its object is to allow person skilled in the art Scholar will appreciate that present disclosure and implements accordingly, can not limit the scope of the invention.All with right of the present invention will Ask the impartial change that scope done and modification, the covering scope of the claims in the present invention all should be belonged to.

Claims (3)

1. a kind of method of switching numeral painting and calligraphy background, should it is characterised in that being applied in the device switch digital painting and calligraphy background The device of the digital painting and calligraphy background of switching includes signal receiving module, painting and calligraphy background handover module, signal output module and power supply mould Block, described supply module is electrically connected with, and is with described signal receiving module, painting and calligraphy background handover module, signal output module Described signal receiving module, described painting and calligraphy background handover module, described signal output module are powered, and methods described includes following step Suddenly:
S1, the person's handwriting figure of the digital painting and calligraphy of definition, Background, target figure, are respectively used to pen trace, background, finally show result, Described person's handwriting figure, Background, the size all same of target figure;Described signal receiving module receives the data of person's handwriting figure and Background Signal;
S2, described painting and calligraphy background handover module scan a pixel of person's handwriting figure, determine whether pixel has person's handwriting, and according to Determined by result generate target image vegetarian refreshments corresponding with handwriting image vegetarian refreshments;Specifically generation method is:
If this pixel has person's handwriting, R, G, B value of handwriting image vegetarian refreshments is copied to corresponding target image vegetarian refreshments;If This pixel no person's handwriting, then be copied to corresponding target image vegetarian refreshments by R, G, B value of corresponding background image vegetarian refreshments;
S3, described painting and calligraphy background handover module scan each handwriting image vegetarian refreshments in order one by one, determine whether pixel has pen Mark;Repeat step S2, until each handwriting image vegetarian refreshments generates corresponding target image vegetarian refreshments, that is, after obtaining switching background Target figure;
S4, described signal output module export the data signal of the target figure that step S3 obtains.
2. a kind of device of switching numeral painting and calligraphy background is it is characterised in that include signal receiving module (100), painting and calligraphy background is cut Die change block (200), signal output module (300) and supply module, described supply module and described signal receiving module (100), Painting and calligraphy background handover module (200), signal output module (300) are electrically connected with, wherein,
Described signal receiving module (100) is used for receiving the person's handwriting figure of digital painting and calligraphy and the data signal of Background;
The method that described painting and calligraphy background handover module (200) are used for the digital painting and calligraphy background of switching according to claim 1, sweeps Retouch each handwriting image vegetarian refreshments, determine whether pixel has person's handwriting, and according to determined by result generate with handwriting image vegetarian refreshments Corresponding target image vegetarian refreshments, result preserves to target figure;
Described signal output module (300) finishes changing the data signal of the target figure of background for outputting cutting;
Described supply module is described signal receiving module (100), painting and calligraphy background handover module (200), signal output module (300) power.
3. the device of switching numeral painting and calligraphy background according to claim 2 is it is characterised in that described painting and calligraphy background switches mould Block (200) includes scan module (201) and replication module (202);
Described scan module (201) is used for scanning each handwriting image vegetarian refreshments one by one in order, and determines that handwriting image vegetarian refreshments is No have person's handwriting;
Described replication module (202) is used for according to scan module (201) scanning result, determines clone method:If there being person's handwriting, will R, G, B value of this handwriting image vegetarian refreshments is copied to corresponding target image vegetarian refreshments;If no person's handwriting, by corresponding Background pixel R, G, B value selected is copied to corresponding target image vegetarian refreshments.
CN201310552916.3A 2013-11-07 2013-11-07 Method and device for switching digital painting and calligraphy backgrounds Active CN103578124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310552916.3A CN103578124B (en) 2013-11-07 2013-11-07 Method and device for switching digital painting and calligraphy backgrounds

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310552916.3A CN103578124B (en) 2013-11-07 2013-11-07 Method and device for switching digital painting and calligraphy backgrounds

Publications (2)

Publication Number Publication Date
CN103578124A CN103578124A (en) 2014-02-12
CN103578124B true CN103578124B (en) 2017-02-08

Family

ID=50049844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310552916.3A Active CN103578124B (en) 2013-11-07 2013-11-07 Method and device for switching digital painting and calligraphy backgrounds

Country Status (1)

Country Link
CN (1) CN103578124B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764306A (en) * 1997-03-18 1998-06-09 The Metaphor Group Real-time method of digitally altering a video data stream to remove portions of the original image and substitute elements to create a new image
CN101884214A (en) * 2007-12-05 2010-11-10 双子资讯私人有限公司 Automatically produce the method for the video cartoon cartoon that contains the face that superposes from the animation cartoon template
CN102262787A (en) * 2010-05-31 2011-11-30 卡西欧计算机株式会社 Image composition apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5764306A (en) * 1997-03-18 1998-06-09 The Metaphor Group Real-time method of digitally altering a video data stream to remove portions of the original image and substitute elements to create a new image
CN101884214A (en) * 2007-12-05 2010-11-10 双子资讯私人有限公司 Automatically produce the method for the video cartoon cartoon that contains the face that superposes from the animation cartoon template
CN102262787A (en) * 2010-05-31 2011-11-30 卡西欧计算机株式会社 Image composition apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电子警察系统中背景更新算法的研究;王小辉等;《计算机时代》;20071231(第10期);47-49 *

Also Published As

Publication number Publication date
CN103578124A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN106156730B (en) A kind of synthetic method and device of facial image
CN104076928B (en) A kind of method for adjusting text importing image
CN108932745B (en) Image drawing method and device, terminal equipment and computer readable storage medium
CN109325450A (en) Image processing method, device, storage medium and electronic equipment
CN108389257A (en) Threedimensional model is generated from sweep object
CN105051792A (en) Apparatus for enhancement of 3-D images using depth mapping and light source synthesis
CN106575360A (en) Enhanced recognition of charted data
CN109324749A (en) Drawing practice, device, storage medium and electronic equipment
CN112868050A (en) Image processing method, device and equipment
CN107798726B (en) Method and device for manufacturing three-dimensional cartoon
CN110443769A (en) Image processing method, image processing apparatus and terminal device
CN104766354B (en) The method and mobile terminal that a kind of augmented reality is drawn
CN109214876A (en) A kind of fitting method and system based on augmented reality
CN108628563A (en) Display device, display methods and storage medium
CN111489429A (en) Image rendering control method, terminal device and storage medium
CN109920018A (en) Black-and-white photograph color recovery method, device and storage medium neural network based
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN103278243B (en) Outdoor scene takes color method, system and device
CN105354869A (en) Method and system for embodying real head features of user on virtual head portrait
CN101354789A (en) Method and device for implementing image face mask specific effect
CN114816135B (en) Cross-device drawing system
CN104049753B (en) Realize the method and apparatus that sign language information and text message are mutually changed
CN110472600A (en) The identification of eyeground figure and its training method, device, equipment and storage medium
CN104793937B (en) A kind of startup control method and device
CN103578124B (en) Method and device for switching digital painting and calligraphy backgrounds

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 Beek science and technology building, room, No. 9 research road, Nanshan District high tech Zone, Guangdong, China, 1501-B

Applicant after: INLIFE-HANDNET CO., LTD.

Address before: 518054 Guangdong city of Shenzhen province Nanshan District Nanhai Road Guangdong sea (Shenzhen city) 7 Building 3 floor

Applicant before: Inlife-handnet Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant