CN101908121A - Two-dimensional coordinate scanning device for bar code image processing - Google Patents

Two-dimensional coordinate scanning device for bar code image processing Download PDF

Info

Publication number
CN101908121A
CN101908121A CN2010101897779A CN201010189777A CN101908121A CN 101908121 A CN101908121 A CN 101908121A CN 2010101897779 A CN2010101897779 A CN 2010101897779A CN 201010189777 A CN201010189777 A CN 201010189777A CN 101908121 A CN101908121 A CN 101908121A
Authority
CN
China
Prior art keywords
coordinate
scanning
bar code
image processing
image pixel
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
CN2010101897779A
Other languages
Chinese (zh)
Other versions
CN101908121B (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.)
Newland Digital Technology Co ltd
Original Assignee
Fujian Newland Computer 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 Fujian Newland Computer Co Ltd filed Critical Fujian Newland Computer Co Ltd
Priority to CN 201010189777 priority Critical patent/CN101908121B/en
Publication of CN101908121A publication Critical patent/CN101908121A/en
Application granted granted Critical
Publication of CN101908121B publication Critical patent/CN101908121B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention provides a two-dimensional coordinate scanning device for bar code image processing, which comprises a memory for storing image information, a scanning circuit for establishing a scanning coordinate system and generating scanning coordinates and a coordinate conversion module for performing coordinate conversion on the scanning coordinates generated by the scanning circuit and mapping the converted coordinates to the address storage space of the memory, wherein the memory also comprises the address storage space for storing image pixel coordinates. In the device, the coordinate conversion module is arranged between the scanning circuit and the coordinate address memory without arranging a logic circuit; and based on the coordinate conversion module, the scanning coordinates generated by the scanning circuit are subjected to the conversion of the coordinate system, so that the effect of scanning images from different directions is achieved.

Description

