Multispectral food detection image enhancement analysis method

Through the multispectral food detection image enhancement analysis method, using signal amplification and multi-type data operation formulas, the problem of multispectral imaging technology being affected by environmental factors is solved, and the clarity of food detection images is improved and the accuracy of quality detection is achieved.

CN118587114APending Publication Date: 2024-09-03RONGCHENG TAIXIANG FOOD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410498202.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Multispectral imaging technology is affected by environmental factors, resulting in unclear or blurry food detection images, making it impossible to accurately detect substances in food, and affecting food quality assessment results.

Method used

Multispectral food detection image enhancement analysis method is adopted, and blur or noise interference is removed through signal amplification enhancement technology and multi-type data operation formulas, including screening processing, grayscale processing, Laplacian operator and Sobel operator, etc. Optimize image details and ensure image clarity.

Benefits of technology

It improves the clarity of food inspection images, reduces interference from external factors, and ensures the accuracy and reliability of food quality inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587114A
    Figure CN118587114A
Patent Text Reader

Abstract

The multispectral food detection image enhancement analysis method comprises the following steps: obtaining multispectral food detection images corresponding to n items of food, and carrying out marking storage according to a time node sequence; all the multispectral food detection images are called and summarized to an operation platform, and the operation platform screens the multispectral food detection images; the operation platform transmits an execution instruction to front-end shooting equipment, and the number of the clear multispectral food detection images is supplemented to n; performing graying processing on the screened and supplemented clear multispectral food detection image; performing format conversion on the grayed multispectral food detection image, setting a detection frame number of the multispectral food detection image, and optimizing and enhancing the multispectral food detection image by adopting a Laplace operator in combination with the detection frame number; and carrying out contour detection on the clear multispectral food detection image through a Sobe l operator.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field:

[0001] The invention relates to a multi-spectral food detection image enhancement analysis method. Background technology:

[0002] Food safety has always been one of the issues that the society pays close attention to. While the food industry is developing rapidly, there are also many food safety issues that need to be further resolved. The irregular use of additives and other materials in food, the mixing of impurities during food processing, or the deterioration of food raw materials will have a greater negative impact on the health of users. Therefore, food testing is very important.

[0003] In the process of food testing, chemical analysis and instrumental analysis are mainly relied upon to obtain the corresponding food testing spectral images of the food, and the quality and status of the food are judged by analyzing and processing the food testing spectral images; most of the existing testing methods use multi-spectral imaging technology to quickly test the quality of the food without destroying the food. Multi-spectral imaging technology can obtain a variety of spectral information of the food, and can detect the content of various substances in the food, such as the moisture content, and can also be used to detect the integrity of the food.

[0004] However, since multispectral imaging technology is greatly affected by environmental factors, the imaging of various substances in food may be unclear or blurred in the multispectral image, and some local details of the image cannot be intuitively seen. As a result, various substances in food cannot be accurately divided, resulting in inaccurate food quality detection, large deviations or errors, and affecting the final evaluation results of the food. Summary of the invention:

[0005] The embodiment of the present invention provides a multispectral food detection image enhancement analysis method. The method is reasonably designed. Based on signal amplification enhancement technology and in conjunction with multiple types of data calculation formulas, the method can enhance and amplify multiple details of the acquired multispectral food detection image to help users intuitively observe the details of the multispectral food detection image, reduce interference from external factors, avoid blurring, ensure clear imaging of the multispectral food detection image, and then accurately analyze and process the multispectral food detection image of the food to obtain accurate detection results of the food quality, thereby solving the problems existing in the prior art.

[0006] The technical solution adopted by the present invention to solve the above technical problems is:

[0007] A multi-spectral food detection image enhancement analysis method, the analysis method comprising the following steps:

[0008] S1, obtain multispectral food detection images corresponding to n items of food, and mark and store them in the order of time nodes;

[0009] S2, calling all the multispectral food detection images to be aggregated into the computing platform, the computing platform screens and processes the multispectral food detection images, and removes the multispectral food detection images with large blur or noise interference based on the detection image standards and screening formulas in the database;

[0010] S3, the computing platform transmits the execution instruction to the front-end shooting device, and replenishes the number of clear multi-spectral food detection images to n;

[0011] S4, graying the clear multispectral food detection image after screening and supplementation to reduce the influence of color difference of the detection image;

