Online aggregate particle size monitoring method and device and medium
1. An on-line aggregate particle size monitoring method is characterized by comprising the following steps:
collecting image information corresponding to aggregate on a conveyor belt;
carrying out binarization processing on the image information to obtain binarized image information;
determining image area information corresponding to each aggregate respectively based on the binaryzation image information;
analyzing the image area information corresponding to each aggregate;
and determining quality information corresponding to each aggregate on the conveyor belt based on the analysis result.
2. The on-line monitoring method for the particle size of the aggregate according to claim 1, wherein: the analyzing of the image area information corresponding to each aggregate comprises:
dividing the image information of each aggregate from the image area information corresponding to each aggregate;
determining first pixel information corresponding to each aggregate from the image information of each aggregate, wherein the first pixel information is used for representing the arrangement information of all pixels forming each aggregate image information;
and analyzing the first pixel information corresponding to each aggregate, and determining quality information corresponding to each aggregate based on the analysis result.
3. The method for monitoring the particle size of the aggregates on line according to claim 2, wherein analyzing the first pixel information corresponding to any aggregate comprises:
determining second pixel information and third pixel information based on the first pixel information corresponding to any aggregate;
the second pixel information is the information of the number of the longest continuous one-dimensional pixel arrays in the first pixel information of any aggregate, the third pixel information is the information of the number of the continuous one-dimensional pixel arrays which are perpendicular to the second pixel information in the first pixel information of any aggregate and are positioned in the middle of the second pixel information, and the diagonal lines of all pixels in the second pixel information and the third pixel information are parallel to each other;
determining first ratio information based on the second pixel information and the third pixel information;
comparing the first ratio information with a first preset interval to determine whether any aggregate is qualified;
determining quality information corresponding to any aggregate based on the analysis result, wherein the determining comprises:
and if the first ratio information is within a first preset interval, determining that any aggregate is qualified, and outputting information used for representing that the aggregate quality corresponding to the first pixel information of any aggregate is qualified.
4. The on-line monitoring method for the particle size of the aggregate according to claim 3, further comprising:
rendering a circular image based on the second pixel information; the pixel information occupied by the diameter of the circular image is second pixel information;
determining fourth pixel information occupied by the circular image, wherein the fourth pixel information comprises the pixel number information occupied by the circular image;
determining second ratio information based on the fourth pixel information and the first pixel information;
comparing the second ratio information with the second preset interval;
and if the second ratio information is within the second preset interval, outputting information for representing that the quality of any aggregate is qualified.
5. The method for on-line monitoring of the particle size of the aggregate according to claim 3, wherein if the first ratio information is not within a first predetermined interval, the method further comprises,
determining information of a region to be collected, wherein the region to be collected is image region information corresponding to any aggregate;
controlling a vibrating device to vibrate the conveyor belt;
acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing;
determining third image information from the second image information based on the information of the area to be acquired;
carrying out target identification on aggregates in the third image information;
if the image information of at least two aggregates is identified, controlling the vibration equipment to stop vibrating;
if the image information of one aggregate is identified, circularly executing vibration equipment to control the conveyor belt to vibrate; acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing; determining third image information based on the information of the area to be acquired from the second image information; a step of performing target recognition on the third image information; until meeting the preset condition;
wherein the preset condition comprises at least one of the following:
reaching a vibration frequency threshold value;
image information for at least two aggregates is identified.
6. The on-line aggregate particle size monitoring method according to claim 4, further comprising:
counting the aggregates corresponding to the first ratio information in a first preset interval, and generating first counting information, or counting the aggregates corresponding to the second ratio information in a second preset interval, and generating second counting information;
counting the aggregate image information and generating third counting information;
determining yield information based on the first count information or the second count information and the third count information;
and uploading the qualification rate information to a data center.
7. The on-line aggregate particle size monitoring method according to claim 1, further comprising:
detecting the moisture content information of the aggregate by a control sensor;
and uploading the moisture content information to a data center.
8. An online aggregate particle size monitoring device, comprising:
the acquisition module is used for acquiring image information corresponding to the aggregates on the conveyor belt;
the processing module is used for carrying out binarization processing on the image information to obtain binarized image information;
the first determining module is used for determining image area information corresponding to each aggregate based on the binaryzation image information;
the analysis module is used for analyzing the image area information corresponding to each aggregate;
and the second determining module is used for determining quality information corresponding to each aggregate on the conveying belt based on the analysis result.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory
In memory and configured to be executed by the one or more processors, the one or more programs configured to: carrying out an on-line aggregate particle size monitoring method according to any one of claims 1 to 7.
10. A computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, implements an online aggregate particle size monitoring method according to any one of claims 1 to 7.
Background
The aggregate is a granular material which plays roles of framework and filling in concrete and mortar. The quality of the aggregate has an important influence on the quality of the concrete, and therefore, the quality of the aggregate needs to be detected.
The quality of aggregate is generally characterized by the particle size of the aggregate, and currently, each batch is usually sampled manually from an aggregate conveying line, transported back to a laboratory, screened by using a screen, measured by a measuring tool, and finally analyzed by manual statistics. The aggregate particle size is monitored manually, so that serious hysteresis exists and the efficiency is low.
Disclosure of Invention
In order to improve the efficiency of aggregate particle size monitoring, the application provides an online aggregate particle size monitoring method, device and medium.
In a first aspect, the present application provides an online aggregate particle size monitoring method, which adopts the following technical scheme:
an on-line aggregate particle size monitoring method, comprising:
collecting image information corresponding to aggregate on a conveyor belt;
carrying out binarization processing on the image information to obtain binarized image information;
determining image area information corresponding to each aggregate respectively based on the binaryzation image information;
analyzing the image area information corresponding to each aggregate;
and determining quality information corresponding to each aggregate on the conveyor belt based on the analysis result.
By adopting the technical scheme, the aggregate image on the conveyor belt is collected and the binaryzation image information is obtained, and the binaryzation image information can clearly and prominently display the aggregate. The image area information corresponding to each aggregate is determined, the image area information corresponding to each aggregate is analyzed, so that the analysis result is more accurate, and the efficiency of determining the quality information corresponding to each aggregate based on the analysis result is higher.
In another possible implementation manner, the analyzing the image area information corresponding to each aggregate includes:
dividing the image information of each aggregate from the image area information corresponding to each aggregate;
determining first pixel information corresponding to each aggregate from the image information of each aggregate, wherein the first pixel information is used for representing the arrangement information of all pixels forming each aggregate image information;
and analyzing the first pixel information corresponding to each aggregate, and determining quality information corresponding to each aggregate based on the analysis result.
By adopting the technical scheme, the image information of each aggregate is divided, so that each aggregate can be conveniently analyzed, the first pixel information corresponding to each aggregate is analyzed, and the quality of the aggregate is more accurate by analyzing the first pixel information.
In another possible implementation manner, analyzing the first pixel information corresponding to any aggregate includes:
determining second pixel information and third pixel information based on the first pixel information corresponding to any aggregate;
the second pixel information is the information of the number of the longest continuous one-dimensional pixel arrays in the first pixel information of any aggregate, the third pixel information is the information of the number of the continuous one-dimensional pixel arrays which are perpendicular to the second pixel information in the first pixel information of any aggregate and are positioned in the middle of the second pixel information, and the diagonal lines of all pixels in the second pixel information and the third pixel information are parallel to each other;
determining first ratio information based on the second pixel information and the third pixel information;
comparing the first ratio information with a first preset interval to determine whether any aggregate is qualified;
determining quality information corresponding to any aggregate based on the analysis result, wherein the determining comprises:
and if the first ratio information is within a first preset interval, determining that any aggregate is qualified, and outputting information used for representing that the aggregate quality corresponding to the first pixel information of any aggregate is qualified.
By adopting the technical scheme, the second pixel information and the third pixel information are partial characteristics representing the particle size of any aggregate, the particle size quality of any aggregate can be determined by the ratio of the number of pixels between the longest ends of the aggregate to the number of pixels at the middle position of the vertical longest ends of the aggregate, and the first ratio information is compared with the first preset interval, so that whether any aggregate belongs to qualified aggregates or not can be determined conveniently.
In another possible implementation manner, the method further includes:
rendering a circular image based on the second pixel information; the pixel information occupied by the diameter of the circular image is second pixel information;
determining fourth pixel information occupied by the circular image, wherein the fourth pixel information comprises the pixel number information occupied by the circular image;
determining second ratio information based on the fourth pixel information and the first pixel information;
comparing the second ratio information with the second preset interval;
and if the second ratio information is within the second preset interval, outputting information for representing that the quality of any aggregate is qualified.
By adopting the technical scheme, the approaching degree of the first pixel information and the fourth pixel information is positively correlated with the qualified degree of the aggregates, the first pixel information and the fourth pixel information are compared to determine second ratio information, and the second ratio information and a second preset interval are compared to determine whether any aggregate corresponding to the first pixel is qualified or not more accurately.
In another possible implementation manner, if the first ratio information is not within a first preset interval, the method further includes,
determining information of a region to be collected, wherein the region to be collected is image region information corresponding to any aggregate;
controlling a vibrating device to vibrate the conveyor belt;
acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing;
determining third image information from the second image information based on the information of the area to be acquired;
carrying out target identification on aggregates in the third image information;
if the image information of at least two aggregates is identified, controlling the vibration equipment to stop vibrating;
if the image information of one aggregate is identified, circularly executing vibration equipment to control the conveyor belt to vibrate; acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing; determining third image information based on the information of the area to be acquired from the second image information; a step of performing target recognition on the third image information; until meeting the preset condition;
wherein the preset condition comprises at least one of the following:
reaching a vibration frequency threshold value;
image information for at least two aggregates is identified.
By adopting the technical scheme, if the first ratio information is not in the first preset interval, at least two aggregates can be stacked, the information of the stacked area is determined, the vibration equipment is controlled to work to enable the conveyor belt to vibrate, the stacked aggregates are further separated, the image information of the aggregate area after the conveyor belt vibrates is collected to be the second image information, the third image information is determined according to the information of the stacked area and the second image information, the target recognition is carried out on the third image information, the vibration equipment is controlled to stop vibrating after at least two aggregates are recognized, if one aggregate is still recognized, the vibration equipment is controlled to vibrate again and collect the second image information, the third image information and the target recognition are determined, and until at least two aggregates are recognized or the vibration frequency threshold value is reached. The detection of the aggregate particle size is more accurate by reducing the stacking of the aggregates.
In another possible implementation manner, the method further includes:
counting the aggregates corresponding to the first ratio information in a first preset interval, and generating first counting information, or counting the aggregates corresponding to the second ratio information in a second preset interval, and generating second counting information;
counting the aggregate image information and generating third counting information;
determining yield information based on the first count information or the second count information and the third count information;
and uploading the qualification rate information to a data center.
By adopting the technical scheme, all qualified aggregates are counted to obtain first counting information or second counting information, and all aggregates are counted to obtain third counting information. And determining the proportion of the qualified aggregate quantity in the total aggregate quantity based on the first counting information or the second counting information and the third technical information, further obtaining the qualified rate of the aggregates in the same batch, and uploading the qualified rate information to a data center to facilitate monitoring of workers.
In another possible implementation manner, the method further includes:
detecting the moisture content information of the aggregate by a control sensor;
and uploading the moisture content information to a data center.
Through adopting above-mentioned technical scheme, the control sensor detects the moisture content of aggregate and generates moisture content information to upload moisture content information to data center, thereby make the staff monitor the quality of aggregate from the multidimension degree.
In a second aspect, the present application provides an online aggregate particle size monitoring device, which adopts the following technical scheme:
an on-line aggregate particle size monitoring device comprising:
the acquisition module is used for acquiring image information corresponding to the aggregates on the conveyor belt;
the processing module is used for carrying out binarization processing on the image information to obtain binarized image information;
the first determining module is used for determining image area information corresponding to each aggregate based on the binaryzation image information;
the analysis module is used for analyzing the image area information corresponding to each aggregate;
and the second determining module is used for determining quality information corresponding to each aggregate on the conveying belt based on the analysis result.
By adopting the technical scheme, the collection module collects the aggregate image on the conveyor belt, the processing module carries out binarization processing on the image information and obtains binarized image information, and the binarized image information can clearly and prominently display the aggregate. The first determining module determines image area information corresponding to each aggregate, the analyzing module analyzes the image area information corresponding to each aggregate to enable an analysis result to be more accurate, and the second determining module determines quality information corresponding to each aggregate based on the analysis result to be more efficient.
In another possible implementation manner, the analysis module is specifically configured to analyze image area information corresponding to each aggregate;
dividing the image information of each aggregate from the image area information corresponding to each aggregate;
determining first pixel information respectively corresponding to the aggregates from the image information of the aggregates,
the first pixel information is used for representing the arrangement information of all pixels forming each aggregate image information;
analyzing the first pixel information corresponding to each aggregate;
specifically, when determining the quality information corresponding to each aggregate on the conveyor belt based on the analysis result, the second determining module is specifically configured to:
and determining quality information corresponding to each aggregate based on the first pixel information analysis result corresponding to each aggregate.
In another possible implementation manner, when analyzing the first pixel information corresponding to any aggregate, the analysis module is specifically configured to:
determining second pixel information and third pixel information based on the first pixel information corresponding to any aggregate;
the second pixel information is the information of the number of the longest continuous one-dimensional pixel arrays in the first pixel information of any aggregate, the third pixel information is the information of the number of the continuous one-dimensional pixel arrays which are perpendicular to the second pixel information in the first pixel information of any aggregate and are positioned in the middle of the second pixel information, and the diagonal lines of all pixels in the second pixel information and the third pixel information are parallel to each other;
determining first ratio information based on the second pixel information and the third pixel information;
comparing the first ratio information with a first preset interval to determine whether any aggregate is qualified;
the second determining module is specifically configured to, when determining the quality information corresponding to any aggregate based on the analysis result:
and if the first ratio information is within a first preset interval, determining that any aggregate is qualified, and outputting information used for representing that the aggregate quality corresponding to the first pixel information of any aggregate is qualified.
In another possible implementation manner, the apparatus further includes:
a drawing module for drawing a circular image based on the second pixel information; the pixel information occupied by the diameter of the circular image is second pixel information;
a third determining module, configured to determine fourth pixel information occupied by the circular image, where the fourth pixel information includes information of the number of pixels occupied by the circular image;
a fourth determining module for determining second ratio information based on the fourth pixel information and the first pixel information;
the comparison module is used for comparing the second ratio information with the second preset interval;
and the output module is used for outputting information for representing that the quality of any aggregate is qualified when the second ratio information is within the second preset interval.
In another possible implementation manner, the device further comprises,
a fifth determining module, configured to determine information of a region to be acquired, where the region to be acquired is image region information corresponding to the aggregate;
the first control module is used for controlling the vibration equipment to carry out vibration treatment on the conveyor belt;
the acquisition module is used for acquiring second image information, and the second image information is image information of an aggregate area on the conveyor belt after vibration processing;
the sixth determining module is used for determining third image information from the second image information based on the information of the area to be acquired;
the identification module is used for carrying out target identification on aggregate in the third image information;
the second control module is used for controlling the vibration equipment to stop vibrating when the image information of at least two aggregates is identified;
the circulating module is used for circularly executing and controlling the vibration equipment to vibrate the conveyor belt when the image information of one aggregate is identified; acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing; determining third image information based on the information of the area to be acquired from the second image information; a step of performing target recognition on the third image information; until meeting the preset condition;
wherein the preset condition comprises at least one of the following:
reaching a vibration frequency threshold value;
image information for at least two aggregates is identified.
In another possible implementation manner, the apparatus further includes:
the first counting module is used for counting the aggregates corresponding to the first ratio information within a first preset interval and generating first counting information;
or the second counting module is used for counting the aggregates corresponding to the second ratio information within the second preset interval and generating second counting information;
the third counting module is used for counting the aggregate image information and generating third counting information;
a seventh determining module, configured to determine yield information based on the first count information or the second count information and the third count information;
and the first uploading module is used for uploading the qualification rate information to a data center.
In another possible implementation manner, the apparatus further includes:
the detection module is used for controlling the sensor to detect the moisture content information of the aggregate;
and the second uploading module is used for uploading the moisture content information to a data center.
In a third aspect, the present application provides an electronic device, which adopts the following technical solutions:
an electronic device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: an online aggregate particle size monitoring method according to any one of the possible implementations of the first aspect is performed.
In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
a computer-readable storage medium, comprising: a computer program is stored which can be loaded by a processor and executed to implement an online aggregate particle size monitoring method as shown in any one of the possible implementations of the first aspect.
In summary, the present application includes at least one of the following beneficial technical effects:
1. aggregate images on the conveyor belt are collected, binarization image information is obtained, and the binarization image information can clearly and prominently display the aggregates. Determining image area information corresponding to each aggregate and analyzing the image area information corresponding to each aggregate to enable an analysis result to be more accurate, and determining quality information corresponding to each aggregate based on the analysis result is more efficient;
2. if the first ratio information is not in the first preset interval, stacking of at least two aggregates is possible, stacking area information is determined, vibration equipment is controlled to work to enable the conveyor belt to vibrate, stacked aggregates are separated, image information of an aggregate area after the conveyor belt vibrates is collected to be second image information, third image information is determined according to the stacking area information and the second image information, target recognition is conducted on the third image information, the vibration equipment is controlled to stop vibrating after the at least two aggregates are recognized, if one aggregate is still recognized, the vibration equipment is controlled to vibrate again, the second image information is collected, the third image information and the target recognition are determined, and at least two aggregates are recognized or the vibration frequency threshold value is reached. The detection of the aggregate particle size is more accurate by reducing the stacking of the aggregates.
Drawings
Fig. 1 is a schematic flow chart of an online aggregate particle size monitoring method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an online aggregate particle size monitoring device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the attached drawings.
A person skilled in the art, after reading the present description, may make modifications to the embodiments as required, without any inventive contribution thereto, but shall be protected by the patent laws within the scope of the claims of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The embodiments of the present application will be described in further detail with reference to the drawings attached hereto.
The embodiment of the application provides an online aggregate particle size monitoring method, which is executed by electronic equipment, wherein the electronic equipment can be a server or terminal equipment, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like, but is not limited thereto, the terminal device and the server may be directly or indirectly connected through a wired or wireless communication manner, and an embodiment of the present application is not limited thereto, as shown in fig. 1, the method includes:
and S101, collecting image information corresponding to the aggregate on the conveyor belt.
For the embodiment of the application, when the particle size of the aggregate is monitored, the aggregate can be flattened firstly, the flattened aggregate is conveyed to the conveyor belt, the flattened aggregate is conveyed to the image acquisition position by the conveyor belt, and the flattened aggregate image can be acquired by the camera at the image acquisition position.
And S102, carrying out binarization processing on the image information to obtain binarized image information.
For the embodiment of the application, the information in the image is conveniently determined by carrying out binarization processing on the image information, and the identification efficiency of the binarized image can be increased during identification. Therefore, the color of the conveying belt can be selected from the color which is greatly different from the color of the aggregate, so that the aggregate can be better distinguished from the conveying belt when the image information is subjected to binarization processing, and further analysis and processing are facilitated.
And S103, determining image area information corresponding to each aggregate based on the binary image information.
Specifically, the area corresponding to each aggregate in each aggregate is determined, and each aggregate in each aggregate is conveniently analyzed and processed. For example, the binarized image information is subjected to the coordinate processing, and a surrounding square region corresponding to each aggregate is determined.
And S104, analyzing the image area information corresponding to each aggregate.
Specifically, after the image area information corresponding to each aggregate in each aggregate is determined, the image area information corresponding to each aggregate in each aggregate only comprises each aggregate image and part of the conveyor belt images, so that the particle size detection of each aggregate in each aggregate is more visual and accurate. And analyzing the image area information corresponding to each aggregate one by one or simultaneously, so that the particle size analysis of each aggregate in each aggregate is more accurate.
And S105, determining quality information corresponding to each aggregate on the conveyor belt based on the analysis result.
For the embodiment of the application, the electronic equipment analyzes the image area information corresponding to each aggregate in each aggregate, so that the analysis result of the particle size of each aggregate is obtained, and the quality information of each aggregate is determined through the analysis result, so that the labor is saved and the efficiency is higher.
A possible implementation manner of the embodiment of the present application, analyzing the image area information corresponding to each aggregate, may specifically include: step S1041 (not shown), step S1042 (not shown), and step S1043 (not shown), wherein,
s1041, the image information of each aggregate is divided from the image region information corresponding to each aggregate.
For the embodiment of the application, the electronic equipment filters the image information of the conveyor belt from the image information of each aggregate divided from the image area information corresponding to each aggregate. For example, the grayscale value of the image information on the conveyor belt portion is "0", the grayscale value of the image information on each aggregate portion is 255, and the image information on each aggregate portion can be obtained by filtering the image information with the grayscale value of "0".
And S1042, determining first pixel information corresponding to each aggregate from the image information of each aggregate, wherein the first pixel information is used for representing the arrangement information of all pixels forming each aggregate image information.
For the embodiment of the application, the electronic device determines the pixel information forming each aggregate according to the image information of each aggregate, for example, the image information of each aggregate can represent the shape information and the contour information of each aggregate, and determines the first pixel information corresponding to each aggregate according to the shape of each aggregate, for example, the first row two, the second row three, the third row four, and the like, so as to form the first pixel information corresponding to each aggregate. The electronic equipment can analyze and process the first pixel information more conveniently and accurately.
S1043, analyzing the first pixel information corresponding to each aggregate, and determining quality information corresponding to each aggregate based on the analysis result.
Specifically, the first pixel information can represent the characteristics of the aggregate such as the shape and the size, the electronic equipment can analyze the particle size information of the aggregate more quickly and conveniently through the arrangement of the first pixel information, and then the quality of the aggregate can be determined conveniently.
Specifically, analyzing the first pixel information corresponding to any aggregate may specifically include: step S1042a (not shown), step S1042b (not shown), and step S1042c (not shown), wherein,
s1042a, determining second pixel information and third pixel information based on the first pixel information corresponding to any aggregate;
the second pixel information is the longest continuous one-dimensional pixel array quantity information in the first pixel information of any aggregate, the third pixel information is the continuous one-dimensional pixel array quantity information which is perpendicular to the second pixel information in the first pixel information of any aggregate and is in the middle position of the second pixel information, and the diagonal lines of all pixels in the second pixel information and the third pixel information are parallel to each other.
For the embodiment of the application, the second pixel information is the number of pixels between the longest ends of each aggregate, and is used for representing the particle size between the longest ends of the aggregates; and the third pixel information is used for representing the aggregate particle size at the middle position of the connecting line at the longest two ends of the vertical aggregate. For example, the number of the second pixel information is 10, the number of the third pixel information is 8, and whether the particle size of the aggregate is qualified or not can be clearly represented by analyzing and processing the second pixel information and the third pixel information. The aggregate size can also be determined through the second pixel information and the third pixel information, for example, the second pixel information is 10 corresponding to the actual size 10mm, the electronic device can also generate the actual size of any aggregate in each aggregate based on the second pixel information, and the actual size of any aggregate in each aggregate is controlled and displayed, for example, the electronic device controls a display screen and other devices to display 10mm, so that the staff can better monitor the aggregate size.
S1042b, determining first ratio information based on the second pixel information and the third pixel information.
For the embodiment of the present application, the first ratio information is a ratio result obtained by comparing the third pixel information with the second pixel information, and taking the second pixel information and the third pixel information in step S1042a as an example, the first ratio information =8/10= 0.8. The first ratio information can represent the qualified degree of the aggregate, and whether the aggregate is qualified or not can be determined by analyzing the first ratio information.
S1042c, comparing the first ratio information with a first preset interval to determine whether any aggregate is qualified.
For the embodiment of the application, the first preset interval is used for representing a range in which the first ratio information corresponding to the qualified aggregate should be located, and for example, the first preset interval is 0.75 to 1. And determining the aggregate to be qualified if the first ratio information is between 0.75 and 1.
Specifically, determining the quality information corresponding to any aggregate based on the analysis result may include: and if the first ratio information is within the first preset interval, determining that any aggregate is qualified, and outputting information used for representing that the aggregate quality corresponding to the first pixel information of any aggregate is qualified.
For the embodiment of the present application, taking the step S1042c as an example, if the first ratio information is in the first preset interval, it is determined that the aggregate corresponding to the first ratio information is qualified aggregate, and the electronic device outputs information that the quality of the aggregate is qualified for the qualified aggregate. For example, the aggregate is represented to be qualified by '1', the aggregate is represented to be unqualified by '0', the electronic equipment aims at the qualified aggregate and controls the display equipment to display '1', or the '1' is uploaded to the data center to be monitored and stored.
And analyzing the first pixel information of each aggregate according to the steps S1042a, S1042b and S1042c to obtain an analysis result of the first pixel corresponding to each aggregate.
In a possible implementation manner of the embodiment of the present application, the step S1042a further includes a step S106 (not shown), a step S107 (not shown), a step S108 (not shown), a step S109 (not shown), and a step S110 (not shown), wherein,
s106, drawing a circular image based on the second pixel information; the pixel information occupied by the diameter of the circular image is the second pixel information.
For the embodiment of the application, the circular image is drawn based on the second pixel information corresponding to each aggregate, each aggregate is compared with the corresponding circular image, and the circular image provides a reference for the quality of each aggregate, so that the proportion of the image information of each aggregate in the circular image can be reflected more intuitively, and the qualification rate of each aggregate is determined.
S107, fourth pixel information occupied by the circular image is determined, and the fourth pixel information contains the number information of the pixels occupied by the circular image.
With the embodiment of the present application, the fourth pixel information is information that the electronic device determines the number of pixels constituting the circular image based on the circular image, for example, the number of pixels constituting the circular image is 50. And comparing the information of the first pixel and the fourth pixel of the aggregate to determine whether the aggregate is qualified or not.
And S108, determining second ratio information based on the fourth pixel information and the first pixel information.
For the embodiment of the present application, taking step S107 as an example, the number of the fourth pixel information of the circular image is 50, the number of the first pixel information of the aggregate corresponding to the circular image is 35, and the second ratio information = first pixel information/fourth pixel information =35/50= 0.7. The area proportion of the first pixel information of the aggregate to the circular image can be reflected through the second ratio information, so that the quality of the aggregate is reflected.
And S109, comparing the second ratio information with a second preset interval.
Specifically, the second preset interval is used for representing an interval in which the second ratio information corresponding to the qualified aggregate should be located. For example, the second predetermined interval is 0.6 to 1. And comparing the second ratio information corresponding to each aggregate with a second preset interval, so as to conveniently determine whether the quality of each aggregate is qualified. Taking step S108 as an example, 0.7 is located in the second preset interval, which indicates that the aggregate belongs to qualified aggregate.
And S110, if the second ratio information is within a second preset interval, outputting information for representing that the quality of any aggregate is qualified.
For the embodiment of the present application, taking step S108 and step S109 as an example, if the second ratio information 0.6 is located in the second preset interval 0.6-1, it indicates that the aggregate is qualified aggregate. And the electronic equipment outputs information representing that the aggregate quality is qualified. For example, the electronic device outputs "1" indicating that the aggregate is a qualified aggregate, and controls the display device to display "1". Or the '1' is uploaded to a data center for monitoring or storage, so that the quality of the aggregate can be monitored by the staff conveniently.
In a possible implementation manner of the embodiment of the present application, if the first ratio information is not within the first preset interval, step S1042c further includes step S111 (not shown), step S112 (not shown), step S113 (not shown), step S114 (not shown), step S115 (not shown), step S116 (not shown), and step S117 (not shown), wherein,
and S111, determining information of a region to be acquired, wherein the region to be acquired is image region information corresponding to any aggregate.
Specifically, if the first ratio information is within the first preset interval, it is also possible that at least two aggregates are stacked. Since two aggregates are stacked and an error is likely to occur when the quality of the aggregates is inspected and monitored, the stacked aggregates need to be separated.
For the embodiment of the application, the electronic device determines that the area information to be collected is the aggregate area information suspected of being stacked. The electronic device may coordinate the binarized image information, and determine vertex coordinates of the aggregate area suspected of stacking, for example, the vertex coordinates of the area suspected of stacking are (3, 3), (10, 10) and (3, 10), and the information of the area to be collected is a square area surrounded by the four coordinates.
And S112, controlling a vibrating device to vibrate the conveyor belt.
For the embodiment of the application, the vibration equipment capable of vibrating towards the conveyor belt can be arranged below the conveyor belt, after the regional information to be acquired is determined, the electronic equipment outputs a control signal for controlling the vibration equipment, and the vibration equipment starts to drive the conveyor belt to vibrate after responding to the control signal. After the conveyer belt vibrates, the aggregate on the conveyer belt takes place weak displacement in the effect of vibration, and then makes the aggregate separation that takes place to pile up.
And S113, acquiring second image information, wherein the second image information is the image information of the aggregate area on the conveyor belt after vibration processing.
Specifically, after the conveyor belt vibrates, the image information of the aggregate area on the conveyor belt changes, the electronic device controls the camera to collect the image information of the vibrated aggregate area as second image information, and the second image information is analyzed, so that whether the aggregates which are suspected to be stacked are stacked or not is determined.
And S114, determining third image information from the second image information based on the information of the area to be acquired.
For the embodiment of the application, the electronic device determines the third image information based on the information of the area to be acquired and the second image information, taking step S111 as an example, the electronic device determines that the image information of the area surrounded by the coordinates (3, 3), (10, 10) and (3, 10) after the vibration is the third image information. And analyzing the third image information to determine whether the aggregate suspected to be stacked is stacked.
And S115, carrying out target recognition on the aggregate in the third image information.
For the embodiment of the application, the third image information can be subjected to binarization processing, the image information of the conveyor belt part is filtered, the image information of the aggregate is further obtained, the target identification is performed on the aggregate, and the aggregate quantity in the third image information is further obtained.
And S116, controlling the vibration equipment to stop vibrating if the image information of at least two aggregates is identified.
For the embodiment of the application, if at least two aggregates are identified in the third image information, the aggregates suspected to be stacked are determined to be stacked. The electronic device outputs a termination signal that controls the vibration device to stop vibrating, and the vibration device stops vibrating in response to the termination signal. And (4) monitoring the particle size of each aggregate which is separated enough by the electronic equipment.
S117, if the image information of one aggregate is recognized, circularly executing the steps of S112, S113, S114 and S115; until meeting the preset condition;
wherein the preset condition comprises at least one of the following conditions:
reaching a vibration frequency threshold value;
image information for at least two aggregates is identified.
For the embodiment of the present application, the vibration frequency threshold may be set by a worker as needed, or may be written into the electronic device in advance, for example, the vibration frequency is 3 times. After the vibrating device vibrates once, the electronic device still only recognizes the image information of one aggregate in the third image information, and there is a possibility that stacked aggregates are not separated by one vibration. And the electronic equipment controls the vibration equipment to vibrate the conveyor belt again, acquires second image information corresponding to the vibrated aggregate region again, acquires third image information from the second image information and performs target identification on the third image information. If the image information of one aggregate is still identified, the steps are continuously and circularly executed until the vibration equipment stops vibrating after vibrating for 3 times or identifying the image information of at least two aggregates.
In a possible implementation manner of the embodiment of the present application, the step S110 further includes a step S118 (not shown), a step S119 (not shown), a step S120 (not shown), and a step S121 (not shown), wherein,
and S118, counting the aggregates corresponding to the first ratio information within the first preset interval, and generating first counting information, or counting the aggregates corresponding to the second ratio information within the second preset interval, and generating second counting information.
Specifically, the aggregates corresponding to the first ratio information within the first preset interval are counted, that is, the qualified aggregates are counted, or the aggregates corresponding to the second ratio information within the second preset interval are counted, and the qualified aggregates are also counted. The number of the qualified aggregates is counted through the step S118, so that the number of the qualified aggregates is counted conveniently, and the number of the qualified aggregates is analyzed.
S119, counts the aggregate image information, and generates third count information.
Specifically, the image information of each aggregate in each aggregate is counted, that is, the number of all aggregates is counted. This step may be performed after step S116 or step S117, thereby making the third count information more accurate.
And S120, determining qualified rate information based on the first counting information or the second counting information and the third counting information.
For the embodiment of the present application, it is assumed that the first count information and the second count information are both 300, and the third count information is 350. Yield information = (first count information or second count information)/third count information =6/7 ≈ 85.7%.
And S121, uploading the qualification rate information to a data center.
For the embodiment of the application, the qualification rate information can be transmitted to the data center through 5G transmission, optical fiber transmission and other modes, and the data center stores and monitors the qualification rate information.
A possible implementation manner of the embodiment of the present application further includes step S122 (not shown in the figure) and step S123 (not shown in the figure), where step S122 (not shown in the figure) and step S123 (not shown in the figure) may be executed before step S101, or may be executed after step S101, or may be executed simultaneously with step S101, and an execution sequence of step S123 (not shown in the figure) and step S124 (not shown in the figure) and the other steps is not limited, where,
and S122, controlling the sensor to detect the moisture content information of the aggregate.
For the embodiment of the application, the moisture content of the aggregate has the same influence on the quality of the aggregate, and the sensor can be a non-contact moisture tester, an infrared moisture meter, a microwave moisture meter and the like as long as the moisture content of the aggregate can be detected. The electronic device control sensor detects the moisture content information of the aggregate, for example, detects that the moisture content information of the aggregate is 50%.
And S123, uploading the water content information to a data center.
To this application embodiment, accessible 5G transmission, modes such as optical fiber transmission upload to data center with the moisture content, and data center monitors and saves moisture content information, and then is convenient for monitor the aggregate quality from aggregate moisture content direction.
The embodiments described above introduce an online aggregate particle size monitoring method from the perspective of a method flow, and the embodiments described below introduce an online aggregate particle size monitoring device from the perspective of a virtual module or a virtual unit, which are described in detail in the following embodiments.
The embodiment of the present application provides an online aggregate particle size monitoring device 20, as shown in fig. 2, the online aggregate particle size monitoring device 20 may specifically include:
the acquisition module 201 is used for acquiring image information corresponding to aggregates on the conveyor belt;
the processing module 202 is configured to perform binarization processing on the image information to obtain binarized image information;
the first determining module 203 is configured to determine image area information corresponding to each aggregate based on the binarized image information;
the analysis module 204 is configured to analyze image area information corresponding to each aggregate;
and the second determining module 205 is used for determining quality information corresponding to each aggregate on the conveyor belt based on the analysis result.
For the embodiment of the application, the collection module 201 collects the aggregate image on the conveyor belt, the processing module 202 performs binarization processing on the image information to obtain binarized image information, and the binarized image information can clearly and prominently display the aggregate. The first determining module 203 determines the image area information corresponding to each aggregate, the analyzing module 204 analyzes the image area information corresponding to each aggregate, so that the analysis result is more accurate, and the second determining module 205 determines the quality information corresponding to each aggregate based on the analysis result, so that the efficiency is higher.
In a possible implementation manner of the embodiment of the present application, the analysis module 204 is specifically configured to analyze image area information corresponding to each aggregate;
dividing image information of each aggregate from image area information corresponding to each aggregate;
determining first pixel information respectively corresponding to the aggregates from the image information of the aggregates,
the first pixel information is used for representing the arrangement information of all pixels forming each aggregate image information;
analyzing the first pixel information corresponding to each aggregate;
specifically, when determining the quality information corresponding to each aggregate on the conveyor belt based on the analysis result, the second determining module 205 is specifically configured to:
and determining quality information corresponding to each aggregate based on the first pixel information analysis result corresponding to each aggregate.
In a possible implementation manner of the embodiment of the present application, when the analysis module 204 analyzes the first pixel information corresponding to any aggregate, the analysis module is specifically configured to:
determining second pixel information and third pixel information based on first pixel information corresponding to any aggregate, wherein the second pixel information is the longest continuous one-dimensional pixel array quantity information in the first pixel information of any aggregate, the third pixel information is the continuous one-dimensional pixel array quantity information which is perpendicular to the second pixel information in the first pixel information of any aggregate and is in the middle position of the second pixel information, and the diagonal lines of all pixels in the second pixel information and the third pixel information are parallel to each other;
determining first ratio information based on the second pixel information and the third pixel information;
comparing the first comparison information with a first preset interval to determine whether any aggregate is qualified;
when determining the quality information corresponding to any aggregate based on the analysis result, the second determining module 205 is specifically configured to:
and if the first ratio information is within the first preset interval, determining that any aggregate is qualified, and outputting information used for representing that the aggregate quality corresponding to the first pixel information of any aggregate is qualified.
In a possible implementation manner of the embodiment of the present application, the apparatus further includes:
a drawing module for drawing the circular image based on the second pixel information; the diameter of the circular image accounts for the pixel information and is second pixel information;
the third determining module is used for determining fourth pixel information occupied by the circular image, and the fourth pixel information comprises the pixel number information occupied by the circular image;
a fourth determining module, configured to determine second ratio information based on the fourth pixel information and the first pixel information;
the comparison module is used for comparing the second ratio information with a second preset interval;
and the output module is used for outputting information for representing the qualified quality of any aggregate when the second ratio information is within a second preset interval.
In one possible implementation manner of the embodiment of the application, the apparatus further includes,
the fifth determining module is used for determining information of a region to be acquired, wherein the region to be acquired is image region information corresponding to any aggregate;
the first control module is used for controlling the vibration equipment to carry out vibration treatment on the conveyor belt;
the acquisition module is used for acquiring second image information, and the second image information is image information of an aggregate area on the conveyor belt after vibration processing;
the sixth determining module is used for determining third image information from the second image information based on the information of the area to be acquired;
the identification module is used for carrying out target identification on aggregate in the third image information;
the second control module is used for controlling the vibration equipment to stop vibrating when the image information of at least two aggregates is identified;
the circulating module is used for circularly executing and controlling the vibrating equipment to vibrate the conveying belt when the image information of one aggregate is identified; acquiring second image information, wherein the second image information is image information of an aggregate area on the conveyor belt after vibration processing; determining third image information based on the information of the area to be acquired from the second image information; a step of performing target recognition on the third image information; until meeting the preset condition;
wherein the preset condition comprises at least one of the following conditions:
reaching a vibration frequency threshold value;
image information for at least two aggregates is identified.
In a possible implementation manner of the embodiment of the present application, the apparatus further includes:
the first counting module is used for counting the aggregates corresponding to the first ratio information within a first preset interval and generating first counting information;
or the second counting module is used for counting the aggregates corresponding to the second ratio information within a second preset interval and generating second counting information;
the third counting module is used for counting the aggregate image information and generating third counting information;
a seventh determining module, configured to determine yield information based on the first count information or the second count information and the third count information;
the first uploading module is used for uploading the qualification rate information to the data center.
In a possible implementation manner of the embodiment of the present application, the apparatus further includes:
the detection module is used for controlling the sensor to detect the moisture content information of the aggregate;
and the second uploading module is used for uploading the moisture content information to the data center.
For the embodiment of the present application, the first determining module 203, the second determining module 205, the third determining module, the fourth determining module, the fifth determining module, the sixth determining module, and the seventh determining module may all be the same determining module, or may all be different determining modules, or may be partially the same determining module. The first control module and the second control module may be the same control module or different control modules. The first counting module, the second counting module and the third counting module may all be the same counting module, or may all be different counting modules, or may be partially the same counting module. The first uploading module and the second uploading module may be the same uploading module or different uploading modules.
The embodiment of the application provides a pipeline water supply network leakage alarm control device, which is suitable for the method embodiment and is not described herein again.
In an embodiment of the present application, an electronic device is provided, and as shown in fig. 3, an electronic device 30 shown in fig. 3 includes: a processor 301 and a memory 303. Wherein processor 301 is coupled to memory 303, such as via bus 302. Optionally, the electronic device 30 may also include a transceiver 304. It should be noted that the transceiver 304 is not limited to one in practical applications, and the structure of the electronic device 30 is not limited to the embodiment of the present application.
The Processor 301 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 301 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 302 may include a path that transfers information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 302 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 303 is used for storing application program codes for executing the scheme of the application, and the processor 301 controls the execution. The processor 301 is configured to execute application program code stored in the memory 303 to implement the aspects illustrated in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. But also a server, etc. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, the aggregate image on the conveyor belt is collected and the binaryzation image information is obtained in the embodiment of the application, and the binaryzation image information can clearly and prominently display the aggregate. The image area information corresponding to each aggregate is determined, the image area information corresponding to each aggregate is analyzed, so that the analysis result is more accurate, and the efficiency of determining the quality information corresponding to each aggregate based on the analysis result is higher.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种粗骨料粒形级配分析方法、装置及系统