A kind of two-dimensional coordinate scanning device for bar code image processing
[technical field]
The present invention relates to a kind of Flame Image Process two-dimensional coordinate scanning device, relate in particular to a kind of two-dimensional coordinate scanning device for bar code image processing.
[background technology]
In the bar-code identification process, the original image information that obtains is stored in the image address space with the storage mode of a definite sequence.In the hardware Flame Image Process, the image pixel coordinate that sweep circuit produces is associated with image address, and its scanning logic of getting a little is very complicated.
In the bar code search procedure, the direction of bar code in image is unknown.Therefore in order to detect bar code, need at least to scan from orthogonal both direction (for example, horizontal direction and vertical direction); And for the bar code of mirror image, prior art then can't be discerned.
Realize in the prior art that the mode that image is scanned from different directions has following several: a kind of mode is to change the direction of scanning by the control optical system, and the optics control system that is adopted is comparatively complicated; Another kind is to get a logic by the scanning that changes sweep circuit to change the direction of scanning, and this causes the hardware configuration of sweep circuit very complicated.Technique scheme all has complex structure, is difficult for the shortcoming of implementing.
[summary of the invention]
In order to solve image scanning complex structure in the prior art, the problem that is difficult for enforcement, the invention provides a kind of two-dimensional coordinate scanning device for bar code image processing based on coordinate transform, by a coordinate transformation module is set between sweep circuit and coordinate address storer, based on this coordinate transformation module the scanning coordinate that sweep circuit produces is carried out coordinate system transformation, thereby realize effect the scanning of image different directions.
The invention provides a kind of two-dimensional coordinate scanning device for bar code image processing, two-dimensional coordinate scanning device for bar code image processing comprises: storer, be used for store image information, image information comprises the image pixel coordinate, storer comprises the address storage space, and the address storage space is used for the image pixel coordinate of store image information; Sweep circuit is used to set up scan coordinate system and produces scanning coordinate; And coordinate transformation module, be used for the scanning coordinate process coordinate transform that sweep circuit is produced and map to the address storage space.
According to a preferred embodiment of the present invention, the storage mode of image pixel coordinate in the storage space of address is sequential storage.
According to a preferred embodiment of the present invention, image information also comprises the image pixel gray-scale value.
According to a preferred embodiment of the present invention, for n capable * a m row image pixel, a certain image pixel coordinate (x ', y ') can be formulated with the mapping relations of address storage space:
F=x′+y′×m
Wherein, (0~m-1), (0~n-1), F is the address of image pixel coordinate in the storage space of address to y ' ∈ int to x ' ∈ int.
According to a preferred embodiment of the present invention, coordinate transform comprises that scanning coordinate is passed through coordinate transform is transformed into the image pixel coordinate.
According to a preferred embodiment of the present invention, coordinate transform comprises a kind of or its combination in coordinate translation conversion, Rotating Transition of Coordinate or the coordinate axis exchange conversion at least.
According to a preferred embodiment of the present invention, the coordinate translation conversion realizes by following formula:
x ′ = x + h y ′ = y + k Translation vector a → = ( h , k )
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate, translation vector The coordinate of coordinate origin in the coordinate system at scanning coordinate place for image pixel coordinate place.
According to a preferred embodiment of the present invention, Rotating Transition of Coordinate realizes by following formula:
x ′ = x cos θ + y sin θ y ′ = - x sin θ + y cos θ
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate, and θ is the angle that image pixel coordinate place coordinate system is rotated counterclockwise with respect to scanning coordinate place coordinate system.
According to a preferred embodiment of the present invention, when image pixel coordinate place coordinate system was rotated counterclockwise with respect to scanning coordinate place coordinate system, the value of θ comprised one of 0 degree, 90 degree, 180 degree or 270 degree.
According to a preferred embodiment of the present invention, coordinate axis exchange conversion realizes by following formula:
x ′ = y y ′ = x
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate.
Two-dimensional coordinate scanning device for bar code image processing provided by the invention need not be changed the hardware configuration and the hardware logic of sweep circuit, by a coordinate transformation module is set between sweep circuit and storer, the scanning coordinate that sweep circuit is produced based on this coordinate transformation module is through coordinate transform and map to the address storage space of storer, thereby realizes bar code image is carried out the scanning of different directions.Coordinate transformation module can be realized multiple different scan pattern, fully satisfies the demand that identification is handled for bar code image, and this coordinate transformation module is very little to original hardware structure influence, have simple in structure, implement advantage easily.
[description of drawings]
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the theory structure synoptic diagram according to two-dimensional coordinate scanning device for bar code image processing of the present invention;
Fig. 2 is the synoptic diagram according to bar code image storage mode of the present invention;
Fig. 3 is the principle schematic according to two-dimensional coordinate scanning device for bar code image processing coordinate transform of the present invention;
Fig. 4 be according to an embodiment of the invention two-dimensional coordinate scanning device for bar code image processing by coordinate transform realization level and vertical scanning effect; And
Fig. 5 be according to an embodiment of the invention two-dimensional coordinate scanning device for bar code image processing to the coordinate transform mode of paper perspective bar code.
[embodiment]
The invention provides a kind of two-dimensional coordinate scanning device for bar code image processing.Fig. 1 is the theory structure synoptic diagram according to two-dimensional coordinate scanning device for bar code image processing of the present invention.As shown in Figure 1, this two-dimensional coordinate scanning device for bar code image processing comprises: storer 1, coordinate transformation module 2 and sweep circuit 3.
Storer 1 is used to store the original image information of bar code image.The original image information of bar code image comprises image pixel coordinate and image pixel gray-scale value etc.These original image informations are stored in the storer 1 with the storage mode of a definite sequence.Further, storer also comprises address storage space (figure does not show), the address storage space is used for the memory image pixel coordinate, the address that image pixel coordinate corresponding address storage space is interior, and the storage mode of image pixel coordinate in the storage space of address is sequential storage.
Fig. 2 is the synoptic diagram according to bar code image storage mode of the present invention.As shown in Figure 2, the pixel of m * n bar code image is stored in image pixel in the address space successively with from left to right order.Pixel (x ', y ') (x ' ∈ int (0~m-1), the planimetric rectangular coordinates of y ' ∈ int (0~n-1)) remarked pixel on bar code image, each image pixel coordinate (x ', y ') an interior address F of corresponding address storage space.The gray scale of gray-scale value z remarked pixel.Gray-scale value z and pixel coordinate (x ', y ') can be placed in the array, for representing conveniently, herein with both separately expressions.According to the storage mode of image pixel coordinate in the storage space of address is that the logical relation of sequential storage can draw certain pixel coordinate (x ', y ') corresponding address and is:
F=x′+y′×m
Sweep circuit 3 is set up scan coordinate system, and (x, y), (x y) corresponding to image pixel coordinate (x ', y '), is used for the original image information in the swept memory 1 to scanning coordinate to produce scanning coordinate.
Coordinate transformation module 2 is arranged between sweep circuit 3 and the storer 1, and (x is y) through coordinate transform and map to the address storage space of storer 1 for the scanning coordinate that is used for sweep circuit 3 is produced.
Fig. 3 is the principle schematic according to two-dimensional coordinate scanning device for bar code image processing coordinate transform of the present invention.Concrete, as shown in Figure 3, scan coordinate system has i * j pixel, and the initial pictures coordinate system has m * n pixel, and as required, i can equal m, and j can equal n.Coordinate transformation module 2 is at first with scanning coordinate S (x, y) (x ∈ int (0~i-1), y ∈ int (0~J-1)) through coordinate transform be transformed into corresponding image pixel coordinate P (x ', y ') (x ' ∈ int (0~m-1), y ' ∈ int (0~n-1)), obtain the corresponding address F in storer 1 of this image pixel coordinate P (x ', y ') by formula F=x '+y ' * m then, thereby realized image is carried out the scanning of different directions.
The coordinate transform function of coordinate transformation module 2 comprises a kind of or its combination in coordinate translation conversion, Rotating Transition of Coordinate or the coordinate axis exchange conversion at least.
The coordinate translation conversion can realize by following formula:
x ′ = x + h y ′ = y + k Translation vector a → = ( h , k )
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate, translation vector
Figure BSA00000138827900043
The coordinate of initial pictures coordinate origin in the coordinate system at scanning coordinate place for image pixel coordinate place.
Rotating Transition of Coordinate can realize by following formula:
x ′ = x cos θ + y sin θ y ′ = - x sin θ + y cos θ
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate, and θ is the angle that image pixel coordinate place initial pictures coordinate system is rotated counterclockwise with respect to scanning coordinate place coordinate system.When image pixel coordinate place coordinate system was rotated counterclockwise with respect to scanning coordinate place coordinate system, the value of θ comprised one of 0 degree, 90 degree, 180 degree or 270 degree.
Coordinate axis is exchanged conversion and can be realized by following formula:
x ′ = y y ′ = x
Wherein, (x ', y ') be the image pixel coordinate, (x y) is scanning coordinate.
Fig. 4 be according to an embodiment of the invention two-dimensional coordinate scanning device for bar code image processing by coordinate transform realization level and vertical scanning effect.As shown in Figure 4, by coordinate transform, in the horizontal direction, coordinate system A realized with by a left side → right side, by last → under the identical effect of scanning; Coordinate system C realized with by the right side → left side, by down → on the identical effect of scanning; Coordinate system F realized with by a left side → right side, by down → on the identical effect of scanning; And coordinate system H realized with by the right side → left side, by last → under the identical effect of scanning.In vertical direction, coordinate system B realized with by down → on, by the identical effect of the scanning on a left side → right side; Coordinate system D realized with by last → down, by the identical effect of the scanning on a right side → left side; Coordinate system E realized with by last → down, by the identical effect of the scanning on a left side → right side; And coordinate system G realized with by down → on, by the identical effect of the scanning on a right side → left side.
Especially, two-dimensional coordinate scanning device for bar code image processing of the present invention also can be used for the scanning of the bar code image of paper perspective, and the scanning of the bar code image of the paper perspective of especially two-dimentional determinant bar code is as PDF417 bar code, Micro PDF417 bar code.Fig. 5 be according to an embodiment of the invention two-dimensional coordinate scanning device for bar code image processing to the coordinate transform mode of paper perspective bar code.As shown in Figure 5, for paper perspective bar code (mirror image), the bar empty graph case of the initial code of its bar code and end zone is identical with normal bar code, but number to put in order be opposite to the row of the row of paper perspective bar code (mirror image) number and normal bar code.And different rows number pairing decoding rule is different, if can not identify correct bar code row number, will cause and can't decode, and therefore must carry out the paper perspective and become a full member.
The embodiment that carries out the paper perspective transform provided by the invention is: x axle and y axle are exchanged, image pixel coordinate place coordinate system is rotated counterclockwise 270 degree with respect to scanning coordinate place coordinate system, true origin is moved to (i-1,0).Two-dimensional coordinate scanning device for bar code image processing of the present invention has been realized the identification to paper perspective bar code (mirror image) by the combination of coordinate translation conversion, Rotating Transition of Coordinate and coordinate axis exchange conversion.
Two-dimensional coordinate scanning device for bar code image processing provided by the invention need not be changed the hardware configuration and the hardware logic of sweep circuit, by a coordinate transformation module is set between sweep circuit and storer, the scanning coordinate that sweep circuit is produced based on this coordinate transformation module is through coordinate transform and map to the address storage space of storer, thereby realizes bar code image is carried out the scanning of different directions.Coordinate transformation module can be realized multiple different scan pattern, fully satisfies the demand that identification is handled for bar code image, and this coordinate transformation module is very little to original hardware structure influence, have simple in structure, implement advantage easily.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.

