CN110174063A - A kind of neutral pen ink height detecting system and detection method based on machine vision - Google Patents

A kind of neutral pen ink height detecting system and detection method based on machine vision Download PDF

Info

Publication number
CN110174063A
CN110174063A CN201910501446.5A CN201910501446A CN110174063A CN 110174063 A CN110174063 A CN 110174063A CN 201910501446 A CN201910501446 A CN 201910501446A CN 110174063 A CN110174063 A CN 110174063A
Authority
CN
China
Prior art keywords
ink
pen
image
module
detected
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.)
Pending
Application number
CN201910501446.5A
Other languages
Chinese (zh)
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.)
Shanghai University of Engineering Science
Original Assignee
Shanghai University of Engineering Science
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 Shanghai University of Engineering Science filed Critical Shanghai University of Engineering Science
Priority to CN201910501446.5A priority Critical patent/CN110174063A/en
Publication of CN110174063A publication Critical patent/CN110174063A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • G01B11/06Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness for measuring thickness ; e.g. of sheet material
    • G01B11/0608Height gauges
    • 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/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of, and the neutral pen ink height detecting system based on machine vision includes oil pipe delivery module, detecting module, image capture module, image analysis module and ink screening module.The oil pipe delivery module is used for carrying gel ink pen to be detected;Whether the detecting module is used to detect the gel ink pen to be detected of oil pipe delivery module carrying by predetermined position;For calculating the pixel value for acquiring neutral pen ink height to be detected, image capture module starts to acquire the image of neutral pen ink to be detected after receiving standby signal described image acquisition module;Described image analysis module is used to calculate the pixel value of neutral pen ink height to be detected according to the image that image capture module acquires, and judges whether the height of neutral pen ink to be detected is qualified;The board pen ink screening module, which is used to filter out the qualified gel ink pen of detection and rejects, detects underproof gel ink pen;The detection method, system and detection method improve the accuracy and efficiency of gel ink pen package detection.

Description

