Machine vision-based wood dust monitoring method for furniture factory

By posting markers on-site at the furniture factory and using machine vision algorithms, the problem of poor real-time performance and low accuracy of existing dust detection devices in coal mines has been solved, fast and accurate dust monitoring and positioning has been achieved, and safe production conditions have been improved.

CN118624634AInactive Publication Date: 2024-09-10NANJING SIWEI VECTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410678358.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing dust concentration detection devices are difficult to achieve real-time online measurement in coal mines, have high maintenance costs, low measurement accuracy, and are unable to quickly and accurately monitor and locate dust, resulting in threats to production safety.

Method used

A machine vision-based furniture factory sawdust dust monitoring method is adopted. By posting markers on site, using cameras and target detection algorithms, combined with YOLOv5 visual algorithm and cosine similarity calculation, the dust accumulation situation can be determined in real time to achieve fast and accurate dust monitoring and position.

Benefits of technology

It achieves real-time and accurate dust monitoring, reduces detection time and cost, has more comprehensive coverage, can control and eliminate dust in a timely and effective manner, and improves safe production conditions.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to the technical field of computer vision and information, and discloses a furniture factory wood dust monitoring method based on machine vision, and the method comprises the following specific steps: S1, pasting two markers in a furniture factory site environment, one marker being vertically pasted, and the other marker being horizontally placed; s2, shooting two markers by a camera, decoding a camera picture, inputting a target detection algorithm, and positioning the specific positions of the markers; s3, measuring the saturation and contrast of the two markers on the basis of identifying the markers; and S4, the saturation contrast difference and the similarity of the two markers are comprehensively calculated through an image similarity algorithm. The method is good in real-time performance, full in coverage and simple in measurement process, and does not need to consume a large amount of manpower and material resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of computer vision and information technology, and in particular to a method for monitoring sawdust and dust in a furniture factory based on machine vision. Background Art

[0002] Furniture is an indispensable item in daily life. Usually, during the production process of furniture in a furniture factory, dust will be generated in the furniture factory. If the dust is not handled in time, the factory is prone to explosion. At present, the detection methods of dust in furniture factories include light transmission method, electrostatic method and light scattering method.

[0003] The light transmission method measures the concentration of dust in the air based on the attenuation of light intensity. At present, dust concentration detection devices designed based on the principle of light transmission method have also appeared on the market, such as photoelectric transmission dust tester. This instrument mainly consists of four parts: display instrument, photoelectric detector, controller and voltage regulator. The voltage regulator provides the DC power supply of the light source, which is conducive to improving the stability of the light source output. The photoelectric detector part is composed of photoelectric conversion element, emitting light source, zero adjustment device, protective lens, etc. The controller is composed of electrical signal adjustment part and constant temperature furnace temperature control part, and the potentiometer is used as its display instrument. The photoelectric conversion element uses silicon photocell, which is easily affected by the outside world, so it needs to be placed in an adjustable constant temperature furnace to ensure that it is not affected by the external environment temperature. However, the dust concentration detection device designed based on the light transmission method must be calibrated before it can be used, and it needs to be recalibrated after a period of use to reduce its measurement error. This dust concentration measurement device is limited to the measurement of dust concentration with relatively high concentration.

[0004] Dust concentration detection devices designed by many methods are difficult to apply in the special environment of coal mines. The maintenance cost of the device is relatively high. In addition, the measurement accuracy is low and the service life of the instrument is short. These problems make it difficult for existing dust concentration detection devices to complete the real-time online measurement of dust concentration in coal mines, and it is difficult to ensure the safe production in coal mines. Based on the study of electrostatic sensors and dust concentration, another method for measuring dust concentration detection was found - the electrostatic method. The dust concentration and the current output of the electrostatic sensor are linearly related within a certain measurement range. The current value output by the electrostatic sensor changes with the charge of the dust particles and the size of the dust particles. If the dust particles are small and have a lot of charge, the sensor output value will be larger. However, this measurement value is also affected by many factors, such as the ambient temperature, humidity, wind speed, etc. in coal mines; in general, if the ambient temperature is higher, the dust concentration will be greater when electrostatic saturation is reached; the greater the ambient wind speed, the more the charge of the dust particles will increase sharply.