[0012] S5, converting the format of the grayscale processed multispectral food detection image, setting the detection frame number of the multispectral food detection image, using the Laplace operator combined with the detection frame number to optimize and enhance the multispectral food detection image, so as to refine the details of the multispectral food detection image and obtain a clear multispectral food detection image;

[0013] S6, perform contour detection on the clear multispectral food detection image through the Sobel operator, and calculate the saturation of the multispectral food detection image through the image saturation formula to determine whether the multispectral food detection image meets the analysis requirements.

[0014] The screening formula is:

[0015] img=ori_img*t(x)+A*(1-t(x))

[0016] Among them, ori_img is the original multispectral food detection image; t(x) is the transmittance, which is used to represent the brightness parameter of each pixel in the detection image; A is the detection image standard, which is used to represent the brightness and clarity of the entire detection image.

[0017] All multispectral food detection images are collected and aggregated to the computing platform. The computing platform screens and processes the multispectral food detection images. Based on the detection image standards and screening formulas in the database, the multispectral food detection images with large blur or noise interference are removed, including the following steps:

[0018] S2.1, establish a network transmission channel to aggregate all multispectral food detection images to the computing platform;

[0019] S2.2, the computing platform sets the detection image standard and screening formula in the database to process each multispectral food detection image;

[0020] S2.3, the computing platform moves to remove the multispectral food detection images with large blur or noise interference.

[0021] Grayscale processing is performed on the clear multispectral food detection image after screening and supplementation to reduce the impact of color difference of the detection image, including the following steps:

[0022] S4.1, perform phase interface recognition on multispectral food inspection images, introduce machine learning image segmentation algorithm to segment the phase interface, and use a limited number of machine annotations to train the classifier and automatically segment the phase interface data, optimize the segmentation results, and generate the area;

[0023] S4.2, according to the area of ​​the region, the number of frames of the multispectral food detection image is set, and the pixel value of the detection image is replaced by the median value of the pixel value in the neighborhood by using the median filter;

[0024] S4.3, referring to the median value of the above steps, extract the LBP features of the multispectral food detection image to obtain a grayscale processed image.

[0025] The grayscale processed multispectral food detection image is formatted, the detection frame number of the multispectral food detection image is set, and the Laplace operator is combined with the detection frame number to optimize and enhance the multispectral food detection image to refine the details of the multispectral food detection image. Obtaining a clear multispectral food detection image includes the following steps:

[0026] S5.1, define a unified format for the obtained grayscale processed multispectral food detection images;

[0027] S5.2, calculating the second-order derivative of the image by using the Laplace operator, wherein the Laplace operator is:

[0028]

[0029] in, represents the Laplacian operator of the image f;

[0030] S5.3, combined with the set number of image frames, a clear multispectral food detection image is obtained.

[0031] The Sobel operator includes a horizontal operator and a vertical operator, specifically:

[0032]

[0033] The image saturation formula is:

[0034]

[0035] Among them, S(x, y) is the saturation at each pixel, L s(x,y) is the brightness value of the pixel, L air is the brightness value when the multi-detection image is filled with air, Lsaturated To detect the brightness value when the image is fully saturated.

[0036] The present invention adopts the above structure, screens and processes the multispectral food detection images through a computing platform, removes the multispectral food detection images with large fuzziness or noise interference based on the detection image standards and screening formulas in the database; grayscales the clear multispectral food detection images after screening and supplementation to reduce the influence of chromatic aberration of the detection images; converts the format of the grayscaled multispectral food detection images, sets the detection frame number of the multispectral food detection images, and uses the Laplace operator combined with the detection frame number to optimize and enhance the multispectral food detection images, so as to refine the details of the multispectral food detection images and obtain clear multispectral food detection images, which has the advantages of being simple, practical, accurate and fast. Description of the drawings:

[0037] Figure 1 It is a schematic diagram of the process of the present invention.

[0038] Figure 2 It is a schematic diagram of image acquisition of the present invention. Specific implementation method:

[0039] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings.

[0040] like Figure 1-2 As shown in, a multi-spectral food detection image enhancement analysis method, the analysis method comprises the following steps:

[0041] S1, obtain multispectral food detection images corresponding to n items of food, and mark and store them in the order of time nodes;

[0042] S2, calling all the multispectral food detection images to be aggregated into the computing platform, the computing platform screens and processes the multispectral food detection images, and removes the multispectral food detection images with large blur or noise interference based on the detection image standards and screening formulas in the database;