A kind of neutral pen ink height detecting system and detection method based on machine vision
Technical field
The present invention relates to Digital Image Processing and mode identification technologies more particularly to a kind of based on machine vision Neutral pen ink height detecting system and detection method.
Background technique
Gel ink pen (Roller ball pens) or Neutral writing ink ball pen are that one kind of prevalence in the world at present is new The writing implement of grain husk.Different types of gel ink pen can be divided into again by written type, ink color, structure etc..Gel ink pen has both certainly Comfortable feel is write by the advantages of coming water-color paintbrush and oiliness ball pen, and ink viscosity is lower, and increases the substance for being easy lubrication, writes The viscosity of medium between aqueous between oiliness, thus it is more smooth than common oiliness ball pen, be the upgrading of oiliness ball pen Regeneration product.
In gel ink pen production, import ink is that wherein whether one of necessary process, neutral pen ink height are qualified directly It is related to the consumption that gel ink pen makes subsequent process progress and cost.Neutral pen ink imports first of work of generally production Sequence.And if imported, ink is inaccurate, and it is irregular often to will appear gel ink pen level of ink in subsequent production, causes to be produced into This excessively high and technique unsightly, to influence to sell, therefore must carry out height inspection to ink first before gel ink pen use It surveys, to filter out defective products.
Currently, generally using a variety of instruments, device and method in the production process that neutral pen ink imports, such as incuding Device or laser scanner etc., or neutral pen ink height is detected by way of artificial detection, to filter out not Non-defective unit.But the mode heavy workload of artificial screening, working efficiency are low and accuracy is low, and detection speed is difficult to reach production requirement. Moreover, existing detection mode is there is also judging that criterion of acceptability is fuzzy, as caused by observation angle, clarity and enlargement ratio The problem of detecting low accuracy caused by inaccuracy and artificial uncontrollable factor and low efficiency.
The present invention be exactly in order to solve problem above and carry out improvement.
Summary of the invention
The object of the present invention is to provide a kind of neutral pen ink height detecting system and detection method based on machine vision, To overcome above-mentioned technical problem.
The present invention is that technical solution used by solving its technical problem is:
A kind of neutral pen ink height detecting system based on machine vision
Oil pipe delivery module, the oil pipe delivery module are used for carrying gel ink pen to be detected.
Detecting module, the detecting module are used to detect the gel ink pen to be detected of oil pipe delivery module carrying by pre-determined bit When setting, standby signal is issued.
Image capture module, image of the described image acquisition module for acquisition calculate neutral pen ink height to be detected Pixel value, image capture module start to acquire the image of neutral pen ink to be detected after receiving standby signal.
Image analysis module, the image that described image analysis module is used to be acquired according to image capture module calculate to be detected The pixel value of neutral pen ink height, and judge whether the height of neutral pen ink to be detected is qualified.
Ink screening module, the board pen ink screening module are used to filter out the qualified gel ink pen of detection and reject detection Underproof gel ink pen.
Further, the detecting module includes several photoelectric sensors for being installed in designated position, the photoelectric sensing Device is used for when oil pipe delivery module carrying gel ink pen to be detected is by designated position, issues standby signal.
Further, described image acquisition module includes image pick-up card, industrial camera and light source;Described image acquisition Block the standby signal for receiving detecting module sending, and records the coding that encoder is currently generated after receiving the standby signal Value;The industrial camera after the standby signal that image pick-up card receives detecting module for acquiring neutral pen ink to be detected Image;The light source is used for gel ink pen by polishing when predetermined position.
Further, described image analysis module includes image processing unit, target computing unit and detection judging unit; The image for the gel ink pen that described image processing unit is used to acquire image capture module pre-processes, and obtains in be detected The profile diagram of property pen;The target computing unit calculates neutral pen ink to be detected by the profile diagram that image processing unit obtains Pixel value;The detection judging unit show that the calculated for pixel values of gel ink pen to be detected is to be detected out by target computing unit The appearance height of ink in gel ink pen, and judge whether the ink height in gel ink pen is qualified.
Further, described image processing unit includes filter processing unit, binary conversion treatment unit, Morphological scale-space list Member and edge detection unit;The filter processing unit to the image that image capture module acquires for being filtered to obtain First intermediate image;The binary conversion treatment unit obtains second for carrying out binary conversion treatment to first intermediate image Intermediate image;The Morphological scale-space unit is used to carry out Morphological scale-space to second intermediate image to obtain third middle graph Picture;The edge detection unit obtains gel ink pen to be detected from the third intermediate image using digital image edge detection technology The profile diagram of ink.
Further, the filter processing unit is filtered using the image that Gaussian filter acquires image capture module Wave noise reduction obtains first intermediate image.
Further, the edge detection unit obtains institute using Canny edge detection algorithm from third intermediate image State the profile diagram of neutral pen ink to be detected.
Further, the detection judging unit includes pixel value extraction unit, parameter default unit, comparison judgment unit With structure recording unit;Neutrality to be detected is extracted in the profile diagram that the pixel value extraction unit is obtained by target computing unit The pixel value of pen;The parameter presets unit and is used to extract neutral pen ink profile according to the pixel value of pixel value extraction unit Parameter preset;The comparison judgment unit is used for the appearance height of neutral pen ink and the standard board pen ink appearance height prestored It is compared, and judges whether the height of the neutral pen ink is qualified;The result recording unit is used for qualified gel ink pen On encoded radio deposit chained list in.
A kind of neutral pen ink height detection method based on machine vision, comprising the following steps:
Step 1: gel ink pen is placed on oil pipe delivery module, is then generated and gel ink pen to be detected by encoder Corresponding encoded radio;
Step 2: when detecting module detects that gel ink pen reaches the predetermined position of image capture module, Image Acquisition mould Block records encoded radio in predetermined position and acquires the image of neutral pen ink to be detected;
Step 3: when detecting module detects that gel ink pen reaches the predetermined position of image analysis module, image analysis mould Root tuber calculates the pixel value of neutral pen ink to be detected according to the image of acquisition, judges neutral pen ink to be detected further according to pixel value Height it is whether qualified;
Step 4: when detecting module detects that gel ink pen reaches the predetermined position of board pen ink screening module, pass through pen and ink Water screening module filters out the qualified gel ink pen of detection and rejects the underproof gel ink pen of detection.
Further, the oil pipe delivery module is transported using conveyer belt apparatus.
The present invention has the advantages that
A kind of neutral pen ink height detecting system and detection method based on machine vision proposed by the present invention, by drawing Enter machine vision metrology building closed loop detection pattern, the image of neutral pen ink can be detected in time and reject unqualified neutrality Pen;On the one hand, compared to manual detection mode, have the advantages that easy to operate, high-efficient, accuracy is high, on the other hand, compare In the detection mode of contact, have the advantages that not damage sample;The detection method using digital image processing techniques quickly and The accurate elevation information for obtaining board pen ink, not only can make testing staff free from the heavy duplication of labour, can be with Improve the accuracy and efficiency of gel ink pen package detection.
Detailed description of the invention
Fig. 1 is a kind of process signal of neutral pen ink height detecting system based on machine vision proposed by the present invention Figure;
Fig. 2 is the flow diagram of image analysis module in the system;
A kind of Fig. 3 flow diagram of the neutral pen ink height detection method based on machine vision proposed by the present invention;
Fig. 4 is that the frame of image analysis module in the detection system constitutes schematic diagram;
Fig. 5 is the image that the image of gel ink pen in embodiment obtains after binary conversion treatment;
Fig. 6 is the image that the image of gel ink pen in embodiment obtains after Canny edge detection algorithm;
Fig. 7 is the image that image capture module acquires in the detection method.
Specific embodiment
In order to be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, tie below Diagram and specific embodiment are closed, the present invention is further explained.
As shown in Figures 1 to 7, a kind of neutral pen ink height detecting system packet based on machine vision proposed by the present invention Include oil pipe delivery module, detecting module, image capture module, image analysis module and ink screening module;The oil pipe transmission Module, the oil pipe delivery module are used for carrying gel ink pen to be detected;The detecting module, the detecting module is for detecting oil When the gel ink pen to be detected of pipe delivery module carrying is by predetermined position, standby signal is issued;Described image acquisition module, it is described Image capture module calculates the pixel value of neutral pen ink to be detected for the image of acquisition, and image capture module is receiving prompt Start to acquire the image of neutral pen ink to be detected after signal;Described image analysis module, described image analysis module are used for root The pixel value of neutral pen ink to be detected is calculated according to the image that image capture module acquires, and judges neutral pen ink to be detected Whether height is qualified;The ink screening module, the board pen ink screening module be used to filter out the qualified gel ink pen of detection with And it rejects and detects underproof gel ink pen.
By using above-mentioned technical proposal, the oil pipe delivery module is by gel ink pen carrying to be detected to designated position, institute It is conveyer belt transport establishment that oil pipe delivery module, which is stated, in this implementation column;Encoder (encoder) is to carry out signal or data Work out, be converted to can by communication, transimission and storage signal form equipment.In this example embodiment, encoder is utilized Encoded radio corresponding with gel ink pen to be detected is generated, so as to using the encoded radio as subsequent identification gel ink pen to be detected Foundation;Using the encoded radio of gel ink pen to be detected as the unique foundation for identifying the gel ink pen to be detected, avoids and examined in high speed Missing inspection and accidentally screening under surveying.
The further setting of the present invention are as follows: if the detecting module includes the photoelectric sensing that equipment for drying is set to designated position Device, the photoelectric sensor are used for when oil pipe delivery module carrying gel ink pen to be detected is by designated position, issue prompt letter Number.
By using above-mentioned technical proposal, in this implementation column, several described photoelectric sensors, which can be set, to be transmitted With the predetermined position in transport establishment, the gel ink pen to be detected described in the oil pipe delivery module carrying passes through the predetermined position When, photoelectric sensor can issue standby signal according to the variation of optical signal.
The further setting of the present invention are as follows: described image acquisition module includes image pick-up card, industrial camera and light source; Described image capture card is used to receive the standby signal of detecting module sending, and receives record encoder after the standby signal and work as Previous existence at encoded radio;The industrial camera is to be checked for acquiring after the standby signal that image pick-up card receives detecting module Survey the image of gel ink pen;The light source is used for gel ink pen by polishing when predetermined position.
By using above-mentioned technical proposal, in the present embodiment, described image capture card is available digitized image Information, and the hardware device for being stored and being played back;Image pick-up card is used to receive the standby signal of detecting module sending And the encoded radio that encoder is currently generated is recorded after receiving standby signal;The industrial camera is stablized with hi-vision Property, high-transmission ability and high anti-jamming capacity, the industrial camera can be the camera based on CCD, CMOS chip;In the figure After the standby signal for receiving detecting module as capture card, the figure that industrial camera acquires neutral pen ink to be detected can control Picture.
In the present embodiment, described image acquisition module can also include camera lens, light source, display and controlling terminal;Its In, the camera lens uses telecentric lens, and the light source is directional light;It can be shot clearly by described image acquisition module Image guarantees the validity of the object of shooting.
As shown in fig. 7, described image acquisition module can acquire the main view of board pen ink to be detected in this example embodiment Figure.But it should be recognized that described image acquisition module can also acquire to be checked in other exemplary embodiment of the present invention Other views of board pen ink are surveyed, do not do particular determination to this in this example embodiment.
The further setting of the present invention are as follows: described image analysis module include image processing unit, target computing unit and Detect judging unit;The image for the neutral pen ink that described image processing unit is used to acquire image capture module is located in advance Reason, and obtain the profile diagram of neutral pen ink to be detected;The profile that the target computing unit is obtained by image processing unit Figure calculates the pixel value of neutral pen ink to be detected;The detection judging unit obtains neutrality to be detected by target computing unit The calculated for pixel values of board pen ink goes out the appearance height of neutral pen ink to be detected, and judges whether neutral pen ink height is qualified.
By using above-mentioned technical proposal, described image processing unit can be used for acquiring image capture module to be checked The image for surveying neutral pen ink carries out pretreatment operation, and obtains the profile diagram of neutral pen ink to be checked, passes through image procossing list The image for the neutral pen ink to be detected that member can acquire image capture module carries out certain transformation, to reach suitable calculating The purpose that machine extracts characteristics of image and identifies;The target computing unit can be used for according to the gel ink pen to be detected The profile diagram of ink calculates outliner pixel values;The outliner pixel values that the detection judging unit is obtained according to target computing unit Judge whether the height of neutral pen ink to be detected is qualified.
As shown in figure 4, described image analysis module 500 includes central processing unit 522, it further comprise one or more Processor, and the memory 523 as representated by external module, the reservoir 523 is for storing by central processing unit 522 Instruction;The application program stored in the memory 523 may include one or more, each of which application program is one group corresponding The module of instruction;In addition, central processing unit 522 is configured as executing instruction, to execute the above method;
Described image analysis module 500 further includes a power supply module 521 and is configured as executing image analysis module 500 Power management, described image analysis module 500 further includes a wired or wireless network interface 524 and is configured as image Analysis module 500 is connected to network, and described image analysis module 500 further includes data (I/O) interface 525;Described image Analysis module 500 can be operated based on the operating system for being stored in central processing unit 522, such as Windows ServerTM, Mac OS XTM, UnixTM and LinuxTM.
The further setting of the present invention are as follows: described image processing unit include filter processing unit, binary conversion treatment unit, Morphological scale-space unit and edge detection unit;The image that the filter processing unit is used to acquire image capture module carries out Filtering processing obtains the first intermediate image;The binary conversion treatment unit, for carrying out binaryzation to first intermediate image Processing obtains the second intermediate image;The Morphological scale-space unit is used to carry out Morphological scale-space to second intermediate image to obtain To third intermediate image;The edge detection unit is obtained using digital image edge detection technology from the third intermediate image The profile diagram of neutral pen ink to be detected.
By using above-mentioned technical proposal, the filter processing unit be used for image capture module acquire it is to be detected in The image of property pen is filtered to obtain the first intermediate image;Industrial camera acquired image inevitably will receive the dry of noise It disturbs, can eliminate or reduce noise by above-mentioned filter processing unit.In the present embodiment, the filter processing unit uses Gauss Filter is filtered noise reduction to the image of the neutral pen ink to be detected and obtains the first intermediate image;Gaussian filtering it is basic Method is to select the template of certain structure, each of scan image pixel, with the weighting of pixel in the determining neighborhood of template Average gray value goes the value of alternate template central pixel point.
The binary conversion treatment unit is used to carry out binary conversion treatment to the first intermediate image to obtain the second intermediate image.Such as Shown in following formula, image binaryzation processing is that the gray value of all pixels is set to 255 greater than given threshold value T, less than giving That determines threshold value T is set to 0, and treated in this way, and image just only has black-and-white two color, so that tonal range is divided into target and background two Class, the pixel region decision that wherein gray scale is 0 is ink, and obtained binary map is as shown in Figure 5.
The Morphological scale-space unit is used to carry out Morphological scale-space to the second intermediate image to obtain third intermediate image.Through The image of filtering treated neutral pen ink to be detected is crossed when carrying out binary conversion treatment, often around pen and ink water area There are some tiny particles and stain, form lesser pseudo- target point in background area, therefore to carry out morphology to image Processing will not change the shape and area of pen and ink water area to eliminate the defect point occurred in image.This example embodiment party In formula, the Morphological scale-space unit carries out opening operation to the second intermediate image first, eliminates the noise occurred in image, then Closed operation is carried out to image again, eliminates in image and particle occurs, can specifically pass through the function cvThreshold in OpenCV It realizes, the realization of Matlab language also can be used.
The edge detection unit is obtained from third intermediate image described to be checked using digital image edge detection technology Survey the profile diagram of neutral pen ink.Pen and ink length normalization detects the edge line that be accurately positioned oil pipe, to reduce ink length Measurement error and improve measurement accuracy, therefore edge detection is image processing operations indispensable in the present invention.Such as Fig. 6 institute Show, in this example embodiment, extracted using Canny edge detection algorithm ink in third intermediate image and background it Between boundary line, the edge detection unit first to third intermediate image carry out gradient amplitude and direction calculating, then Non- extreme value inhibition is carried out to gradient magnitude, then detects and links edge with dual threashold value-based algorithm and obtain the profile diagram of gel ink pen to be checked.
In addition, described image processing unit further includes other parts and carries out other processing steps.For example, at filtering Before managing step, using image pixel gray level rank as abscissa, the grey level histogram of image is obtained by ordinate of pixel quantity, Enhance picture contrast by linear transformation, therefore is not limited thereto in the present exemplary embodiment.
In this example embodiment, the target computing unit is used for the profile diagram according to the neutral pen ink to be detected Calculate the outliner pixel values of neutral pen ink to be detected.The basic principle is that using it under the premise of the profile of known object Profile length and width describe the basic size of the object, it usually needs the calculated for pixel values profile elevations h for being included according to profile makees For the basic size of the object.Calculating the most common method of ink outline height is the ash according to object under boundary operator processing Image is spent, the pixel value that its profile includes is recorded, is calculated shared by a pixel value according to camera resolution and physical length Unit length size calculates.Its specific steps can be summarized as:
(1) profile diagram obtained to edge detection calculates its outliner pixel values;
(2) ink height is acquired according to the length of actual size shared by each pixel value for required pixel value.
Further, the filter processing unit is filtered using the image that Gaussian filter acquires image capture module Wave noise reduction obtains first intermediate image;The edge detection unit utilizes Canny edge detection algorithm from third middle graph The profile diagram of the gel ink pen to be detected is obtained as in.
The further setting of the present invention are as follows: the detection judging unit include pixel value extraction unit, parameter preset unit, Comparison judgment unit and structure recording unit;It is mentioned in the profile diagram that the pixel value extraction unit is obtained by target computing unit Take the pixel value of gel ink pen to be detected;The parameter presets unit and is used to extract neutrality according to the pixel value of pixel value extraction unit The parameter preset of board pen ink profile;The comparison judgment unit is used for the appearance height of neutral pen ink and the standard pen prestored Ink appearance height is compared, and judges whether the height of the neutral pen ink is qualified;The result recording unit is used for will In encoded radio deposit chained list on qualified gel ink pen.
By using above-mentioned technical proposal, in this example embodiment, the pixel value extraction unit is used for according to be checked The profile diagram for surveying gel ink pen calculates the pixel value of gel ink pen to be detected.
The result recording unit can be used in the encoded radio deposit chained list by qualified gel ink pen;By will be qualified Gel ink pen to be detected passes through in the encoded radio deposit chained list recorded when the photoelectric sensor, can determine in the follow-up process pair Whether the height for the neutral pen ink to be detected answered is qualified.In addition, can also show ink in PC machine terminal in this example embodiment The underproof gel ink pen to be detected of water height, and show to be specifically which detection project is unqualified, in order to which the later period is counted Analysis.
In this example embodiment, the board pen ink screening module is used to filter out the qualified gel ink pen of detection and rejecting Detect underproof gel ink pen.The board pen ink screening module includes solenoid valve sorting equipment, when pass through solenoid valve sorting equipment Gel ink pen to be detected encoded radio not in the chained list when, that is, can determine whether the gel ink pen be substandard product, then may be used at this time To notify solenoid valve sorting equipment to be sorted into substandard products collecting box.But it should be recognized that other are exemplary of the invention In embodiment, the pen core screening module can also be realized using other feasible modes, it is not limited to this example embodiment party Cited implementation in formula.
Design in the above-mentioned neutral pen ink height detection method based on machine vision is exploitation basic platform with VC++, Program is write in conjunction with visibility function library Halcon and image procossing class libraries CImg to realize function required by standardized detection system Energy.Entire software interface may include that image display area, base menu region, measurement setting regions and testing result are shown Region part.The standardized detection system can not only realize the display function of Image Acquisition and realize that automatic discrimination board pen ink is high Degree whether He Ge function, simultaneously, additionally it is possible to which in menu area the function of a little underlying parameters is arranged in realization.
Neutral pen ink height detection method in this example embodiment constructs closed loop by introducing machine vision metrology Detection pattern can detect the image of gel ink pen to be detected in time and reject unqualified gel ink pen.On the one hand, compared to artificial inspection Survey mode has many advantages, such as that easy to operate, high-efficient, accuracy is high;On the other hand, compared to contact measurement mode, have Not the advantages of not damaging sample.
It should be noted that several modules or unit for acting the equipment executed are referred in above-detailed, this Kind divides not enforceable.Embodiment according to the present invention, the spy of two or more above-described modules or unit Function of seeking peace can embody in a module or unit;Conversely, the feature of an above-described module or unit It can be to be embodied by multiple modules or unit with further division with function.
In addition, although describing each step of method in the present invention in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result;Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, or One step is decomposed into execution of multiple steps.
As shown in figure 3, a kind of neutral pen ink height detection method based on machine vision, comprising the following steps:
Step 1: gel ink pen is placed on oil pipe delivery module, is then generated and gel ink pen to be detected by encoder Corresponding encoded radio;
Step 2: when detecting module detects that gel ink pen reaches the predetermined position of image capture module, Image Acquisition mould Block records encoded radio in predetermined position and acquires the image of neutral pen ink to be detected;
Step 3: when detecting module detects that gel ink pen reaches the predetermined position of image analysis module, image analysis mould Root tuber calculates the pixel value of neutral pen ink to be detected according to the image of acquisition, judges neutral pen ink to be detected further according to pixel value Height it is whether qualified;
Step 4: when detecting module detects that gel ink pen reaches the predetermined position of board pen ink screening module, pass through pen and ink Water screening module filters out the qualified gel ink pen of detection and rejects the underproof gel ink pen of detection.
The further setting of the present invention are as follows: the oil pipe delivery module is transported using conveyer belt apparatus.It is described to be checked Survey gel ink pen in board pen ink pixel value extract parameter preset include the focal length of board pen ink in gel ink pen to be detected, illumination and Shape.
Embodiment of above only technical concepts and features to illustrate the invention, its object is to allow those skilled in the art Member understands the contents of the present invention and is implemented, and it is not intended to limit the scope of the present invention, all spiritual according to the present invention The equivalent change or modification that essence is done, should be covered by the scope of protection of the present invention.