[0005] The light scattering method uses the light scattering method to measure the dust concentration in coal mines. It is well known that light propagates in a straight line in the same uniform medium, but when light passes through an inhomogeneous medium, it deviates from its original propagation direction and scatters in all directions. The principle of the light scattering method for measuring dust concentration is that when light is irradiated in dusty air, light scattering will occur because the dusty air is not a uniform medium. The dust concentration is ultimately measured by measuring the intensity of the scattered light.

[0006] However, in the prior art, although the above-mentioned traditional dust monitoring methods are relatively accurate, they have poor real-time performance and incomplete coverage. The measurement process is relatively cumbersome and requires a lot of manpower and material resources. In addition, when large-scale dust clusters suddenly appear, it is impossible to accurately measure, and it is impossible to quickly monitor and locate the dust in real time at all times, resulting in the inability to control and eliminate the dust in a timely and effective manner. Further improvement is needed in this regard.

[0007] Therefore, based on the above technical problems, it is necessary for technicians in this field to develop a method for monitoring wood chip dust in furniture factories based on machine vision. Summary of the invention

[0008] The purpose of the present invention is to provide a method for monitoring wood chip dust in a furniture factory based on machine vision to solve the problems raised in the above-mentioned background technology.

[0009] To achieve the above object, the present invention provides the following technical solutions:

[0010] A technical solution for wood dust monitoring in a furniture factory based on machine vision, the specific steps are as follows: S1: post two markers in the on-site environment of the furniture factory, one marker is posted vertically, and the other marker is placed horizontally;

[0011] S2: The camera takes two images of the markers, decodes the camera images, inputs the target detection algorithm, and locates the specific position of the markers;

[0012] S3: measuring the saturation and contrast of the two markers based on the identification of the markers;

[0013] S4: The image similarity algorithm is used to comprehensively calculate the saturation contrast difference and similarity of the two markers to determine whether there is dust accumulation in the production environment of the furniture factory.

[0014] As a preferred technical solution, in the step S1: the location of the marker, S11: the marker is posted close to the camera screen, 3.0 to 5.0 m; S12: the marker position is adjusted so that the camera angle is as close to the marker as possible; S13: the two markers are placed close together so that the colors of the marker's reflective stickers are consistent on the camera screen.

[0015] As a preferred technical solution, in the step S2: the camera installed at the production site needs to support RTSP and GB28181 protocols, be deployed at a height of 2.8 to 3.5 meters, and have a pitch angle of less than 30°.

[0016] As a preferred technical solution, in the step S3: process the collected video material, annotate the material, mark the horizontal and vertical markers, and make a data set. Send the data set to the YOLOv5 visual algorithm for training, obtain a pytorch model with the ability to detect markers in clean and dust-covered states, and convert it into a cambricon model suitable for domestic npu equipment. After obtaining the specific position of the marker in the picture through the target detection model, take a screenshot for comparison.

[0017] As a preferred technical solution, the Pandora-220 edge intelligent analysis box camera is connected to a local area network.

[0018] As a preferred technical solution, in the step S4: the high-frequency or low-frequency components of the image are enhanced to highlight the part of interest in the image, the image is converted from the BGR color space to the HSV color space, and the HSV image is divided into separate channels, the second channel is selected to calculate the average saturation, and then grayscale conversion is performed to convert the image into a grayscale format, the average contrast of the image is calculated, and the image similarity of the target marker is calculated using cosine similarity. Cosine similarity is a measurement method for measuring the degree of similarity between two vector directions, and its calculation result is between -1 and 1. In the process of combining the contrast and saturation of the two images to calculate the similarity, each image needs to be converted into a corresponding contrast and saturation vector. By performing color space conversion on the image, the mean or other statistical data of each channel is calculated respectively, and the two vectors are obtained, and the similarity between them is calculated using the formula of cosine similarity, and the dust accumulation of the on-site environment is judged based on the calculated cosine value (i.e., similarity value).

