CN103793903A - Image segmentation method and system utilizing barcode identification - Google Patents

Image segmentation method and system utilizing barcode identification Download PDF

Info

Publication number
CN103793903A
CN103793903A CN201210419875.6A CN201210419875A CN103793903A CN 103793903 A CN103793903 A CN 103793903A CN 201210419875 A CN201210419875 A CN 201210419875A CN 103793903 A CN103793903 A CN 103793903A
Authority
CN
China
Prior art keywords
image
bar code
template
cut apart
pending
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.)
Granted
Application number
CN201210419875.6A
Other languages
Chinese (zh)
Other versions
CN103793903B (en
Inventor
白冰
彭凯
吴俊�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder International Co Ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Co Ltd
Founder International Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Founder International Co Ltd, Founder International Beijing Co Ltd filed Critical Founder International Co Ltd
Priority to CN201210419875.6A priority Critical patent/CN103793903B/en
Publication of CN103793903A publication Critical patent/CN103793903A/en
Application granted granted Critical
Publication of CN103793903B publication Critical patent/CN103793903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

The invention discloses an image segmentation method and system utilizing barcode identification. The method and the system comprise that: an image segmentation template is arranged according to a barcode firstly, and the barcode and the image segmentation template are correlated; then barcode identification is performed on an image which contains the barcode and is to be processed, deviation rectification is performed on the barcode and the deviation rectification is performed on the image to be processed according to a rotating angle of the barcode; and finally the type of the image segmentation template is confirmed according to the identified barcode, and the image to be processed after the deviation rectification is segmented according to the image segmentation template. According to the method and system, the barcode and the image segmentation template are correlated. During image segmentation, the corresponding image segmentation template can be searched only by acquiring the barcode of the image to be processed so that the image segmentation is completed. Besides, the deviation rectification of the image to be processed is completed via angle offset (the rotating angle) of the barcode so that accuracy of the image segmentation is further enhanced.

Description

A kind of image partition method and system of utilizing bar code recognition
Technical field
The present invention relates to image Segmentation Technology field, be specifically related to a kind of image partition method and system of utilizing bar code recognition.
Background technology
The difficult point of current image segmentation system is that the image to cutting apart carries out correct correction, if bad to image correcting error effect, may cause image to cut apart failure, even if the image that image is cut apart after successfully cutting apart does not probably meet expection requirement yet, therefore how image correcting error effect is to improve the key problem that image is cut apart quality.
General image segmentation system is all identified and is done based on template, (cutting board and recognition mode definition procedure also can be merged into once and complete first to define a series of cutting board and recognition template, also reusable of cutting board and recognition template), then do image acquisition, the image collecting is done to template identification, the eigenwert of the eigenwert of the template that utilization defines and the image of collection compares, to determine the template of images match of current identification, and then utilize the cutting board defining to cut image.But this image segmentation system that image is carried out to template identification, depends on the result that template is identified, the success ratio of template identification is at present low compared with bar-code identification, and time-consuming is many compared with bar-code identification, and cost is high compared with bar-code identification.
Also the image segmentation system that the image segmentation system having does not carry out masterplate identification and just carries out simple image correction image, but this template of not carrying out is known in the situations such as method for distinguishing is spent at image rotation 90,180 degree, 270 degree, can cause image to cut apart failure or segmentation errors.
Summary of the invention
For the defect existing in prior art, the object of the present invention is to provide a kind of image partition method and system of utilizing bar code recognition, complete the correction to image by the method and system, improve the accuracy rate of image cutting.
For achieving the above object, the technical solution used in the present invention is as follows:
An image partition method that utilizes bar code recognition, comprises the following steps:
(1) image being set cuts apart template and preserves; With one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associated;
(2) obtain and need to carry out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code;
(3) pending image is carried out to bar code recognition, and carry out the correction of bar code, the anglec of rotation of record strip shape code and the bar code identifying;
(4), according to the anglec of rotation of bar code, carry out the correction of pending image;
(5) determine that according to the bar code that identifies image cuts apart template type, cut apart the pending Image Segmentation Using of template after to correction according to image.
Further, a kind of image partition method that utilizes bar code recognition as above, in step (1), described bar code is arranged by user as required, and image of a bar code correspondence cuts apart template or the corresponding image of a class bar code is cut apart template.
Further, a kind of image partition method that utilizes bar code recognition as above, in step (1), cuts apart template by the image setting and is saved in database or saves as configuration file.
Further, a kind of image partition method that utilizes bar code recognition as above, in step (2), described source document comprises original document.
Further, a kind of image partition method that utilizes bar code recognition as above, is obtained and need to be carried out the pending image that image is cut apart by image capture device; Described pending image refers to the image that contains bar code; Described image capture device comprises scanner, high instrument and the camera clapped.
Further again, a kind of image partition method that utilizes bar code recognition as above, in step (2), the bar code printing of source document is on source document or be printed on source document or stick on source document.
Further, a kind of image partition method that utilizes bar code recognition as above, in step (4), when pending image is rectified a deviation, the anglec of rotation of pending image is identical with the anglec of rotation of bar code.
An image segmentation system that utilizes bar code recognition, comprising:
Cut apart template-setup module: cut apart template and image is cut apart to template preservation for image is set; With one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associated;
Image collection module: obtain and need to carry out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code;
Bar code correction module: pending image is carried out to bar code recognition, and carry out the correction of bar code, the anglec of rotation of record strip shape code and the bar code identifying;
Image correcting error module: according to the anglec of rotation of bar code, carry out the correction of pending image;
Image is cut apart module: determine that according to the bar code identifying image cuts apart template type, cut apart the pending Image Segmentation Using of template after to correction according to image.
Further, a kind of image segmentation system that utilizes bar code recognition as above, described in cut apart template-setup module and comprise:
Cut apart template-setup unit: cut apart template for image being set according to bar code;
Associative cell: carry out associatedly for bar code and image being cut apart to template, and record strip shape code and image are cut apart the mapping relations of template.
Beneficial effect of the present invention is: method and system of the present invention arrange image according to bar code and cut apart template, bar code and image are cut apart to template to be associated, carrying out image while cutting apart, only need obtain the bar code of pending image, can find its corresponding image and cut apart template, thereby complete cutting apart of image.In addition, complete the correction of pending image by the angular deflection amount (anglec of rotation) of bar code, thereby further improved the accuracy of image cutting.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of image segmentation system that utilizes bar code recognition of the present invention;
Fig. 2 is the process flow diagram of a kind of image partition method that utilizes bar code recognition of the present invention;
Fig. 3 is the pending image in embodiment;
Fig. 4 completes the bar code after correction in embodiment;
Fig. 5 is the pending image completing in embodiment after correction.
Embodiment
Below in conjunction with Figure of description and embodiment, the present invention is described in further detail.
Fig. 1 shows the structured flowchart of a kind of image segmentation system that utilizes bar code recognition of the present invention, and this system has comprised that cutting apart template-setup module 11, image collection module 12, bar code correction module 13, image correcting error module 14 and image cuts apart module 15.Wherein:
Cutting apart template-setup module 11 cuts apart template and image is cut apart to template preservation for image is set; With one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associated; Cut apart template-setup module 11 and comprise for image is set according to bar code and cut apart cutting apart template-setup unit and carrying out associatedly for bar code and image being cut apart to template of template, and record strip shape code and image are cut apart the associative cell of the mapping relations of template;
Image collection module 12 is obtained and need to be carried out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code;
Bar code correction module 13 is carried out bar code recognition to pending image, and carries out the correction of bar code, the anglec of rotation of record strip shape code and the bar code identifying;
Image correcting error module 14, according to the anglec of rotation of bar code, is carried out the correction of pending image;
Image is cut apart module 15 and is determined that according to the bar code identifying image cuts apart template type, cuts apart the pending Image Segmentation Using of template after to correction according to image.
Fig. 2 shows a kind of process flow diagram of the image partition method that utilizes bar code recognition of image segmentation system based on utilizing bar code recognition in Fig. 1, and the method comprises the following steps:
Step S21: image is set and cuts apart template and preserve;
Image is set to be cut apart template and preserves, in present embodiment, with one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associatedly, the image setting is cut apart to template and be saved to database or save as configuration file.Described bar code can be arranged as required by user, a corresponding image of bar code is cut apart template, or the corresponding image of a class bar code (multiple) is cut apart template, image is cut apart to template type has done associated with bar code simultaneously, when carrying out in subsequent step after bar code recognition, if find it is this time associated bar code, just find its corresponding image according to this associated bar code and cut apart just image cutting of template.
Step S22: obtain and need to carry out the pending image that image is cut apart;
Obtain and need to carry out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code.For example source document is original document, on original document, need to have bar code, and both direction all aligns anyhow that (bar code and document general direction are consistent for bar code and original document, do not need alignment very, in step S23, carry out after bar-code identification tentatively rectifies a deviation to image by bar code, general pattern angular deviation is little, do not affect cutting territory is cut, the simultaneously follow-up image correcting error passing through that can utilize is with regard to just secondary correction of image), bar code can be printed on document, also can be printed on document, also ready-made bar code only can be attached on document.In the time obtaining the corresponding pending image of source document, use image capture device that source document (for example papery document) is gathered as picture format, image capture device can make scanner, high bat instrument or make a video recording first-class.As shown in Figure 3, collect the picture format of the papery document shown in Fig. 3 by image capture device, obtain pending image.
Step S23: pending image is carried out to bar code recognition, and carry out the correction of bar code;
Pending image is carried out to bar code recognition, can be to the bar code processing of rectifying a deviation in the process of carrying out bar code recognition, by bar code rotation to correct angle, and the anglec of rotation of record strip shape code and the bar code that identifies.As shown in Figure 4, by the processing of rectifying a deviation of the bar code shown in lower right in Fig. 3, be located at correct angle.Bar code correction is to utilize existing bar code identification technology, for example, for three nine-day periods after the winter solstice code, can regulation fine rule width be 2 pixels, wide line and fine rule ratio are 3:1, in the time doing bar code recognition, first judge the region at bar code place, then carry out image rectification, for example can adopt the various prior aries such as anti-perspective transform, obtain the RA of bar code.
Step S24: carry out the correction of pending image according to the anglec of rotation of bar code;
The anglec of rotation of the bar code obtaining according to step S23, carries out the correction of pending image, and the anglec of rotation of pending image correcting error selects the anglec of rotation identical with bar code, completes pending image after image rotation as shown in Figure 5.
Step S25: determine that image cuts apart template, cut apart the pending Image Segmentation Using of template after to correction according to image.
Determine that according to the bar code identifying image cuts apart template type, cut apart the pending Image Segmentation Using of template after to correction according to image.Cutting apart template according to image, to carry out that image cuts apart be prior art.
Method and system of the present invention, first utilize bar code recognition to rectify a deviation to image, and recycling bar code recognition determines that image cuts apart template, cuts apart thereby complete fast and accurately image.The method and system, compared with existing template recognition technology, success ratio is high, consuming time less, cost is low.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technology thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (9)

1. an image partition method that utilizes bar code recognition, comprises the following steps:
(1) image being set cuts apart template and preserves; With one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associated;
(2) obtain and need to carry out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code;
(3) pending image is carried out to bar code recognition, and carry out the correction of bar code, the anglec of rotation of record strip shape code and the bar code identifying;
(4), according to the anglec of rotation of bar code, carry out the correction of pending image;
(5) determine that according to the bar code that identifies image cuts apart template type, cut apart the pending Image Segmentation Using of template after to correction according to image.
2. a kind of image partition method that utilizes bar code recognition as claimed in claim 1, it is characterized in that: in step (1), described bar code is arranged by user as required, and image of a bar code correspondence cuts apart template or the corresponding image of a class bar code is cut apart template.
3. a kind of image partition method that utilizes bar code recognition as claimed in claim 1 or 2, is characterized in that: in step (1), the image setting is cut apart to template and be saved in database or save as configuration file.
4. a kind of image partition method that utilizes bar code recognition as claimed in claim 1, is characterized in that: in step (2), described source document comprises original document.
5. a kind of image partition method that utilizes bar code recognition as described in claim 1 or 4, is characterized in that: obtained and need to be carried out the pending image that image is cut apart by image capture device; Described pending image refers to the image that contains bar code; Described image capture device comprises scanner, high instrument and the camera clapped.
6. a kind of image partition method that utilizes bar code recognition as claimed in claim 1, is characterized in that: in step (2), the bar code printing of source document is on source document or be printed on source document or stick on source document.
7. a kind of image partition method that utilizes bar code recognition as claimed in claim 1, is characterized in that: in step (4), when pending image is rectified a deviation, the anglec of rotation of pending image is identical with the anglec of rotation of bar code.
8. an image segmentation system that utilizes bar code recognition, comprising:
Cut apart template-setup module: cut apart template and image is cut apart to template preservation for image is set; With one or a class bar code, a kind of image is set and cuts apart template, and bar code and image are cut apart to template carry out associated;
Image collection module: obtain and need to carry out the pending image that image is cut apart according to source document; Described source document refers to the file that contains bar code;
Bar code correction module: pending image is carried out to bar code recognition, and carry out the correction of bar code, the anglec of rotation of record strip shape code and the bar code identifying;
Image correcting error module: according to the anglec of rotation of bar code, carry out the correction of pending image;
Image is cut apart module: determine that according to the bar code identifying image cuts apart template type, cut apart the pending Image Segmentation Using of template after to correction according to image.
9. a kind of image segmentation system that utilizes bar code recognition as claimed in claim 8, is characterized in that, described in cut apart template-setup module and comprise:
Cut apart template-setup unit: cut apart template for image being set according to bar code;
Associative cell: carry out associatedly for bar code and image being cut apart to template, and record strip shape code and image are cut apart the mapping relations of template.
CN201210419875.6A 2012-10-29 2012-10-29 A kind of image partition method and system using bar code recognition Active CN103793903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210419875.6A CN103793903B (en) 2012-10-29 2012-10-29 A kind of image partition method and system using bar code recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210419875.6A CN103793903B (en) 2012-10-29 2012-10-29 A kind of image partition method and system using bar code recognition

Publications (2)

Publication Number Publication Date
CN103793903A true CN103793903A (en) 2014-05-14
CN103793903B CN103793903B (en) 2018-07-27

Family

ID=50669527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210419875.6A Active CN103793903B (en) 2012-10-29 2012-10-29 A kind of image partition method and system using bar code recognition

Country Status (1)

Country Link
CN (1) CN103793903B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485586A (en) * 2016-09-19 2017-03-08 泰康保险集团股份有限公司 The management method of insurance policy and device
CN110852989A (en) * 2019-09-30 2020-02-28 广州利科科技有限公司 Quality flaw detection of tile photographed picture
CN111546804A (en) * 2020-04-08 2020-08-18 远光软件股份有限公司 Automatic original bill pasting method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4992650A (en) * 1990-03-29 1991-02-12 International Business Machines Corporation Method and apparatus for barcode recognition in a digital image
CN1205485A (en) * 1997-07-15 1999-01-20 三星电子株式会社 Method for correcting direction of document image
US7121469B2 (en) * 2002-11-26 2006-10-17 International Business Machines Corporation System and method for selective processing of digital images
CN101887521A (en) * 2010-06-22 2010-11-17 中兴通讯股份有限公司 Method and terminal for rectifying deviation of file
CN102136058A (en) * 2011-04-26 2011-07-27 中国农业大学 Bar code image identification method
CN102184396A (en) * 2011-06-13 2011-09-14 北方工业大学 Document image tilt correction method based on OCR recognition feedback
CN102411701A (en) * 2010-09-20 2012-04-11 航天信息股份有限公司 Method and system for scanning and identifying two-dimensional code array image for invoice special for value-added tax

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4992650A (en) * 1990-03-29 1991-02-12 International Business Machines Corporation Method and apparatus for barcode recognition in a digital image
CN1205485A (en) * 1997-07-15 1999-01-20 三星电子株式会社 Method for correcting direction of document image
US7121469B2 (en) * 2002-11-26 2006-10-17 International Business Machines Corporation System and method for selective processing of digital images
CN101887521A (en) * 2010-06-22 2010-11-17 中兴通讯股份有限公司 Method and terminal for rectifying deviation of file
CN102411701A (en) * 2010-09-20 2012-04-11 航天信息股份有限公司 Method and system for scanning and identifying two-dimensional code array image for invoice special for value-added tax
CN102136058A (en) * 2011-04-26 2011-07-27 中国农业大学 Bar code image identification method
CN102184396A (en) * 2011-06-13 2011-09-14 北方工业大学 Document image tilt correction method based on OCR recognition feedback

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
SHERIN M. YOUSSEF 等: "Automated barcode recognition for smart identification and inspection automation", 《EXPERT SYSTEMS WITH APPLICATIONS》 *
古辉 等: "一种基于模板匹配的船铭牌字符分割方法", 《浙江工业大学学报》 *
姚俊 等: "基于模板匹配的有复杂背景的条码图像区域分割", 《河海大学常州分校学报》 *
孙玉林: "分形图像控制与防伪标志创新设计的研究", 《中国优秀硕士学位论文全文数据库》 *
武莎莎 等: "基于Hough变换的二维条码图像倾斜校正研究", 《淮阴工学院学报》 *
范永法 等: "基于DSP的条码图像实时处理系统的研究", 《计算机应用研究》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106485586A (en) * 2016-09-19 2017-03-08 泰康保险集团股份有限公司 The management method of insurance policy and device
CN110852989A (en) * 2019-09-30 2020-02-28 广州利科科技有限公司 Quality flaw detection of tile photographed picture
CN110852989B (en) * 2019-09-30 2022-05-13 广州利科科技有限公司 Quality flaw detection of tile photographed picture
CN111546804A (en) * 2020-04-08 2020-08-18 远光软件股份有限公司 Automatic original bill pasting method and device
CN111546804B (en) * 2020-04-08 2021-03-23 远光软件股份有限公司 Automatic original bill pasting method and device

Also Published As

Publication number Publication date
CN103793903B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN107507174A (en) Power plant's instrument equipment drawing based on hand-held intelligent inspection is as recognition methods and system
CN102201053B (en) Method for cutting edge of text image
CN102360419B (en) Method and system for computer scanning reading management
JP6547873B2 (en) Ten-finger fingerprint card input device, ten-finger fingerprint card input method, and storage medium
CN104143094A (en) Test paper automatic test paper marking processing method and system without answer sheet
CN101908136A (en) Table identifying and processing method and system
CN105411679A (en) Puncturing plan route correcting method and device
CN108961276B (en) Distribution line inspection data automatic acquisition method and system based on visual servo
CN107590495A (en) Answer sheet picture method for correcting error, device, readable storage medium storing program for executing and electronic equipment
CN106599890A (en) Transformer substation patrol robot digital type instrument identification algorithm
CN110346704B (en) Method, device and equipment for determining test file in board test and storage medium
CN106778736A (en) The licence plate recognition method and its system of a kind of robust
CN103793903A (en) Image segmentation method and system utilizing barcode identification
CN110263739A (en) Photo table recognition methods based on OCR technique
CN112685527B (en) Method, device and electronic system for establishing map
CN109426815B (en) Bill region rotating and splitting method, system and equipment
CN103862892A (en) Method and system for automatic aligning of PCB (printed circuit board) character ink printer
CN108574808B (en) Image splicing method and device and image processing system
CN115937708A (en) High-definition satellite image-based roof information automatic identification method and device
CN109145912A (en) A kind of digital instrument reading automatic identifying method
CN116033544A (en) Indoor parking lot positioning method, computer device, storage medium and program product
CN109993066B (en) Sideline-oriented vehicle positioning method and system
CN114283442A (en) Intelligent identification method and device for secondary wiring diagram and storage medium
CN111127529B (en) Image registration method and device, storage medium and electronic device
CN103632150B (en) Method and device for identifying state of switch

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant