CN105427321A - Method for detecting existence of soft bag on tray - Google Patents

Method for detecting existence of soft bag on tray Download PDF

Info

Publication number
CN105427321A
CN105427321A CN201510870507.7A CN201510870507A CN105427321A CN 105427321 A CN105427321 A CN 105427321A CN 201510870507 A CN201510870507 A CN 201510870507A CN 105427321 A CN105427321 A CN 105427321A
Authority
CN
China
Prior art keywords
soft bag
region
color
tray
image
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
CN201510870507.7A
Other languages
Chinese (zh)
Other versions
CN105427321B (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.)
Tianjin Puda Software Technology Co Ltd
Original Assignee
Tianjin Puda Software 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 Tianjin Puda Software Technology Co Ltd filed Critical Tianjin Puda Software Technology Co Ltd
Priority to CN201510870507.7A priority Critical patent/CN105427321B/en
Publication of CN105427321A publication Critical patent/CN105427321A/en
Application granted granted Critical
Publication of CN105427321B publication Critical patent/CN105427321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0008Industrial image inspection checking presence/absence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection

Abstract

The invention relates to a method for detecting whether a soft bag exists on a tray or not. The method comprises: acquiring an image of the tray from which the soft bag has been discharged; converting the acquired tray image from an RGB color space to an HIS color space; according to the color of an identifier pasted on the soft bag, determining an interested color range; creating a color table three-dimensional array which represents [H] [S] [I], storing the interested color range by using the color table array, and obtaining a final color table; dividing the tray image into a plurality of regions, and for each region, debugging parameters of the region by utilizing the color table to obtain a binary image; eliminating noisy points in the binary image through open operation, extracting communicated regions, and obtaining an area of each communicated region; and comparing the area of each communicated region with a judgment threshold, and if the area of the communicated region, greater than the judgment threshold, exists, indicating that the soft bag is left on the tray. According to the method, whether the soft bag is left on the tray or not can be detected on line.

Description