Claims (10)

1. a two-dimensional coordinate scanning device for bar code image processing is characterized in that, described two-dimensional coordinate scanning device for bar code image processing comprises:
Storer is used for store image information, and described image information comprises the image pixel coordinate, and described storer comprises the address storage space, and described address storage space is used to store the image pixel coordinate of described image information;
Sweep circuit is used to set up scan coordinate system and produces scanning coordinate; And
Coordinate transformation module is used for the scanning coordinate process coordinate transform that described sweep circuit is produced and maps to described address storage space.
2. two-dimensional coordinate scanning device for bar code image processing according to claim 1 is characterized in that, the storage mode of described image pixel coordinate in the storage space of address is sequential storage.
3. two-dimensional coordinate scanning device for bar code image processing according to claim 1 is characterized in that described image information also comprises the image pixel gray-scale value.
4. two-dimensional coordinate scanning device for bar code image processing according to claim 1 is characterized in that, for n capable * a m row image pixel, a certain image pixel coordinate (x ', y ') can be formulated with the mapping relations of address storage space:
F=x′+y′×m
Wherein, (0~m-1), (0~n-1), F is the address of described image pixel coordinate in the storage space of described address to y ' ∈ int to x ' ∈ int.
5. two-dimensional coordinate scanning device for bar code image processing according to claim 1 is characterized in that, described coordinate transform comprises that described scanning coordinate is passed through coordinate transform is transformed into described image pixel coordinate.
6. two-dimensional coordinate scanning device for bar code image processing according to claim 1 is characterized in that, described coordinate transform comprises a kind of or its combination in coordinate translation conversion, Rotating Transition of Coordinate or the coordinate axis exchange conversion at least.
7. two-dimensional coordinate scanning device for bar code image processing according to claim 6 is characterized in that, described coordinate translation conversion realizes by following formula:
x ′ = x + h y ′ = y + k Translation vector a → = ( h , k )
Wherein, (x ', y ') be described image pixel coordinate, (x y) is described scanning coordinate, translation vector
Figure FSA00000138827800021
The coordinate of coordinate origin in the coordinate system at described scanning coordinate place for described image pixel coordinate place.
8. two-dimensional coordinate scanning device for bar code image processing according to claim 6 is characterized in that, described Rotating Transition of Coordinate realizes by following formula:
x ′ = x cos θ + y sin θ y ′ = - x sin θ + y cos θ
Wherein, (x ', y ') be described image pixel coordinate, (x y) is described scanning coordinate, and θ is the angle that described image pixel coordinate place coordinate system is rotated counterclockwise with respect to described scanning coordinate place coordinate system.
9. two-dimensional coordinate scanning device for bar code image processing according to claim 8, it is characterized in that, when described image pixel coordinate place coordinate system was rotated counterclockwise with respect to described scanning coordinate place coordinate system, the value of θ comprised one of 0 degree, 90 degree, 180 degree or 270 degree.
10. two-dimensional coordinate scanning device for bar code image processing according to claim 6 is characterized in that, described coordinate axis is exchanged conversion and realized by following formula:
x ′ = y y ′ = x
Wherein, (x ', y ') be described image pixel coordinate, (x y) is described scanning coordinate.
CN 201010189777 2010-06-01 2010-06-01 Two-dimensional coordinate scanning device for bar code image processing Expired - Fee Related CN101908121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010189777 CN101908121B (en) 2010-06-01 2010-06-01 Two-dimensional coordinate scanning device for bar code image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010189777 CN101908121B (en) 2010-06-01 2010-06-01 Two-dimensional coordinate scanning device for bar code image processing

