A rapid and convenient method for determining the moldy redness of stored white sugar

By analyzing images and determining the angle between fitted plane normal vectors, the problem of convenient detection of sugar turning red is solved, enabling rapid detection and real-time monitoring of sugar mold growth, thus avoiding errors and health risks associated with manual detection.

CN119334886BActive Publication Date: 2025-11-04INST OF BIOLOGICAL & MEDICAL ENG GUANGDONG ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411435147.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-11-04
Estimated Expiration
2044-10-15

AI Technical Summary

Technical Problem

Current technology lacks a rapid and convenient method for detecting the reddening of white sugar, which means that the detection of spoiled white sugar relies on manual visual identification, posing risks of accidental ingestion and health hazards.

Method used

Image analysis technology is used to capture photos of the sample under the same lighting conditions, extract the RGB color information of the pixels, fit a three-dimensional spatial variable array, and use the angle between the normal vectors of the fitted plane to determine whether the sample is normal or abnormal.

Benefits of technology

It enables rapid and convenient detection of moldy sugar, avoiding accidental ingestion and health risks. Real-time monitoring and early warning are achieved through image algorithms, saving manual testing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119334886B_ABST
    Figure CN119334886B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of white sugar storage performance analysis, in particular to a kind of fast and convenient determination of storage white sugar mildew red analysis method.In the present application, by determining the normal vector angle between the reference fitting plane and the fitting plane of the sample to be measured, it is determined whether the color of the sample to be measured changes, and by using the difference of the angle difference, the storage white sugar can be monitored and warned in real time through image algorithm and fitting, the method is convenient and time-saving, and a lot of work is saved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of analysis of the storage performance of white sugar, and in particular to a rapid and convenient method for determining the moldy redness of stored white sugar. BACKGROUND

[0002] White sugar turning red is indeed a manifestation of deterioration. Because of long storage time or storage in a high-temperature environment, white sugar is contaminated by microorganisms and deteriorates. In the process of deterioration, the nutrients in white sugar are destroyed, and toxic substances such as aflatoxin may be generated. After eating, it may cause inflammation of the gastrointestinal tract.

[0003] In addition, if the color of white sugar turns red, it may also be that it has deteriorated and produced mold, and eating it may cause diarrhea and abdominal pain, and in severe cases, an allergic reaction.

[0004] Therefore, once white sugar deteriorates or the color changes, it should not be used to avoid affecting health.

[0005] Now the detection for determining whether white sugar turns red is generally identified by artificial naked eye, and there is little intelligent detection technology for white sugar turning red at the present stage, therefore, an intelligent technology for detecting white sugar turning red is urgently needed to solve the problems of the prior art. SUMMARY

[0006] The purpose of the present application is to provide a quick and convenient method for monitoring the redness of white sugar, so as to efficiently and conveniently measure the redness of stored white sugar and solve the problem of the lack of related methods. To solve the problems existing in the prior art.

[0007] In order to solve the problems existing in the prior art, the present application adopts the following technical scheme:

[0008] A rapid and convenient method for determining the moldy redness of stored white sugar, comprising the following steps:

[0009] Setting up an illumination environment;

[0010] Placing the sample to be tested in the same illumination environment for photographing to obtain a sample photograph;

[0011] Image analysis of the sample photograph is performed to obtain a plurality of pixel points and their corresponding RGB color information;

[0012] The RGB color information corresponding to the plurality of pixel points is converted to obtain a spatial three-dimensional variable array;

[0013] The spatial three-dimensional variable array is fitted to obtain a fitting plane;

[0014] comparing the obtained fitting plane with a reference fitting plane, if the normal vector included angle between the fitting plane and the reference fitting plane is less than or equal to 30 DEG, the sample to be measured is a normal sugar sample; if the normal vector included angle between the fitting plane and the reference fitting plane is greater than or equal to 60 DEG, the sample to be measured is an abnormal sugar sample.

[0015] As an improvement of the technical scheme of the application, the reference normal sugar sample is obtained by manual visual identification;

[0016] The reference normal sugar sample is placed in the same light environment for photographing to obtain a reference sample photo.

[0017] The reference sample photo is subjected to image analysis to obtain a plurality of pixel points and corresponding RGB color information thereof.

[0018] The RGB color information is converted to obtain a space three-dimensional variable array of the reference sample.

[0019] The space three-dimensional variable array of the reference sample is fitted to obtain the reference fitting plane.