Claims (10)

1. a kind of neutral pen ink height detecting system based on machine vision, it is characterised in that:
Oil pipe delivery module, the oil pipe delivery module are used for carrying gel ink pen to be detected;
Detecting module, the detecting module are used to detect the gel ink pen to be detected of oil pipe delivery module carrying by predetermined position When, issue standby signal;
Image capture module, described image acquisition module calculate the pixel of neutral pen ink height to be detected for the image of acquisition Value, image capture module start to acquire the image of neutral pen ink to be detected after receiving standby signal;
Image analysis module, the image that described image analysis module is used to be acquired according to image capture module calculate neutrality to be detected The pixel value of board pen ink height, and judge whether the height of neutral pen ink to be detected is qualified;
Ink screening module, the board pen ink screening module, which is used to filter out the qualified gel ink pen of detection and rejects detection, not to be conformed to The gel ink pen of lattice.
2. a kind of neutral pen ink height detecting system based on machine vision according to claim 1, it is characterised in that: The detecting module includes several photoelectric sensors for being installed in designated position, and the photoelectric sensor is used to transmit mould when oil pipe Block carrying gel ink pen to be detected is by issuing standby signal when designated position.
3. a kind of neutral pen ink height detecting system based on machine vision according to claim 1, it is characterised in that: Described image acquisition module includes image pick-up card, industrial camera and light source;Described image capture card is for receiving detecting mould The standby signal that block issues, and the encoded radio that encoder is currently generated is recorded after receiving the standby signal;The industrial camera For acquiring the image of neutral pen ink height to be detected after the standby signal that image pick-up card receives detecting module;It is described Light source is used for gel ink pen by polishing when predetermined position.
4. a kind of neutral pen ink height detecting system based on machine vision according to claim 1, it is characterised in that: Described image analysis module includes image processing unit, target computing unit and detection judging unit;Described image processing unit The image of neutral pen ink height for acquiring to image capture module pre-processes, and obtains neutral pen ink to be detected Profile diagram;The target computing unit calculates the picture of neutral pen ink to be detected by the profile diagram that image processing unit obtains Element value;The detection judging unit show that the calculated for pixel values of neutral pen ink to be detected is to be detected out by target computing unit The appearance height of neutral pen ink, and judge whether neutral pen ink height is qualified.
5. a kind of neutral pen ink height detecting system based on machine vision according to claim 4, it is characterised in that: Described image processing unit includes filter processing unit, binary conversion treatment unit, Morphological scale-space unit and edge detection unit; The filter processing unit to the image that image capture module acquires for being filtered to obtain the first intermediate image;It is described Binary conversion treatment unit obtains the second intermediate image for carrying out binary conversion treatment to first intermediate image;The form Processing unit is learned to be used to carry out Morphological scale-space to second intermediate image to obtain third intermediate image;The edge detection list Member obtains the profile diagram of neutral pen ink to be detected using digital image edge detection technology from the third intermediate image.
6. a kind of neutral pen ink height detecting system based on machine vision according to claim 5, it is characterised in that: The image that the filter processing unit acquires image capture module using Gaussian filter is filtered noise reduction and obtains described the One intermediate image.
7. a kind of neutral pen ink height detecting system based on machine vision according to claim 5, it is characterised in that: The edge detection unit obtains the neutral pen ink to be detected using Canny edge detection algorithm from third intermediate image Profile diagram.
8. a kind of neutral pen ink height detecting system based on machine vision according to claim 4, it is characterised in that: The detection judging unit includes pixel value extraction unit, the default unit of parameter, comparison judgment unit and structure recording unit;Institute State the pixel value that neutral pen ink to be detected is extracted in the profile diagram that pixel value extraction unit is obtained by target computing unit;Institute It states parameter and presets the parameter preset that unit is used to extract neutral pen ink profile according to the pixel value of pixel value extraction unit;It is described Comparison judgment unit is sentenced for the appearance height of neutral pen ink to be compared with the standard board pen ink appearance height prestored Break the neutral pen ink height it is whether qualified;The result recording unit is used to for the encoded radio on qualified gel ink pen being stored in In chained list.
9. a kind of inspection carried out using a kind of neutral pen ink height detecting system based on machine vision described in claim 1 Survey method, it is characterised in that following steps:
Step 1: gel ink pen is placed on oil pipe delivery module, is then generated by encoder opposite with gel ink pen to be detected The encoded radio answered;
Step 2: when detecting module detects that gel ink pen reaches the predetermined position of image capture module, image capture module exists Predetermined position record encoded radio and the image for acquiring neutral pen ink to be detected;
Step 3: when detecting module detects that gel ink pen reaches the predetermined position of image analysis module, image analysis module root The pixel value that neutral pen ink to be detected is calculated according to the image of acquisition judges the height of neutral pen ink to be detected further according to pixel value Whether degree is qualified;
Step 4: when detecting module detects that gel ink pen reaches the predetermined position of board pen ink screening module, pass through pen and ink water sieve Modeling block filters out the qualified gel ink pen of detection and rejects the underproof gel ink pen of detection.
10. a kind of neutral pen ink height detection method based on machine vision according to claim 9, feature exist In: the oil pipe delivery module is transported using conveyer belt apparatus.
CN201910501446.5A 2019-06-11 2019-06-11 A kind of neutral pen ink height detecting system and detection method based on machine vision Pending CN110174063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910501446.5A CN110174063A (en) 2019-06-11 2019-06-11 A kind of neutral pen ink height detecting system and detection method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910501446.5A CN110174063A (en) 2019-06-11 2019-06-11 A kind of neutral pen ink height detecting system and detection method based on machine vision