Publications (2)

Publication Number Publication Date
CN101908121A true CN101908121A (en) 2010-12-08
CN101908121B CN101908121B (en) 2012-12-12

Family

ID=43263578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010189777 Expired - Fee Related CN101908121B (en) 2010-06-01 2010-06-01 Two-dimensional coordinate scanning device for bar code image processing

Country Status (1)

Country Link
CN (1) CN101908121B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105627922A (en) * 2015-12-30 2016-06-01 南京协辰电子科技有限公司 Offset measurement method and device and component alignment method and device
CN107392078A (en) * 2017-06-14 2017-11-24 深圳市百富智能新技术有限公司 Method, terminal device and the computer-readable recording medium of multi-angle scanning
CN107742094A (en) * 2017-09-22 2018-02-27 江苏航天大为科技股份有限公司 Improve the image processing method of testimony of a witness comparison result

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201927036U (en) * 2010-06-01 2011-08-10 福建新大陆电脑股份有限公司 Two-dimensional coordinate scanning device for processing bar code image

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201927036U (en) * 2010-06-01 2011-08-10 福建新大陆电脑股份有限公司 Two-dimensional coordinate scanning device for processing bar code image

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
《二维条码识别算法研究》 20100201 王培林 《二维条码识别算法研究》 10-11,26 1-10 , 2 *
《武汉大学学报》 20051231 胡东红等 《Radon变换在二维条码图像识别中的应用》 584-588 1-10 , 2 *
《计算机工程与科学》 20091231 谢俊喜 《基于数学形态学的二维条码识别》 44-45,55 1-10 , 2 *
《长春师范学院学报》 20071231 邵晨光等 《基于HOUGH变换的二维条码识别技术的研究》 94-98 1-10 , 2 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105627922A (en) * 2015-12-30 2016-06-01 南京协辰电子科技有限公司 Offset measurement method and device and component alignment method and device
CN107392078A (en) * 2017-06-14 2017-11-24 深圳市百富智能新技术有限公司 Method, terminal device and the computer-readable recording medium of multi-angle scanning
WO2018227737A1 (en) * 2017-06-14 2018-12-20 深圳市百富智能新技术有限公司 Multi-angle scanning method, terminal device and computer readable storage medium
US10896309B2 (en) 2017-06-14 2021-01-19 Shenzhen Pax Smart New Technology Co., Ltd. Method and terminal device for multi-angle scanning, and computer readable storage medium
CN107742094A (en) * 2017-09-22 2018-02-27 江苏航天大为科技股份有限公司 Improve the image processing method of testimony of a witness comparison result