A kind ofly detect the method whether pallet having soft bag
Technical field
The invention belongs to Digital Image Processing, relate to a kind of method detecting soft bag and whether exist.
Background technology
In the process of producing, due to needs high temperature sterilization, then through the series of steps such as drenching with rain, the pallet filling soft bag is there will be the problem that soft bag leaves over discharging, and owing to being the production of medicine, management and control is very strict.At present in order to get rid of this problem, adopt manual detection.But there is the reasons such as tired and subjective factors interference in manual detection, manual detection exists certain problem.
Summary of the invention
The object of this invention is to provide and a kind ofly can be implemented in the soft bag that line detects on pallet fast and whether there is the method left over.Technical scheme of the present invention is as follows:
Detect the method whether pallet having soft bag, comprise the following steps:
(1) the pallet image of having discharged soft bag is gathered;
(2) transforming the pallet image obtained, is HIS color space by the pallet image collected by RGB color space conversion;
(3) according to the color of the mark that soft bag pastes, determine between interested chromatic zones;
(4) create color table three-dimensional array, three-dimensional array represents respectively [H] [S] [I], with between the interested chromatic zones of this color table storage of array, obtain final color table;
(5) pallet image is divided into multiple region, for each region, the color table utilizing (4) to obtain, debugs the parameter in this region respectively, obtains binary map;
(6) carry out the noise removed by opening operation in binary map, and carry out the extraction of connected region, obtain the area of each connected region;
(7) comparing by each connected region area and decision threshold, if there is the connected region area being greater than decision threshold, then pallet exists soft bag and leave over.
The method step is simple, can better and detect the soft bag leftover problem of pallet fast.
Accompanying drawing explanation
The former figure of Fig. 1
The bianry image that Fig. 2 obtains
Fig. 3 contains little noise
Fig. 4 removes the figure after noise
Embodiment
Below in conjunction with drawings and Examples, the present invention will be described.
(1) color images
Because the Color perception of color space HIS and human eye matches, it is particularly useful in occasions that some illuminations are uneven, and because tone and highlighted, shade have nothing to do, the object of tone to differentiation different colours is very effective.
First, being transformed by the image as Fig. 1 obtained, is HIS color space by the image collected by RGB color space conversion: adopt geometry derivation, according to formula is:
H = &theta; , G &GreaterEqual; B 2 &pi; - &theta; , G < B , w h e r e &theta; = cos - 1 ( ( R - G ) + ( R - B ) 2 * ( R - G ) 2 + ( R - B ) * ( G - B ) )
S = 1 - 3 * m i n ( R , G , B ) R + G + B
I = R + G + B 3
Secondly, create color table array ColorTable [361] [101] [256], three-dimensional array represents respectively [H] [S] [I], with between our interested chromatic zones of this color table storage of array (blueness above soft bag), obtains final color table;
Finally, searching loop whole image, if pixel (X, Y) drops in color table, otherwise then this place's pixel value is set to 1 and is set to 0; Obtain a bianry image, as Fig. 2;
Remarks: because pallet dimension is 1700mm*1700mm, adopt on-the-spot natural light during detection, so in order to ensure the stability detected, we have divided six regions on image, to the independent regulating parameter in each zonule.
(2) connected region is extracted and counting
Adopt 4 to face territory region growing approach to bianry image and extract each connected region.Be implemented as follows:
Searching loop bianry image, when image (x, y) place pixel is 1, region growing is carried out as seed by this point, and statistical pixel number, after this feed search completes, its value is set to 0, continue search by new seed, until not regrowth, determine connected region 1.
Searching loop bianry image, searching for another place's pixel value is that the point of 1 is as seed determination connected region 2.
Circulate successively ... .., stopping stop condition is: then can grow without point;
Acquire each connected region, demonstrate the area of each connected region final.
(3) with or without judgement
According to Fig. 4, if there is the area of any one connected region to be greater than the decision threshold of setting, then there is soft bag above pallet and leave over.

Claims (1)

1. detect the method whether pallet having soft bag, comprise the following steps:
(1) the pallet image of having discharged soft bag is gathered;
(2) transforming the pallet image obtained, is HIS color space by the pallet image collected by RGB color space conversion;
(3) according to the color of the mark that soft bag pastes, determine between interested chromatic zones;
(4) create color table three-dimensional array, three-dimensional array represents respectively [H] [S] [I], with between the interested chromatic zones of this color table storage of array, obtain final color table;
(5) pallet image is divided into multiple region, for each region, the color table utilizing (4) to obtain, debugs the parameter in this region respectively, obtains binary map;
(6) carry out the noise removed by opening operation in binary map, and carry out the extraction of connected region, obtain the area of each connected region;
(7) comparing by each connected region area and decision threshold, if there is the connected region area being greater than decision threshold, then pallet exists soft bag and leave over.
CN201510870507.7A 2015-12-01 2015-12-01 Whether the method for soft bag is had on a kind of detection pallet Active CN105427321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510870507.7A CN105427321B (en) 2015-12-01 2015-12-01 Whether the method for soft bag is had on a kind of detection pallet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510870507.7A CN105427321B (en) 2015-12-01 2015-12-01 Whether the method for soft bag is had on a kind of detection pallet

Publications (2)

Publication Number Publication Date
CN105427321A true CN105427321A (en) 2016-03-23
CN105427321B CN105427321B (en) 2018-06-26

Family

ID=55505501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510870507.7A Active CN105427321B (en) 2015-12-01 2015-12-01 Whether the method for soft bag is had on a kind of detection pallet

Country Status (1)