[0043] S3, the computing platform transmits the execution instruction to the front-end shooting device, and replenishes the number of clear multi-spectral food detection images to n;

[0044] S4, graying the clear multispectral food detection image after screening and supplementation to reduce the influence of color difference of the detection image;

[0045] S5, converting the format of the grayscale processed multispectral food detection image, setting the detection frame number of the multispectral food detection image, using the Laplace operator combined with the detection frame number to optimize and enhance the multispectral food detection image, so as to refine the details of the multispectral food detection image and obtain a clear multispectral food detection image;

[0046] S6, perform contour detection on the clear multispectral food detection image through the Sobel operator, and calculate the saturation of the multispectral food detection image through the image saturation formula to determine whether the multispectral food detection image meets the analysis requirements.

[0047] The screening formula is:

[0048] img=ori_img*t(x)+A*(1-t(x))

[0049] Among them, ori_img is the original multispectral food detection image; t(x) is the transmittance, which is used to represent the brightness parameter of each pixel in the detection image; A is the detection image standard, which is used to represent the brightness and clarity of the entire detection image.

[0050] All multispectral food detection images are collected and aggregated to the computing platform. The computing platform screens and processes the multispectral food detection images. Based on the detection image standards and screening formulas in the database, the multispectral food detection images with large blur or noise interference are removed, including the following steps:

[0051] S2.1, establish a network transmission channel to aggregate all multispectral food detection images to the computing platform;

[0052] S2.2, the computing platform sets the detection image standard and screening formula in the database to process each multispectral food detection image;

[0053] S2.3, the computing platform moves to remove the multispectral food detection images with large blur or noise interference.

[0054] Grayscale processing is performed on the clear multispectral food detection image after screening and supplementation to reduce the impact of color difference of the detection image, including the following steps:

[0055] S4.1, perform phase interface recognition on multispectral food inspection images, introduce machine learning image segmentation algorithm to segment the phase interface, and use a limited number of machine annotations to train the classifier and automatically segment the phase interface data, optimize the segmentation results, and generate the area;

[0056] S4.2, according to the area of ​​the region, the number of frames of the multispectral food detection image is set, and the pixel value of the detection image is replaced by the median value of the pixel value in the neighborhood by using the median filter;

[0057] S4.3, referring to the median value of the above steps, extract the LBP features of the multispectral food detection image to obtain a grayscale processed image.

[0058] The grayscale processed multispectral food detection image is formatted, the detection frame number of the multispectral food detection image is set, and the Laplace operator is combined with the detection frame number to optimize and enhance the multispectral food detection image to refine the details of the multispectral food detection image. Obtaining a clear multispectral food detection image includes the following steps:

[0059] S5.1, define a unified format for the obtained grayscale processed multispectral food detection images;

[0060] S5.2, calculating the second-order derivative of the image by using the Laplace operator, wherein the Laplace operator is:

[0061]

[0062] in, represents the Laplacian operator of the image f;

[0063] S5.3, combined with the set number of image frames, a clear multispectral food detection image is obtained.

[0064] The Sobel operator includes a horizontal operator and a vertical operator, specifically:

[0065]

[0066] The image saturation formula is:

[0067]

[0068] Among them, S(x, y) is the saturation at each pixel, L s(x,y) is the brightness value of the pixel, L air is the brightness value when the multi-detection image is filled with air, L saturated To detect the brightness value when the image is fully saturated.

[0069] The working principle of the multi-spectral food detection image enhancement analysis method in the embodiment of the present invention is: based on signal amplification enhancement technology, in conjunction with multiple types of data calculation formulas, it can enhance and amplify multiple details of the acquired multi-spectral food detection image to help users intuitively observe the details of the multi-spectral food detection image, reduce the interference of external factors, avoid blurring, ensure clear imaging of the multi-spectral food detection image, and then accurately analyze and process the multi-spectral food detection image of the food to obtain accurate detection results of food quality.

[0070] The overall scheme mainly includes the following steps: obtaining multispectral food detection images corresponding to n items of food, and marking and storing them in the order of time nodes; calling all multispectral food detection images to be summarized to the computing platform, the computing platform screens and processes the multispectral food detection images, and removes multispectral food detection images with large blur or noise interference based on the detection image standards and screening formulas in the database; the computing platform transmits the execution instructions to the front-end shooting device, and supplements the number of clear multispectral food detection images to n; grayscales the clear multispectral food detection images after screening and supplementation to reduce the influence of color difference of the detection image; converts the format of the grayscaled multispectral food detection images, sets the detection frame number of the multispectral food detection images, and uses the Laplace operator combined with the detection frame number to optimize and enhance the multispectral food detection images to refine the details of the multispectral food detection images and obtain clear multispectral food detection images; performs contour detection on the clear multispectral food detection images through the Sobel operator, and calculates the saturation of the multispectral food detection images through the image saturation formula to determine whether the multispectral food detection images meet the analysis requirements.

