Summary of the invention
For defect of the prior art, the invention provides a kind of generation method and device of copybook, the use of saving paper that can be a large amount of, economizes on resources, and people can be made to practise handwriting easily.
First aspect, the invention provides a kind of generation method of copybook, comprising:
Character/word/the statement and shape, color, Background that need to copy are set, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation;
When described style copybook meets user's request, described style copybook being sent to server, to make server according to described style copybook, obtaining the copybook for copying the character/word/statement in described style copybook;
Receive the described copybook that described server sends.
Alternatively, described according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation, comprising:
Described character/word/statement and shape, color, the Background needing imitation, by copybook generating algorithm, generates style copybook.
Alternatively, described described style copybook is sent to server, comprises:
Adopt compression algorithm to compress described style copybook, and the style copybook after compression is sent to server.
Alternatively, described server, according to described style copybook, obtaining the copybook for copying the character/word/statement in described style copybook, comprising:
Described server adopts character contour generating algorithm according to described style copybook, extracts the middle empty graph of the individual character in described style copybook;
According to empty graph in described individual character, obtain described for copying the copybook of the character/word/statement in described style copybook.
Alternatively, described method also comprises:
After the copybook that user presents in terminal is copied, character/word/statement that character/word/statement in the more described copybook of character/word/statement that acquisition user copies and described user copy, obtain the affinity score of character/word/statement that character/word/statement in described copybook and described user copy, and be shown to user;
According to the selection of user, described affinity score is shared in the application program of user's selection.
Alternatively, described method also comprises:
Preserve the character/word/statement of described copybook and/or described imitation.
Second aspect, the invention provides a kind of generating apparatus of copybook, comprising:
Generation unit, for arranging the character/word/statement and shape, color, Background that need to copy, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation;
Transmitting element, for when described style copybook meets user's request, is sent to server by described style copybook, to make server according to described style copybook, obtains the copybook for copying the character/word/statement in described style copybook;
Receiving element, for receiving the described copybook that described server sends.
Alternatively, described generation unit, specifically for:
Described character/word/statement and shape, color, the Background needing imitation, by copybook generating algorithm, generates style copybook.
Alternatively, described transmitting element, specifically for:
Adopt compression algorithm to compress described style copybook, and the style copybook after compression is sent to server.
As shown from the above technical solution, the generation method of copybook of the present invention and device, its method is arrange the character/word/statement and shape, color, Background that need to copy, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation; When described style copybook meets user's request, described style copybook being sent to server, to make server according to described style copybook, obtaining the copybook for copying the character/word/statement in described style copybook; Receive the described copybook that described server sends.Thus, the use of saving paper that can be a large amount of, economizes on resources, and can convenient people practise handwriting.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The schematic flow sheet of the generation method of a kind of copybook that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1, the generation method of the copybook of the present embodiment is as described below.
101, the character/word/statement needing to copy and shape, color, Background are set, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation.
For example, arranging the word needing to copy, can be a word, also can be a statement, the color of word is set, background patterns simultaneously, the shape of word, the shape of word can select the form of a stroke or a combination of strokes special efficacy of pencil, pen, writing brush, is equipped with different colors for each form of a stroke or a combination of strokes special efficacy simultaneously, the optional redness of color, blue, the colors such as purple, the shape of word can select regular script, lishu, the Song typeface, the type of the words such as rapid style of writing, user can carry out combination collocation as required simultaneously.
Selection background patterns that can be autonomous, also can be user be schemed by mobile phone photograph or the picture that imports from photo library the pattern that can provide in use equipment as a setting.
The number of words of the individual character of copybook can be pre-set, the sequential write of copybook can be set simultaneously.
According to the number of the word set, the shape of word, Background, the color of word generates style copybook.
102, when described style copybook meets user's request, described style copybook being sent to server, to make server according to described style copybook, obtaining the copybook for copying the character/word/statement in described style copybook.
For example, when the style copybook arranged meets user's request, then copybook packing is sent to server by equipment, and when user is unsatisfied with the style copybook arranged, user abandons current copybook, from newly arranging satisfied copybook.
Server receives the copybook that device sends, and by character contour generating algorithm, obtains the copybook for copying the character/word/statement in described style copybook.
103, the described copybook that described server sends is received.
It should be understood that in terminal the copybook that the application program/device reception server performing the method sends, for user, copybook is copied.
In the present embodiment, in Fig. 1, the executive agent of each step can be an application program operating on mobile terminal/communication terminal/smart machine/intelligent terminal, also be, in actual applications, a application program can be developed, its each step that operationally can perform in the present embodiment is operated.Certainly, this application program can be an independently application program, also can be a functional module in Another Application program, such as, increase the character imitating function etc. in the present invention in software practised handwriting by certain mobile phone.
Because the operating system in terminal device can be generally the more open interfaces of application program, from system, obtain required information for application program.
The generation method of the copybook of the present embodiment, by arranging the character/word/statement and shape, color, Background that need to copy, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation; When described style copybook meets user's request, described style copybook being sent to server, to make server according to described style copybook, obtaining the copybook for copying the character/word/statement in described style copybook; Receive the described copybook that described server sends.Thus, the use of saving paper that can be a large amount of, economizes on resources, and can convenient people practise handwriting.
Fig. 2 A to Figure 15 is the schematic diagram of the user interface of user operation above-described embodiment, and as shown in Fig. 2 A to Figure 15, the step of user operation is as described below.
First, the shape, color, the Background that need character/word/statement and the word copied are set, as shown in Figure 3 and Figure 4, the "+" button clicking the upper right corner in figure 3 will eject copybook type selection interface, click the copybook that corresponding typonym can create the type.Be that copybook creates the page in Fig. 4, in this page, user can select template type, pinup picture pattern, the form of a stroke or a combination of strokes, form of a stroke or a combination of strokes thickness and form of a stroke or a combination of strokes color, is used for building the personalized copybook of user oneself.
Secondly, the character/word/statement copied as required and shape, color, Background generation style copybook, be the displaying interface of copybook as shown in Figure 2 A and 2 B, be divided into different column, be used for showing dissimilar copybook." Click here and start to write " clicked in the middle of screen enters copybook and writes interface in Figure 5.Fig. 7 is that after entering this interface, system can according to user-selected typesetting type, the word of auto arrangement user writing.In this interface, zone line is for writing region, and the upper left corner is total number of word and current number region of being write, and the upper right corner is individual character state, and being used for distinguishing which position and writing word, does not also write in which position.Bottom is control area, and user can use left and right arrow to carry out the selection of a upper word or next word, and " rewriting " button in the middle of clicking, can rewrite the word of current location.After starting to write, user often writes one, and centre has the interval of about 1s to carry out writing of next record, and when user pauses more than 1s, then current word completes automatically, jumps to next word.To the color of the word be provided with, shape, Background by copybook generating algorithm, generate style copybook.
Again, when described style copybook meets user's request, described style copybook is sent to server.The preview function of the non-equipment in this interface of Fig. 6 clicks " preview " button in figure, and user can observe the overall writing effect of copybook, when user is satisfied to the image of preview time, then and character server of style copybook being gone to bed.Fig. 8 is for after user writing completes, and " completing " button can clicking the upper right corner enters into issues interface, and while entering the measured step page, device can adopt program compaction algorithm, and style copybook is sent to server.Fig. 9 automatically returns to copybook for uploading onto the server successfully and shows interface, and all individual characters user write, Background, design sketch, typesetting type, the information such as the form of a stroke or a combination of strokes, form of a stroke or a combination of strokes width, form of a stroke or a combination of strokes color carry out automatic Compression.After the complete copybook of user writing describes, click the Publish button, compressed package will be uploaded onto the server, and turn back to copybook and show interface after success.
Again, server adopts character contour generating algorithm according to style copybook, extracting the middle empty graph of the individual character in style copybook, according to empty graph in individual character, obtaining the copybook for copying the character/word/statement in style copybook.
Figure 10 is that interface shown by copybook, and user can select according to the interest of oneself copybook wanting imitation, when after certain interested copybook of click, enters into copybook details page boundary face.Figure 11 is after " imitation " button in click figure, will automatically start to download copybook, download successfully, automatically enter copying copybook interface.
Server, after receiving style copybook, by character contour generating algorithm, extracting the middle empty graph of each individual character in style copybook, according to empty graph in individual character, obtaining the copybook for copying.
Again, after user copies according to copybook, character/word/statement relatively in copybook and the character/word/statement of imitation, the affinity score of the character/word/statement in acquisition copybook and the character/word/statement of imitation, and be shown to user, according to the selection of user, affinity score is shared in the application program of user's selection.
Figure 12 is that interface copied in individual character, this interface and when creating copybook to write interface basically identical, different places is just when copying, region of writing can provide the imitation figure of word that user needs to copy, simultaneously after user has copied current word, calculate the score of user's imitation according to algorithm, and be presented on interface.Figure 13 is that copybook completes interface, after whole copying copybook completes, the PTS of this copybook can be uploaded to server, the score being calculated this copybook of user by server defeats how many people, and issue and defeat number percent, to user to encourage, below the interface of Figure 13, have three buttons, be " rewriting " button, " preserve and exit " button, " sharing " button respectively.User clicks " rewriting " button can rewrite current copybook.Click " preserve and exit " button, current practising handwriting can be preserved and record and the copybook details page boundary face returning to this copybook.Click " sharing " button, the design sketch of copybook user can copied is shared in the application program of user's selection, such as micro-letter, circle of friends, QQ space and Sina's microblogging, as shown in figure 14.
Finally, the character/word/statement of described copybook and described imitation is preserved.
Figure 15 records interface for user uses, and after user clicks " preserve and exit " button, turn back to the copybook details page boundary face of current copybook, user also can be presented at the below of copybook to the imitation record of this copybook.
Convenient people can practise copybook by the generation method of the copybook of the present embodiment, great interest be improved to exercise simultaneously, can paper be saved simultaneously, economize on resources.
The structural representation of the generating apparatus of the copybook that Figure 16 provides for one embodiment of the invention, as shown in figure 16, the generating apparatus of the copybook of the present embodiment is as described below.
The generating apparatus of copybook, comprising: generation unit 1601, transmitting element 1602, receiving element.
Generation unit 1601, for arranging the character/word/statement and shape, color, Background that need to copy, according to the described character/word/statement and shape, color, the Background generation style copybook that need imitation.
Transmitting element 1602, for when described style copybook meets user's request, is sent to server by described style copybook, to make server according to described style copybook, obtains the copybook for copying the character/word/statement in described style copybook.
Receiving element 1603, for receiving the described copybook that described server sends.
Generation unit 1601, specifically for: described character/word/statement and shape, color, the Background needing imitation, by copybook generating algorithm, generates style copybook.
Transmitting element 1602, specifically for: adopt compression algorithm to compress described style copybook, and the style copybook after compression is sent to server.
By the generating apparatus of the copybook of the present embodiment, convenient people can practise copybook anywhere or anytime, reduce the demand to paper, economize on resources.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
The above, be only the specific embodiment of the present invention, but; protection scope of the present invention is not limited to this; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses, the change that can expect easily or substitute, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.