CN103544722A - Method and device for handwriting decoration of digital painting and chirography - Google Patents

Method and device for handwriting decoration of digital painting and chirography Download PDF

Info

Publication number
CN103544722A
CN103544722A CN201310514155.2A CN201310514155A CN103544722A CN 103544722 A CN103544722 A CN 103544722A CN 201310514155 A CN201310514155 A CN 201310514155A CN 103544722 A CN103544722 A CN 103544722A
Authority
CN
China
Prior art keywords
handwriting
pixel
person
pixel point
rgb value
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
CN201310514155.2A
Other languages
Chinese (zh)
Other versions
CN103544722B (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 CN201310514155.2A priority Critical patent/CN103544722B/en
Publication of CN103544722A publication Critical patent/CN103544722A/en
Application granted granted Critical
Publication of CN103544722B publication Critical patent/CN103544722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and device for handwriting decoration of a digital painting and chirography. The method for handwriting decoration of the digital painting and the chirography comprises the following steps that after a data signal of an original handwriting graph is obtained, the original handwriting graph is scanned; handwriting pixel points and background pixel points are divided; boundary pixel points of the handwriting in the appointed direction, boundary pixel points of a feathered zone and pixel points of the feathered zone are determined; RGB values of the boundary pixel points are extracted and RGB values of the pixel points in the feathered zone are calculated according to the RGB values of the boundary pixel points; colors represented by the RGB values of the handwriting pixel points and colors represented by the calculated RGB values of the pixel points in the featured zone are filled into corresponding pixel points of a target graph respectively; colors represented by the RGB values of the background pixel points are filled into other pixel points of the target graph; a digital signal of the target graph is finally output. The device for handwriting decoration of the digital painting and the chirography comprises a signal receiving module, a decoration module, a signal output module and a power supplying module.

Description

A kind of person's handwriting method of modifying and device of digital painting and calligraphy
Technical field
The present invention relates to a kind of person's handwriting method of modifying, relate in particular to a kind of person's handwriting method of modifying of digital painting and calligraphy.The person's handwriting decorating device that also relates to a kind of digital painting and calligraphy.
Background technology
Use in the writing process of traditional pen, China ink, paper, inkstone, there will be person's handwriting edge to infiltrate the effect of paper, by known to the analysis of truly writing, the feature that person's handwriting infiltrates paper can be understood as: person's handwriting edge color from depth to shallow, by dense thin out, obfuscation gradually, existing painting and calligraphy device but cannot embody the effect that person's handwriting infiltrates paper.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of person's handwriting method of modifying and device of digital painting and calligraphy.
The technical solution adopted for the present invention to solve the technical problems is: a kind of person's handwriting method of modifying of digital painting and calligraphy, comprises the following steps:
S1, receive the data-signal of the former person's handwriting figure of digital painting and calligraphy;
S2, scan former person's handwriting figure, divide person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel;
S3, extract the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel is calculated;
S4, the color that the rgb value of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated is represented are all filled to the corresponding pixel points of target figure;
S5, other pixel by the color filling of the rgb value representative of described background pixel point to target figure;
The data-signal of the target figure that S6, output step S5 obtain.
Preferably, the assigned direction in step S2 is upper and lower, left and right direction.
Preferably, the method that the rgb value of district's pixel calculates of sprouting wings in step S3 is: the rgb value of boundary pixel point is P(R 0, G 0, B 0), the rgb value of background pixel point is P st(R st, G st, B st), the rgb value of n the pixel extending from boundary pixel point to assigned direction is P 1(R 1, G 1, B 1), P 2(R 2, G 2, B 2) ..., P n(R n, G n, B n);
R i = R 0 + ( R st - R 0 ) * i n ;
G i = G 0 + ( G st - G 0 ) * i n ;
B i = B 0 + ( B st - B 0 ) * i n ;
Wherein, i=1,2 ..., n.
A person's handwriting decorating device for painting and calligraphy, comprises signal receiving module, modifies module, signal output module and supply module, and described supply module and described signal receiving module, modification module, signal output module are electrically connected, wherein,
Described signal receiving module is for receiving the data-signal of former person's handwriting figure;
Described modification module is used for scanning former person's handwriting figure, divides person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel; Extract the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel is calculated; The color of the rgb value representative of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated is all filled to the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of described background pixel point to target figure;
Described signal output module is for exporting by the data-signal of the target figure after described modification resume module;
Described supply module is for powering to described signal receiving module, modification module, signal output module.
Preferably, described modification module comprises scan module, computing module and packing module;
Described scan module is used for scanning former person's handwriting figure, divides person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel;
Described computing module is used for extracting the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel is calculated;
Described packing module is for being all filled to the color of the rgb value representative of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of described background pixel point to target figure.
Enforcement the invention has the beneficial effects as follows: a kind of person's handwriting method of modifying and device of digital painting and calligraphy, on the basis of major function that has existing painting and calligraphy device concurrently, also increased person's handwriting rhetorical function newly, by the some pixels of person's handwriting edge extension, carry out color and weaken processing, to reach edge fuzzy object gradually, can effectively solve existing painting and calligraphy device and in painting and calligraphy process, cannot embody the problem that person's handwriting infiltrates paper effect, thus the true expressive force while improving digital painting and calligraphy creation.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the process flow diagram of preferred embodiment of the person's handwriting method of modifying of a kind of digital painting and calligraphy of the present invention;
Fig. 2 is the structural representation of preferred embodiment of the person's handwriting decorating device of a kind of digital painting and calligraphy of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention will be further explained explanation.
As shown in Figure 1, a kind of person's handwriting method of modifying of digital painting and calligraphy, comprises the following steps:
S1, utilize light pen on projection screen, write or paint, the means that adopt dual camera to catch the infrared light motion track that in three dimensions, light pen nib is sent form former person's handwriting figure, then receive the data-signal of the former person's handwriting figure of digital painting and calligraphy;
S2, scan former person's handwriting figure, divide person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction, definite method be on assigned direction person's handwriting boundary pixel point adjacent position again without other person's handwriting pixel; The person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to assigned direction, and the pixel between person's handwriting boundary pixel point and emergence district boundary pixel point is defined as to emergence district pixel;
The rgb value of S3, extraction person's handwriting boundary pixel point, and accordingly the rgb value of emergence district pixel is calculated that (RGB is a kind of color mode, use the RGB component that RGB model is each pixel in image to distribute the intensity level within the scope of a 0-255, R, G, tri-alphabetical meanings of B are respectively red, green, blues);
S4, the color that the rgb value of the color of the rgb value representative of person's handwriting pixel and the emergence district pixel that process is calculated is represented are all filled to the corresponding pixel points of target figure;
S5, other pixel by the color filling of the rgb value representative of background pixel point to target figure;
The data-signal of the target figure that S6, output step S5 obtain.
Preferably, the assigned direction in step S2 comprises upper and lower, left and right direction.
Preferably, the method that the rgb value of district's pixel calculates of sprouting wings in step S3 is: the rgb value of boundary pixel point is P(R 0, G 0, B 0), the rgb value of background pixel point is P st(R st, G st, B st), the rgb value of n the pixel extending from boundary pixel point to assigned direction is P 1(R 1, G 1, B 1), P 2(R 2, G 2, B 2) ..., P n(R n, G n, B n);
R i = R 0 + ( R st - R 0 ) * i n ;
G i = G 0 + ( G st - G 0 ) * i n ;
B i = B 0 + ( B st - B 0 ) * i n ;
Wherein, i=1,2 ..., n.
Be understandable that, by defining different computing method in step S3, can obtain dissimilar effect of impregnation.
Export the data-signal of target figure to display, user can watch the effect of person's handwriting infiltration paper on target figure.
As shown in Figure 2, a person's handwriting decorating device for painting and calligraphy, comprises signal receiving module 100, modifies module 200, signal output module 300 and supply module, and supply module and signal receiving module 100, modification module 200, signal output module 300 are electrically connected, wherein
Signal receiving module 100, can be the input end of computing machine, can be also network interface card, antenna etc., for receiving the data-signal of former person's handwriting figure;
Modifying module 200, can be the CPU of computing machine, for scanning former person's handwriting figure, divides person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to assigned direction, and the pixel between person's handwriting boundary pixel point and emergence district boundary pixel point is defined as to emergence district pixel; Extract the rgb value of person's handwriting boundary pixel point, and accordingly the rgb value of emergence district pixel is calculated; The color of the rgb value representative of the color of the rgb value representative of person's handwriting pixel and the emergence district pixel that process is calculated is all filled to the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of background pixel point to target figure;
Signal output module 300 can be the output terminal of computing machine, for exporting by modifying the data-signal of the target figure after module 200 is processed;
Supply module for to signal receiving module 100, modify module 200, signal output module 300 power supplies, supply module can be battery, can be also plug for connecting civil power, adapter etc.
Preferably, modify module 200 and comprise scan module 201, computing module 202 and packing module 203;
Scan module 201, for scanning former person's handwriting figure, is divided person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to assigned direction, and the pixel between person's handwriting boundary pixel point and emergence district boundary pixel point is defined as to emergence district pixel;
Computing module 202 is for extracting the rgb value of person's handwriting boundary pixel point, and accordingly the rgb value of emergence district pixel calculated;
Packing module 203 is for being all filled to the color of the rgb value representative of the color of the rgb value representative of person's handwriting pixel and the emergence district pixel that process is calculated the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of background pixel point to target figure.
Enforcement the invention has the beneficial effects as follows: a kind of person's handwriting method of modifying and device of digital painting and calligraphy, on the basis of major function that has existing painting and calligraphy device concurrently, also increased rhetorical function newly, by the some pixels of person's handwriting edge extension, carry out color and weaken processing, to reach edge fuzzy object gradually, can effectively solve existing painting and calligraphy device and in painting and calligraphy process, cannot embody the problem that person's handwriting infiltrates paper effect, thus the true expressive force while improving digital painting and calligraphy creation.
Above embodiment is only explanation technical conceive of the present invention and feature, and its object is to allow person skilled in the art can understand content of the present invention and implement accordingly, can not limit the scope of the invention.All equalizations of doing with the claims in the present invention scope change and modify, and all should belong to the covering scope of the claims in the present invention.

Claims (5)

1. a person's handwriting method of modifying for digital painting and calligraphy, is characterized in that, comprises the following steps:
S1, receive the data-signal of the former person's handwriting figure of digital painting and calligraphy;
S2, scan former person's handwriting figure, divide person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel;
S3, extract the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel is calculated;
S4, the color that the rgb value of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated is represented are all filled to the corresponding pixel points of target figure;
S5, other pixel by the color filling of the rgb value representative of described background pixel point to target figure;
The data-signal of the target figure that S6, output step S5 obtain.
2. the person's handwriting method of modifying of digital painting and calligraphy as claimed in claim 1, is characterized in that, the assigned direction in step S2 comprises upper and lower, left and right direction.
3. the person's handwriting method of modifying of digital painting and calligraphy as claimed in claim 1, is characterized in that, the method that the rgb value of the district's pixel of sprouting wings in step S3 calculates is: the rgb value of boundary pixel point is P(R 0, G 0, B 0), the rgb value of background pixel point is P st(R st, G st, B st), the rgb value of n the pixel extending from boundary pixel point to assigned direction is P 1(R 1, G 1, B 1), P 2(R 2, G 2, B 2) ..., P n(R n, G n, B n);
R i = R 0 + ( R st - R 0 ) * i n ;
G i = G 0 + ( G st - G 0 ) * i n ;
B i = B 0 + ( B st - B 0 ) * i n ;
Wherein, i=1,2 ..., n.
4. the person's handwriting decorating device of digital painting and calligraphy, it is characterized in that, comprise signal receiving module (100), modify module (200), signal output module (300) and supply module, described supply module and described signal receiving module (100), modification module (200), signal output module (300) are electrically connected, wherein
Described signal receiving module (100) is for receiving the data-signal of former person's handwriting figure;
Described modification module (200), for scanning former person's handwriting figure, is divided person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel; Extract the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel is calculated; The color of the rgb value representative of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated is all filled to the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of described background pixel point to target figure;
The data-signal of target figure after described signal output module (300) is processed by described modification module (200) for output;
Described supply module is for powering to described signal receiving module (100), modification module (200), signal output module (300).
5. the person's handwriting decorating device of digital painting and calligraphy as claimed in claim 4, is characterized in that, described modification module (200) comprises scan module (201), computing module (202) and packing module (203);
Described scan module (201), for scanning former person's handwriting figure, is divided person's handwriting pixel and background pixel point, and the person's handwriting boundary pixel point on definite assigned direction; The described person's handwriting boundary pixel point of usining extends the pixel that arrives after n pixel as emergence district boundary pixel point as initial point to described assigned direction, and the pixel between described person's handwriting boundary pixel point and described emergence district boundary pixel point is defined as to emergence district pixel;
Described computing module (202) is for extracting the rgb value of described person's handwriting boundary pixel point, and accordingly the rgb value of described emergence district pixel calculated;
Described packing module (203) is for being all filled to the color of the rgb value representative of the color of the rgb value representative of described person's handwriting pixel and the described emergence district pixel that process is calculated the corresponding pixel points of target figure; Other pixel by the color filling of the rgb value representative of described background pixel point to target figure.
CN201310514155.2A 2013-10-25 2013-10-25 The person's handwriting method of modifying of a kind of numeral painting and calligraphy and device Active CN103544722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310514155.2A CN103544722B (en) 2013-10-25 2013-10-25 The person's handwriting method of modifying of a kind of numeral painting and calligraphy and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310514155.2A CN103544722B (en) 2013-10-25 2013-10-25 The person's handwriting method of modifying of a kind of numeral painting and calligraphy and device

Publications (2)

Publication Number Publication Date
CN103544722A true CN103544722A (en) 2014-01-29
CN103544722B CN103544722B (en) 2016-08-17

Family

ID=49968140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310514155.2A Active CN103544722B (en) 2013-10-25 2013-10-25 The person's handwriting method of modifying of a kind of numeral painting and calligraphy and device

Country Status (1)

Country Link
CN (1) CN103544722B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599818A (en) * 2016-12-07 2017-04-26 广州视源电子科技股份有限公司 Method and apparatus for generating handwriting-format document based on picture
CN108986036A (en) * 2017-06-01 2018-12-11 中兴通讯股份有限公司 Handle method, the terminal of file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493937A (en) * 2009-02-27 2009-07-29 西北工业大学 Method for detecting content reliability of digital picture by utilizing gradient local entropy
CN101764935A (en) * 2008-11-04 2010-06-30 新奥特(北京)视频技术有限公司 Form gradient radial color filling method based on pixel space mask matrix
US20120256944A1 (en) * 2011-04-11 2012-10-11 Apple Inc. Handwriting Capture Techniques

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764935A (en) * 2008-11-04 2010-06-30 新奥特(北京)视频技术有限公司 Form gradient radial color filling method based on pixel space mask matrix
CN101493937A (en) * 2009-02-27 2009-07-29 西北工业大学 Method for detecting content reliability of digital picture by utilizing gradient local entropy
US20120256944A1 (en) * 2011-04-11 2012-10-11 Apple Inc. Handwriting Capture Techniques

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘松等: "中国书画文物数字修复模拟笔型系统的研究", 《云南大学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106599818A (en) * 2016-12-07 2017-04-26 广州视源电子科技股份有限公司 Method and apparatus for generating handwriting-format document based on picture
CN106599818B (en) * 2016-12-07 2020-10-27 广州视源电子科技股份有限公司 Method and device for generating handwriting format file based on picture
CN108986036A (en) * 2017-06-01 2018-12-11 中兴通讯股份有限公司 Handle method, the terminal of file

Also Published As

Publication number Publication date
CN103544722B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN103093437B (en) Generate the method and device of pencil drawing style image
CN109324749A (en) Drawing practice, device, storage medium and electronic equipment
JP6708981B2 (en) Individual identifier extraction device
CN103559008B (en) The display packing of a kind of digital book paintbrush mark and device
CN103325117A (en) Rock core picture processing method and system based on MATLAB
CN104268924A (en) Method for extracting stele inscription digital rubbing based on three-dimensional data scanning
CN105096358A (en) Line enhanced simulation method for pyrography artistic effect
CN103544722A (en) Method and device for handwriting decoration of digital painting and chirography
CN108427932A (en) The recognition methods of fingerprint image and device
CN106547377A (en) A kind of stroke display output method and device of writing system
CN105808035A (en) Icon display method and apparatus
CN201698347U (en) Electronic pen and host machine
CN116137915A (en) Cross-device drawing system
CN104714743B (en) A kind of soft implementation method and device based on touch screen
CN110472600A (en) The identification of eyeground figure and its training method, device, equipment and storage medium
CN109445623A (en) A kind of system and method for drawing a picture based on touch screen and mechanical arm
CN101393696A (en) Simulating electronic drawing board
CN103093417A (en) Method and device for generating watercolor style image
CN204808201U (en) Gesture recognition control system based on vision
CN103218074B (en) Method and the intelligent terminal of touch screen stroke structure is realized at intelligent terminal
CN105654525B (en) Reflect the 2D model building methods of true core connectivity
CN105787873A (en) Map difference extraction method, device and terminal
CN102193194B (en) Distance computing device and lens correction system and method using same
CN107901693A (en) A kind of interactive drawing method and device based on sound MFCC features
Gao et al. PencilArt: a chromatic penciling style generation framework

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
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

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

Patentee 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

Patentee before: Inlife-handnet Co., Ltd.