CN103955670A - Method for recognizing and collecting Z-codes dynamically - Google Patents

Method for recognizing and collecting Z-codes dynamically Download PDF

Info

Publication number
CN103955670A
CN103955670A CN201410162349.5A CN201410162349A CN103955670A CN 103955670 A CN103955670 A CN 103955670A CN 201410162349 A CN201410162349 A CN 201410162349A CN 103955670 A CN103955670 A CN 103955670A
Authority
CN
China
Prior art keywords
image
camera
processing unit
code
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
CN201410162349.5A
Other languages
Chinese (zh)
Other versions
CN103955670B (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.)
Guangzhou Huii Information Technology Co ltd
Original Assignee
Guangzhou Width Information Technology 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 Guangzhou Width Information Technology Co Ltd filed Critical Guangzhou Width Information Technology Co Ltd
Priority to CN201410162349.5A priority Critical patent/CN103955670B/en
Publication of CN103955670A publication Critical patent/CN103955670A/en
Application granted granted Critical
Publication of CN103955670B publication Critical patent/CN103955670B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The invention discloses a method for recognizing and collecting Z-codes dynamically. The method comprises the following steps that (1) a camera is connected with an image analyzing and processing unit; (2) the image analyzing and processing unit is started, initialization is completed, and after the camera is detected, and camera is started; (3) an object comprising the Z-codes is moved to the place in front of the camera, and the image analyzing and processing unit carries out contrastive analysis on images collected by the camera; (4) when the total number of moving pixel points of the multiple images relative to the previous images respectively are small than a set value, image collecting is started, and decoding is carried out; (5) after decoding is successfully completed, the step (6) is carried out, otherwise, current decoding failure frequency is subjected to statistics, and if decoding is not successful in set times, the step (3) is carried out; and (6) collecting is stopped, and an initial to-be-collected state is recovered. According to the method, the Z-codes can be recognized and collected under a moving state, and accordingly using is convenient.

Description

A kind of Dynamic Recognition gathers the method for Z-code
Technical field
The present invention relates to image information collecting identification field, relate in particular to a kind of method of Dynamic Recognition collection Z-code.
Background technology
Mainly scan as cashier uses barcode scanning gun by manual collection for the acquisition system of bar code or Quick Response Code now, another kind is constantly scan round collection always, while having collection result, pass system back or sensor is housed before scanner head and can in the time that recognizate is in place, automatically gather, the barcode scanning platform of for example supermarket check out counters, but above-mentioned acquisition mode all can only for can see on the market one dimension code or Quick Response Code decode, and scanning time need to remain static.
 
