CN106529523A - Image restoration and serial number identification method for aluminum-plastic foamed mask package medicines on high-speed conveyor belt - Google Patents

Image restoration and serial number identification method for aluminum-plastic foamed mask package medicines on high-speed conveyor belt Download PDF

Info

Publication number
CN106529523A
CN106529523A CN201611009704.0A CN201611009704A CN106529523A CN 106529523 A CN106529523 A CN 106529523A CN 201611009704 A CN201611009704 A CN 201611009704A CN 106529523 A CN106529523 A CN 106529523A
Authority
CN
China
Prior art keywords
image
camera
medicine
image restoration
blister package
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
CN201611009704.0A
Other languages
Chinese (zh)
Other versions
CN106529523B (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.)
China Jiliang University
Original Assignee
China Jiliang University
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 China Jiliang University filed Critical China Jiliang University
Priority to CN201611009704.0A priority Critical patent/CN106529523B/en
Publication of CN106529523A publication Critical patent/CN106529523A/en
Application granted granted Critical
Publication of CN106529523B publication Critical patent/CN106529523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • G06V10/242Aligning, centring, orientation detection or correction of the image by image rotation, e.g. by 90 degrees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to an image restoration and serial number identification method for aluminum-plastic foamed mask package medicines on a high-speed conveyor belt, relates to the image restoration and image identification field and solves an image fuzziness problem of the aluminum-plastic foamed mask package medicines on the high-speed conveyor belt. A method system comprises an industrial digital camera, a light source, a photoelectric proximity switch and a photoelectric angle encoder. The method comprises steps that two intelligible continuous target object images are acquired by the camera at a largest frame rate when the conveyor belt is in low speed motion; image motion of the two images is calculated through utilizing a combined transformation correlation algorithm, and an average image motion value is acquired through multiple experiments; the conveyor belt moves in high speed to increase the exposure time of the camera to acquire fuzzy medicine images; a point diffusion function of the fuzzy medicine images is derived through utilizing the previously acquired average image motion value; image restoration is carried out through utilizing a Lucy-Richardson algorithm to acquire intelligible medicine images; serial number identification is carried out through utilizing a support vector machine method. The method is advantaged in that the image restoration effect is good, and identification accuracy is high.

Description