Publications (1)

Publication Number Publication Date
CN110174063A true CN110174063A (en) 2019-08-27

Family

ID=67698053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910501446.5A Pending CN110174063A (en) 2019-06-11 2019-06-11 A kind of neutral pen ink height detecting system and detection method based on machine vision

Country Status (1)

Country Link
CN (1) CN110174063A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111141746A (en) * 2020-02-10 2020-05-12 上海工程技术大学 Method and system for automatically detecting length of refill tail oil
CN112893178A (en) * 2021-01-14 2021-06-04 上海晨光文具股份有限公司 Pen core quality detection system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0474003A3 (en) * 1990-09-05 1995-05-17 Varta Batterie Electrolyte level control device for accumulator battery
CN1570574A (en) * 2004-04-23 2005-01-26 汤哲夫 Liquid level measuring method and device
EP1714252A2 (en) * 2004-02-04 2006-10-25 Fotonation Vision Limited Optimized red-eye filter method and apparatus involving subsample representations of selected image regions
CN2879157Y (en) * 2005-12-09 2007-03-14 张耀崑 Ball-bead rolling type pen tip writing ink detector
US7474341B2 (en) * 1997-10-09 2009-01-06 Fotonation Vision Limited Portable digital camera with red eye filter
CN203253647U (en) * 2013-04-24 2013-10-30 中国计量学院 Refill sorting device of ball-point pen
CN204286530U (en) * 2014-11-28 2015-04-22 上海交哲光电科技有限公司 A kind of device for detecting liquid level in bottle
CN105973148A (en) * 2016-07-20 2016-09-28 上海晨光文具股份有限公司 Pen point appearance size standardization detection system based on machine vision
CN206725041U (en) * 2017-03-27 2017-12-08 周子佳 Non-intrusion type level gauging device
CN108362708A (en) * 2018-02-08 2018-08-03 上海晨光文具股份有限公司 Pen core scribing line standardized detection system based on machine vision and method
CN208333374U (en) * 2018-04-12 2019-01-04 上海晨光文具股份有限公司 Pipe inner stuffing position detecting device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0474003A3 (en) * 1990-09-05 1995-05-17 Varta Batterie Electrolyte level control device for accumulator battery
US7474341B2 (en) * 1997-10-09 2009-01-06 Fotonation Vision Limited Portable digital camera with red eye filter
EP1714252A2 (en) * 2004-02-04 2006-10-25 Fotonation Vision Limited Optimized red-eye filter method and apparatus involving subsample representations of selected image regions
CN1570574A (en) * 2004-04-23 2005-01-26 汤哲夫 Liquid level measuring method and device
CN2879157Y (en) * 2005-12-09 2007-03-14 张耀崑 Ball-bead rolling type pen tip writing ink detector
CN203253647U (en) * 2013-04-24 2013-10-30 中国计量学院 Refill sorting device of ball-point pen
CN204286530U (en) * 2014-11-28 2015-04-22 上海交哲光电科技有限公司 A kind of device for detecting liquid level in bottle
CN105973148A (en) * 2016-07-20 2016-09-28 上海晨光文具股份有限公司 Pen point appearance size standardization detection system based on machine vision
CN206725041U (en) * 2017-03-27 2017-12-08 周子佳 Non-intrusion type level gauging device
CN108362708A (en) * 2018-02-08 2018-08-03 上海晨光文具股份有限公司 Pen core scribing line standardized detection system based on machine vision and method
CN208333374U (en) * 2018-04-12 2019-01-04 上海晨光文具股份有限公司 Pipe inner stuffing position detecting device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
IVAN FUMAGALLI等: "《Optimal control in ink-jet printing via instantaneous control》", 《COMPUTERS AND FLUIDS》 *
胡东红等: "《基于机器视觉的非透明笔芯尾塞油高度检测技术》", 《计算机与数字工程》 *
郭亨长等: "《基于机器视觉的智能检测技术在制笔业中的应用》", 《中国制笔》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111141746A (en) * 2020-02-10 2020-05-12 上海工程技术大学 Method and system for automatically detecting length of refill tail oil
CN111141746B (en) * 2020-02-10 2022-07-15 上海工程技术大学 Method and system for automatically detecting length of refill tail oil
CN112893178A (en) * 2021-01-14 2021-06-04 上海晨光文具股份有限公司 Pen core quality detection system
CN112893178B (en) * 2021-01-14 2023-02-28 上海晨光文具股份有限公司 Pen core quality detection system

