CN102855472A - Automatic shooting method in business card recognition - Google Patents
Automatic shooting method in business card recognition Download PDFInfo
- Publication number
- CN102855472A CN102855472A CN2012102867727A CN201210286772A CN102855472A CN 102855472 A CN102855472 A CN 102855472A CN 2012102867727 A CN2012102867727 A CN 2012102867727A CN 201210286772 A CN201210286772 A CN 201210286772A CN 102855472 A CN102855472 A CN 102855472A
- Authority
- CN
- China
- Prior art keywords
- business card
- automatic shooting
- summits
- preview
- predefine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses an automatic shooting method in business card recognition. The method comprises the following steps of: previewing layout of a preset rectangular frame and arrows in an image; previewing the whole automatic shooting process of the image; predefining the color change of the rectangular frame after the program determines the automatic shooting; detecting four sides and coordinates of four vertexes of a business card based on edge detection and Hough transform; and determining a strategy that whether the automatic shooting is performed based on the coordinates of the four vertexes of the business card and the distance among the four vertexes of the predefined and previewed frame. According to the automatic shooting method in business card recognition, a user is guided to shoot a picture of which the edge is parallel to the edge of the business card by employing the predefined frame and four arrows; by adoption of a method for determining the coordinates of the four vertexes of the business card based on the edge detection and Hough transform, whether the shooting angle and distance of the business card is judged, the business card is automatically shot, and the acquisition regularity of the business card is guaranteed; and moreover, the phenomenon of irregular shooting is reduced.
Description
Technical field
The present invention relates to the automatic shooting method in a kind of business card recognition.
Summary of the invention
Along with popularizing and the development of area of pattern recognition of mobile Internet, business card scan becomes a reality gradually.Usually, a name cards is by camera typing mobile phone, and OCR (optical character identification) technology can change into literal to picture subsequently, and is saved among the mobile phone contact.When taking business card, camera generally can have influence on recognition result to distance and the shooting angle of business card.What nowadays most business card recognition software adopted is the method for manually taking, and namely the user determines when take.But because the user does not usually understand how to take just and can obtain better recognition result, cause thus the performance of software bad, and brought bad user to experience to the user.Usually, the edge of identification software expectation acquisition picture is parallel with the business card edge, and the ratio that business card occupies in pictures taken is stipulated.
Summary of the invention
The invention provides the automatic shooting method in a kind of business card recognition, is that methodology guiding user takes an edge and the parallel picture in business card edge, and the position of business card in this picture fix, and has improved the accuracy rate of identifying.
The method that adopts comprises:
The layout of predefine rectangle frame and arrow in the preview image;
The flow process of the whole automatic shooting of preview image;
After program determines automatic shooting, the change color of predefine rectangle frame;
Based on rim detection and Hough transformation, detect the four edges of business card and the coordinate on four summits,
Determine the strategy that whether automatically snaps based on four vertex distances of four apex coordinates of business card and predefine preview pane.
Preferably, concrete steps are:
Step 1) after entering photographing business card, the handset starting preview, the user can be according to the preview picture, adjusts shooting angle and the position is taken;
Step 2) enter take the interface after, draw a predefine rectangle frame in the preview image stack, adjustable with four
Direction arrow, align with four angles of predefine rectangle frame in four angles with business card of prompting user;
Step 3) calculates the brightness of each frame preview image, if brightness is improper, give light too dark prompting; If the suitable beginning edge of brightness detects;
Step 4) each frame picture is carried out rim detection, and detect the four edges of business card with Hough transformation, obtain thus the coordinate on four summits;
Step 5) sets a distance threshold value;
Step 6) if the distance on four summits of the coordinate on four summits of business card and predefine rectangle frame all less than threshold value, is focused, if focus successfully, automatically snaps.
Preferably, described a plurality of adjustable direction arrows are with four 45 degree, and 135 spend, 225 degree, the arrows of 315 degree.
Preferably, described focusing is specially: detect the distance on four summits with four summits of predefined preview pane of business card, if continuous one section frame number less than distance threshold value, then four arrows disappearances, preview rectangle frame variable color redness becomes green.
Compared with prior art, advantage of the present invention is:
1. a predetermined frame of the present invention's employing guides users to take a picture that the edge is parallel with the business card edge with four arrows.
2. the present invention has adopted and has a kind ofly determined the method for four apex coordinates of business card based on rim detection and Hough transformation, judges thus whether the angle and distance of photographing business card is suitable, and automatic shooting, has guaranteed the systematicness of obtaining of business card.
3. reduced and occurred irregular phenomenon (not parallel such as business card edge and image border, business card is not within the scope of preview pane) in the shooting.
Description of drawings
Fig. 1 is the state transitions synoptic diagram of the automatic shooting method in a kind of business card recognition of the present invention.
Embodiment
In conjunction with shown in Figure 1, the automatic shooting method in a kind of business card recognition of the present invention, the method for employing comprises:
Subscribe the layout of rectangle frame and arrow in the preview image;
The flow process of the whole automatic shooting of preview image;
After program determines automatic shooting, the change color of predefine rectangle frame;
Based on rim detection and Hough transformation, detect the four edges of business card and the coordinate on four summits;
Determine the strategy that whether automatically snaps based on four vertex distances of four apex coordinates of business card and predefine preview pane.
The specific design step is as follows:
After entering photographing business card, mobile phone can start preview, and the user can be according to the preview picture, adjusts shooting angle and the position is taken.
1. enter take the interface after, draw a rectangle frame in the preview image stack, and with 4 45 degree, 135 degree, 225 degree, 315 arrows of spending, align with four angles of predefine rectangle in four angles with business card of prompting user.
2. calculate the brightness of each frame preview image, if brightness is improper, give the suitable prompting of user as shown in Figure 2; If the suitable beginning edge of brightness detects.
3. each frame picture is carried out rim detection, and detect the four edges of business card with Hough transformation, obtain thus the coordinate on four summits.
4. set a distance threshold value T
d
5. if detect four summits of business card and four summits of predefined preview pane, the continuous m frame of distance less than T
d, then beginning focusing, four arrows disappear, and the preview rectangle frame becomes green by redness.
6. if focus successfully, automatic shooting.
Above-described embodiment just is to allow the one of ordinary skilled in the art can understand content of the present invention and according to this enforcement for technical conceive of the present invention and characteristics being described, its objective is, can not limit protection scope of the present invention with this.Variation or the modification of every equivalence that the essence of content has been done according to the present invention all should be encompassed in protection scope of the present invention.
Claims (4)
1. the automatic shooting method in the business card recognition is characterized in that the employing method comprises:
The layout of predefine rectangle frame and arrow in the preview image;
The flow process of the whole automatic shooting of preview image;
After program determines automatic shooting, the change color of predefine rectangle frame;
Based on rim detection and Hough transformation, detect the four edges of business card and the coordinate on four summits;
Determine the strategy that whether automatically snaps based on four vertex distances of four apex coordinates of business card and predefine preview pane.
2. the automatic shooting method in the business card recognition according to claim 1 is characterized in that, concrete steps are:
Step 1) after entering photographing business card, the handset starting preview, the user can be according to the preview picture, adjusts shooting angle and the position is taken;
Step 2) enter take the interface after, draw a predefine rectangle frame in the preview image stack, adjustable with four
Direction arrow, align with four angles of predefine rectangle frame in four angles with business card of prompting user;
Step 3) calculates the brightness of each frame preview image, if brightness is improper, give light too dark prompting; If the suitable beginning edge of brightness detects;
Step 4) each frame picture is carried out rim detection, and detect the four edges of business card with Hough transformation, obtain thus the coordinate on four summits;
Step 5) sets a distance threshold value;
Step 6) if the distance on four summits of the coordinate on four summits of business card and predefine rectangle frame all less than threshold value, is focused, if focus successfully, automatically snaps.
3. the automatic shooting method in the business card recognition according to claim 2 is characterized in that, described a plurality of adjustable direction arrows are with four 45 degree, and 135 spend, 225 degree, the arrows of 315 degree.
4. the automatic shooting method in the business card recognition according to claim 3, it is characterized in that, described focusing is specially: the distance on four summits of detection business card and four summits of predefined preview pane, if continuous one section frame number is less than distance threshold value, then four arrows disappear, and preview rectangle frame variable color redness becomes green.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012102867727A CN102855472A (en) | 2012-08-14 | 2012-08-14 | Automatic shooting method in business card recognition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012102867727A CN102855472A (en) | 2012-08-14 | 2012-08-14 | Automatic shooting method in business card recognition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102855472A true CN102855472A (en) | 2013-01-02 |
Family
ID=47402050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012102867727A Pending CN102855472A (en) | 2012-08-14 | 2012-08-14 | Automatic shooting method in business card recognition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102855472A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303189A (en) * | 2014-07-29 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and device for detecting specific identification image in predetermined area |
WO2018045596A1 (en) * | 2016-09-12 | 2018-03-15 | 华为技术有限公司 | Processing method and mobile device |
CN108763285A (en) * | 2018-04-13 | 2018-11-06 | 广东小天才科技有限公司 | Taking pictures based on mobile terminal searches topic method, apparatus, terminal and storage medium |
CN110658215A (en) * | 2019-09-30 | 2020-01-07 | 武汉纺织大学 | PCB automatic splicing detection method and device based on machine vision |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1967565A (en) * | 2006-11-22 | 2007-05-23 | 上海合合信息科技发展有限公司 | Method to realize business card scan by mobile phone with digital camera |
CN101102572A (en) * | 2006-05-11 | 2008-01-09 | 三星电子株式会社 | Apparatus and method for photographing a business card in portable terminal |
-
2012
- 2012-08-14 CN CN2012102867727A patent/CN102855472A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102572A (en) * | 2006-05-11 | 2008-01-09 | 三星电子株式会社 | Apparatus and method for photographing a business card in portable terminal |
CN1967565A (en) * | 2006-11-22 | 2007-05-23 | 上海合合信息科技发展有限公司 | Method to realize business card scan by mobile phone with digital camera |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303189A (en) * | 2014-07-29 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and device for detecting specific identification image in predetermined area |
US10360689B2 (en) | 2014-07-29 | 2019-07-23 | Alibaba Group Holding Limited | Detecting specified image identifiers on objects |
CN105303189B (en) * | 2014-07-29 | 2019-08-20 | 阿里巴巴集团控股有限公司 | It is a kind of for detecting the method and device of specific identifier image in presumptive area |
US10885644B2 (en) | 2014-07-29 | 2021-01-05 | Banma Zhixing Network (Hongkong) Co., Limited | Detecting specified image identifiers on objects |
WO2018045596A1 (en) * | 2016-09-12 | 2018-03-15 | 华为技术有限公司 | Processing method and mobile device |
CN109690568A (en) * | 2016-09-12 | 2019-04-26 | 华为技术有限公司 | A kind of processing method and mobile device |
US11012608B2 (en) | 2016-09-12 | 2021-05-18 | Huawei Technologies Co., Ltd. | Processing method and mobile device |
CN108763285A (en) * | 2018-04-13 | 2018-11-06 | 广东小天才科技有限公司 | Taking pictures based on mobile terminal searches topic method, apparatus, terminal and storage medium |
CN110658215A (en) * | 2019-09-30 | 2020-01-07 | 武汉纺织大学 | PCB automatic splicing detection method and device based on machine vision |
CN110658215B (en) * | 2019-09-30 | 2022-04-22 | 武汉纺织大学 | PCB automatic splicing detection method and device based on machine vision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106295638B (en) | Certificate image sloped correcting method and device | |
US9208550B2 (en) | Smart document capture based on estimated scanned-image quality | |
US20140376060A1 (en) | Automatic capturing of documents having preliminarily specified geometric proportions | |
CN104364798B (en) | System and method for face verification | |
CN103929596B (en) | Guide the method and device of shooting composition | |
KR101809543B1 (en) | Method for recognizing contectless fingerprint and electronic apparatus for performing the same. | |
CN103916593B (en) | For handling the device and method of image in the device with camera | |
JP2016538783A (en) | System and method for generating a composite image of a long document using mobile video data | |
CN104935698B (en) | A kind of image pickup method of intelligent terminal, filming apparatus and smart phone | |
CN101770569A (en) | Dish name recognition method based on OCR | |
EP2704419A1 (en) | System and method for utilizing enhanced scene detection in a depth estimation procedure | |
US9792698B2 (en) | Image refocusing | |
CN105744268A (en) | Camera shielding detection method and device | |
US9854174B2 (en) | Shot image processing method and apparatus | |
CN102855472A (en) | Automatic shooting method in business card recognition | |
CN111163261B (en) | Target detection method, circuit, visual impairment assistance device, electronic device, and medium | |
CN108702457B (en) | Method, apparatus and computer-readable storage medium for automatic image correction | |
US9667880B2 (en) | Activating flash for capturing images with text | |
CN103220465A (en) | Method, device and mobile terminal for accurate positioning of facial image when mobile phone is used for photographing | |
CN105516591A (en) | Method and apparatus for photographing control of mobile terminal, and mobile terminal | |
JP2019087945A (en) | Information processing apparatus, program, and information processing method | |
WO2016101524A1 (en) | Method and apparatus for correcting inclined shooting of object being shot, mobile terminal, and storage medium | |
CN104580901A (en) | Shooting parameter determining method and terminal | |
JP2012247533A (en) | Electronic camera | |
CN104639819A (en) | Portable terminal and method for taking pictures using same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C05 | Deemed withdrawal (patent law before 1993) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130102 |