Also Published As

Publication number Publication date
CN101908121B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
Qi et al. Pointnet++: Deep hierarchical feature learning on point sets in a metric space
CN107194962B (en) Point cloud and plane image fusion method and device
CN108345831A (en) The method, apparatus and electronic equipment of Road image segmentation based on point cloud data
CN100552694C (en) Global localization method by the rapid image coupling
Parian et al. Sensor modeling, self-calibration and accuracy testing of panoramic cameras and laser scanners
US20180181816A1 (en) Handling Perspective Magnification in Optical Flow Proessing
Ma et al. Sparse sensing for resource-constrained depth reconstruction
CN110637461A (en) Densified optical flow processing in computer vision systems
CN101908121B (en) Two-dimensional coordinate scanning device for bar code image processing
Joo et al. Globally optimal inlier set maximization for Atlanta frame estimation
CN101882220B (en) Bar code image correction method based on dynamic template and method for acquiring correction point
CN201927036U (en) Two-dimensional coordinate scanning device for processing bar code image
Garcia-Salguero et al. A tighter relaxation for the relative pose problem between cameras
CN110651475A (en) Hierarchical data organization for dense optical flows
RU97199U1 (en) SYSTEM, MOBILE DEVICE AND READING DEVICE FOR TRANSFER OF TEXT INFORMATION USING GRAPHIC IMAGES
CN101882213B (en) Method for sampling barcode images
CN101908144B (en) Bar code image correction method and correction point acquisition method
US11308634B2 (en) Unsupervised anchor handling for machine vision system
JP6218237B2 (en) Image conversion program, apparatus and method for parallelizing photographed image
Kaczmarek et al. Equal baseline camera array—Calibration, testbed and applications
CN205451193U (en) Image mapping converting means based on many camera lenses multisensor
CN205158378U (en) Image device of image formula bar code scan ware
Wollner et al. Freehand 3D scanning in a mobile environment using video
ES2817926B2 (en) VISUAL CODE AND PROCEDURE TO ENCODE AND DECODE A TWO-DIMENSIONAL IMAGE
CN102313886A (en) Coordinate conversion method in pulsed radar imaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 350015 No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Patentee after: NEWLAND DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Patentee before: Fujian Newland Computer Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212