[0071] Since multispectral imaging technology is greatly affected by environmental factors, the imaging of various substances in food may be unclear or blurred in the multispectral image. Therefore, it is necessary to enhance the image signal of the multispectral food detection image to obtain a clearer image for analysis.

[0072] In this application, a screening formula is used to remove the blurred image. Specifically, the screening formula is:

[0073] img=ori_img*t(x)+A*(1-t(x))

[0074] Among them, ori_img is the original multispectral food detection image; t(x) is the transmittance, which is used to represent the brightness parameter of each pixel in the detection image; A is the detection image standard, which is used to represent the brightness and clarity of the entire detection image.

[0075] Combined with the detection image standards, it can be ensured that the remaining images can meet the detection requirements; generally, the detection image standards are formulated by the computing platform and database and can be flexibly adjusted.

[0076] Preferably, all multispectral food detection images are collected and aggregated to a computing platform, and the computing platform performs screening and processing on the multispectral food detection images. Based on the detection image standard and screening formula in the database, the multispectral food detection images with large blur or noise interference are removed, which includes the following steps:

[0077] S2.1, establish a network transmission channel to aggregate all multispectral food detection images to the computing platform;

[0078] S2.2, the computing platform sets the detection image standard and screening formula in the database to process each multispectral food detection image;

[0079] S2.3, the computing platform moves to remove the multispectral food detection images with large blur or noise interference.

[0080] The retained multispectral food detection images can be grayed to reduce the impact of color difference in the detection images. The specific steps include:

[0081] S4.1, perform phase interface recognition on multispectral food inspection images, introduce machine learning image segmentation algorithm to segment the phase interface, and use a limited number of machine annotations to train the classifier and automatically segment the phase interface data, optimize the segmentation results, and generate the area;

[0082] S4.2, according to the area of ​​the region, the number of frames of the multispectral food detection image is set, and the pixel value of the detection image is replaced by the median value of the pixel value in the neighborhood by using the median filter;

[0083] S4.3, referring to the median value of the above steps, extract the LBP features of the multispectral food detection image to obtain a grayscale processed image.

[0084] After obtaining the grayscale image, the format conversion is performed, the detection frame number of the multispectral food detection image is set, and the Laplace operator combined with the detection frame number is used to optimize and enhance the multispectral food detection image to refine the details of the multispectral food detection image and obtain a clear multispectral food detection image.

[0085] Specifically, the Laplace operator is:

[0086]

[0087] in, represents the Laplacian operator of the image f;

[0088] It is especially noted that, in this step, the number of image frames is only used as a supplementary parameter, and the Laplace operator is still the main calculation method.

[0089] For clear multispectral food detection images, contour detection can be performed using the Sobel operator, and the saturation of the multispectral food detection image can be calculated using the image saturation formula to determine whether the multispectral food detection image meets the analysis requirements.

[0090] The Sobel operator of the present application includes a horizontal operator and a vertical operator. Compared with the single-direction operator in the prior art, it has higher calculation accuracy and a larger coverage range, and can also avoid omissions in contour detection.

[0091] As for the image saturation formula, it is specifically:

[0092]

[0093] Among them, S(x, y) is the saturation at each pixel, L s(x,y) is the brightness value of the pixel, L air is the brightness value when the multi-detection image is filled with air, L saturated To detect the brightness value when the image is fully saturated.

[0094] The factors of zero saturation state and full saturation state of air filling are introduced to calculate the most realistic and accurate saturation, thereby obtaining the highest definition detection image.

[0095] To sum up, the multispectral food detection image enhancement analysis method in the embodiment of the present invention is based on signal amplification enhancement technology, combined with multiple types of data calculation formulas, and can enhance and amplify multiple details of the acquired multispectral food detection image to help users intuitively observe the details of the multispectral food detection image, reduce the interference of external factors, avoid blurring, ensure the clarity of the multispectral food detection image, and then accurately analyze and process the multispectral food detection image of the food to obtain accurate detection results of food quality.