[0019] Compared with the prior art, the invention has the following beneficial effects: (1) The invention solves the problem that the traditional detection method is time-consuming and has poor real-time performance. The dust detection algorithm based on computer vision is time-saving, efficient, and low-cost. It takes an average of 250ms to process a frame of image, and can achieve real-time, continuous and uninterrupted detection. At the same time, it is easy to deploy and simple to operate, and can quickly realize multi-point dust accumulation monitoring, effectively solving the problem of incomplete detection coverage of traditional methods.

[0020] (2) Good real-time performance and full coverage. The measurement process is relatively simple and does not require a lot of manpower and material resources. It can also achieve accurate measurement when a large area of ​​dust clouds suddenly appear. It can also monitor and locate dust in real time and quickly at all times, and control and eliminate dust in a timely and effective manner. DETAILED DESCRIPTION

[0021] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.

[0022] The present invention provides a technical solution for a method for monitoring wood dust in a furniture factory based on machine vision. The specific steps are as follows: S1: posting two markers in the on-site environment of the furniture factory, one marker is posted vertically, and the other marker is placed horizontally;

[0023] The marker should be a 40cm*40cm black and yellow striped reflective sticker. The precautions for posting the marker are as follows: The reflective sticker should be posted as close to the camera screen as possible, about 3.0 to 5.0m. Adjust the position of the reflective sticker so that the camera angle is as close to the reflective sticker as possible. The positions of the two reflective stickers should be as close as possible so that the color of the reflective stickers after posting is basically consistent on the camera screen, and avoid reflections of the reflective stickers in the camera screen caused by light or other radiation.

[0024] S2: The camera takes two images of the markers, decodes the camera images, inputs the target detection algorithm, and locates the specific position of the markers;

[0025] The cameras installed at the production site need to support RTSP and GB28181 protocols, be deployed at a height of 2.8 to 3.5 meters, and have a pitch angle of no more than 30 degrees. The cameras are used to collect on-site video footage, and at the same time, fine dust is covered on horizontally posted markers to simulate the natural fall of dust during production.

[0026] S3: Based on the identification of the markers, the saturation and contrast of the two markers are measured, and then the collected video materials are processed, the materials are annotated, and the horizontal and vertical markers are marked to make a data set. The data set is sent to the YOLOv5 visual algorithm for training, and a pytorch model with the ability to detect markers in clean and dust-covered states is obtained, which is converted into a cambricon model suitable for domestic npu equipment. After the specific position of the marker in the picture is obtained through the target detection model, a screenshot is taken for comparison.

[0027] S4: The saturation contrast difference and similarity of the two markers are comprehensively calculated by the image similarity algorithm to determine whether there is dust accumulation in the production environment of the furniture factory. The image comparison method is as follows: Strengthening the high-frequency or low-frequency components of the image can highlight the part of interest in the image, while reducing the influence of noise, thereby improving the overall quality of the image. Convert the image from the BGR color space to the HSV color space, and then divide the HSV image into separate channels to independently process the hue, saturation and brightness. Considering the on-site environment, select the second channel to calculate the average saturation. Then perform grayscale conversion, convert the image to grayscale format, and calculate the average contrast of the image. The present invention uses cosine similarity to calculate the image similarity of the target marker. Cosine similarity is a metric method for measuring the degree of similarity in the direction of two vectors, and its calculation result is between -1 and 1. In the process of combining the contrast and saturation of two images to calculate the similarity, each image needs to be converted into a corresponding contrast and saturation vector first. This can be done by converting the image to a color space, such as from RGB to HSV, and then calculating the mean or other statistical data of each channel respectively. Once the two vectors are obtained, the formula for cosine similarity can be used to calculate the similarity between them. Specifically, this involves calculating the dot product and modulus of the two vectors, and then dividing the dot product by the product of the modulus to get the cosine value. The closer this value is to 1, the more similar the two images are in contrast and saturation; the closer the value is to -1, the greater the difference in these attributes. This method has a wide range of applications in image matching, content retrieval, and computer vision. Finally, the present invention judges the dust accumulation situation in the on-site environment based on the calculated cosine value (i.e., the similarity value).