Similar Documents

Publication Publication Date Title
CN105973148B (en) Written apparent size standardized detection system based on machine vision
CN101995223B (en) Chip appearance detection method and system
CN105139386B (en) A kind of image processing method of fast automatic detecting electric connector solder joint defective work
CN104112269B (en) A kind of solar battery laser groove parameter detection method and system based on machine vision
CN102175701B (en) System and method for online flaw detection of industrial X-ray machine
CN101576956B (en) On-line character detection method based on machine vision and system thereof
CN109145830A (en) A kind of intelligence water gauge recognition methods
CN109003390A (en) A kind of commodity recognition method, self-service machine and computer readable storage medium
CN105894036A (en) Image feature template matching method being applied to detection of mobile phone screen defects
WO2012169088A1 (en) Image processing apparatus, image processing method and image processing system
CN109741314A (en) A kind of visible detection method and system of part
CN106824806A (en) The detecting system and detection method of the low module plastic gear based on machine vision
CN101751572A (en) Pattern detection method, device, equipment and system
CN101806750A (en) Method for automatically testing coal petrologic parameters and special equipment thereof
CN110174063A (en) A kind of neutral pen ink height detecting system and detection method based on machine vision
CN109086763A (en) A kind of pointer instrument read method and device
CN110378887A (en) Screen defect inspection method, apparatus and system, computer equipment and medium
CN112419261A (en) Visual acquisition method and device with abnormal point removing function
CN109241948A (en) A kind of NC cutting tool visual identity method and device
CN108428247A (en) Method and system for detecting direction of soldering tin point
CN100353368C (en) Particle extraction for automatic flow microscope
CN102609699A (en) Device and method for recognizing number of cast workpiece scanned by laser
CN111507177B (en) Identification method and device for metering turnover cabinet
CN117330582A (en) Polymer PE film surface crystal point detecting system
CN108363958B (en) Oil tank detection method based on high-resolution optical remote sensing image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190827

RJ01 Rejection of invention patent application after publication