On a kind of High Speed Transfer band, the image restoration of aluminium-plastic blister package drugs and sequence number are known Other method
Technical field
The present invention relates to motion blur image restoration and field of image recognition, and in particular to plastic-aluminum on a kind of High Speed Transfer band The image restoration and sequence number recognition methods of blister package medicine.
Background technology
Plate containing medicines typically adopt aluminium-plastic bubble plate packing, and this packaged form advantage is more, wherein being some blister package aluminium Paper tinsel surface is printed on explanatory note and sequence number, improves the security of dispensing.
In process of production, medicine sequence number acts primarily as mark action.According to product batch number and the corresponding record of production, can To review the history of this batch of products material source, medicine forming process;After medicine forms finished product, according to sales figure, can be with Review the market whereabouts of medicine;The quality condition that medicine is entered behind market;Can control when needing or reclaim this batch of medicine Product.So will record to medicine sequence number during pharmaceutical production, packaging and dispensing etc., manual record mode efficiency Low, high labor intensive, is just replaced by machine vision technique at present step by step, replaces manual identified with the mode of image recognition.
Pharmaceutical production, packaging and dispensing etc. are usually to carry out on a moving belt, and this just brings difficulty for machine vision method Degree, because the image when speed of moving body is too fast relative to camera frame per second captured by camera will occur that motion blur is existing As.Existing method typically adopts high frame per second camera in the method for maximum frame per second collection image to avoid problem of image blurring.But It is to need extraneous additional light source to increase brightness of image when camera gathers image with maximum frame per second, otherwise image is partially dark or even complete It is black, but strong illumination can not be adopted on some special leechdom production lines, and extraneous polishing easily causes plastic-aluminum surface Mirror-reflection is so as to affecting IMAQ quality.
The content of the invention
The present invention is to solve the problems, such as that image blurring in medicine IMAQ and medicine obtains hardly possible in real time on high-speed conveyor, The image restoration and sequence number recognition methods of aluminium-plastic blister package drugs on a kind of High Speed Transfer band are provided.The present invention is by calculating Point spread function reflex grand master pattern poultice product image, beats high light when solving the problems, such as shooting using the method for increasing the time for exposure, And the sequence number on medicine image is recognized by support vector machine method.Comprise the following steps that:
(1) industrial digital camera and light source etc. are built on medicine conveyer belt, completes image capturing system, camera and transmission Band Relative vertical, installs photoelectric proximity switch and realizes that camera is triggered when medicine is occurred under camera lens obtains image, and pacify Dress photoelectric angular encoder is used for the movement velocity for measuring conveyer belt.
(2) conveyer belt low speed V1Motion, camera are adjusted to maximum frame per second i.e. time for exposure P1, camera exposure time and conveyer belt Movement velocity meets below equation:
Wherein K is camera pixel size, and β is image enlargement ratio, in this case camera shooting clear image, is opened Light intensity light source, photoelectric proximity switch are closed, camera outer signal generator, and signal generator produces trigger of the cycle for T Triggering camera obtains two continuous target picture rich in detail I1, I2, adjacent two targets are calculated using joint transform related algorithm Body image slices shifting amount Δ x, Δ y,
(Δ x, Δ y)=JTC (I1, I2)
Wherein JTC is the related computational algorithm of joint transform, and joint transform is related to have good noise robustness, for The image of low signal-to-noise ratio can also obtain the image motion measurement of sub-pixel precision, obtain low when being adjusted to very low between solving upon exposure The problem of signal-to-noise ratio image.The mean value of repeat step (2) n computations picture shifting amountWithFormula is as follows:
(3) conveyer belt is with speed V during normal work2Motion, weakens light source, increase camera exposure time to P2, camera exposure Time should be adjusted to the half that the image intensity value captured by camera is maximum gradation value, open photoelectric proximity switch.Now because The increase with the camera exposure time is improved for conveyer belt speed, the aluminium-plastic blister package drugs image that camera is photographed is mould Paste image Ib
(4) step (3) middle mold poultice product image I is extrapolated according to the picture shifting amount mean value obtained in step (2)bPoint expand Scattered function h (x, y), computing formula are as follows:
Wherein L is that blurred length and θ are fuzzy angle, if blurred length is more than 10 pixels, often beyond recovery The limit, now can suitably reduce time for exposure P2.Lucy-Richardson algorithm restored images are finally utilized, clear aluminium is obtained Modeling blister package medicine image.
(5) on the clear aluminium-plastic blister package drugs image obtained using the method identification step (4) of SVMs Sequence number, in order to preferably extract feature, first has to carry out character normalization, and the feature for sequence number character recognition has periphery Profile and thick meshed feature, realize disturbing training sample by Bagging (Bootstrap Aggregating) algorithm afterwards It is dynamic, so as to produce the base grader with otherness, then carry out the integrated study of base grader, finally with the support for training to Amount machine grader recognizes the sequence number on clear aluminium-plastic blister package drugs image.
Beneficial effects of the present invention:The present invention a kind of High Speed Transfer band on aluminium-plastic blister package drugs image restoration and Sequence number recognition methods, only make use of an industrial camera just to complete image restoration, and is not required in medicine shooting process Intense light source is wanted, solves the problems, such as that some special medicines can not be easily caused mirror-reflection by strong illumination and polishing.The present invention Image collecting device it is simple, image restoration effect is good, and medicine comment on aluminium-plastic blister package drugs etc. is clearly presented, And by the information of support vector machine method identification sequence number content obtaining medicine.
Description of the drawings
Fig. 1 is the image restoration of aluminium-plastic blister package drugs and sequence number identification side on a kind of High Speed Transfer band of the present invention The flow chart of method;
Fig. 2 be joint transform related algorithm in set up joint image schematic diagram;
Fig. 3 is the total system assembling schematic diagram of the present invention;
Fig. 4 is SVMs identification sequence number flow chart.
Specific implementation step
With reference to the accompanying drawings and in conjunction with the embodiments to aluminium-plastic blister package drugs on a kind of High Speed Transfer band of the present invention Image restoration and sequence number recognition methods are described further.
Step one:Referring to Fig. 3, industrial digital camera (1) and light source (2) etc. are built on medicine conveyer belt (5), figure is completed As acquisition system, camera (1) and conveyer belt (5) Relative vertical, photoelectric proximity switch (3) is installed and is realized when medicine occurs in camera (1) image is obtained when under camera lens, and photoelectric angular encoder (4) is installed for measuring the movement velocity of conveyer belt (5).
Step 2:The time for exposure of industrial camera (1) is reduced as far as possible to limit time P1, i.e. camera (1) reaches largest frames Rate, increasing light source (2) brightness makes target (6) blur-free imaging on conveyer belt (3), opens conveyer belt (5) telecontrol equipment, now passes Band (5) is sent with low speed V1Motion, camera (1) time for exposure and conveyer belt (5) movement velocity meet below equation:
Wherein K is camera pixel size, and β is image enlargement ratio, and camera can be with shooting clear target in this case Object image, photoelectric proximity switch (3) are closed, camera (1) outer signal generator, and signal generator produces triggering of the cycle for T Signal triggering camera (1) obtains two continuous target (6) picture rich in detail I1, I2, calculate adjacent using joint transform related algorithm Two target object image slices shifting amount Δ x, Δ y,
(Δ x, Δ y)=JTC (I1, I2)
Wherein JTC is joint transform related algorithm, and method is as follows:
It is assumed that target image I2(x, y) is relative to reference picture I1The displacement of (x, y) on x, y direction is Δ x, Δ respectively The center of the two as shown in Figure 2, is positioned over (- a, 0) with (a, 0), obtaining joint input image j (x, y) is by y:
J (x, y)=I1(x+a, y)+I2(x-a, y)=I1(x+a, y)+I1(x-a- Δ x, y- Δ y)
A Fourier transformation is carried out to which and its power spectrum is taken, calculation is derived by equation below:
| J (u, v) |2=2 | I '1(u, v) |2+2|I′1(u, v) |2cos[2π(Δx+2a)u+2πΔyv]
I ' in the formula1(u, v) is I1The Fourier transformation of (x, y), | * | are modulus computing.Fourier is done again to power spectrum Conversion, obtains joint correlation output:
C (x, y)=2Crr(x, y)+Crr(x+2a+ Δ x, y+ Δ y)+Crr(x-2a- Δ x, y- Δ y)
C in the formularr(x, y) is I1The auto-correlation function of (x, y), CrrThe peak value of (x, y) be located at (0,0), and Crr(x+2a+ Δ x, y+ Δ y) and Crr(peak value of x-2a- Δ x, y- Δ y) respectively be located at (- 2a- Δ x ,-Δ y) and (2a+ Δ x, Δ y), according to Crr(x+2a+ Δ x, y+ Δ y) and Crr(two peak relations of x-2a- Δ x, y- Δ y) can just obtain target image phase For the displacement of reference picture, (Δ x, Δ y), i.e., picture between the two are moved, and the position coordinates of two correlation peaks passes through matter Center algorithm is calculated, and joint transform is related to have good noise robustness, can also obtain Asia for the image of low signal-to-noise ratio The image motion measurement of pixel precision, obtains low signal-to-noise ratio (SNR) images when being adjusted to very low between solving the problems, such as upon exposure well. The mean value of repeat step (2) n computations picture shifting amountWithFormula is as follows:
Step 3:Conveyer belt (5) is with speed V during normal work2Motion, weakens light source (2), when increase camera (1) exposes Between arrive P2, camera (1) time for exposure should be adjusted to the half that the image intensity value captured by camera (1) is close to maximum gradation value, Open photoelectric proximity switch (3).Now because conveyer belt (5) movement velocity improves the increase with camera (1) time for exposure, camera (1) aluminium-plastic blister package drugs (6) image for photographing is blurred picture Ib
Step 4:Picture shifting amount mean value according to obtaining in step 2 extrapolates step 3 middle mold poultice product image IbPoint Spread function h (x, y), computing formula are as follows:
Wherein L is that blurred length and θ are fuzzy angle, afterwards using Lucy-Richardson algorithm restored images, Lucy-Richardson algorithms assume that image obeys Poission distributions, are estimated using maximum likelihood, are that one kind is based on The iterative algorithm of Bayesian analysis, which estimates that iterative equation is as follows:
Wherein IbFormer blurred picture is represented, g represents restored image, and h represents point spread function, and k represents iterations.Utilize MATLAB software rejuvenation images, then h=fspecial (' motion ', L, θ), g=deconvlucy (Ib, h, 5).This just completes Recovery operation to aluminum-plastic blister medicine image on conveyer belt.
Step 5:Using on the clear aluminium-plastic blister package drugs image that the method identification step four of SVMs is obtained Sequence number, in order to preferably extract feature, first have to carry out character normalization, the feature for sequence number character recognition has outer Profile and thick meshed feature are enclosed, is realized to training sample by Bagging (Bootstrap Aggregating) algorithm afterwards Disturbance, so as to produce the base grader with otherness, then carries out the integrated study of base grader, finally with the support for training Vector machine classifier recognizes the sequence number on clear aluminium-plastic blister package drugs image.