[0020] As an improvement of the technical scheme of the application, when the sample to be measured photo is subjected to image analysis, a plurality of pixel points and RGB color information of each pixel point are obtained.

[0021] The pixel points are randomly divided into a plurality of pixel point groups, the RGB color information of the pixel points corresponding to each pixel point group is converted to obtain a space three-dimensional variable array, and the space three-dimensional variable array is fitted to obtain a plurality of fitting planes.

[0022] As an improvement of the technical scheme of the application, 1000 pixel points with larger weights are randomly grouped, and each group has 100 pixel points.

[0023] As an improvement of the technical scheme of the application, the space three-dimensional array is fitted, and the fitting is performed by using a least square method.

[0024] As an improvement of the technical scheme of the application, the RGB color information of each pixel point is (R, G, B), and the color information of the pixel points is converted into points on the coordinate axis.

[0025] The application has the following beneficial effects:

[0026] In the present application, whether the color of the sample to be measured changes is determined by determining the normal vector angle between the reference fitting plane and the fitting plane of the sample to be measured, and the real-time monitoring and early warning of the stored white sugar can be realized through image algorithm and fitting by using the difference of the angle difference, which is convenient, time-saving and saves a lot of work. BRIEF DESCRIPTION OF DRAWINGS

[0027] Figure 1 The RGB pixel point distribution diagram of the sample to be measured is obtained.

[0028] Figure 2 The RGB information extraction processing schematic diagram of the sample to be measured is obtained. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical scheme and beneficial effects of the present application clearer, the technical scheme in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all.

[0030] A quick and convenient method for determining the moldy redness of stored white sugar, comprising the following steps:

[0031] Setting the light environment;

[0032] Placing the sample to be measured in the same light environment for photographing to obtain a sample to be measured photograph;

[0033] Image analysis is performed on the sample to be measured photograph to obtain a plurality of pixel points and corresponding RGB information;

[0034] The RGB information is converted to obtain a spatial three-dimensional variable array;

[0035] The spatial three-dimensional variable array is fitted to obtain a fitting plane;

[0036] The obtained fitting plane is compared with a reference fitting plane, if the normal vector angle between the fitting plane and the reference fitting plane is less than or equal to 30°, the sample to be measured is a normal sugar sample; if the normal vector angle between the fitting plane and the reference fitting plane is greater than or equal to 60°, the sample to be measured is an abnormal sugar sample.

[0037] In some embodiments of the present application, a reference normal sugar sample is obtained by artificial naked eye recognition; the reference sample photograph is obtained by placing the reference normal sugar sample in the same light environment for photographing; the RGB information of the reference sample photograph is obtained by image analysis; the spatial three-dimensional variable array of the reference sample is obtained by converting the RGB information; and the reference fitting plane is obtained by fitting the spatial three-dimensional variable array of the reference sample.

[0038] In some embodiments of the present application, a plurality of pixel points are obtained, the pixel points with larger weights are randomly grouped, the corresponding RGB information of each group of pixel points is obtained, and a spatial three-dimensional variable array is obtained by converting the RGB information.

[0039] In some embodiments of the present application, the first 1000 pixel points with larger weights are randomly grouped, the RGB information corresponding to each group of 100 pixel points is obtained, a corresponding spatial three-dimensional variable array is obtained, and the spatial three-dimensional variable array is fitted to obtain a plurality of fitting planes.

[0040] In some embodiments of the present application, the spatial three-dimensional variable array is fitted by using the least square method.

[0041] In some embodiments of the present application, the RGB color information of each pixel point is (R, G, B), and the color information of the pixel point is converted into a point on the coordinate axis.

[0042] In detail, the present application provides a quick and convenient method for determining the moldy red analysis of stored white sugar, which is used for detecting whether the white sugar is red due to deterioration, so as to avoid the deterioration of the stored white sugar, thereby affecting the taste or avoiding the case of mistakenly eating the deteriorated white sugar.

[0043] In the present application, the lighting environment is first set, and the sample to be tested is photographed under the same lighting environment to obtain a sample to be tested photograph. Thus, first, the influence of light on the image is avoided, and second, the sample to be tested photograph is obtained to prepare for the next step of image analysis of the sample to be tested photograph.

[0044] After obtaining the sample to be tested photograph, the sample to be tested photograph is subjected to image analysis to obtain a plurality of pixel points and corresponding RGB information.