Summary of the invention
The object of this invention is to provide a kind of method that Dynamic Recognition gathers Z-code, can realize under dynamically and gather Z-code.
The technical solution used in the present invention is: a kind of Dynamic Recognition gathers the method for Z-code, comprises the steps:
(1) camera is connected with image analysis processing unit;
(2) open image analysis processing unit, after completing initialization and camera being detected, start camera, gather background image, and preserve the pixel of background image;
(3) article that contain Z-code are moved to before camera, image analysis processing unit is analyzed the image of camera collection, show that image opens the motor image vegetarian refreshments sum of image relatively thereon, if the motor image vegetarian refreshments sum of several images that obtain in turn has from few change many, then from changeable few trend, and by the pixel contrast of the background image of preserving in static pixel and step (2), not identical pixel is greater than setting value, jump to step (4), otherwise jump to step (6);
(4), when the motor image vegetarian refreshments sum of relatively opening thereon respectively image when several images is all less than setting value, starts to gather image and decode; Otherwise return to step (3) and proceed images of items collection comparative analysis;
(5), after successfully decoded, the frequency of failure of decoding is clear 0, go to step (6), otherwise add up the current decoding frequency of failure, if in set point number successfully decodeds not all, the frequency of failure of decoding is clear 0, jumps to step (3);
(6) stop gathering, return to initial state to be collected.
In described step (2), after camera has started, by preservation background operation is set manually.The principle of preserving background is that all pixels of not putting the current picture of camera before article are left.
In described step (3), the article that contain Z-code are moved to before camera, image analysis processing unit contrasts adjacent two images of camera collection, from left to right, contrast from top to bottom the pixel of all same positions of two images, as: image 1 coordinate (0, 0) position pixel color is a, image 2 coordinates (0, 0) position pixel color is b, if color is the same, (a equals b), look this position (0, 0) be static, otherwise this position is motion, it is position (0, 0) be motor image vegetarian refreshments. in the time getting next frame image, previous frame image calculates total total how many motor image vegetarian refreshments relatively.Because every frame period may be too fast, can get the some frames in interval and just calculate motor image vegetarian refreshments sum one time, when the motor image vegetarian refreshments that calculates after this motor image vegetarian refreshments sum is than next some frames is few, forwards step (4) to, otherwise forward step (6) to.
Preferably, in described step (3), not identical pixel is greater than setting value and refers to that the ratio of same pixel point is not more than setting value, and setting value is 8% ~ 15%; More preferably, described setting value is 10%.
Preferably, in described step (3), image analysis processing unit is analyzed between adjacent two images that refer to 14 ~ 20 frames of interval in turn of image analysis processing unit to camera collection and is analyzed the image of camera collection;
Show that image opens relatively thereon the motor image vegetarian refreshments sum of image and refer to and show that image is with respect to before it and the motion pixel of the image of 14 ~ 20 frames with interval.
Preferably, in described step (3), image analysis processing unit is analyzed between adjacent two images that refer to 16 frames of interval in turn of image analysis processing unit to camera collection and is analyzed the image of camera collection;
Show that image opens relatively thereon the motor image vegetarian refreshments sum of image and refer to and show that image is with respect to before it and the motion pixel of the image of 16 frames with interval.
In described step (4), when motor image vegetarian refreshments sum is less than certain value always, can thinks in the image that current camera photographed and not change, the object before camera is stable, gets the decoding of present frame picture, forwards step (5) to.Otherwise think that the front object of camera is also moving, then go back to step (3).
In described step (5), the frequency of failure clear 0 of decoding after successfully decoded, go to step (6), if otherwise add up the current explanation frequency of failure. the current frequency of failure is greater than set point number, goes to step (6), and by clear the frequency of failure 0, otherwise go to step (3), described set point number is preferably 3 ~ 5 times.
With respect to prior art, beneficial effect of the present invention is:
Method of the present invention is applicable to the fields such as the checking of information acquisition, pass-check admission ticket and supermarket item scan of registering, meeting-place, can under motion state, identify collection Z-code, thus more convenient use.
Embodiment
The inventive method is mainly by software, motion identification and collection solution to be combined; Only contrast by the image of a camera collection, judge before camera whether have detection object (if any the admission ticket of Z-code) or detect object whether oneself takes away, in the time Z-code being detected, information recording is got up to import into system.
embodiment 1:
Dynamic Recognition gathers a method for Z-code, comprises the steps:
(1) camera is connected with image analysis processing unit, camera can be image analysis processing unit the current picture photographing is provided, such as the camera meeting per second of 24 chastity provides 24 pictures to image analysis processing unit;
(2) open image analysis processing unit, after completing initialization and camera being detected, start camera;
(3) article that contain Z-code are moved to before camera, image analysis processing unit contrasts adjacent two images of camera collection, from left to right, contrast from top to bottom the pixel of all same positions of two images, as: image 1 coordinate (0,0) position pixel color is a, image 2 coordinates (0,0) position pixel color is b, if color is the same, (a equals b), looks this position (0,0) be static, otherwise this position is motion, and position (0,0) is motor image vegetarian refreshments.So in the time getting next frame image, previous frame image calculates total total how many motor image vegetarian refreshments relatively;
Draw the motor image vegetarian refreshments sum of image with respect to its previous frame image, if the motor image vegetarian refreshments sum of several images that obtain in turn has from few change many, then from changeable few trend, and by the pixel contrast of the background image of preserving in static pixel and step (2), the ratio of not identical pixel is greater than 10%, jump to step (4), otherwise jump to step (6);
(4), when the motor image vegetarian refreshments sum of relatively opening thereon respectively image when several images is all less than 10, starts to gather image and decode; Otherwise return to step (3) and proceed images of items collection comparative analysis;
(5), after successfully decoded, the frequency of failure of decoding is clear 0, go to step (6), otherwise add up the current decoding frequency of failure, if in 3 times successfully decodeds not all, the frequency of failure of decoding is clear 0, jumps to step (3);
(6) stop gathering, return to initial state to be collected.
embodiment 2:
Except step (3), all the other steps are with embodiment 1, and the step (3) in this embodiment is:
The article that contain Z-code are moved to before camera, adjacent two images of interval 16 frames of image analysis processing unit to camera collection contrast, from left to right, contrast from top to bottom the pixel of all same positions of two images, as: image 1 coordinate (0,0) position pixel color is a, image 2 coordinates (0,0) position pixel color is b, if color is the same, (a equals b), looks this position (0,0) be static, otherwise this position is motion, and position (0,0) is motor image vegetarian refreshments;
Draw the motor image vegetarian refreshments sum of image with respect to the image of 16 frames with interval, if the motor image vegetarian refreshments sum of several images that obtain in turn has from few change many, then from changeable few trend, and by the pixel contrast of the background image of preserving in static pixel and step (2), the ratio of not identical pixel is greater than 10%, jump to step (4), otherwise jump to step (6).