Country Link
CN (1) CN105427321B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600620A (en) * 2016-12-28 2017-04-26 天津普达软件技术有限公司 Alarm method of unsuccessful landing of infusion bag in pallet on production line on conveyor belt
CN106845466A (en) * 2016-12-12 2017-06-13 深圳市燕麦科技股份有限公司 A kind of product identification method and its system based on image
CN113033545A (en) * 2019-12-24 2021-06-25 同方威视技术股份有限公司 Empty tray identification method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970200B2 (en) * 2005-01-26 2011-06-28 Semiconductor Energy Laboratory Co., Ltd. Pattern inspection method and apparatus
CN103226814A (en) * 2013-04-02 2013-07-31 湖南大学 Medicine bottle foreign matter detection method based on medical visual detection robot image correction
CN104598877A (en) * 2014-12-30 2015-05-06 楚天科技股份有限公司 Visual inspection method and system of characters on bag making line and bag making line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7970200B2 (en) * 2005-01-26 2011-06-28 Semiconductor Energy Laboratory Co., Ltd. Pattern inspection method and apparatus
CN103226814A (en) * 2013-04-02 2013-07-31 湖南大学 Medicine bottle foreign matter detection method based on medical visual detection robot image correction
CN104598877A (en) * 2014-12-30 2015-05-06 楚天科技股份有限公司 Visual inspection method and system of characters on bag making line and bag making line

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845466A (en) * 2016-12-12 2017-06-13 深圳市燕麦科技股份有限公司 A kind of product identification method and its system based on image
CN106600620A (en) * 2016-12-28 2017-04-26 天津普达软件技术有限公司 Alarm method of unsuccessful landing of infusion bag in pallet on production line on conveyor belt
CN113033545A (en) * 2019-12-24 2021-06-25 同方威视技术股份有限公司 Empty tray identification method and device
WO2021128966A1 (en) * 2019-12-24 2021-07-01 同方威视技术股份有限公司 Empty tray identification and apparatus therefor
CN113033545B (en) * 2019-12-24 2023-11-03 同方威视技术股份有限公司 Empty tray identification method and device

Also Published As

Publication number Publication date
CN105427321B (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN102096818B (en) Object-oriented automatic extracting method and system for outline and parameter of remote sensing image crown
CN105160346B (en) A kind of greasy recognition methods of curdy fur on tongue based on texture and distribution characteristics
CN103745226A (en) Dressing safety detection method for worker on working site of electric power facility
CN105427321A (en) Method for detecting existence of soft bag on tray
CN105701829B (en) A kind of bagging green fruit image partition method
CN105794382A (en) Orchard precision fertilization device and orchard precision fertilization method based on machine vision technology
CN102073872B (en) Image-based method for identifying shape of parasite egg
CN103914836A (en) Farmland machine leading line extraction algorithm based on machine vision
CN106682639B (en) A kind of crop leaf portion abnormal image extracting method based on video surveillance
CN103778628A (en) Method and system for acquiring disease severity of leaf under open field environment
EP2740386A3 (en) Automatic colouring system and method
CN104573719A (en) Mountain fire detection method based on intelligent image analysis
CN106355140A (en) Vehicle detection method and device
CN103268587B (en) Imitative building site index is utilized to obtain the method for urban built-up land information
CN103914848A (en) Farmland image segmentation method based on wavelet transform and maximum between-cluster variance
CN103679146A (en) Safety belt intelligent detection method based on high-pass filter and Hough conversion
CN103729621B (en) Plant leaf image automatic recognition method based on leaf skeleton model
CN102436578B (en) Formation method for dog face characteristic detector as well as dog face detection method and device
CN108846862A (en) A kind of strawberry mechanical hand object localization method of color priori knowledge guiding
CN106157266A (en) A kind of orchard fruit image acquiring method
CN101615241A (en) A kind of screening technique of certificate photograph
CN104766070B (en) Forest information remote sensing extraction method based on vegetation index time series data dispersion
CN107341809A (en) A kind of coastline towards multi-source Remote Sensing Images automatically extracts and bias correction method
CN106023223A (en) Orange fruit size describing method and organic fruit size grading method
CN104408407A (en) Night identification method of apple harvesting robot

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