Claims (4)

1. on a kind of High Speed Transfer band aluminium-plastic blister package drugs image restoration and sequence number recognition methods, it is characterised in that bag Include following steps:
Step 1, image collecting device is built on medicine conveyer belt (5), image collecting device includes an industrial digital camera (1) and light source (2), camera (1) and conveyer belt (5) Relative vertical, install photoelectric proximity switch (3) and realize when medicine (6) appearance Camera (1) synchronous photo taking is triggered when under camera (1) camera lens, and photoelectric angular encoder (4) is installed for measuring conveyer belt (5) fortune Dynamic speed;
Step 2, conveyer belt (5) low speed V1Motion, camera (1) are adjusted to maximum frame per second i.e. time for exposure P1, light intensity light source (2) is opened, Photoelectric proximity switch (3) is closed, camera (1) outer signal generator, and signal generator produces the cycle for the trigger triggering of T Camera (1) obtains two continuous target (6) pictures rich in detail, calculates between image as shifting amount, step 2 is repeated several times and tries to achieve image The mean value of x and y directions picture shifting amount is respectivelyWith
Step 3, conveyer belt (5) are with speed V during normal work2Motion, weakens light source (2), increase camera (1) time for exposure to P2, Half of the medicine image intensity value captured by camera (1) for maximum gradation value, opens photoelectric proximity switch (3), obtains plastic-aluminum The blurred picture of blister package medicine;
Step 4, the point spread function that step 3 middle mold poultice product image is extrapolated according to the picture shifting amount obtained in step 2, restored map As obtaining clear aluminium-plastic blister package drugs image;
Sequence on step 5, the clear aluminium-plastic blister package drugs image obtained using the method identification step 4 of SVMs Number.
2. on a kind of High Speed Transfer band according to claim 1, the image restoration of aluminium-plastic blister package drugs and sequence number are known Other method, it is characterised in that:In described step 2, target is five great circle targets, is calculated between adjacent image as shifting amount method For joint transform related algorithm.
3. on a kind of High Speed Transfer band according to claim 1, the image restoration of aluminium-plastic blister package drugs and sequence number are known Other method, it is characterised in that:Described step 4 middle mold poultice product image point spread function computing formula is:
L = ( m Δ x ‾ ) 2 + ( m Δ y ‾ ) 2
θ = tan - 1 Δ y ‾ Δ x ‾
m = V 2 × P 2 V 1 × T
Wherein L is blurred length, and θ is fuzzy angle, and h (x, y) is point spread function, and the method for restored image adopts Lucy- Richardson algorithms.
4. on a kind of High Speed Transfer band according to claim 1, the image restoration of aluminium-plastic blister package drugs and sequence number are known Other method, it is characterised in that:In described step 5, support vector machine method includes:Character normalization, feature extraction, support to The training of amount machine grader, the identification of support vector machine classifier.
CN201611009704.0A 2016-11-14 2016-11-14 Aluminum-plastic blister image restoration and sequence number recognition methods on a kind of High Speed Transfer band Active CN106529523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611009704.0A CN106529523B (en) 2016-11-14 2016-11-14 Aluminum-plastic blister image restoration and sequence number recognition methods on a kind of High Speed Transfer band

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611009704.0A CN106529523B (en) 2016-11-14 2016-11-14 Aluminum-plastic blister image restoration and sequence number recognition methods on a kind of High Speed Transfer band