Claims (6)

1. dynamic acquisition identification gathers a method for Z-code, it is characterized in that, comprises the steps:
(1) camera is connected with image analysis processing unit;
(2) open image analysis processing unit, after completing initialization and camera being detected, start camera, gather background image, and preserve the pixel of background image;
(3) article that contain Z-code are moved to before camera, image analysis processing unit is analyzed the image of camera collection, show that image opens the motor image vegetarian refreshments sum of image relatively thereon, if the motor image vegetarian refreshments sum of several images that obtain in turn has from few change many, then from changeable few trend, and by the pixel contrast of the background image of preserving in static pixel and step (2), not identical pixel is greater than setting value, jump to step (4), otherwise jump to step (6);
(4), when the motor image vegetarian refreshments sum of relatively opening thereon respectively image when several images is all less than setting value, starts to gather image and decode; Otherwise return to step (3) and proceed images of items collection comparative analysis;
(5) after successfully decoded, go to step (6), otherwise add up the current decoding frequency of failure, if in set point number successfully decodeds not all, jump to step (3);
(6) stop gathering, return to initial state to be collected.
2. Dynamic Recognition as claimed in claim 1 gathers the method for Z-code, it is characterized in that, in described step (3), not identical pixel is greater than setting value and refers to that the ratio of same pixel point is not more than setting value, and setting value is 8% ~ 15%.
3. Dynamic Recognition as claimed in claim 2 gathers the method for Z-code, it is characterized in that, described setting value is 10%.
4. Dynamic Recognition as claimed in claim 1 gathers the method for Z-code, it is characterized in that, in described step (3), image analysis processing unit is analyzed between adjacent two images that refer to 14 ~ 20 frames of interval in turn of image analysis processing unit to camera collection and is analyzed the image of camera collection;
Show that image opens relatively thereon the motor image vegetarian refreshments sum of image and refer to and show that image is with respect to before it and the motion pixel of the image of 14 ~ 20 frames with interval.
5. Dynamic Recognition as claimed in claim 1 gathers the method for Z-code, it is characterized in that, in described step (3), image analysis processing unit is analyzed between adjacent two images that refer to 16 frames of interval in turn of image analysis processing unit to camera collection and is analyzed the image of camera collection;
Show that image opens relatively thereon the motor image vegetarian refreshments sum of image and refer to and show that image is with respect to before it and the motion pixel of the image of 16 frames with interval.
6. the Dynamic Recognition as described in arbitrary claim in claim 1 ~ 5 gathers the method for Z-code, it is characterized in that, in described step (5), described set point number is 3 ~ 5 times.
CN201410162349.5A 2014-04-22 2014-04-22 A kind of method of Dynamic Recognition collection Z-code Expired - Fee Related CN103955670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410162349.5A CN103955670B (en) 2014-04-22 2014-04-22 A kind of method of Dynamic Recognition collection Z-code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410162349.5A CN103955670B (en) 2014-04-22 2014-04-22 A kind of method of Dynamic Recognition collection Z-code

Publications (2)

Publication Number Publication Date
CN103955670A true CN103955670A (en) 2014-07-30
CN103955670B CN103955670B (en) 2018-04-20

Family

ID=51332945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410162349.5A Expired - Fee Related CN103955670B (en) 2014-04-22 2014-04-22 A kind of method of Dynamic Recognition collection Z-code

Country Status (1)

