Summary of the invention
The technical problem underlying that the present invention will solve is; A kind of instant communicating method based on hand-written former person's handwriting, communication terminal and system are provided; Before the user plane that is presented on recipient's communication terminal that the hand-written former person's handwriting message that assurance transmit leg communication terminal sends can be instant, dynamic, complete, bring the user plane opposite and write the same experience of interchange.
For solving the problems of the technologies described above, the present invention provides a kind of instant communicating method based on hand-written former person's handwriting, comprising:
When carrying out instant messaging based on the transmit leg communication terminal of hand-written former person's handwriting and recipient's communication terminal,
The transmit leg communication terminal is sampled to hand-written former person's handwriting according to the sample frequency that is provided with and is obtained a groups of samples, obtains the handwriting characteristic of each sampled point in the said groups of samples, and obtains characterizing the information of the sampling time relation of each sampled point in the said groups of samples;
The transmit leg communication terminal sends to recipient's communication terminal with the handwriting characteristic of each sampled point in the said groups of samples and the information that characterizes the sampling time relation of each sampled point in the said groups of samples immediately;
Recipient's communication terminal is according to the information of the sampling time relation that characterizes each sampled point in the said groups of samples; Extract the handwriting characteristic of each sampled point in the said groups of samples successively and carry out corresponding demonstration, thereby demonstrate corresponding stroke according to the sampling time relation of each sampled point in the said groups of samples.
In an embodiment of the present invention, the information of the sampling time of each sampled point relation is said sample frequency in the said groups of samples of said sign, or the absolute sampling time of each sampled point or relative sampling time.
In an embodiment of the present invention, said groups of samples comprises from one and starting writing a little to all sampled points of lifting the stroke that the pen point write.
In an embodiment of the present invention, the process of confirming a groups of samples is called takes turns sampling, said groups of samples comprises since one takes turns sampling all sampled points in preset this section of time threshold time period.
In an embodiment of the present invention, the process of confirming a groups of samples is called takes turns sampling, and to the sampling time be provided with the minimum time threshold value and maximum time threshold value;
One take turns sampling beginning after; If a point does not appear lifting in the sampling time when arriving the minimum time threshold value; And during sampling time arrival maximum time threshold value, do not occur lifting a point yet, then said groups of samples comprises confirms that sampling begins to all interior during this period of time sampled points of maximum time threshold value;
One take turns sampling beginning after, if the sampling time arrives the minimum time threshold value, and a point appears lifting during no show maximum time threshold value, then said groups of samples comprises confirms that sampling begins to lifting pen all sampled points in pointing out between now during this period of time;
One take turns sampling beginning after; If occur lifting a some during sampling time no show minimum time threshold value; And when arriving the minimum time threshold value, do not occur starting writing a little, then said groups of samples comprises confirms that sampling begins to all interior during this period of time sampled points of minimum time threshold value.
In an embodiment of the present invention, the handwriting characteristic of each sampled point of said groups of samples comprises the coordinate and the force value of sampled point.
In an embodiment of the present invention; The transmit leg communication terminal sends the attribute data bag of said groups of samples and gives said recipient's communication terminal, and said attribute data bag comprises: the vigour of style in writing type of the Show Color of sampled point, demonstration and wide with the corresponding pen of the force value of said sampled point.
In an embodiment of the present invention; After said recipient's communication terminal receives the handwriting characteristic of each sampled point in the said groups of samples and characterizes the information of sampling time relation of each sampled point in this groups of samples; Judge whether the display position of corresponding stroke on local display interface that said groups of samples characterizes conflicts with the stroke position that this locality has existed; In this way, then recipient's communication terminal is adjusted the display position of the corresponding stroke that said groups of samples characterizes.
The present invention also provides a kind of communication terminal based on hand-written former person's handwriting, comprising:
Hand-written former person's handwriting module is used to write and shows hand-written former person's handwriting;
Sampling module, being used for according to the sample frequency that is provided with hand-written former person's handwriting being sampled obtains a groups of samples, and obtains the handwriting characteristic of each sampled point in the said groups of samples and the information of the sampling time relation that characterizes each sampled point in the said groups of samples;
Sending module is used for instant handwriting characteristic and the information that characterizes the sampling time relation of each sampled point in the said groups of samples with each sampled point in the said groups of samples and sends to recipient's communication terminal;
Processing module; Be used to receive the instant groups of samples of sending of transmit leg communication terminal; And the information of the sampling time relation of each sampled point in the groups of samples that receives according to sign; Extract the handwriting characteristic of each sampled point in the said groups of samples that receives successively and carry out corresponding demonstration, thereby demonstrate corresponding stroke through said hand-written former person's handwriting module according to the sampling time relation of each sampled point in the said groups of samples that receives.
The present invention also provides a kind of instantaneous communication system based on hand-written former person's handwriting; Comprise transmit leg communication terminal and recipient's communication terminal, said transmit leg communication terminal and recipient's communication terminal are realized the instant messaging based on hand-written former person's handwriting through aforesaid method.
The invention has the beneficial effects as follows: what the transmit leg communication terminal among the present invention sent to recipient's communication terminal is the handwriting characteristic of each sampled point in the groups of samples and the information of the sampling time relation that characterizes each sampled point in this groups of samples; And be not picture; The data volume of sending is little, and the resource that takies is few; After the information that the handwriting characteristic of receiving interior each sampled point of groups of samples that the transmit leg communication terminal sends that recipient's communication terminal is instant and the sampling time that characterizes each sampled point concern; The handwriting characteristic that extracts each sampled point in this groups of samples according to the information of the sampling time relation that characterizes each sampled point successively restores demonstration accordingly to each sampled point; What therefore the writing process of a stroke of transmit leg communication terminal can be complete, instant reappears at recipient's communication terminal; Be that the transmit leg communication terminal is write a stroke here; Recipient's communication terminal is basic here just to receive and reappear the writing process of this stroke at once, has improved user's experience greatly.
Further, the division of the groups of samples among the present invention can be divided according to actual conditions flexibly, as to can be the sampled point of confirming a stroke be a groups of samples; The sampled point that also can be in the Preset Time section is a groups of samples; Sampled point in this time period possibly confirmed a stroke or several stroke, perhaps several literal or passage, even possibly just confirm the part of a stroke; Therefore instant communicating method provided by the invention is not must wait a word or one section message to write after the completion just packing together to send; Can further reduce the each data volume of sending and the occupancy of resource, improve the instantaneity of communication, applicability is wider.
Embodiment
Big to existing image data amount of sending based on the instant messaging of hand-written former person's handwriting, the resource that takies is many, and the time of delay of transmitting, showing is longer; Especially under the less situation of bandwidth,, do not reach and write the problems such as purpose that former person's handwriting exchanges immediately even the pictorial information of transmission can not in time transmit complete and cause and can not show; The invention provides a kind of new instant communicating method based on hand-written former person's handwriting; The transmit leg communication terminal obtains the information of the sampling time relation of each sampled point handwriting characteristic of groups of samples and each sampled point that characterizes this groups of samples, and sends to recipient's communication terminal immediately, and the transmit leg communication terminal is not the data of sending picture format; The data volume of therefore sending is little; The resource that takies is few, receives the influence of bandwidth little, and applicability is wider.Because the transmit leg communication terminal is to be that unit sends and recipient's communication terminal restores the corresponding sampled point of demonstration successively according to the sampling time relation of each sampled point with the groups of samples; The user of recipient's communication terminal can see transmit leg communication terminal user's writing process; In the instantaneity that has improved communication, also improved user's experience.
Combine accompanying drawing that the present invention is done further explain through embodiment below.
Transmit leg communication terminal in this example and recipient's communication terminal can be mobile phone, computer, the hand-written panel computers that has handwriting functions, or external or be integrated with other communication apparatus of hand input device.
Starting writing a little to lifting the stroke that the pen point is write from one when the stroke in this example is meant user writing, is not the proper standard stroke that Chinese character is split into single stroke.For example; When the user is not write the two or more syllables of a word together according to writing of Chinese character one-stroke stroke; This moment, the stroke in this example was equal to the standard one stroke, and when user's write the two or more syllables of a word together, the user maybe one writes several standard one stroke even one and write a word; Then these several standard one stroke or this word are a stroke in this example, one start writing a little and one lift pen point and determine a stroke.
In this example, transmit leg communication terminal and recipient's communication terminal can be unidirectional, promptly can only be that the transmit leg communication terminal sends message, and recipient's communication terminal just receive message; Also can be two-way; Be that the transmit leg communication terminal is recipient's communication terminal when receiving the other side's message; Accordingly; Be transmit leg communication terminal at the recipient's communication terminal that sends message this moment, and promptly transmit leg communication terminal and recipient's communication terminal all have the function of reception, the hand-written former person's handwriting message of transmission.For example, communication terminal A is sending message a to communication terminal B, and communication terminal B is sending message b to communication terminal A simultaneously; At this moment; Communication terminal A is receiving message b, and communication terminal A is recipient's communication terminal with respect to message b, and communication terminal B is the transmit leg communication terminal with respect to message b; Same, this is engraved in reception message a communication terminal B, and then communication terminal B is recipient's communication terminal with respect to message a, and communication terminal A is the transmit leg communication terminal with respect to message a.Transmit leg communication terminal and recipient's communication terminal in this example are two-way.
The sample frequency of transmit leg communication terminal and recipient's communication terminal can be arranged to the same sampling time interval in this example; Also can be arranged to different sampling time intervals; It perhaps is the sampling time interval of transmit leg communication terminal and recipient's communication terminal self acquiescence; If wherein a side need not send message and receive only message, then the communication terminal of this end just need not be provided with sample frequency.Concrete sample frequency can be selected to be provided with according to actual conditions.
See also Fig. 1, when carrying out instant messaging, may further comprise the steps in this example based on two side communication terminals of hand-written former person's handwriting:
The transmit leg communication terminal is sampled to hand-written former person's handwriting according to the sample frequency that is provided with and is obtained a groups of samples; Obtain the handwriting characteristic of each sampled point in this groups of samples and the information of the sampling time relation that characterizes each sampled point in this groups of samples, and the handwriting characteristic of each sampled point in this groups of samples and the information that characterizes the sampling time relation of each sampled point in this groups of samples are sent to recipient's communication terminal;
Recipient's communication terminal is according to the information of the sampling time relation of each sampled point in this groups of samples of sign that receives; Extract the handwriting characteristic of each sampled point in this groups of samples successively and carry out corresponding demonstration, thereby demonstrate corresponding hand-written former person's handwriting according to the sampling time relation of each sampled point in this groups of samples.
In this example, the information that characterizes the sampling time relation of each sampled point in the groups of samples can be that (be equivalent to the sampling time interval between adjacent two sampled points, this moment, system sent according to the sequencing packing of each sampled point sampling the sample frequency of transmit leg communication terminal; And when decompress(ion) shows the time difference according to neighbouring sample point demonstrate each sampled point successively); Also can be the absolute time or the relative time of transmit leg communication terminal, the absolute time in this example be meant the system time of transmit leg communication terminal when this stroke is sampled, and relative time is meant that with first sampled point be the defined time of starting point; For example; Sample frequency is set to sampling in a second successively, and the time of establishing first sampled point is 0 second, and then the time of second sampled point is 1 second; The time of the 3rd sampled point is 2 seconds, by that analogy.Recipient's communication terminal receives just can learn that each sampled point is at the sampling order of transmit leg communication terminal and each sampled point DISPLAY ORDER in this locality after the information of the sampling time relation that characterizes each sampled point in this groups of samples.
Groups of samples that it should be noted that the hand-written former person's handwriting in this example has multiple dividing mode according to actual conditions, is that example is done further explanation to the present invention with preferred several kinds of modes below:
Mode one: all sampled points of confirming a stroke are a groups of samples, and promptly a groups of samples is confirmed a stroke, above existing the offering some clarification on of the stroke in this example.This moment, the transmit leg communication terminal then was to be that unit sends hand-written former person's handwriting to recipient's communication terminal with the stroke, and it also is that sampling time relation according to each sampled point in this groups of samples demonstrates corresponding stroke successively that recipient's communication terminal receives after the groups of samples.So the stroke that recipient's communication terminal receives is complete, the enforcement means are simple.But in particular cases at some; The transmit leg communication terminal is write a stroke time spent and is grown (like several word write the two or more syllables of a word together); Then in transmit leg communication terminal writing process in this time period; Recipient's communication terminal then can only be selected to wait for that transmit leg communication terminal and recipient's communication terminal during this period of time do not have information interchange, has postponed the instantaneity of communication to a certain extent.Because instantaneity of the presently claimed invention is meant the transmit leg communication terminal and writes a stroke here, recipient's communication terminal just can reappear this stroke basically at once, and the middle latency delays time is more little good more.
Mode two: in order to prevent the generation of special circumstances in the aforesaid way one; In the hand-written process of transmit leg communication terminal; Can realize also, for example can set per 1 second and send once that promptly a groups of samples is 1 second an interior point of being sampled of sampling time through setting the transmission frequency of sending groups of samples.The concrete realization as follows: can process that confirm a groups of samples be called and take turns sampling; Taking turns the sampled point that arrives in preset this section of time threshold time period of sampling since one is a groups of samples; Accordingly; Time threshold in this example can be 1 second, and taking turns the sampled point that when the sampling time is 1 second, obtains of sampling since one is a groups of samples, sends it to recipient's communication terminal and carries out instant demonstration.
The difference that sampled point in the groups of samples in the mode two is provided with according to time threshold; Can confirm a stroke or several stroke; Even can confirm several literal or passage (situation that time threshold is bigger); Therefore its flexibility is better, can specifically select setting with sample frequency according to user's writing speed, and the problem that also not possibly exist in the existing way one.But in some cases; At a fixed time in the threshold value; If the determined stroke of each sampled point of groups of samples is not a complete stroke; Or be not to be complete stroke entirely, receiving terminal receives the also complete stroke of right and wrong of the stroke demonstrate so, if in the process of transmitting of groups of samples, make mistakes (like packet loss, out of order etc.) this moment slightly; Just possibly cause follow-up sampled point can not then go up a sampled point and show or can not show successively according to the order of sequence, for follow-up processing and demonstration, identification are made troubles.
Mode three: for the problem of avoiding simultaneously existing under special circumstances in mode one and the mode two; Improve the stability and the reliability of instant messaging; Also can maximum time threshold value and minimum time threshold value be set to the sampling time; Can process that confirm a groups of samples be called equally and take turns sampling, this moment, the dividing mode of groups of samples was following:
One take turns sampling beginning after; If a point does not appear lifting in the sampling time when arriving the minimum time threshold value; And during sampling time arrival maximum time threshold value, do not occur lifting a point yet, confirm that then it is a groups of samples that sampling begins to the interior during this period of time sampled point of maximum time threshold value;
One take turns sampling beginning after, if the sampling time arrives the minimum time threshold value, and a point appears lifting during no show maximum time threshold value, confirm that then sampling begins to point out to lifting pen that the sampled point of this section in the sampling time is a groups of samples between now;
One take turns sampling beginning after, if a point occurs lifting during sampling time no show minimum time threshold value, and when arriving the minimum time threshold value, do not occur starting writing a little, confirm that then it is a groups of samples that sampling begins to the sampled point of this section of minimum time threshold value in the sampling time.
For example, the minimum time threshold value in this example can be made as 0.5 second, maximum time threshold value can be made as 3 seconds; Then take turns in the sampling process, lift a point, then continue in the time of 0.5 second to detect for arriving minimum threshold whether new starting writing is a little arranged in the sampling time if in less than 0.5 second time period, just detect one; If do not have; Confirm that then it is a groups of samples that sampling begins to the sampled point of 0.5 second this section of minimum time threshold value in the sampling time, continue new next round sampling, avoided the wait of follow-up long period; If have, then continue timing, sampling, if sampling time no show 3 seconds but occurred lifting a point when having surpassed 0.5 second, then this takes turns sampling and finishes, the sampled point in this sampling time section is a groups of samples, continues new next round and samples; When not occurring lifting the pen point yet if the sampling time has arrived 3 seconds, then to begin the sampled point in 3 seconds be one group of sampled point in wheel sampling from then on, proceeds the sampling of a new round then.After the sample frequency of general writing speed and communication terminal according to the user is provided with; A situation of point does not all appear lifting when sampling begins to max-thresholds seldom; Basically do not have; Therefore the definite stroke of each sampled point of groups of samples all is complete stroke at this moment, receives network quality affects little, and instantaneity and versatility are better.This routine selection mode three is divided groups of samples.
The handwriting characteristic of interior each sampled point of groups of samples comprises coordinate, the force value of sampled point in this example.After recipient's communication terminal receives the handwriting characteristic of each sampled point in the groups of samples, this groups of samples is shown according to the handwriting characteristic of each sampled point time relationship by each sampled point.Specific as follows: the display position that can obtain each sampled point according to the coordinate of each sampled point; Can obtaining the show pen of this sampled point according to the force value of each sampled point, wide (it is wide also can each force value all to be set at a unique pen; The literal that obtain this moment just has only a pen wide; Can not show the vigour of style in writing), know the DISPLAY ORDER of corresponding sampled point according to sampling time of each sampled point relation.
Therefore; In this example the transmit leg communication terminal can groups of samples be unit instant send message to recipient's communication terminal; And by on can know that the data volume of information of sampling time relation of handwriting characteristic and each sampled point that characterizes this groups of samples of each sampled point of groups of samples is little more a lot of than the quantity of picture format; Therefore the resource that takies is few, and less to bandwidth requirement, applicable scope is wider.After recipient's communication terminal receives the information of sampling time relation of the handwriting characteristic of each sampled point in the groups of samples that the transmit leg communication terminal sends and each sampled point that characterizes this groups of samples; Extract the handwriting characteristic of each sampled point successively according to the information of the sampling time relation of each sampled point that characterizes this groups of samples; And close by the sampling time of each sampled point of this groups of samples and to tie up to corresponding position and restore corresponding sampled point successively; Thereby demonstrate corresponding hand-written former person's handwriting; Therefore the user of recipient's communication terminal can see the writing process of a stroke of user of transmit leg communication terminal; The user of recipient's communication terminal also can reply in transmit leg communication terminal user writing immediately; Bring the experience that the user writes interchange face to face immediately, let the user at intercommunication terminal can both really experience the writing process of hand-written former person's handwriting, increased cordial feeling.
For showing, the literal that makes user writing has the same effect of literal of writing on the conventional paper; Experience with further raising user; The handwriting characteristic of each sampled point also comprises the vigour of style in writing type of demonstration and wide with the corresponding pen of the force value of sampled point in this example; Force value can pre-set with the wide corresponding relationship of pen, and pen is wide also can to pre-set with corresponding relation vigour of style in writing type.The type of the vigour of style in writing can poise and be pen, writing brush etc., the display mode of the no vigour of style in writing effect that also can be set to give tacit consent to, the wide unification value that is set to of the pen of each sampled point at this moment.For example; Recipient's communication terminal can select to be made as the writing brush type; The corresponding pen of then corresponding force value is wide be the wide of writing brush type, and the vigour of style in writing effect that shows also is the vigour of style in writing effect of brush writing, and the transmit leg communication terminal can be set to the pen type; The corresponding pen of then corresponding force value is wide be the wide of pen type, the vigour of style in writing effect that the vigour of style in writing effect that shows is also write for pen.
In this example in order further to satisfy user's individual demand; Also can comprise Show Color in the handwriting characteristic of each sampled point; Concrete Show Color also can select be set by user oneself, for example can last or several strokes or sampled point be provided with shown in redly, and the stroke of back or sampled point are set to black etc. and show; Or each adjacent literal or several sections adjacent literal be arranged to various colors, maybe the message of sending all is arranged to the color of a color or system default.
The attribute data bag that sampled point handwriting characteristics such as the Show Color in this example, demonstration vigour of style in writing type and pen are wide also can be used as hand-written former person's handwriting sends to recipient's communication terminal in advance; Or the handwriting characteristic of each sampled point is issued recipient's communication terminal during relation information with the sampling time that characterizes each sampled point in this groups of samples in sending groups of samples; After recipient's communication terminal receives this attribute data bag, can set the Show Color of groups of samples, the vigour of style in writing type of demonstration etc. according to this attribute data bag.If the attribute data bag of hand-written former person's handwriting (like Show Color, demonstration vigour of style in writing type and the wide information of pen) sends to recipient's communication terminal in advance; Then during the handwriting characteristic of transmit leg communication terminal each sampled point in sending groups of samples; Just needn't all send Show Color at every turn, show sampled point handwriting characteristics such as vigour of style in writing type and pen be wide; Thereby further reduce the data volume of sending, accelerate the processing speed of system.
In addition; When adopting hand-written former person's handwriting to carry out the instant messaging interchange; Because transmit leg communication terminal and recipient's communication terminal possibility while are at the same position writing words at communication terminal displays interface; The message that this moment, transmit leg communication terminal and recipient's communication terminal sent simultaneously may overlap at the same position of local display interface when showing, the message that causes sending and receiving does not all see Chu.Therefore; Recipient's communication terminal also can be adjusted the display position of the stroke that each sampled point characterizes in the groups of samples that receives in this example; After recipient's communication terminal receives the handwriting characteristic of each sampled point in the groups of samples and characterizes the information of sampling time relation of each sampled point of this groups of samples; The position of judging the stroke whether each sampled point characterizes in this groups of samples the display position of stroke on local display interface existed with this locality conflict (for example overlapping); In this way; Then recipient's communication terminal is according to the display position of the stroke of each sampled point sign in this groups of samples of actual conditions adjustment; Regulative mode can be on the coordinate of each sampled point unified adding or a bias, makes corresponding stroke on local display interface, not have the position display of stroke, and then the stroke of avoiding receiving and existing stroke overlap etc.
Therefore, the literal that instant communicating method demonstrated based on hand-written former person's handwriting in this example is not only instant, complete, and the sense that do not have to lag behind also can have the submit a written statement to a higher authority vigour of style in writing of the same smoothness of the literal that writes out of traditional paper, has further improved user's experience.In addition; The display position of stroke on local display interface that each sampled point characterizes in the groups of samples that recipient's communication terminal in this example also can receive according to actual conditions adjustment; The message of avoiding transmit leg communication terminal and recipient's communication terminal to send is overlapping, designs humanized.
See also Fig. 2, this example also provides a kind of communication terminal based on hand-written former person's handwriting, comprising:
Hand-written former person's handwriting module is used to write and shows hand-written former person's handwriting;
Sampling module, being used for according to the sample frequency that is provided with hand-written former person's handwriting being sampled obtains a groups of samples, and obtains the handwriting characteristic of each sampled point in this groups of samples and the information of the sampling time relation that characterizes each sampled point in this groups of samples;
Sending module is used for instant handwriting characteristic and the information that characterizes the sampling time relation of each sampled point in this groups of samples with each sampled point in this groups of samples and sends to recipient's communication terminal;
Processing module; Be used to receive the instant groups of samples of sending of transmit leg; And according to the information of sampling time of each sampled point in the groups of samples that receives relation; Extract the handwriting characteristic of each sampled point in the groups of samples that receives successively and carry out corresponding demonstration, thereby demonstrate corresponding hand-written former person's handwriting through hand-written former person's handwriting module reduction according to the sampling time relation of each sampled point in the groups of samples that receives.
Above-mentioned hand-written former person's handwriting module, sampling module, sending module and processing module be concrete carries out among this embodiment shown in Figure 1 idiographic flow based on the instant communicating method of hand-written former person's handwriting.
This example also provides a kind of system based on hand-written former person's handwriting instant messaging; Comprise transmit leg communication terminal and recipient's communication terminal; This transmit leg communication terminal and recipient's communication terminal are the communication terminal based on hand-written former person's handwriting of the invention described above; The concrete idiographic flow of carrying out among this embodiment shown in Figure 1 based on the instant communicating method of hand-written former person's handwriting understandably, also is not limited to this.Wherein, The transmit leg communication terminal can be one or more; Recipient's communication terminal also can be one or more; And transmit leg communication terminal is corresponding a plurality of recipient's communication terminals simultaneously; Or recipient's communication terminal corresponding a plurality of transmit leg communication terminals simultaneously, the transmit leg communication terminal in this example and recipient's communication terminal can be the communication terminals based on hand-written former person's handwriting in this example, transmit leg communication terminal and recipient's communication terminal then can pass through above-mentioned instant communicating method realization based on hand-written former person's handwriting in this example based on the instant messaging of hand-written former person's handwriting.
Above content is to combine concrete execution mode to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations; Therefore,, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded as belonging to protection scope of the present invention for the those of ordinary skill of technical field under the present invention.