Publications (2)

Publication Number Publication Date
CN106529523A true CN106529523A (en) 2017-03-22
CN106529523B CN106529523B (en) 2019-04-02

Family

ID=58353373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611009704.0A Active CN106529523B (en) 2016-11-14 2016-11-14 Aluminum-plastic blister image restoration and sequence number recognition methods on a kind of High Speed Transfer band

Country Status (1)

Country Link
CN (1) CN106529523B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203770A (en) * 2017-05-27 2017-09-26 上海航天控制技术研究所 A kind of optics strapdown seeker image tracking method
CN111626946A (en) * 2020-04-23 2020-09-04 武汉理工大学 Motion blur kernel measurement method for high-speed material transmission visual detection system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848587B2 (en) * 2006-06-30 2010-12-07 Eastman Kodak Company Image-processing system and image-processing program
CN103310427A (en) * 2013-06-24 2013-09-18 中国科学院长春光学精密机械与物理研究所 Image super-resolution and image quality enhancement method
CN104299202A (en) * 2014-10-25 2015-01-21 中国科学院光电技术研究所 Out-of-focus blurred image blind restoration method based on medium frequency

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7848587B2 (en) * 2006-06-30 2010-12-07 Eastman Kodak Company Image-processing system and image-processing program
CN103310427A (en) * 2013-06-24 2013-09-18 中国科学院长春光学精密机械与物理研究所 Image super-resolution and image quality enhancement method
CN104299202A (en) * 2014-10-25 2015-01-21 中国科学院光电技术研究所 Out-of-focus blurred image blind restoration method based on medium frequency

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
NOBUHITO ISHIHARA ETC.: "Blind recovery of truncated blurred image using adaptive masking method", 《PROCEEDINGS OF THE WINTER INTERNATIONAL SYNPOSIUM ON INFORMATION AND COMMUNICATION TECHNOLOGIES》 *
安岗: "CCD光学成像系统的点扩散函数及其在亚像素边缘定位中的应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
贤光等: "运动模糊图像点扩散函数的频谱估计法", 《液晶与显示》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203770A (en) * 2017-05-27 2017-09-26 上海航天控制技术研究所 A kind of optics strapdown seeker image tracking method
CN107203770B (en) * 2017-05-27 2020-07-31 上海航天控制技术研究所 Optical strapdown seeker image tracking method
CN111626946A (en) * 2020-04-23 2020-09-04 武汉理工大学 Motion blur kernel measurement method for high-speed material transmission visual detection system