[0028] The operation of the algorithm of the present invention depends on the operation of the Pandora-220 edge intelligent analysis box, and the analysis box and the camera form a local area network connection.

[0029] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

[0030] In the description of the present invention, it is necessary to understand that the terms "coaxial", "bottom", "one end", "top", "middle", "the other end", "upper", "one side", "top", "inside", "front", "center", "both ends" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0031] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "screw-on" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.

[0032] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to specific embodiments. Obviously, many modifications and changes can be made based on the above description. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can make good use of the present invention and the modified use based on the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for monitoring sawdust and dust in furniture factories based on machine vision, characterized in that: The specific steps are as follows: S1: post two signs in the furniture factory environment, one sign is posted vertically and the other sign is placed horizontally; S2: The camera takes two images of the markers, decodes the camera images, inputs the target detection algorithm, and locates the specific position of the markers; S3: measuring the saturation and contrast of the two markers based on the identification of the markers; S4: The image similarity algorithm is used to comprehensively calculate the saturation contrast difference and similarity of the two markers to determine whether there is dust accumulation in the production environment of the furniture factory.

2. The method for monitoring sawdust and dust in furniture factories based on machine vision according to claim 1, characterized in that: In the step S1: the position of the marker, S11: the marker is posted close to the camera screen, 3.0 to 5.0 m; S12: adjust the position of the marker so that the camera angle faces the marker as directly as possible; S13: the positions of the two markers are close to each other so that the colors of the reflective stickers of the markers are consistent on the camera screen.

3. The method for monitoring sawdust and dust in furniture factories based on machine vision according to claim 1, characterized in that: In the step S2: the camera installed at the production site needs to support RTSP and GB28181 protocols, be deployed at a height of 2.8 to 3.5 meters, and have a pitch angle of less than 30 degrees.

4. The method for monitoring sawdust and dust in furniture factories based on machine vision according to claim 1, characterized in that: In the step S3, the collected video material is processed, the material is annotated, and the horizontal and vertical markers are marked to make a data set. The data set is sent to the YOLOv5 visual algorithm for training to obtain a pytorch model with the ability to detect markers in clean and dust-covered states, which is converted into a cambricon model suitable for domestic npu equipment. After the specific position of the marker in the picture is obtained by the target detection model, a screenshot is taken for comparison.

5. The method for monitoring sawdust and dust in furniture factories based on machine vision according to claim 4, characterized in that: The Pandora-220 edge intelligent analysis box camera is connected to a local area network.

6. The method for monitoring sawdust and dust in furniture factories based on machine vision according to claim 1, characterized in that: In the step S4: the high-frequency or low-frequency components of the image are enhanced to highlight the part of interest in the image, the image is converted from the BGR color space to the HSV color space, and the HSV image is divided into separate channels, the second channel is selected to calculate the average saturation, and then grayscale conversion is performed to convert the image to grayscale format, the average contrast of the image is calculated, and the image similarity of the target marker is calculated using cosine similarity. Cosine similarity is a measurement method for measuring the degree of similarity between two vector directions, and its calculation result is between -1 and 1. In the process of combining the contrast and saturation of the two images to calculate the similarity, each image needs to be converted into a corresponding contrast and saturation vector. By performing color space conversion on the image, the mean or other statistical data of each channel is calculated respectively, and the two vectors are obtained, and the similarity between them is calculated using the formula of cosine similarity, and the dust accumulation situation of the on-site environment is judged based on the calculated cosine value (i.e., similarity value).