Background technology
Business card is a kind of medium of putting down in writing and transmitting contact method that people often use, and in daily commercial activity, tends to relate to a large amount of business card exchange, and people transmit contact method through the mode of business card exchange, set up contact with other people.
Name card recognition technique is used in mobile phone and microcomputer at present widely, like " the all-round king of the business card " software that can in the mobile phone of Android platform, use.The various business card identification softwares that comprise " business card all can king " are taken the use-pattern that business cards discern: open the camera that mobile phone carries; Get into the camera preview interface; The user places after the position of business card in the camera preview interface; Take the image of business card, then captured image is discerned.Must take business card image earlier and then discern; Rather than directly just directly discern with preview image at the preview window of camera, mainly be accuracy rate, because the data resolution of the preview image that in the camera preview interface, can take is not high enough in order to guarantee to discern; The words that directly are used for discerning can make the mistake rate than higher; Recognition result is unreliable, and how the image data resolution of taking has wanted height, and the error rate of identification is also just much low like this.
The resolution of present camera the preview window can reach 960*480, even resolution has been the preview image data of 1024*768, like the view data at camera the preview window of Iphone 4S mobile phone.Use the business card image of this resolution to attempt to discern literal wherein, the accuracy rate of identification still can not get guaranteeing, still, can correctly identify most literal under a lot of situation.Present network speed can guarantee that at short notice the compressed image that (like 1-2 in second) is 1024*768 with a resolution passes to the webserver.At disclosed patent documentation " based on the recognition methods and the system of images match and network inquiry " (application number 201010225606); And described in " business card identification method that combines literal identification and images match " (application number 201110187289) as how coming through in the webserver, searching the business card data of preservation in advance based on the mode of text query and images match; Even to not using (the OCR of optical character identification; Optical Character recognition) method identifies the business card of literal; The business card that comprises the mistake literal in the recognition result that perhaps obtains with the method for optical character identification also can obtain the method for right-on literal recognition result.
Based on this; How further to utilize the business card data of preserving in advance in the webserver to discern business card; Image resolution ratio at the shooting preview window in the solution prior art still can not high definition be carried out the problem that business card is discerned, to have improved the ease of use and the user experience of smart mobile phone business card recognition function.
Summary of the invention
The shortcoming of prior art in view of the above; The object of the present invention is to provide a kind of business card identification method that combines preview image and photographic images; Be used for solving prior art and still can not high definition carry out the problem that business card is discerned, to have improved the ease of use and the user experience of smart mobile phone business card recognition function in the image resolution ratio of shooting preview window.
For realizing above-mentioned purpose and other relevant purposes; The present invention provides a kind of business card identification method that combines preview image and photographic images; Be applied in Website server and have in the client of data interaction; Said Website server has the card information data bank of many business cards that prestore, and said client has business card image acquisition, image characteristics extraction, reaches business card identification request function, it is characterized in that; Said business card identification method may further comprise the steps at least: 1) carry out business card identification request function, get into camera the preview window preview target business card; 2) judge whether favorably situated target business card is arranged in the preview window, if, then get into next step, if not, then return step 1) and continue preview target business card; 3) extract the preview image of the target business card that shows in said the preview window, and said preview image is uploaded to said Website server, send business card identification request simultaneously; 4) judge whether in the preset time limit, to obtain the Word message that said Website server feeds back, if, then preserve in this literal information to the contacts list of said client, if not, then proceed to next step; 5) the target business card in the shooting preview window to be obtaining business card image, and the Word message that extracts on this business card image is saved in the contacts list of said client.
Step 2 at business card identification method of the present invention) in; Judge that whether favorably situated target business card is arranged in the preview window is the four edges that whether finds the target business card for the preview window, if judge then whether the four edges of this target business card and the preview pane edge in the preview window reach the preset depth of parallelism; If; Then get into step 3), if not, then return step 1) and continue preview target business card.
In the step 3) of business card identification method of the present invention, the said preview image of extraction is a highest view data of a plurality of view data intermediate-resolutions that in the Preset Time section, receives in real time in the camera image sensor.Said Preset Time section is to judge the time period of favorably situated target business card when preview image sent, and particularly, said Preset Time section is 1S.
In business card identification method of the present invention; When said Website server receives business card identification request; Capture the characteristics of image of said preview image; From said card information data bank, retrieve the business card that prestores that is complementary with this characteristics of image according to said characteristics of image, and the Word message that returns this business card that prestores is to said client.
In the step 5) of business card identification method of the present invention, be to utilize OCR to extract the Word message on the said business card image.
In business card identification method of the present invention, said Word message is at least a in the name, academic title, phone, fax, address, postcode, E-mail, station address, product information on the business card.
In the step 4) of business card identification method of the present invention, be limited to 1~3S when being preset.
As stated; The business card identification method of combination preview image of the present invention and photographic images; The preview image of at least one Zhang Xiangji the preview window is delivered to the webserver to be discerned; If finding to take when the webserver can not the identification name picture business card image carries out this locality and discerns again; Not only solve in the prior art problem that still can not high definition carry out business card identification in the image resolution ratio of shooting preview window, also improved the ease of use and the user experience of smart mobile phone business card recognition function.
Embodiment
Below through specific instantiation embodiment of the present invention is described, those skilled in the art can understand other advantages of the present invention and effect easily by the content that this instructions disclosed.The present invention can also implement or use through other different embodiment, and each item details in this instructions also can be based on different viewpoints and application, carries out various modifications or change under the spirit of the present invention not deviating from.
See also Fig. 1.Need to prove; The diagram that is provided in the present embodiment is only explained basic conception of the present invention in a schematic way; Satisfy only show in graphic with the present invention in relevant assembly but not component count, shape and plotted when implementing according to reality; Kenel, quantity and the ratio of each assembly can be a kind of random change during its actual enforcement, and its assembly layout kenel also maybe be more complicated.
As shown in the figure; The present invention provides a kind of business card identification method that combines preview image and photographic images, is applied in Website server to have in the client of data interaction, and said Website server has the card information data bank of many business cards that prestore; In the present embodiment; The website of said Website server is one and has the website (siteC) of safeguarding the associated person information function, and the registered user of this website can comprise that Word message and business card image are saved in the card information data bank together with the card information of one or more business card of oneself, and interrelated with the account of oneself; The card information of being preserved is to proofread and correct through user oneself or portal management personnel's inspection; Guarantee correctly, the business card image of the corresponding same Word message of being preserved can have one or many, and for example same user has multiple name cards; It is different in this multiple name cards, having only the information of company and post, and information such as other name, phone, E-mail all are identical.
Said client has business card image acquisition, image characteristics extraction, reaches business card identification request function; In the present embodiment; Said client has digital filming apparatus; In order to the acquisition business card image, and can utilize OCR to discern Word message and extraction characteristics of image on the said business card image.In the present embodiment, said client can be the electronic equipment that smart mobile phone, panel computer, PDA etc. have data processing function.
The business card identification method of said combination preview image and photographic images may further comprise the steps at least:
At first execution in step S1 carries out business card identification request function, gets into camera the preview window preview target business card; In concrete embodiment, for example open the business card identification software on the mobile device such as mobile phone for the user, get into camera the preview window, the beginning preview also prepares to take business card image, then execution in step S2.
In step S2, whether said client is judged has favorably situated target business card in the preview window, judges that promptly whether favorably situated target business card is arranged in the preview window is the four edges that whether finds the target business card for the preview window; If; Judge then whether the four edges of this target business card and the preview pane edge in the preview window reach the preset depth of parallelism, if then get into step 3); If not, then return step 1) and continue preview target business card.In the present embodiment, the said depth of parallelism is the angular range that is between the extended line at an edge at the preview pane edge in extended line and the corresponding the preview window on the one side in the four edges of target business card, and this angular range is 0 to spend to 10 degree.In other words, between the edge at the preview pane edge in the one side in the four edges of said target business card and corresponding the preview window be and can assert when angle is spent less than 10 that this target business card is positioned at the correct position of the preview window.Follow execution in step S3.
Need to prove; The present invention is in the process of implementing; The situation of not getting rid of user's artificial interference, promptly the user of client can also be according to judgement or the demand of oneself, does not judge when favorably situated target business card is arranged in the preview window in said client; The user carries out the photographic subjects business card voluntarily directly obtaining business card image, and the Word message that extracts on this business card image is saved in the contacts list of said client.In other words, if client detects less than favorably situated target business card, the image that the user at any time can click button photographic subjects business card is discerned.
In step S3, extract the preview image of the target business card that shows in said the preview window, and said preview image is uploaded to said Website server, send business card identification request simultaneously.In the present embodiment; The said preview image that extracts is a highest view data of a plurality of view data intermediate-resolutions that in a Preset Time section, receives in real time in the camera image sensor; Said Preset Time section is to judge the time period of favorably situated target business card when preview image sent, and for example for the Preset Time section is 1S, that is to say; Favorably situated target business card timing 1S is arranged from judge the preview window; Select a highest view data of resolution as the preview image of uploading in a plurality of view data with real-time reception in the camera image sensor in this 1S, but be not limited thereto, this Preset Time can also be 0.5S.
Said client is uploaded to said Website server via wireless network with said preview image, sends business card identification request simultaneously.When said Website server receives business card identification request; Capture the characteristics of image of said preview image; From said card information data bank, retrieve the business card that prestores that is complementary with this characteristics of image according to said characteristics of image, and the Word message that returns this business card that prestores is to said client.In the present embodiment, said Word message is at least a in the name, academic title, phone, fax, address, postcode, E-mail, station address, product information on the business card.Follow execution in step S4.
In step S4, judge whether in the preset time limit, to obtain the Word message of said Website server feedback, if, then proceed to step S5 and preserve in this literal information to the contacts list of said client, if not, then proceed to step S6; In the present embodiment; Being limited to 1~3S during preset among the step S4, preferably, for example is 2S; It is said that to preestablish the time limit be that user or business card identification software are provided with in advance; In the preview window, detect after the suitable business card in location, the stand-by period before taking, such as can be made as 2 seconds.
Need to prove; If Website server returns the business card recognition failures; Perhaps Website server does not return recognition result in the preset time limit; No matter be because network speed inadequately soon or because the webserver is busy, is all represented the Network Recognition failure, need forward step S6 to and go to take identification.Only Website server has returned recognition result in the preset time limit when, just the Word message of said Website server feedback is preserved in the contacts list of said client.
In step S6, the target business card in the shooting preview window to be obtaining business card image, and the Word message that extracts on this business card image is saved in the contacts list of said client, so far accomplishes the business card identifying.In the present embodiment, said client utilizes optical character identification (OCR, Optical Character Recognition) technology to extract the Word message on the said business card image.
In sum; The business card identification method of combination preview image of the present invention and photographic images; The preview image of at least one Zhang Xiangji the preview window is delivered to the webserver to be discerned; If finding to take when the webserver can not the identification name picture business card image carries out this locality and discerns again; Not only solve in the prior art problem that still can not high definition carry out business card identification in the image resolution ratio of shooting preview window, also improved the ease of use and the user experience of smart mobile phone business card recognition function.So the present invention has effectively overcome various shortcoming of the prior art and the tool high industrial utilization.
The foregoing description is illustrative principle of the present invention and effect thereof only, but not is used to limit the present invention.Any be familiar with this technological personage all can be under spirit of the present invention and category, the foregoing description is modified or is changed.Therefore, have common knowledge the knowledgeable in the affiliated such as technical field, must contain by claim of the present invention not breaking away from all equivalence modifications of being accomplished under disclosed spirit and the technological thought or changing.