[0096] The above specific implementation manner cannot be used as a limitation on the protection scope of the present invention. For those skilled in the art, any substitution, improvement or change made to the implementation manner of the present invention falls within the protection scope of the present invention.

[0097] The matters not described in detail in the present invention are all known technologies to those skilled in the art.

Claims

1. A multispectral food detection image enhancement analysis method, characterized in that: The analytical method comprises the following steps: S1, obtain multispectral food detection images corresponding to n items of food, and mark and store them in the order of time nodes; S2, calling all the multispectral food detection images to be aggregated into the computing platform, the computing platform screens and processes the multispectral food detection images, and removes the multispectral food detection images with large blur or noise interference based on the detection image standards and screening formulas in the database; S3, the computing platform transmits the execution instruction to the front-end shooting device, and replenishes the number of clear multi-spectral food detection images to n; S4, graying the clear multispectral food detection image after screening and supplementation to reduce the influence of color difference of the detection image; S5, converting the format of the grayscale processed multispectral food detection image, setting the detection frame number of the multispectral food detection image, using the Laplace operator combined with the detection frame number to optimize and enhance the multispectral food detection image, so as to refine the details of the multispectral food detection image and obtain a clear multispectral food detection image; S6, perform contour detection on the clear multispectral food detection image through the Sobel operator, and calculate the saturation of the multispectral food detection image through the image saturation formula to determine whether the multispectral food detection image meets the analysis requirements.

2. The multispectral food detection image enhancement analysis method according to claim 1, characterized in that: The screening formula is: img=ori_img*t(x)+A*(1-t(x)) Among them, ori_img is the original multispectral food detection image; t(x) is the transmittance, which is used to represent the brightness parameter of each pixel in the detection image; A is the detection image standard, which is used to represent the brightness and clarity of the entire detection image.

3. The multi-spectral food detection image enhancement analysis method according to claim 1, characterized in that: All multispectral food detection images are collected and aggregated to the computing platform. The computing platform screens and processes the multispectral food detection images. Based on the detection image standards and screening formulas in the database, the multispectral food detection images with large blur or noise interference are removed, including the following steps: S2.1, establish a network transmission channel to aggregate all multispectral food detection images to the computing platform; S2.2, the computing platform sets the detection image standard and screening formula in the database to process each multispectral food detection image; S2.3, the computing platform moves to remove the multispectral food detection images with large blur or noise interference.

4. The multispectral food detection image enhancement analysis method according to claim 1, characterized in that: Grayscale processing is performed on the clear multispectral food detection image after screening and supplementation to reduce the impact of color difference of the detection image, including the following steps: S4.1, perform phase interface recognition on multispectral food inspection images, introduce machine learning image segmentation algorithm to segment the phase interface, and use a limited number of machine annotations to train the classifier and automatically segment the phase interface data, optimize the segmentation results, and generate the area; S4.2, according to the area of ​​the region, the number of frames of the multispectral food detection image is set, and the pixel value of the detection image is replaced by the median value of the pixel value in the neighborhood by using the median filter; S4.3, referring to the median value of the above steps, extract the LBP features of the multispectral food detection image to obtain a grayscale processed image.

5. The multi-spectral food detection image enhancement analysis method according to claim 1, characterized in that: The grayscale processed multispectral food detection image is formatted, the detection frame number of the multispectral food detection image is set, and the Laplace operator is combined with the detection frame number to optimize and enhance the multispectral food detection image to refine the details of the multispectral food detection image. Obtaining a clear multispectral food detection image includes the following steps: S5.1, define a unified format for the obtained grayscale processed multispectral food detection images; S5.2, calculating the second-order derivative of the image by using the Laplace operator, wherein the Laplace operator is: in, represents the Laplacian operator of the image f; S5.3, combined with the set number of image frames, a clear multispectral food detection image is obtained.

6. The multi-spectral food detection image enhancement analysis method according to claim 1, characterized in that: The Sobel operator includes a horizontal operator and a vertical operator, specifically:

7. The multi-spectral food detection image enhancement analysis method according to claim 1, characterized in that: The image saturation formula is: Among them, S(x, y) is the saturation at each pixel, L s(x,y) is the brightness value of the pixel, L air is the brightness value when the multi-detection image is filled with air, L saturated To detect the brightness value when the image is fully saturated.

Citation Information

Cited By

  • Food quality control method and system based on intelligent image analysis

    CN119942174A