Country Link
CN (1) CN103955670B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205429A (en) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 Decoding control method and device for two-dimension code
CN105872194A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image acquisition method and device for terminal
CN107908998A (en) * 2017-11-28 2018-04-13 百富计算机技术(深圳)有限公司 Quick Response Code coding/decoding method, device, terminal device and computer-readable recording medium
CN110084346A (en) * 2019-03-11 2019-08-02 广州真知码信息科技有限公司 A kind of production method of personalization Z-code
CN112487888A (en) * 2020-11-16 2021-03-12 支付宝(杭州)信息技术有限公司 Image acquisition method and device based on target object

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118214A1 (en) * 2001-12-20 2003-06-26 Porikli Fatih M. Identifying moving objects in a video using volume growing and change detection masks
CN101042726A (en) * 2007-03-14 2007-09-26 中兴通讯股份有限公司 Method for implementing continuance recognizing bar-code in terminal
CN103049828A (en) * 2013-01-11 2013-04-17 广州宽度信息技术有限公司 Two-dimensional code management system for online products on production line
CN103049909A (en) * 2012-12-12 2013-04-17 北京蓝卡软件技术有限公司 Exposure method taking license plate as focus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118214A1 (en) * 2001-12-20 2003-06-26 Porikli Fatih M. Identifying moving objects in a video using volume growing and change detection masks
CN101042726A (en) * 2007-03-14 2007-09-26 中兴通讯股份有限公司 Method for implementing continuance recognizing bar-code in terminal
CN103049909A (en) * 2012-12-12 2013-04-17 北京蓝卡软件技术有限公司 Exposure method taking license plate as focus
CN103049828A (en) * 2013-01-11 2013-04-17 广州宽度信息技术有限公司 Two-dimensional code management system for online products on production line

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张闯: "条码识别技术研究及其在产品流水线上的应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205429A (en) * 2015-09-16 2015-12-30 北京慧眼智行科技有限公司 Decoding control method and device for two-dimension code
CN105205429B (en) * 2015-09-16 2019-01-25 北京慧眼智行科技有限公司 A kind of decoding control method and device of two dimensional code
CN105872194A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Image acquisition method and device for terminal
CN107908998A (en) * 2017-11-28 2018-04-13 百富计算机技术(深圳)有限公司 Quick Response Code coding/decoding method, device, terminal device and computer-readable recording medium
CN107908998B (en) * 2017-11-28 2020-11-03 百富计算机技术(深圳)有限公司 Two-dimensional code decoding method and device, terminal equipment and computer readable storage medium
CN110084346A (en) * 2019-03-11 2019-08-02 广州真知码信息科技有限公司 A kind of production method of personalization Z-code
CN110084346B (en) * 2019-03-11 2022-07-19 广州真知码信息科技有限公司 Method for manufacturing personalized true knowledge code
CN112487888A (en) * 2020-11-16 2021-03-12 支付宝(杭州)信息技术有限公司 Image acquisition method and device based on target object

Also Published As

Publication number Publication date
CN103955670B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN103955670A (en) Method for recognizing and collecting Z-codes dynamically
US10839227B2 (en) Queue group leader identification
US20120048937A1 (en) Multiple barcode detection system and method
US11138171B2 (en) Passenger flow information collection method and apparatus, and passenger flow information processing method and apparatus
JP2011513809A5 (en)
RU2007132990A (en) METHOD (OPTIONS), POLARIZATION IDENTIFICATION SYSTEM AND MACHINE READABLE MEDIA
EP3394791B1 (en) Coded information reader
US20170185985A1 (en) Sales registration apparatus, program, and sales registration method
CN104603838B (en) Apparatus and method for monitoring object from captured image
US20210334533A1 (en) Object identification method and object identification device
CN105335750A (en) Client identity identification system and identification method
KR20180054808A (en) Motion detection within images
JP2017129567A5 (en)
US20160125268A1 (en) Image processing system, image processing method, and recording medium
CN109977251A (en) A method of building identifies commodity based on RGB histogram feature
US9064172B2 (en) System and method for object detection
JP2015219892A (en) Visual line analysis system and visual line analysis device
CN101719280B (en) Method for detecting petty infrared target
WO2014065033A8 (en) Similar image retrieval device
CN103065148A (en) Method and device of acquiring clothing two-dimension code in video
CN110929668A (en) Commodity detection method and device based on unmanned goods shelf
US10044988B2 (en) Multi-stage vehicle detection in side-by-side drive-thru configurations
AU2020414142B2 (en) Pickup robot, pickup method, and computer-readable storage medium
US8958598B2 (en) System and method for detecting moving objects using video capturing device
CN109961457B (en) Cashing loss prevention method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220530

Address after: 510663 No. b013-b015, office card space of yueembedded Zhongchuang space on the fourth floor of block A107 and block B, creative center, TCL Cultural Industry Park, No. 69, spectrum West Road, Science City, Huangpu District, Guangzhou, Guangdong Province

Patentee after: Guangzhou Huii Information Technology Co.,Ltd.

Address before: 510663 Unit 502, Fifth Floor, B2 District, 162 Science Avenue, Science City, Guangzhou High-tech Industrial Development Zone, Guangdong Province

Patentee before: GUANGZHOU WIDTH INFORMATION TECHNOLOGY Co.,Ltd.

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

Granted publication date: 20180420