In electronic calendar, add the method for reminder events
Technical field
The invention belongs to electronic information technical field, relate to a kind of method of adding reminder events, relate in particular to a kind of method of in electronic calendar, adding reminder events in conjunction with optical character recognition automatically.
Background technology
Camera is extensive use of in mobile phone and microcomputer at present, utilize Flame Image Process and optical character identification (OCR, Optical Character Recognition) principle, the image that camera is taken or scanner scanning obtains is handled and discerned, the technology of obtaining the literal in the image also is used widely, typical in take the image of business card with the camera that carries in the mobile phone, the literal that identifies wherein by Flame Image Process and OCR technology comes, and extracting the name that wherein comprises, useful informations such as phone join in the address book and go.
Utilizing Flame Image Process and optical character recognition to take the identification literal generally can be wrong, image to scanning, because the very clear wrong meeting of image is fewer, and the image that camera is taken, because ambient light, focusing during shooting, the existence of problems such as shake can cause the quality of image to descend inevitably, and then cause in the literal that OCR identifies in the wrong literal that can come out than the image OCR of scanning mistake to how a lot.And from the ultimate principle of optical character technology, to similar, the similar image of shooting quality in other words, the quantity of the kinds of characters that need distinguish is many more, the mistake possibility is big more, such as, on same image, if only need identification " 0 " arrive " 9 " 10 numerical characters, its accuracy rate can be higher than needs identification and comprise that " 0 " arrive the accuracy rate that 26 English characters that " 9 " 10 numerical characters and " A " arrive " Z " have 36 characters altogether.That is to say that if we know the type of the literal that need discern with the OCR technology in advance, just can utilize this information to limit needs the character number of OCR identification, thereby improves the accuracy rate of identification, reduces the possibility of makeing mistakes.Such as, if we know that in advance what need identification is exactly telephone number, so we just only identification can the legal character that appears in the telephone number when using the OCR technology to discern, thereby improve the accuracy rate of discerning.Another aspect because can there be mistake in the literal that the OCR technology identifies inevitably, so generally all can utilize other information that the result who discerns is carried out aftertreatment, plays the effect that corrects a mistake.Utilize english dictionary to proofread and correct the result of English OCR identification in this aspect method commonly used comprises, utilize the higher word of the frequency of occurrences in the Chinese, and utilize the context relation of Chinese to proofread and correct the result that Chinese character OCR discerns.If know the type of the literal that need discern with the OCR technology in advance, can improve accuracy rate equally to the aftertreatment of recognition result, such as, if we know that in advance needing delegation's literal of identification is email or network address, just can be according to the composition rule of email or network address, common character string waits the result to OCR identification to proofread and correct as " .com ", thereby improve the accuracy rate of identification, if we know that in advance needing delegation's literal of identification is the address, the accuracy rate that can improve identification according to the high frequency word in the address and context relation just.
Mobile phone, generally all have calendar on the various electronic equipments such as microcomputer, people write down some things that will go the appointment of fulfiling or plan to do therein, when the reminder time of setting had arrived, electronic calendar can remind owner to have done something with the various forms that comprises sound.The at present known method of adding a reminder events in electronic calendar has two kinds, a kind of people of being open electronic calendar software, go up target date therein and add a new reminder events, import the related content of this reminder events and go into theme, address or the like, set the time of a prompting, so just added well.Another kind method is the reminder events that others sends over by Email to be added to automatically go to set up new reminder events in the calendar, the function as the outlook of Microsoft just has.
People in daily life through regular meeting see be printed on the paper inform need be in the specific date, may also indicate the particular event that particular event is handled, as posting the bill of the charges for water and electricity of coming in every month, indicated last pay period above, as notice letter that school is sent out, notify which date some somewhere have a parents meeting; As the advertisement of on advertising page, seeing, certain market special price sales promotion of certain day; And for example buy show ticket and need in the time of certain of certain day, go to see performance.For these incidents do not pass out of mind, all need on electronic calendar, set up reminder events and in time remind the user.Present method is to open electronic calendar, finds the specific date in electronic calendar, sets up reminder events on this date then.This way troublesome poeration concerning the user, inconvenience.
Summary of the invention
Technical matters to be solved by this invention is: a kind of method of adding reminder events in electronic calendar is provided, can improves people add reminder events in electronic calendar convenience.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of method of adding reminder events in electronic calendar is characterized in that described method comprises the steps:
Step 101 is obtained image;
Step 102, the user specifies the specific region in the image that step 101 is obtained;
Step 103, the literal in the identification step 102 in the specific region of appointment;
Whether step 104 comprises date and time information in the literal that determining step 103 is identified; If comprise, then forward step 105 to, otherwise forward step 106 to;
Step 105 is opened electronic calendar software, a newly-built reminder events in the corresponding date of identifying;
Step 106 finishes.
As a preferred embodiment of the present invention, in the described step 101, take or scanner scanning is obtained image by image unit, perhaps duplicate to obtain by memory carrier; Perhaps need not to take, only obtain preview image by image unit;
In the described step 102, the specific region comprises the Zone Full of image itself in user's specify image, perhaps comprises the part of the image that the user selectes;
In the described step 103, analyze and discern the literal in the specified image-region, search the literal in the image-region, and utilize the OCR technology to discern.
As a preferred embodiment of the present invention, in the described step 102, the specific region comprises the Zone Full of image itself in user's specify image, perhaps comprises the rectangular area that belongs to an image part that the user limits with a rectangle frame.
As a preferred embodiment of the present invention, the concrete steps of described step 104 are as follows:
Step 201 is checked the substring that whether can find the expression date in the literal that is identified; If answer then forwards step 202 to for being, otherwise forwards step 204 to;
Step 202 judges that the date of being found is in a scope that sets in advance; If answer then forwards step 203 to for being, otherwise forwards step 204 to;
Step 203 is returned answer for being, and is returned the date of being found;
Step 204 is returned answer for denying.
As a preferred embodiment of the present invention, in the described step 201, check that the method for the substring that whether can find the expression date is:
At first represent that at the common date mode sets up the masterplate of coupling;
To the character string that is identified, check wherein whether certain substring is complementary with certain masterplate of representing the mode on date; If coupling is returned answer for being; Otherwise return answer for denying.
As a preferred embodiment of the present invention, in the described step 105, the content of newly-built reminder events is all or part of literal of identification in the step 103, perhaps is the manually literal of input of user;
Perhaps, the content of newly-built reminder events comprises: the user is specific region, the literal that then obtains through this specific region of identification whole of specify image for the second time, or by user's selection part wherein;
Perhaps, the content of newly-built reminder events comprises: the image that step 101 is obtained, the perhaps specific region of the image of step 102 appointment; And the specific region of this image or image shown reminding on the interface.
As a preferred embodiment of the present invention, in the described step 105, the reminder time of newly-built reminder events is selected by the user, is perhaps specified by system default according to the time kind of identification.
A kind of method of adding reminder events in electronic calendar, described method comprises the steps:
Step 301 is obtained image;
Step 302, the specific region in user's specify image;
The literal in the specified image specific region is analyzed and discerned to step 303;
Step 304 judges in the literal that is identified whether comprise date and time information; If comprise, then forward step 305 to; Otherwise forward step 308 to;
Step 305 comprises the date in the literal that the prompting User Recognition is come out, and selects whether to open electronic calendar by the user; If answer then forwards step 306 to for being, otherwise forwards step 308 to;
Step 306, the known literal that needs to discern is the date, and the literal in the described specify image specific region is discerned again;
Step 307 is opened electronic calendar software, in a newly-built reminder events of described date;
Step 308 finishes.
As a preferred embodiment of the present invention, in the described step 301, take or scanner scanning is obtained image by image unit, perhaps duplicate to obtain by memory carrier; Perhaps need not to take, only obtain preview image by image unit;
In the described step 302, the specific region comprises the Zone Full of image itself in user's specify image, perhaps comprises the rectangular area that belongs to an image part that the user limits with a rectangle frame;
In the described step 303, analyze and discern the literal in the specified image-region, search the literal in the image-region, and utilize the OCR technology to discern.
As a preferred embodiment of the present invention, the concrete steps of described step 304 are as follows:
Step 401 is checked the substring that whether can find the expression date in the literal that is identified; If answer then forwards step 402 to for being, otherwise forwards step 404 to;
Step 402 judges that the date of being found is in a scope that sets in advance; If answer then forwards step 403 to for being, otherwise forwards step 404 to;
Step 403 is returned answer for being, and is returned the date of being found;
Step 404 is returned answer for denying.
As a preferred embodiment of the present invention, in the described step 401, check that the method for the substring that whether can find the expression date is:
At first represent that at the common date mode sets up the masterplate of coupling;
To the character string that is identified, check wherein whether certain substring is complementary with certain masterplate of representing the mode on date; If coupling is returned answer for being; Otherwise return answer for denying.
As a preferred embodiment of the present invention, in the described step 307, the content of newly-built reminder events is all or part of literal of identification in the step 303, perhaps is the manually literal of input of user;
Perhaps, the content of newly-built reminder events comprises: the user is specific region, the literal that then obtains through this specific region of identification whole of specify image for the second time, or by user's selection part wherein;
Perhaps, the content of newly-built reminder events comprises: the image that step 301 is obtained, the perhaps specific region of the image of step 302 appointment; And the specific region of this image or image shown reminding on the interface.
As a preferred embodiment of the present invention, in the described step 307, the reminder time of newly-built reminder events is selected by the user, is perhaps specified by system default according to the time kind of identification.
To achieve these goals, the present invention adopts following technical scheme: need an electronic calendar, can set up reminder events therein, can remind the user need pay close attention to certain incident with the time in the multiple mode that comprises sound on a specified date.
Beneficial effect of the present invention is: what the present invention proposed adds the method for reminder events automatically in conjunction with optical character recognition in electronic calendar, automatically discern the literal of appointed area in the picture, automatically judge then whether date and time information is arranged in the literal, if have then open electronic calendar automatically, the described date and time in electronic calendar adds reminder events automatically.This method makes the user to be printed on date on the various materials by shooting, comes that this date in electronic calendar is added a reminder events automatically; Improve people and in electronic calendar, added the convenience of reminder events.
Description of drawings
Fig. 1 adds the process flow diagram of reminder events method for the present invention among the embodiment one.
Whether Fig. 2 is for comprising the process flow diagram of date and time information in the literal that judgement identified.
Fig. 3 adds the process flow diagram of reminder events method for the present invention among the embodiment two.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
See also Fig. 1, the present invention has disclosed a kind of method of adding reminder events in conjunction with optical character recognition automatically in electronic calendar; Specifically comprise the steps:
[step 101] obtains image.
Wherein, take or scanner scanning is obtained image, perhaps duplicate to obtain by memory carrier by image unit.Perhaps need not to take, only obtain preview image by image unit; Can reduce the storage space of electronic equipment like this.
Specific region in [step 102] user specify image.
Wherein, the specific region comprises the Zone Full of image itself in user's specify image; Perhaps comprise the rectangular area that belongs to an image part that the user limits with a rectangle frame, the mode of user's selection portion partial image can be other modes certainly, is not limited to pass through rectangle frame.
The literal in the specified image-region is analyzed and discerned to [step 103].
Analyze and discern the literal in the specified image-region, search the literal in the image-region, and utilize the OCR technology to discern, this belongs to prior art.
[step 104] judged: whether comprise date and time information in the literal that is identified.If answer is for being then to forward step 105 to.Otherwise forward step 106 to, finish.
Judge whether comprise date and time information in the literal identified method as shown in Figure 2, concrete steps are as follows:
Step 201 is checked the substring that whether can find the expression date in the literal that is identified.If answer then forwards step 202 to for being, return answer for denying otherwise forward step 204 to.
Step 202, whether judge the date found a scope the inside that sets in advance, for example, be in the back of current this day 1 year with the interior date, if answer is for being, then forward step 203 to and return answer for being, return answer for not otherwise forward step 204 to.
Step 203 is returned answer for being, and is returned the date of being found
Step 204 is returned answer for denying.
In the described step 201, whether described inspection can find the substring on expression date, and method is:
At first represent that at the common date mode sets up the masterplate of coupling, for example,
" 2010-10-18 " is a kind of mode of representing the date,
" on October 18th, 2010 " is the mode on another kind of expression date.
To the character string that is identified, check wherein whether certain substring is complementary with certain masterplate of representing the mode on date.Such as to " 2010-11-26 " this character string, we are checked through continuous four numerals with " 20 " beginning, the back is "-" symbol and then, there is and then value one or two numeral between 1 to 12 back, the back is followed "-" symbol again, the back and then is worth one or two numeral between 1 to 31 again, just can determine this string representation a date, and this date is November 26 in 2010.
[step 105] opens electronic calendar software, in a newly-built reminder events of described date.
The content of newly-built reminder events is the whole literal or the segment word (be shown to the user as the literal after will discerning, edited by the user) of identification in the step 103, perhaps is the manually literal of input of user.
Perhaps, the content of newly-built reminder events comprises: the user is specific region, the literal that then obtains through this specific region of identification whole of specify image for the second time, or by user's selection part wherein.
Perhaps, the content of newly-built reminder events comprises: the image that step 101 is obtained, the perhaps specific region of the image of step 102 appointment; And the specific region of this image or image shown reminding on the interface.
In addition, the reminder time of newly-built reminder events is selected by the user, is perhaps specified by system default according to the time kind of identification.
For example, if the time of identifying is the date, can carries the previous day (can certainly be other setting-up times) and remind the user, perhaps certain time alarm user in the morning on this same day on date.If the time is concrete time point, can carry the previous day at this time point, perhaps set a hour prompting user in advance.System can an at first given acquiescence reminder time in advance (can specify by the user is unified, can revise).
[step 106] finishes.
In sum, what the present invention proposed adds the method for reminder events automatically in conjunction with optical character recognition in electronic calendar, automatically discern the literal of appointed area in the picture, automatically judge then whether date and time information is arranged in the literal, if have then open electronic calendar automatically, the described date and time in electronic calendar adds reminder events automatically.This method makes the user to be printed on date on the various materials by shooting, comes that this date in electronic calendar is added a reminder events automatically; Improve people and in electronic calendar, added the convenience of reminder events.
Embodiment two
In order to improve the accuracy rate of identification, another kind of implementation of the present invention be by user interactions come to known be that the character string on date is discerned again, see Fig. 3, concrete steps are as follows:
[step 301] obtains image.
Specific region in [step 302] user specify image.
The literal in the specified image-region is analyzed and discerned to [step 303].
Do [step 304] judged: comprise date and time information in the literal that is identified? if answer is for being then to forward step 305 to.Otherwise forward step 308 to, finish.
Comprise the date in the literal that [step 305] prompting User Recognition is come out, select to open electronic calendar by the user? if answer then forwards step 306 to for being, otherwise forwards step 308 to, finish.
[step 306] known literal that needs to discern is the date, and the literal in the described specify image zone is discerned again.
[step 307] opens electronic calendar software, in a newly-built reminder events of described date.
[step 308] finishes.
The scheme that the specific implementation of above-mentioned steps is described in can reference example one.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change are possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that under the situation that does not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.Under the situation that does not break away from the scope of the invention and spirit, can carry out other distortion and change here to disclosed embodiment.