Flaxseed raw material quality detection system and method for flaxseed oil production
Through automated equipment and imaging devices, the image data of flax seed raw materials is collected and analyzed, and the subjectivity and accuracy of traditional manual detection methods are solved, achieving efficient and accurate quality detection.
Patent Information
- Application Number
- CN202411523234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-10-30
AI Technical Summary
Traditional flax seed raw material quality detection methods rely on artificial sensory evaluation, and have problems such as strong subjectivity, limited accuracy and difficulty in quantification, making it difficult to meet the needs of large-scale production.
Automatic equipment is used to drive the flax seed raw materials to roll in multi-direction, and image data is collected through the camera device, appearance characteristics are analyzed through the image processing module, bad seeds are locked, quality coefficients are calculated, and quality levels are finally determined.
The accuracy and reliability of the quality inspection of flax seed raw materials has been achieved, the detection efficiency has been improved, and manpower and material resources have been saved.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image acquisition and detection, and in particular to a flaxseed raw material quality detection system and method for flaxseed oil production. Background Art
[0002] At present, in the production process of flaxseed oil, the quality of flaxseed raw materials has a vital impact on the quality of the final product. The quality difference of flaxseed will directly affect the key aspects of the final flaxseed oil, such as quality, nutritional value and flavor;
[0003] Traditionally, the quality testing of flaxseed raw materials may rely on relatively crude methods such as manual sensory evaluation, which has the problems of strong subjectivity, limited accuracy and difficulty in quantification. In addition, manual testing is inefficient and may not meet the needs of large-scale production.
[0004] Therefore, in order to overcome the above-mentioned defects, the present invention provides a flaxseed raw material quality detection system and method for flaxseed oil production. Summary of the invention
[0005] The present invention provides a flaxseed raw material quality detection system and method for flaxseed oil production, which are used to drive the flaxseed raw material to roll in multiple directions through an automated device, and collect a series of images of the flaxseed raw material through a camera device during the rolling process, so as to provide reliable image data for quality detection of the flaxseed raw material. Secondly, the obtained sequence image set is analyzed to effectively determine the appearance characteristics of the flaxseed raw material recorded in each image, and effectively lock the number of bad seeds in each image according to the appearance characteristics. Finally, the quality coefficient of the flaxseed raw material is determined according to the number of bad seeds, so as to determine the final quality grade of the flaxseed raw material according to the quality coefficient, thereby ensuring the accuracy and reliability of the quality detection of the flaxseed raw material, and at the same time, improving the efficiency of the quality detection and saving a lot of manpower and material resources.
[0006] The present invention provides a flaxseed raw material quality detection system for flaxseed oil production, comprising:
[0007] An image acquisition module is used to perform multi-directional rotation and tumbling of the flax seed raw material based on an automated device, and to obtain a sequence image set of the flax seed raw material in the multi-directional rotation and tumbling based on a camera device;
[0008] An image processing module is used to analyze the sequence image set, determine the appearance characteristics of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance characteristics;
[0009] The quality detection module is used to evaluate the quality coefficient of the flax seed raw material based on the number of bad seeds, and determine the quality grade of the flax seed raw material based on the quality coefficient.
[0010] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, an image acquisition module, comprises:
[0011] A requirement acquisition unit, used for acquiring the testing requirements for the flax seed raw material from the management terminal, parsing the testing requirements, and determining the rolling direction of the flax seed raw material;
[0012] Configuration unit for:
[0013] Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters;
[0014] Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points;
[0015] The control unit is used to control the automation equipment to perform multi-directional rotation and tumbling of the flax seed raw material according to the established automation execution process.
[0016] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, an image acquisition module, comprises:
[0017] A path determination unit, used to obtain a predetermined rotation and tumbling path of the flax seed raw material in each direction on the automated device, and determine a key shooting point of the camera device in each direction based on the predetermined rotation and tumbling path;
[0018] A shooting configuration unit, used to determine the shooting angle and shooting parameters of the camera device at each key shooting point based on the shooting requirements, and perform parameter configuration on the camera device based on the shooting angle and shooting parameters;
[0019] The image acquisition unit is used to control the camera device to obtain a sequence image set of the flax seed raw material in multi-directional rotation and tumbling based on the parameter configuration result, and to attach tags to the sequence image set based on the position and shooting angle of key shooting points.
[0020] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, an image acquisition unit, comprises:
[0021] The result retrieval subunit is used to obtain the obtained sequence image set and determine the grouping conditions for the sequence image set based on the key shooting points;
[0022] The image grouping subunit is used to extract the subsidiary marks corresponding to the sequence image set, and perform similarity matching between the subsidiary marks and the grouping conditions to obtain the sub-image set corresponding to the sequence image set;
[0023] Image preprocessing subunit, used for:
[0024] Perform pixel traversal on each sub-image in each sub-image set, and determine basic image parameters of each sub-image based on the pixel traversal result;
[0025] A representative image of the shooting angle of each key shooting point is selected from the sub-image set based on the basic image parameters.
[0026] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, an image processing module, comprises:
[0027] An image acquisition unit is used to acquire the obtained sequence image set, and sequentially traverse the pixel points of each image in the sequence image set to obtain the color component of each pixel point in different color channels;
[0028] Image parsing unit, used for:
[0029] Determine the weights corresponding to different color channels based on preset standards, and perform weighted averaging of the color components of different color channels based on the weights to obtain the grayscale value of each pixel;
[0030] The grayscale values of different pixels are recorded at the same position to obtain the grayscale images corresponding to each image. At the same time, the parameter mapping interval corresponding to each grayscale image is determined based on the image enhancement requirements, and the new parameter value is mapped in the parameter mapping interval based on the distribution characteristics of the grayscale values of each pixel in the grayscale image.
[0031] Based on the mapping results, an enhanced image corresponding to each grayscale image is obtained, and the contour edge of the flax seed raw material is extracted based on the enhanced image;
[0032] Determine the target area corresponding to the flax seed raw material based on the contour edge, and extract the appearance color state of the flax seed raw material according to the target area based on the color distribution of each image in the sequence image set;
[0033] At the same time, based on the preset structural element, the enhanced image is traversed at different positions with multiple frequencies, and when the preset structural element completely covers the area encircled by the edge of the contour, the pixel point corresponding to the center of the preset structural element is marked;
[0034] Correcting the contour edge based on the marking result, obtaining the shape feature of the flax seed raw material based on the correction result, and obtaining the appearance feature of the flax seed raw material based on the appearance color state and the shape feature;
[0035] The object counting unit is used to perform differential comparison on each flax seed raw material in the image based on the appearance characteristics of the flax seed raw material, and count the number of bad seeds in each image based on the differential comparison result.
[0036] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, an object statistics unit, comprises:
[0037] Comparison subunit, used for:
[0038] Acquire the appearance characteristics of the obtained flax seed raw material, and obtain the standard appearance characteristics corresponding to the good flax seed raw material from the management terminal, and perform differential comparison between the appearance characteristics of the obtained flax seed raw material and the standard appearance characteristics to obtain differential characteristics;
[0039] Screening the difference characteristics based on preset judgment parameters, and obtaining abnormal flax seed raw materials based on the screening results;
[0040] Quantity counting unit, used for:
[0041] Determine the position parameters of the abnormal flax seed raw material in the corresponding image based on the imaging coordinate system of the camera device, and locate and remove duplicates of the same abnormal flax seed raw material in a sequence image set in different directions based on the position parameters;
[0042] Based on the positioning and deduplication results, the number of bad seeds in each image is counted to obtain the number of bad seeds in each image.
[0043] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, a quality detection module, comprises:
[0044] a ratio determination unit, configured to determine the total number of seeds of the flax seed raw material in each image based on the appearance characteristics of the flax seed raw material, and determine the ratio of bad seeds to total seeds based on the total number of seeds and the number of bad seeds;
[0045] A component analysis unit, used to detect the flax seed raw material based on a preset chemical analysis instrument to obtain the component composition and component ratio of each flax seed raw material;
[0046] The coefficient determination unit is used to determine the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation criteria, and to conduct a comprehensive analysis on the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation weights to obtain the quality coefficient of the flax seed raw material.
[0047] Preferably, a flaxseed raw material quality detection system for flaxseed oil production, a quality detection module, comprises:
[0048] An information acquisition unit, used to acquire the obtained quality excellence coefficient, and at the same time, acquire a quality grade reference table based on a management terminal;
[0049] A grade determination unit, used to perform parameter interval matching between the quality good coefficient and the record parameters in the quality grade reference table, and obtain the quality grade corresponding to the current quality good coefficient based on the parameter interval matching result;
[0050] The information display unit is used to generate a flax seed raw material quality inspection report based on the quality excellence coefficient and the quality grade, and to display the flax seed raw material quality inspection report on a display terminal.
[0051] The present invention provides a method for detecting the quality of linseed raw materials used in linseed oil production, comprising:
[0052] Step 1: rotating and tumbling the flax seed raw material in multiple directions using an automated device, and acquiring a sequence of images of the flax seed raw material in the multi-directional rotation and tumbling using a camera device;
[0053] Step 2: Analyze the sequence image set to determine the appearance features of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance features;
[0054] Step 3: Evaluate the quality coefficient of the flax seed raw material based on the number of bad seeds, and determine the quality grade of the flax seed raw material based on the quality coefficient.
[0055] Preferably, a method for detecting the quality of flaxseed raw materials for flaxseed oil production, in step 1, multi-directionally rotating and tumbling the flaxseed raw materials based on automated equipment, comprises:
[0056] Obtain the testing requirements for flax seed raw materials from the management terminal, analyze the testing requirements, and determine the rolling direction of the flax seed raw materials;
[0057] Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters;
[0058] Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points;
[0059] Based on the control automation equipment, the flax seed raw material is rotated and tumbled in multiple directions according to the established automation execution process.
[0060] Compared with the prior art, the present invention has the following beneficial effects:
[0061] 1. The flax seed raw material is driven to roll in multiple directions by automated equipment, and a series of images of the flax seed raw material are collected by a camera device during the rolling process, providing reliable image data for quality detection of the flax seed raw material. Secondly, the obtained sequence image set is analyzed to effectively determine the appearance characteristics of the flax seed raw material recorded in each image, and to effectively lock the number of bad seeds in each image according to the appearance characteristics. Finally, the quality coefficient of the flax seed raw material is determined according to the number of bad seeds, so as to determine the final quality grade of the flax seed raw material according to the quality coefficient, thereby ensuring the accuracy and reliability of the quality detection of the flax seed raw material, and at the same time, improving the efficiency of quality detection and saving a lot of manpower and material resources.
[0062] 2. By obtaining the inspection requirements for flax seed raw materials from the management terminal and parsing the inspection requirements, the rolling direction of the flax seed raw materials can be accurately and effectively determined. Secondly, according to the determined rolling direction and the equipment parameters of the automation equipment, the target duration of the automation equipment rotating and rolling the flax seed raw materials in each rolling direction can be effectively determined, which provides a reliable guarantee for the effective flipping of the flax seed raw materials. Finally, the switching points of the automation equipment in different rolling directions are determined, and the automation execution process is effectively formulated, so that the automation equipment can be controlled to drive the flax seed raw materials to rotate and roll in multiple directions safely and reliably, which provides convenience and guarantee for the quality inspection of flax seed raw materials.
[0063] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.
[0064] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0066] Figure 1 This is a structural diagram of a flaxseed raw material quality detection system for flaxseed oil production according to an embodiment of the present invention;
[0067] Figure 2 This is a structural diagram of an image acquisition module in a flaxseed raw material quality detection system for flaxseed oil production in an embodiment of the present invention;
[0068] Figure 3The present invention is a flowchart of a method for detecting the quality of flaxseed raw materials used in flaxseed oil production according to an embodiment of the present invention. DETAILED DESCRIPTION
[0069] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0070] Embodiment 1:
[0071] This embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, such as Figure 1 As shown, including:
[0072] An image acquisition module is used to perform multi-directional rotation and tumbling of the flax seed raw material based on an automated device, and to obtain a sequence image set of the flax seed raw material in the multi-directional rotation and tumbling based on a camera device;
[0073] An image processing module is used to analyze the sequence image set, determine the appearance characteristics of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance characteristics;
[0074] The quality detection module is used to evaluate the quality coefficient of the flax seed raw material based on the number of bad seeds, and determine the quality grade of the flax seed raw material based on the quality coefficient.
[0075] In this embodiment, the automated device is a pre-set device for rotating and tumbling the flax seed raw material.
[0076] In this embodiment, the multi-directional rotation and tumbling refers to driving the flax seed raw material to reverse horizontally and up and down by automated equipment, thereby achieving comprehensive and effective image acquisition of the flax seed raw material.
[0077] In this embodiment, the camera device is set in advance, for example, it can be a high-speed ultra-high-definition camera.
[0078] In this embodiment, the sequence image set refers to the image information obtained by collecting a series of images of the flaxseed raw material in different rotation directions.
[0079] In this embodiment, the appearance feature refers to the color and shape of the flaxseed raw material.
[0080] In this embodiment, the number of bad seeds refers to the number of bad seeds existing in each image.
[0081] In this embodiment, the quality coefficient refers to a parameter that can characterize the quality of the flax seed raw material. The larger the value, the better the quality of the flax seed raw material.
[0082] The working principle and beneficial effects of the above technical solution are: the flax seed raw material is driven to roll in multiple directions by automated equipment, and a series of images of the flax seed raw material are collected by a camera device during the rolling process, thereby providing reliable image data for quality detection of the flax seed raw material; secondly, the obtained sequence image set is analyzed to effectively determine the appearance characteristics of the flax seed raw material recorded in each image, and to effectively lock the number of bad seeds in each image according to the appearance characteristics; finally, the quality coefficient of the flax seed raw material is determined according to the number of bad seeds, thereby determining the final quality grade of the flax seed raw material according to the quality coefficient, thereby ensuring the accuracy and reliability of the quality detection of the flax seed raw material, and at the same time, improving the efficiency of quality detection and saving a lot of manpower and material resources.
[0083] Embodiment 2:
[0084] Based on Example 1, this example provides a flaxseed raw material quality detection system for flaxseed oil production, such as Figure 2 As shown, the image acquisition module includes:
[0085] A requirement acquisition unit, used for acquiring the testing requirements for the flax seed raw material from the management terminal, parsing the testing requirements, and determining the rolling direction of the flax seed raw material;
[0086] Configuration unit for:
[0087] Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters;
[0088] Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points;
[0089] The control unit is used to control the automation equipment to perform multi-directional rotation and tumbling of the flax seed raw material according to the established automation execution process.
[0090] In this embodiment, the detection requirements are known in advance, including the image acquisition direction of the flaxseed raw material, the number of images acquired in each direction, and specific acquisition requirements.
[0091] In this embodiment, the equipment parameters refer to the power of the automation equipment and the rotation speed of the equipment during operation.
[0092] In this embodiment, the target duration refers to the length of time that the automated device rotates and rolls the flax seed raw material in each rolling direction, with the purpose of ensuring that the flax seed raw material can be rotated in a complete circle.
[0093] In this embodiment, the switching point refers to the switching time when the automated equipment rotates and rolls the flax seed raw material in different directions. For example, it may be a horizontal rotation and then a switch to an up and down rotation.
[0094] In this embodiment, the automated execution process refers to a mechanism for specifying the operation of automated equipment according to the determined switching points of different rolling directions, thereby realizing intelligent rotation and rolling of the flax seed raw material in different directions.
[0095] The working principle and beneficial effects of the above technical solution are: by obtaining the detection requirements for flax seed raw materials from the management terminal and parsing the detection requirements, the rolling direction of the flax seed raw materials can be accurately and effectively determined; secondly, according to the determined rolling direction and the equipment parameters of the automation equipment, the target duration of the automation equipment for rotating and rolling the flax seed raw materials in each rolling direction is effectively determined, which provides a reliable guarantee for driving the effective flipping of the flax seed raw materials; finally, the switching points of the automation equipment in different rolling directions are determined, the automation execution process is effectively formulated, and the automation equipment is controlled to drive the flax seed raw materials to rotate and roll in multiple directions safely and reliably, which provides convenience and guarantee for the quality inspection of flax seed raw materials.
[0096] Embodiment 3:
[0097] Based on Example 1, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, an image acquisition module, including:
[0098] A path determination unit, used to obtain a predetermined rotation and tumbling path of the flax seed raw material in each direction on the automated device, and determine a key shooting point of the camera device in each direction based on the predetermined rotation and tumbling path;
[0099] A shooting configuration unit, used to determine the shooting angle and shooting parameters of the camera device at each key shooting point based on the shooting requirements, and perform parameter configuration on the camera device based on the shooting angle and shooting parameters;
[0100] The image acquisition unit is used to control the camera device to obtain a sequence image set of the flax seed raw material in multi-directional rotation and tumbling based on the parameter configuration result, and to attach tags to the sequence image set based on the position and shooting angle of key shooting points.
[0101] In this embodiment, the predetermined rotation and tumbling path refers to the corresponding motion path of the flax seed raw material when it rotates and tumbles on the automated equipment, so as to facilitate determination of the corresponding key shooting points when capturing images of the flax seed raw material.
[0102] In this embodiment, the key shooting point refers to the specific image acquisition position corresponding to the image acquisition of the flax seed raw material, that is, the specific position information of the camera device.
[0103] In this embodiment, the shooting requirement is known in advance and is used to characterize information such as the shooting angle and shooting parameters (ie, shooting focal length) of the camera device.
[0104] In this embodiment, the auxiliary marking refers to marking the corresponding sequence image set by the position and shooting angle of the key shooting point, in order to distinguish the images collected at different positions and different shooting angles.
[0105] The working principle and beneficial effects of the above technical solution are as follows: by determining the predetermined rotation and tumbling path of the flax seed raw material on the automated equipment, the position of the key shooting point is effectively determined according to the predetermined rotation and tumbling path; secondly, the shooting requirements are analyzed to accurately and effectively determine the shooting angle and shooting parameters of the camera device, and the camera device is configured according to the determined shooting angle and shooting parameters to ensure the working reliability of the camera device; finally, the flax seed raw material is collected according to the configured camera device, and the collected sequence image set is attached with a mark, so as to facilitate the distinction between sequence images at different positions and angles, and provide a reliable guarantee for the quality detection of the flax seed raw material.
[0106] Embodiment 4:
[0107] Based on Example 3, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, and an image acquisition unit, including:
[0108] The result retrieval subunit is used to obtain the obtained sequence image set and determine the grouping conditions for the sequence image set based on the key shooting points;
[0109] The image grouping subunit is used to extract the subsidiary marks corresponding to the sequence image set, and perform similarity matching between the subsidiary marks and the grouping conditions to obtain the sub-image set corresponding to the sequence image set;
[0110] Image preprocessing subunit, used for:
[0111] Perform pixel traversal on each sub-image in each sub-image set, and determine basic image parameters of each sub-image based on the pixel traversal result;
[0112] A representative image of the shooting angle of each key shooting point is selected from the sub-image set based on the basic image parameters.
[0113] In this embodiment, the grouping condition refers to the basis for grouping the sequence image set, that is, different key shooting points are grouped together.
[0114] In this embodiment, the sub-image set refers to the result obtained by grouping the sequence image set after similarity matching of the attached labeling result and the grouping condition.
[0115] In this embodiment, pixel traversal refers to detecting pixel information of each sub-image in each sub-image set in sequence.
[0116] In this embodiment, the basic image parameters refer to the resolution corresponding to each sub-image and the color of the flax seed raw material photographed.
[0117] In this embodiment, the representative image refers to an image with the best shooting effect selected from all images corresponding to different shooting angles of each key shooting point, which is the representative image.
[0118] The working principle and beneficial effects of the above technical solution are as follows: by determining the grouping conditions of the sequence image set according to the key shooting points, and matching the subsidiary marking results corresponding to different images with the grouping conditions for similarity, the sequence image set is effectively grouped; secondly, the pixel traversal of the sub-image set obtained by grouping is performed to accurately and effectively determine the basic image parameters of each sub-image; finally, the representative image of the shooting angle of each key shooting point is accurately and effectively selected according to the basic image parameters, thereby providing reliable image support for the quality detection of flax seed raw materials.
[0119] Embodiment 5:
[0120] Based on Example 1, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, an image processing module, including:
[0121] An image acquisition unit is used to acquire the obtained sequence image set, and sequentially traverse the pixel points of each image in the sequence image set to obtain the color component of each pixel point in different color channels;
[0122] Image parsing unit, used for:
[0123] Determine the weights corresponding to different color channels based on preset standards, and perform weighted averaging of the color components of different color channels based on the weights to obtain the grayscale value of each pixel;
[0124] The grayscale values of different pixels are recorded at the same position to obtain the grayscale images corresponding to each image. At the same time, the parameter mapping interval corresponding to each grayscale image is determined based on the image enhancement requirements, and the new parameter value is mapped in the parameter mapping interval based on the distribution characteristics of the grayscale values of each pixel in the grayscale image.
[0125] Based on the mapping results, an enhanced image corresponding to each grayscale image is obtained, and the contour edge of the flax seed raw material is extracted based on the enhanced image;
[0126] Determine the target area corresponding to the flax seed raw material based on the contour edge, and extract the appearance color state of the flax seed raw material according to the target area based on the color distribution of each image in the sequence image set;
[0127] At the same time, based on the preset structural element, the enhanced image is traversed at different positions with multiple frequencies, and when the preset structural element completely covers the area encircled by the edge of the contour, the pixel point corresponding to the center of the preset structural element is marked;
[0128] Correcting the contour edge based on the marking result, obtaining the shape feature of the flax seed raw material based on the correction result, and obtaining the appearance feature of the flax seed raw material based on the appearance color state and the shape feature;
[0129] The object counting unit is used to perform differential comparison on each flax seed raw material in the image based on the appearance characteristics of the flax seed raw material, and count the number of bad seeds in each image based on the differential comparison result.
[0130] In this embodiment, the color channels refer to the three color channels of red, green and blue, wherein the color components are specific color thresholds of the three colors of red, green and blue of different pixel points.
[0131] In this embodiment, the preset standard is known in advance and is used to characterize the weights corresponding to different color channels when calculating the grayscale value, where the weight refers to the importance of different color channels, for example, 0.299 times the red component, 0.587 times the green component and 0.114 times the blue component are added together to calculate the grayscale value.
[0132] In this embodiment, the same-position recording refers to recording the grayscale values corresponding to different pixel points according to the positions of the pixel points in the original image, thereby achieving accurate and effective determination of the grayscale image corresponding to each image.
[0133] In this embodiment, the image enhancement requirement refers to a standard for performing image enhancement on each grayscale image, for example, it may be to clearly distinguish a foreground image from a background image in a grayscale image.
[0134] In this embodiment, the parameter mapping interval is determined according to the image enhancement requirement, that is, the grayscale values of pixels in different image areas are more obviously distinguished.
[0135] In this embodiment, the value distribution characteristic refers to the value of the grayscale values of different pixel points.
[0136] In this embodiment, mapping new parameter values in the parameter mapping interval based on the distribution characteristics of the grayscale values of each pixel in the grayscale image means reallocating new parameter values from the parameter mapping interval according to the grayscale values of the pixels, such as mapping the minimum grayscale value to a new minimum value (such as 0) and mapping the maximum grayscale value to a new maximum value (such as 255), in order to achieve enhanced processing of the grayscale image.
[0137] In this embodiment, the target area refers to a specific image area where the flax seed raw material is located in the image.
[0138] In this embodiment, color distribution refers to the distribution of colors in each image.
[0139] In this embodiment, the appearance color state refers to the specific color state corresponding to the flax seed raw material, so as to facilitate the quality detection of the flax seed raw material from the color.
[0140] In this embodiment, the preset structural element may be a rectangular or circular structure, etc., which is used as a parameter for correcting the contour edge of the flax seed raw material.
[0141] In this embodiment, the multi-frequency coverage traversal at different positions refers to covering different positions in the grayscale enhanced image multiple times through a preset structural element, so as to correct the contour edge according to the coverage result.
[0142] In this embodiment, the shape feature refers to the shape of the flax seed raw material, for example, it may be an ellipse.
[0143] In this embodiment, the differential comparison refers to comparing the appearance features of each flax seed raw material in the image with the appearance features of a known good flax seed raw material.
[0144] The working principle and beneficial effects of the above technical solution are as follows: by traversing the obtained sequence image set, the color components of different color channels are accurately and effectively determined. At the same time, when calculating the grayscale image according to the preset standard, the weights of different color channels are effectively determined, so that the grayscale image of each image is accurately and effectively determined according to the weight and the corresponding color component. Secondly, the grayscale value of different pixels is re-assigned according to the value characteristics of each pixel in the grayscale image, so as to achieve effective enhancement processing of the grayscale image, which is convenient for accurately and effectively determining the appearance shape of the flax seed raw material. Finally, the contour edge of the flax seed raw material is effectively determined according to the obtained enhanced image, and the determined edge contour is effectively corrected. At the same time, the appearance color state of the flax seed raw material is determined by the color distribution of each image, and finally the appearance characteristics of the flax seed raw material are determined according to the contour edge and the appearance color state, so as to achieve differential comparison of each flax seed raw material in the image according to the appearance characteristics, ensure accurate and effective statistics of the number of bad seeds in each image, and improve the accuracy of quality detection of flax seed raw materials.
[0145] Embodiment 6:
[0146] Based on Example 5, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, and an object statistics unit includes:
[0147] Comparison subunit, used for:
[0148] Acquire the appearance characteristics of the obtained flax seed raw material, and obtain the standard appearance characteristics corresponding to the good flax seed raw material from the management terminal, and perform differential comparison between the appearance characteristics of the obtained flax seed raw material and the standard appearance characteristics to obtain differential characteristics;
[0149] Screening the difference characteristics based on preset judgment parameters, and obtaining abnormal flax seed raw materials based on the screening results;
[0150] Quantity counting unit, used for:
[0151] Determine the position parameters of the abnormal flax seed raw material in the corresponding image based on the imaging coordinate system of the camera device, and locate and remove duplicates of the same abnormal flax seed raw material in a sequence image set in different directions based on the position parameters;
[0152] Based on the positioning and deduplication results, the number of bad seeds in each image is counted to obtain the number of bad seeds in each image.
[0153] In this embodiment, the standard appearance characteristics refer to specific appearance characteristics corresponding to good flaxseed raw materials.
[0154] In this embodiment, the difference feature refers to the difference between the appearance feature of the flax seed raw material and the standard appearance feature corresponding to the good flax seed raw material.
[0155] In this embodiment, the preset judgment parameter is set in advance and is a standard for determining the number of bad seeds in the flax seed raw material according to the difference characteristics. For example, when the shape and color are different, it can be judged as bad seeds.
[0156] In this embodiment, the abnormal flaxseed raw material refers to a flaxseed raw material with abnormal conditions.
[0157] In this embodiment, the imaging coordinate system is the imaging coordinate system of the camera device, which is used to determine the position parameters of the abnormal flax seed raw material in the corresponding graph.
[0158] In this embodiment, positioning and deduplication refers to positioning the same abnormal flax seed raw material in different images, that is, marking the same abnormal flax seed raw material as the same object in different images to avoid repeated counting of bad seeds.
[0159] The working principle and beneficial effects of the above technical solution are: by differentially comparing the appearance characteristics of the flax seed raw material with the standard appearance characteristics corresponding to the good flax seed raw material, the difference characteristics of the two are accurately and effectively determined; secondly, the difference characteristics are screened according to preset judgment parameters to achieve accurate and effective determination of abnormal flax seed raw materials; finally, the records of the same abnormal flax seed raw material in different images are located and deduplicated according to the imaging coordinate system of the camera device, so as to achieve the effectiveness and reliability of determining the number of bad seeds in each image, thereby ensuring the accuracy and reliability of flax seed raw material quality detection.
[0160] Embodiment 7:
[0161] Based on Example 1, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, and the quality detection module includes:
[0162] a ratio determination unit, configured to determine the total number of seeds of the flax seed raw material in each image based on the appearance characteristics of the flax seed raw material, and determine the ratio of bad seeds to total seeds based on the total number of seeds and the number of bad seeds;
[0163] A component analysis unit, used to detect the flax seed raw material based on a preset chemical analysis instrument to obtain the component composition and component ratio of each flax seed raw material;
[0164] The coefficient determination unit is used to determine the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation criteria, and to conduct a comprehensive analysis on the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation weights to obtain the quality coefficient of the flax seed raw material.
[0165] In this embodiment, the preset chemical analysis instrument is pre-configured to detect the composition and proportion of the flaxseed raw material.
[0166] In this embodiment, the evaluation criteria are known in advance and are used to determine the ratio of bad seeds to total seeds, the component composition of each flax seed raw material and the evaluation weight of the component ratio, so as to determine the quality coefficient of the flax seed raw material.
[0167] In this embodiment, the evaluation weight refers to the ratio of bad seeds to total seeds, the composition of each flax seed raw material, and the proportion of the composition ratio when determining the quality coefficient.
[0168] The working principle and beneficial effects of the above technical solution are: by determining the ratio of bad seeds to total seeds, a basis is provided for quality detection; at the same time, the flax seed raw materials are detected by a preset chemical analysis instrument to effectively determine the component composition and component ratio of the flax seed raw materials; finally, by determining the ratio of bad seeds to total seeds, the component composition and component ratio of each flax seed raw material, a comprehensive analysis of the ratio of bad seeds to total seeds, the component composition and component ratio of each flax seed raw material is performed according to the evaluation weights, thereby ensuring the accuracy and reliability of the quality coefficient of the obtained flax seed raw materials.
[0169] Embodiment 8:
[0170] Based on Example 1, this embodiment provides a flaxseed raw material quality detection system for flaxseed oil production, and the quality detection module includes:
[0171] An information acquisition unit, used to acquire the obtained quality excellence coefficient, and at the same time, acquire a quality grade reference table based on a management terminal;
[0172] A grade determination unit, used to perform parameter interval matching between the quality good coefficient and the record parameters in the quality grade reference table, and obtain the quality grade corresponding to the current quality good coefficient based on the parameter interval matching result;
[0173] The information display unit is used to generate a flax seed raw material quality inspection report based on the quality excellence coefficient and the quality grade, and to display the flax seed raw material quality inspection report on a display terminal.
[0174] In this embodiment, the quality level reference table is known in advance and is used to record the quality level range information corresponding to the values of different quality coefficients.
[0175] The working principle and beneficial effect of the above technical solution are: by matching the obtained excellent quality coefficient with the quality grade reference table for parameter intervals, the quality grade corresponding to the current excellent quality coefficient can be effectively determined, and finally, a flax seed raw material quality inspection report is generated by the excellent quality coefficient and the quality grade, and the flax seed raw material quality inspection report is displayed on a display terminal, which is convenient for management personnel to effectively understand the quality inspection results of the flax seed raw materials and improves the reliability of quality inspection.
[0176] Embodiment 9:
[0177] This embodiment provides a method for detecting the quality of flaxseed raw materials used in flaxseed oil production. Figure 3 As shown, including:
[0178] Step 1: rotating and tumbling the flax seed raw material in multiple directions using an automated device, and acquiring a sequence of images of the flax seed raw material in the multi-directional rotation and tumbling using a camera device;
[0179] Step 2: Analyze the sequence image set to determine the appearance features of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance features;
[0180] Step 3: Evaluate the quality coefficient of the flax seed raw material based on the number of bad seeds, and determine the quality grade of the flax seed raw material based on the quality coefficient.
[0181] The working principle and beneficial effects of the above technical solution are: the flax seed raw material is driven to roll in multiple directions by automated equipment, and a series of images of the flax seed raw material are collected by a camera device during the rolling process, thereby providing reliable image data for quality detection of the flax seed raw material; secondly, the obtained sequence image set is analyzed to effectively determine the appearance characteristics of the flax seed raw material recorded in each image, and to effectively lock the number of bad seeds in each image according to the appearance characteristics; finally, the quality coefficient of the flax seed raw material is determined according to the number of bad seeds, thereby determining the final quality grade of the flax seed raw material according to the quality coefficient, thereby ensuring the accuracy and reliability of the quality detection of the flax seed raw material, and at the same time, improving the efficiency of quality detection and saving a lot of manpower and material resources.
[0182] Embodiment 10:
[0183] Based on Example 9, this example provides a method for detecting the quality of flaxseed raw materials for flaxseed oil production. In step 1, the flaxseed raw materials are subjected to multi-directional rotation and tumbling based on automated equipment, including:
[0184] Obtain the testing requirements for flax seed raw materials from the management terminal, analyze the testing requirements, and determine the rolling direction of the flax seed raw materials;
[0185] Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters;
[0186] Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points;
[0187] Based on the control automation equipment, the flax seed raw material is rotated and tumbled in multiple directions according to the established automation execution process.
[0188] The working principle and beneficial effects of the above technical solution are: by obtaining the detection requirements for flax seed raw materials from the management terminal and parsing the detection requirements, the rolling direction of the flax seed raw materials can be accurately and effectively determined; secondly, according to the determined rolling direction and the equipment parameters of the automation equipment, the target duration of the automation equipment for rotating and rolling the flax seed raw materials in each rolling direction is effectively determined, which provides a reliable guarantee for driving the effective flipping of the flax seed raw materials; finally, the switching points of the automation equipment in different rolling directions are determined, the automation execution process is effectively formulated, and the automation equipment is controlled to drive the flax seed raw materials to rotate and roll in multiple directions safely and reliably, which provides convenience and guarantee for the quality inspection of flax seed raw materials.
[0189] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A flaxseed raw material quality detection system for flaxseed oil production, characterized in that: include: An image acquisition module is used to perform multi-directional rotation and tumbling of the flax seed raw material based on an automated device, and to obtain a sequence image set of the flax seed raw material in the multi-directional rotation and tumbling based on a camera device; An image processing module is used to analyze the sequence image set, determine the appearance characteristics of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance characteristics; A quality detection module, used for evaluating the quality coefficient of the flax seed raw material based on the number of bad seeds, and determining the quality grade of the flax seed raw material based on the quality coefficient; The image processing module includes: An image acquisition unit is used to acquire the obtained sequence image set, and sequentially traverse the pixel points of each image in the sequence image set to obtain the color component of each pixel point in different color channels; Image parsing unit, used for: Determine the weights corresponding to different color channels based on preset standards, and perform weighted averaging of the color components of different color channels based on the weights to obtain the grayscale value of each pixel; The grayscale values of different pixels are recorded at the same position to obtain the grayscale images corresponding to each image. At the same time, the parameter mapping interval corresponding to each grayscale image is determined based on the image enhancement requirements, and the new parameter value is mapped in the parameter mapping interval based on the distribution characteristics of the grayscale values of each pixel in the grayscale image. Based on the mapping results, an enhanced image corresponding to each grayscale image is obtained, and the contour edge of the flax seed raw material is extracted based on the enhanced image; Determine the target area corresponding to the flax seed raw material based on the contour edge, and extract the appearance color state of the flax seed raw material according to the target area based on the color distribution of each image in the sequence image set; At the same time, based on the preset structural element, the enhanced image is traversed at different positions with multiple frequencies, and when the preset structural element completely covers the area encircled by the edge of the contour, the pixel point corresponding to the center of the preset structural element is marked; Correcting the contour edge based on the marking result, obtaining the shape feature of the flax seed raw material based on the correction result, and obtaining the appearance feature of the flax seed raw material based on the appearance color state and the shape feature; The object counting unit is used to perform differential comparison on each flax seed raw material in the image based on the appearance characteristics of the flax seed raw material, and count the number of bad seeds in each image based on the differential comparison result.
2. A flaxseed raw material quality detection system for flaxseed oil production according to claim 1, characterized in that: Image acquisition module, including: A requirement acquisition unit, used for acquiring the testing requirements for the flax seed raw material from the management terminal, parsing the testing requirements, and determining the rolling direction of the flax seed raw material; Configuration unit for: Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters; Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points; The control unit is used to control the automation equipment to perform multi-directional rotation and tumbling of the flax seed raw material according to the established automation execution process.
3. A flaxseed raw material quality detection system for flaxseed oil production according to claim 1, characterized in that: Image acquisition module, including: A path determination unit, used to obtain a predetermined rotation and tumbling path of the flax seed raw material in each direction on the automated device, and determine a key shooting point of the camera device in each direction based on the predetermined rotation and tumbling path; A shooting configuration unit, used to determine the shooting angle and shooting parameters of the camera device at each key shooting point based on the shooting requirements, and perform parameter configuration on the camera device based on the shooting angle and shooting parameters; The image acquisition unit is used to control the camera device to obtain a sequence image set of the flax seed raw material in multi-directional rotation and tumbling based on the parameter configuration result, and to attach tags to the sequence image set based on the position and shooting angle of key shooting points.
4. A flaxseed raw material quality detection system for flaxseed oil production according to claim 3, characterized in that: Image acquisition unit, comprising: The result retrieval subunit is used to obtain the obtained sequence image set and determine the grouping conditions for the sequence image set based on the key shooting points; The image grouping subunit is used to extract the subsidiary marks corresponding to the sequence image set, and perform similarity matching between the subsidiary marks and the grouping conditions to obtain the sub-image set corresponding to the sequence image set; Image preprocessing subunit, used for: Perform pixel traversal on each sub-image in each sub-image set, and determine basic image parameters of each sub-image based on the pixel traversal result; A representative image of the shooting angle of each key shooting point is selected from the sub-image set based on the basic image parameters.
5. The flaxseed raw material quality detection system for flaxseed oil production according to claim 1, characterized in that: Object statistics unit, including: Comparison subunit, used for: Acquire the appearance characteristics of the obtained flax seed raw material, and obtain the standard appearance characteristics corresponding to the good flax seed raw material from the management terminal, and perform differential comparison between the appearance characteristics of the obtained flax seed raw material and the standard appearance characteristics to obtain differential characteristics; Screening the difference characteristics based on preset judgment parameters, and obtaining abnormal flax seed raw materials based on the screening results; Quantity counting unit, used for: Determine the position parameters of the abnormal flax seed raw material in the corresponding image based on the imaging coordinate system of the camera device, and locate and remove duplicates of the same abnormal flax seed raw material in a sequence image set in different directions based on the position parameters; Based on the positioning and deduplication results, the number of bad seeds in each image is counted to obtain the number of bad seeds in each image.
6. The flaxseed raw material quality detection system for flaxseed oil production according to claim 1, characterized in that: Quality inspection module, including: a ratio determination unit, configured to determine the total number of seeds of the flax seed raw material in each image based on the appearance characteristics of the flax seed raw material, and determine the ratio of bad seeds to total seeds based on the total number of seeds and the number of bad seeds; A component analysis unit, used to detect the flax seed raw material based on a preset chemical analysis instrument to obtain the component composition and component ratio of each flax seed raw material; The coefficient determination unit is used to determine the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation criteria, and to conduct a comprehensive analysis on the ratio of bad seeds to total seeds, the component composition and the component ratio of each flax seed raw material based on the evaluation weights to obtain the quality coefficient of the flax seed raw material.
7. The flaxseed raw material quality detection system for flaxseed oil production according to claim 1, characterized in that: Quality inspection module, including: An information acquisition unit, used to acquire the obtained quality excellence coefficient, and at the same time, acquire a quality grade reference table based on a management terminal; A grade determination unit, used to perform parameter interval matching between the quality good coefficient and the record parameters in the quality grade reference table, and obtain the quality grade corresponding to the current quality good coefficient based on the parameter interval matching result; The information display unit is used to generate a flax seed raw material quality inspection report based on the quality excellence coefficient and the quality grade, and to display the flax seed raw material quality inspection report on a display terminal.
8. A method for detecting the quality of linseed raw materials for linseed oil production, characterized in that: include: Step 1: rotating and tumbling the flax seed raw material in multiple directions using an automated device, and acquiring a sequence of images of the flax seed raw material in the multi-directional rotation and tumbling using a camera device; Step 2: Analyze the sequence image set to determine the appearance features of the flax seed raw material, and determine the number of bad seeds in each image in the sequence image set based on the appearance features; Step 3: evaluating the quality coefficient of the flax seed raw material based on the number of bad seeds, and determining the quality grade of the flax seed raw material based on the quality coefficient; Wherein, step 2 includes: Obtain the obtained sequence image set, and traverse the pixel points of each image in the sequence image set in turn to obtain the color component of each pixel point in different color channels; Determine the weights corresponding to different color channels based on preset standards, and perform weighted averaging of the color components of different color channels based on the weights to obtain the grayscale value of each pixel; The grayscale values of different pixels are recorded at the same position to obtain the grayscale images corresponding to each image. At the same time, the parameter mapping interval corresponding to each grayscale image is determined based on the image enhancement requirements, and the new parameter value is mapped in the parameter mapping interval based on the distribution characteristics of the grayscale values of each pixel in the grayscale image. Based on the mapping results, an enhanced image corresponding to each grayscale image is obtained, and the contour edge of the flax seed raw material is extracted based on the enhanced image; Determine the target area corresponding to the flax seed raw material based on the contour edge, and extract the appearance color state of the flax seed raw material according to the target area based on the color distribution of each image in the sequence image set; At the same time, based on the preset structural element, the enhanced image is traversed at different positions with multiple frequencies, and when the preset structural element completely covers the area encircled by the edge of the contour, the pixel point corresponding to the center of the preset structural element is marked; Correcting the contour edge based on the marking result, obtaining the shape feature of the flax seed raw material based on the correction result, and obtaining the appearance feature of the flax seed raw material based on the appearance color state and the shape feature; The object counting unit is used to perform differential comparison on each flax seed raw material in the image based on the appearance characteristics of the flax seed raw material, and count the number of bad seeds in each image based on the differential comparison result.
9. A flax seed raw material quality detection method for flax seed oil production according to claim 8, characterized in that: In step 1, the flax seed raw material is rotated and tumbled in multiple directions based on automated equipment, including: Obtain the testing requirements for flax seed raw materials from the management terminal, analyze the testing requirements, and determine the rolling direction of the flax seed raw materials; Extracting equipment parameters of the automated equipment, and determining a target duration for the automated equipment to rotate and roll the flax seed raw material in each rolling direction based on the equipment parameters; Determine the switching points for different scrolling directions based on the target duration, and develop an automated execution process based on the switching points; Based on the control automation equipment, the flax seed raw material is rotated and tumbled in multiple directions according to the established automation execution process.
Citation Information
Patent Citations
Linseed oil quality detection method and system
CN117092247A
Method and apparatus for measurement of appearance quality of grain
JP2000180369A