[0045] In detail, in the present application, as shown in Figure 1 When the image is analyzed, the local part of the sample to be tested is enlarged, and the pixel points and RGB information in the local part are obtained. The RGB information is converted to obtain a spatial three-dimensional variable array, that is, the RGB information of the pixel points is represented on the coordinate axis to obtain a pixel point RGB information coordinate graph.

[0046] Then, the spatial three-dimensional variable array is fitted to obtain a fitting plane.

[0047] The obtained fitting plane is compared with a reference fitting plane, if the normal vector included angle between the fitting plane and the reference fitting plane is less than or equal to 30°, the sample to be measured is a normal sugar sample; if the normal vector included angle between the fitting plane and the reference fitting plane is greater than or equal to 60°, the sample to be measured is an abnormal sugar sample.

[0048] More specifically, as shown in the figure, Figure 2 After obtaining the RGB color information of a single pixel point, i.e. (R, G, B), (R, G, B) is placed in the coordinate system, and a scatter plot is formed. Since there are multiple pixel points, multiple pixel points gradually show the effect of a plane in the coordinate system, and since multiple pixel points correspond to obtain an array of multiple spatial three-dimensional variables, the array of spatial three-dimensional variables is fitted, preferably, the least square method is used for plane fitting to obtain a fitting plane.

[0049] As an embodiment of the present application, a set of spatial three-dimensional variable arrays, i.e. multiple (R, G, B) can be obtained from the sample to be measured. The least square method is used for plane fitting.

[0050] The first 1000 pixel points with larger weights are randomly grouped, and every 100 pixel points are taken as a group. The corresponding spatial three-dimensional arrays are obtained and fitted to obtain a fitting plane.

[0051] The obtained fitting plane is compared with a reference fitting plane, if the normal vector included angle between the fitting plane and the reference fitting plane is less than or equal to 30°, the sample to be measured is a normal sugar sample; if the normal vector included angle between the fitting plane and the reference fitting plane is greater than or equal to 60°, the sample to be measured is an abnormal sugar sample.

[0052] The difference in angle difference can be used to quickly monitor and warn the white granulated sugar in storage in real time through image algorithm and fitting. The method is convenient and time-saving, and saves a lot of work.

[0053] Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor belong to the scope of protection of the present application.

Claims

1. A rapid and convenient analytical method for determining the reddening and mold growth of stored white sugar, characterized in that, It includes the following steps: Set the lighting environment; The sample to be tested is photographed under the same lighting conditions to obtain a photograph of the sample to be tested. The image of the sample to be tested is analyzed to obtain multiple pixels and their corresponding RGB color information. The RGB color information corresponding to multiple pixels is converted to obtain a three-dimensional spatial variable array; The three-dimensional array of spatial variables is fitted to obtain the fitting plane; The obtained fitting plane is compared with the reference fitting plane. If the angle between the normal vectors of the fitting plane and the reference fitting plane is less than or equal to 30°, the sample to be tested is a normal sugar sample; if the angle between the normal vectors of the fitting plane and the reference fitting plane is greater than or equal to 60°, the sample to be tested is an abnormal sugar sample. A reference normal sugar sample was obtained through manual visual identification. The reference normal sugar sample was photographed under the same lighting conditions to obtain a reference sample photograph; The reference sample photograph is analyzed to obtain multiple pixels and their corresponding RGB color information. The RGB color information is converted to obtain a spatial three-dimensional variable array of the reference sample; The reference sample's spatial three-dimensional variable array is fitted to obtain the reference fitting plane; The RGB color information of each pixel is (R, G, B), and the color information of the pixel is converted into a point on the coordinate axis.

2. The rapid and convenient analytical method for determining the reddening and mold growth of stored white sugar according to claim 1, characterized in that, When performing image analysis on the photograph of the sample to be tested, multiple pixels and the RGB color information of each pixel are obtained; The pixels are randomly divided into multiple pixel groups, and the RGB color information of the pixels corresponding to each pixel group is converted to obtain a spatial three-dimensional variable array. The spatial three-dimensional variable array is then fitted to obtain multiple fitting planes.

3. The rapid and convenient analytical method for determining the reddening and mold growth of stored white sugar according to claim 2, characterized in that, The 1000 pixels with higher weights are randomly grouped into groups of 100 pixels each.

4. The rapid and convenient analytical method for determining the reddening and mold growth of stored white sugar according to claim 1, characterized in that, The spatial three-dimensional variable array is fitted using the least squares method.

Citation Information

Patent Citations

  • Yellowing material identification method for rice color sorting

    CN111814808A

  • Calculating Conjunctival Redness

    US20130226008A1