Also Published As

Publication number Publication date
CN106529523B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109791696B (en) Method, device and method for locating event cameras for 3D reconstruction of a scene
CN105225482B (en) Vehicle detecting system and method based on binocular stereo vision
US8787656B2 (en) Method and apparatus for feature-based stereo matching
CN103679749B (en) A kind of image processing method and device based on motion target tracking
US20170337726A1 (en) 3d photogrammetry
Kong et al. Intrinsic depth: Improving depth transfer with intrinsic images
CN109583285A (en) Object identifying method
CN107977650B (en) Method for detecting human face and device
CN106127696A (en) A kind of image based on BP neutral net matching sports ground removes method for reflection
CN105404857A (en) Infrared-based night intelligent vehicle front pedestrian detection method
CN103810475B (en) A kind of object recognition methods and device
CN106991650A (en) A kind of method and apparatus of image deblurring
WO2008020598A1 (en) Subject number detecting device and subject number detecting method
CN106885622A (en) A kind of big visual field multiple spot three-dimensional vibrating measuring method
CN104054110B (en) Collision time according to image sensing
CN102997891A (en) Device and method for measuring scene depth
CN112801074A (en) Depth map estimation method based on traffic camera
CN106529523A (en) Image restoration and serial number identification method for aluminum-plastic foamed mask package medicines on high-speed conveyor belt
Seets et al. Motion adaptive deblurring with single-photon cameras
Shi et al. On optical flow techniques applied to breaking surges
Bae et al. Lensless imaging with an end-to-end deep neural network
CN111696143B (en) Event data registration method and system
CN104063879A (en) Pedestrian flow estimation method based on flux and shielding coefficient
CN107092908A (en) A kind of plane pressed characters automatic identifying method based on train bogie
CN112435345B (en) Human body three-dimensional measurement method and system based on deep learning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant