Egg freshness detection device, method and refrigerator including the same

By using a light source, a light sensor, and a color sensor in an egg freshness detection device, combined with moving parts and a distance sensor, and calibrating the light intensity to eliminate size and color interference, fast and accurate egg freshness detection is achieved.

CN116165356BActive Publication Date: 2025-09-05HISENSE(SHANDONG)REFRIGERATOR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310006723.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-04
Publication Date
2025-09-05
Estimated Expiration
2043-01-04

AI Technical Summary

Technical Problem

Existing egg freshness detection methods are affected by egg size and color, which affects detection accuracy. In addition, the detection speed is slow and it is difficult to meet user needs.

Method used

An egg freshness detection device is used, which includes a light source component, a light sensor, a color sensor, a moving component and a distance sensor. The light intensity is calibrated by detecting the color value and distance of the egg, eliminating the influence of size and color, and calculating the transmittance to judge the freshness.

Benefits of technology

The accuracy and speed of egg freshness detection have been greatly improved, and stale eggs can be quickly identified to meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116165356B_ABST
    Figure CN116165356B_ABST
Patent Text Reader

Abstract

The present invention discloses an egg freshness detection device and method, and a refrigerator including the same. The device and method comprise the following steps: obtaining the distance between a moving component and a surface of a housing below a placement position detected by a distance measuring sensor, the light intensity of a light source after passing through the egg to be tested detected by a light sensor, and the color value of the egg to be tested detected by a color sensor; calculating a first light intensity difference based on a grayscale value calculated using the color value, and calculating a second light intensity difference based on the distance; calibrating the light intensity using the first and second light intensity differences, and calculating the light transmittance of the egg to be tested based on the calibrated light intensity; and detecting the freshness level of the egg to be tested based on the light transmittance and a pre-established correspondence between the light transmittance range and the freshness level. The embodiments of the present invention can eliminate the influence of egg color and size on egg transmittance, significantly improving the accuracy of egg freshness detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of egg freshness detection, and in particular to an egg freshness detection device and method and a refrigerator comprising the same. Background Art

[0002] Eggs are an important protein consumer product for the Chinese people and have high nutritional value. Consumers basically have a demand for eggs every day. After purchasing eggs, people usually store them in the refrigerator at home. Therefore, realizing rapid, accurate and non-destructive detection of the freshness of eggs stored in the refrigerator has always been a major user demand point. However, the current non-destructive detection methods for eggs all have high technical difficulties and defects. For example, the more common detection method based on the storage time and the continuous decline in the weight (or density) of eggs during storage cannot identify eggs that are no longer fresh when the user buys them, and has poor practicality. The method of detecting the quality of eggs using odor characteristics requires a completely sealed environment, which is difficult to implement. Moreover, since it takes time for the eggs to volatilize gases, the detection speed is slow and does not meet the actual needs of users.

[0003] Overall, light property detection, based on the principle that the light transmittance of eggs decreases as their freshness decreases, is a highly feasible method for refrigerator application. Its greatest advantage is its rapid response. When a user is ready to eat eggs, they simply place them in the detection device on the refrigerator and receive a freshness check within seconds, meeting user needs. Compared to other detection methods, it is also relatively low-cost, making it a promising method for refrigerator application. However, this detection method is subject to interference from factors such as egg size and eggshell color. The impact of these factors can sometimes even outweigh the differences in light transmittance caused by varying egg freshness, severely impacting detection accuracy. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide an egg freshness detection device, method and refrigerator including the same, which can eliminate the influence of egg color and size on egg transmittance and greatly improve the accuracy of egg freshness detection results.

[0005] To achieve the above objectives, an embodiment of the present invention provides an egg freshness detection device, comprising:

[0006] The shell is provided with a placement position for placing eggs;

[0007] A light source component is disposed in the housing and is used to emit light to illuminate the eggs;

[0008] a light sensor disposed in the housing and opposite to the light source component, for detecting the light intensity of the light source after passing through the egg;

[0009] A color sensor is provided in the housing and is arranged opposite to the light source component, and is used to detect the color value of the egg;

[0010] a moving component, disposed in the housing and above the placement position, and movable toward the placement position;

[0011] a distance measuring sensor, provided on the moving component, for detecting the distance between the moving component and a surface of the housing below the placement position;

[0012] a controller configured to, when detecting that the egg to be tested is in the placement position, control the movable member to move toward the placement position so that the movable member is close to one end of the egg to be tested, and obtain the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position;

[0013] controlling the light source of the light source component to illuminate the egg to be tested, and obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor;

[0014] Calculating a first light intensity difference value based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference value based on the distance and a pre-established correspondence between distance differences and light intensity differences;

[0015] calibrating the light intensity using the first light intensity difference and the second light intensity difference, and calculating the light transmittance of the egg to be tested according to the calibrated light intensity;

[0016] The freshness level of the egg to be tested is detected according to the transmittance and the pre-established correspondence between the transmittance range and the freshness level.

[0017] As an improvement to the above solution, before detecting the freshness level of the egg to be tested, the controller is further configured to:

[0018] For each sample egg, when it is detected that the sample egg is in the placement position, controlling the light source of the light source component to illuminate the sample egg, obtaining a first light intensity of the light source after passing through the sample egg detected by the light sensor and a first color value of the sample egg detected by the color sensor;

[0019] Calculating each first grayscale value according to each first color value;

[0020] Taking the first grayscale value of any sample egg as a reference grayscale value and the first light intensity thereof as a first reference light intensity, calculating, for each of the remaining sample eggs, a grayscale difference between the first grayscale value and the reference grayscale value, and a third light intensity difference between the first light intensity thereof and the first reference light intensity;

[0021] A correspondence between grayscale differences and light intensity differences is established according to all the grayscale differences and all the third light intensity differences.

[0022] As an improvement to the above solution, the first light intensity difference is calculated according to the grayscale value calculated using the color value and a pre-established correspondence between the grayscale difference and the light intensity difference, including:

[0023] Calculating the grayscale value of the egg to be tested according to the color value;

[0024] Calculating a grayscale difference between the grayscale value and the reference grayscale value;

[0025] The grayscale difference is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0026] As an improvement to the above solution, before detecting the freshness level of the egg to be tested, the controller is further configured to:

[0027] For each sample egg, when it is detected that the sample egg is in the placement position, the movable component is controlled to move toward the placement position so that the movable component is close to one end of the sample egg, a first distance between the movable component and a surface of the housing below the placement position is obtained as detected by the distance measuring sensor, and the light source of the light source component is controlled to illuminate the sample egg, and a second light intensity of the light source after passing through the sample egg is obtained as detected by the light sensor;

[0028] Taking the first distance of any sample egg as a reference distance and the second light intensity thereof as a second reference light intensity, calculating the distance difference between the first distance and the reference distance, and the fourth light intensity difference between the second light intensity and the second reference light intensity, for each of the remaining sample eggs;

[0029] A correspondence between distance differences and light intensity differences is established according to all the distance differences and all the fourth light intensity differences.

[0030] As an improvement to the above solution, the calculating of the second illumination intensity difference according to the distance and a pre-established correspondence between the distance difference and the illumination intensity difference includes:

[0031] Calculating a distance difference between the distance and the reference distance;

[0032] Substitute the distance difference into the corresponding relationship between the distance difference and the light intensity difference to obtain a second light intensity difference.

[0033] As an improvement to the above solution, the light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component. Then, the light intensity is calibrated using the first light intensity difference and the second light intensity difference, and the light transmittance of the egg to be tested is calculated based on the calibrated light intensity, comprising:

[0034] Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity;

[0035] The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

[0036] As an improvement to the above solution, the light source component is arranged below the placement position;

[0037] The light sensor is provided on the movable component, and the light sensor and the light source component are arranged opposite to each other in the height direction of the placement position;

[0038] The color sensor is arranged on the moving component.

[0039] To achieve the above objectives, an embodiment of the present invention provides an egg freshness detection method, which is applied to the egg freshness detection device as described above. The egg freshness detection method includes:

[0040] When it is detected that the egg to be tested is in the placement position, the movable member is controlled to move toward the placement position so that the movable member is close to one end of the egg to be tested, and the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position is obtained;

[0041] controlling the light source of the light source component to illuminate the egg to be tested, and obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor;

[0042] Calculating a first light intensity difference value based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference value based on the distance and a pre-established correspondence between distance differences and light intensity differences;

[0043] calibrating the light intensity using the first light intensity difference and the second light intensity difference, and calculating the light transmittance of the egg to be tested according to the calibrated light intensity;

[0044] The freshness level of the egg to be tested is detected according to the transmittance and the pre-established correspondence between the transmittance range and the freshness level.

[0045] As an improvement to the above solution, the light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component. Then, the light intensity is calibrated using the first light intensity difference and the second light intensity difference, and the light transmittance of the egg to be tested is calculated based on the calibrated light intensity, comprising:

[0046] Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity;

[0047] The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

[0048] To achieve the above-mentioned purpose, an embodiment of the present invention provides a refrigerator, comprising a refrigerator body and the egg freshness detection device as described above, wherein the egg freshness detection device is arranged in the refrigerator.

[0049] Compared with the prior art, the embodiments of the present invention provide an egg freshness detection device, method and refrigerator including the same. First, a first light intensity difference is obtained by detecting the color of the egg to be tested, and a second light intensity difference is obtained by detecting the distance between the movable component and the side of the shell below the placement position. The first light intensity difference and the second light intensity difference are then used to calibrate the light intensity of the light source after passing through the egg to be tested. The transmittance of the egg to be tested is obtained according to the calibrated light intensity. Finally, the freshness level of the egg to be tested is detected according to the transmittance. This can eliminate the influence of egg color and egg size on the transmittance of the egg, greatly improve the accuracy of the egg freshness detection results, and has a fast detection speed, meeting user needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a schematic structural diagram of an egg freshness detection device provided by an embodiment of the present invention;

[0051] Figure 2 This is a schematic structural diagram of a circuit board of an egg freshness detection device provided by an embodiment of the present invention;

[0052] Figure 3 This is a first working flow diagram of the controller provided by an embodiment of the present invention;

[0053] Figure 4 This is another structural schematic diagram of an egg freshness detection device provided by an embodiment of the present invention;

[0054] Figure 5 This is another structural schematic diagram of an egg freshness detection device provided by an embodiment of the present invention;

[0055] Figure 6 is a second working flow diagram of the controller provided by an embodiment of the present invention;

[0056] Figure 7 is a third working flow diagram of the controller provided in an embodiment of the present invention;

[0057] Figure 8 is a fourth working flow diagram of the controller provided in an embodiment of the present invention;

[0058] Figure 9 is a fifth working flow diagram of the controller provided in an embodiment of the present invention;

[0059] Figure 10 is a sixth working flow diagram of the controller provided in an embodiment of the present invention;

[0060] Figure 11 This is a flow chart of a method for detecting egg freshness provided by an embodiment of the present invention;

[0061] Figure 12 This is a schematic structural diagram of a refrigerator provided by an embodiment of the present invention;

[0062] Figure 13 This is another structural schematic diagram of an egg freshness detection device provided by an embodiment of the present invention;

[0063] Figure 14 This is a partial diagram of a refrigerator provided by an embodiment of the present invention.

[0064] Explanation of the accompanying drawings: 1. Shell; 11. Placement position; 2. Light source component; 3. Light sensor; 4. Color sensor; 5. Moving component; 6. Distance sensor; 7. First door body; 8. Connecting mechanism; 100. Box body; 200. Second door body; 300. Installation slot. DETAILED DESCRIPTION

[0065] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0066] In the description of this application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0067] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. Throughout this application, unless otherwise specified, "plurality" means two or more.

[0068] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.

[0069] See also Figure 1 and Figure 2 The egg freshness detection device provided by the embodiment of the present invention includes:

[0070] The housing 1 is provided with a placement position 11 for placing eggs;

[0071] A light source component 2 is provided in the housing 1 and is used to emit light to illuminate the eggs;

[0072] a light sensor 3 disposed in the housing 1 and opposite to the light source component 2, for detecting the light intensity of the light source after passing through the egg;

[0073] A color sensor 4 is provided in the housing 1 and is arranged opposite to the light source component 2, and is used to detect the color value of the egg;

[0074] The movable component 5 is disposed in the housing 1 and above the placement position 11, and can move toward the placement position 11;

[0075] a distance measuring sensor 6 , provided on the moving part 5 , for detecting the distance between the moving part 5 and a surface of the housing 1 below the placement position 11 ;

[0076] Exemplarily, the housing 1 is a rectangular parallelepiped, and a placement position 11 for placing eggs is provided therein;

[0077] The light source emitted by the light source component 2 is received by the light sensor 3, and the light sensor 3 detects the light intensity of the received light source;

[0078] The color sensor 4 is disposed in the housing 1 and is arranged opposite to the light source component 2. After the egg is irradiated by the light source, the color sensor 4 can detect the color value of the egg, that is, the GRB value;

[0079] The movable part 5 moves in the height direction of the placement position 11, and can move toward the direction close to the placement position 11 and away from the placement position 11; when the egg is not placed in the placement position 11, the movable part 5 is controlled to move in the direction away from the placement position 11 so that the placement position 11 can accommodate the egg, and when the egg is placed in the placement position 11, the movable part 5 is controlled to move in the direction close to the placement position 11 so that the movable part 5 is close to one end of the egg; at this time, the distance measuring sensor 6 provided on the movable part 5 detects the distance between the movable part 5 and a side of the shell below the placement position 11 (the bottom surface of the shell 1), that is, the distance between one end of the egg and the other end thereof, and this distance can represent the size of the egg.

[0080] The egg freshness detection device further includes a display module for displaying the detected freshness level; the controller sends the detected freshness level to the display module for display.

[0081] In an optional embodiment, the light source component 2 is disposed below the placement position 11;

[0082] The light sensor 3 is provided on the movable component 5 , and the light sensor 3 and the light source component 2 are arranged opposite to each other in the height direction of the placement position 11 ;

[0083] The color sensor 4 is arranged on the moving component.

[0084] For example, Figure 2 As shown, the light sensor 3, the color sensor 4, the distance sensor 6 and the controller are all arranged on a circuit board, and the circuit board is arranged on the moving part 5. The light sensor 3, the color sensor 4 and the distance sensor 6 are respectively connected to the controller;

[0085] It can be understood that since the light sensor 3 and the light source component 2 are arranged opposite each other in the height direction of the placement position 11, the light emitted by the light source component 2 can be well received by the light sensor 3, thereby ensuring the accuracy of detection.

[0086] a controller configured to, upon detecting that the egg to be tested is on the placement position 11, control the movable member 5 to move toward the placement position 11 so that the movable member 5 is close to one end of the egg to be tested, and obtain the distance detected by the distance measuring sensor 6 between the movable member 5 and a surface of the housing 1 below the placement position 11;

[0087] Controlling the light source of the light source component 2 to illuminate the egg to be tested, obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor 3 and the color value of the egg to be tested detected by the color sensor 4;

[0088] Calculating a first light intensity difference value based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference value based on the distance and a pre-established correspondence between distance differences and light intensity differences;

[0089] Calibrate the light intensity using the first light intensity difference and the second light intensity difference, and calculate the light transmittance of the egg to be tested according to the calibrated light intensity;

[0090] The freshness level of the egg to be tested is detected according to the transmittance and the pre-established correspondence between the transmittance range and the freshness level.

[0091] For example, see Figure 3 , Figure 3 : is a first working flow diagram of a controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S11 to S16:

[0092] S11, detecting whether the egg to be tested is in the placement position; if so, proceeding to step S12, if not, returning to step S11;

[0093] S12, controlling the movable member to move toward the placement position so that the movable member is close to one end of the egg to be tested, obtaining the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position, and proceeding to step S13;

[0094] S13, controlling the light source of the light source component to illuminate the egg to be tested, obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor, and then proceeding to step S14;

[0095] s14. Calculate a first light intensity difference based on the grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculate a second light intensity difference based on the distance and a pre-established correspondence between distance differences and light intensity differences, and proceed to step S15.

[0096] S15, calibrating the light intensity using the first light intensity difference and the second light intensity difference, calculating the light transmittance of the egg to be tested according to the calibrated light intensity, and proceeding to step S16;

[0097] S16. Detect the freshness level of the egg to be tested based on the transmittance and the pre-established correspondence between the transmittance range and the freshness level, and end this process.

[0098] Exemplarily, the egg freshness detection device is further provided with a first door 7; when starting the freshness detection, the first door 7 is opened. Figure 4 As shown, put the egg to be tested, and then close the first door 7. Figure 5 As shown, when the first door 7 is closed, it can be considered that the egg to be tested is in the placement position, and steps S12-S16 are started;

[0099] The egg freshness detection device provided by the embodiment of the present invention performs freshness detection on 100 eggs randomly selected from the market to obtain a freshness grade for each egg to be tested. The eggs are then cracked and the Haugh unit value of each egg to be tested is measured. The freshness grade corresponding to the measured Haugh unit value is compared with the freshness grade detected by the egg freshness detection device, and the agreement rate is calculated.

[0100] Results show that the accuracy of freshness grade detection achieved by this embodiment of the present invention is over 95%. This embodiment effectively addresses the shortcomings of current egg freshness transmittance detection technology, significantly improving detection accuracy. Combined with the advantages of rapid results and low cost, this method can quickly identify recently purchased eggs that are no longer fresh, meeting user needs.

[0101] In an optional embodiment, before detecting the freshness level of the egg to be tested, the controller is further configured to:

[0102] For each sample egg, when it is detected that the sample egg is in the placement position, the light source of the light source component 2 is controlled to illuminate the sample egg, and a first light intensity of the light source after passing through the sample egg detected by the light sensor 3 and a first color value of the sample egg detected by the color sensor 4 are obtained;

[0103] Calculating each first grayscale value according to each first color value;

[0104] Taking the first grayscale value of any sample egg as a reference grayscale value and the first light intensity thereof as a first reference light intensity, calculating, for each of the remaining sample eggs, a grayscale difference between the first grayscale value and the reference grayscale value, and a third light intensity difference between the first light intensity thereof and the first reference light intensity;

[0105] A correspondence between grayscale differences and light intensity differences is established according to all the grayscale differences and all the third light intensity differences.

[0106] For example, see Figure 6 , Figure 6 is a second working flow diagram of the controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S21 to S26:

[0107] S21, detecting whether any of the sample eggs is in the placement position, if so, proceeding to step S22, if not, returning to step S21;

[0108] S22, controlling the light source of the light source component to illuminate the sample egg, obtaining a first light intensity of the light source after passing through the sample egg detected by the light sensor and a first color value of the sample egg detected by the color sensor;

[0109] S23, determining whether the first light intensity and the first color value of all sample eggs are obtained, if so, proceeding to step S24, if not, proceeding to step S21;

[0110] S24, calculating each first grayscale value according to each first color value, and proceeding to step S25;

[0111] S25, using the first grayscale value of any sample egg as a reference grayscale value and the first light intensity as a first reference light intensity, calculating the grayscale difference between the first grayscale value and the reference grayscale value, and the third light intensity difference between the first light intensity and the first reference light intensity, for each of the remaining sample eggs, and proceeding to step S26;

[0112] S26 . Constructing a correspondence between grayscale differences and light intensity differences according to all the grayscale differences and all the third light intensity differences.

[0113] Specifically, since the egg color, i.e., the eggshell color, affects the light transmittance of the egg, the light intensity is calibrated by constructing a corresponding relationship between the grayscale difference and the light intensity difference:

[0114] First, sample eggs are selected that are identical except for the eggshell color. For each sample egg, the light source of the light source component is controlled to illuminate the sample egg, and a first light intensity I1 of the light source after passing through the sample egg, as detected by the light sensor, and a first color value RGB of the sample egg, as detected by the color sensor, are obtained.

[0115] Then, the first grayscale value L reflecting the color depth of the egg is calculated using the formula L=R*0.299+G*0.587+B*0.114;

[0116] Finally, the first grayscale value L and the first light intensity I1 of one of the sample eggs are selected as a benchmark, and a functional relationship between the grayscale difference ΔL and the light intensity difference ΔI between a large number of sample eggs (for example, 500) and the benchmark sample egg is established.

[0117] In an optional embodiment, calculating the first light intensity difference according to the grayscale value calculated using the color value and a pre-established correspondence between the grayscale difference and the light intensity difference includes:

[0118] Calculating the grayscale value of the egg to be tested according to the color value;

[0119] Calculating a grayscale difference between the grayscale value and the reference grayscale value;

[0120] The grayscale difference is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0121] For example, see Figure 7 , Figure 7 is a third working flow diagram of the controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S141 to S143:

[0122] S141, calculating the grayscale value of the egg to be tested according to the color value, and proceeding to step S142;

[0123] S142, calculating the grayscale difference between the grayscale value and the reference grayscale value, and proceeding to step S143;

[0124] S143 : Substitute the grayscale difference into the correspondence between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0125] Specifically, the color value is substituted into R*0.299+G*0.587+B*0.114 to calculate the grayscale value of the egg to be tested;

[0126] The grayscale difference between the grayscale value and the reference grayscale value is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0127] It can be understood that by calibrating the light intensity through the first light intensity difference, the influence of eggshell color on the transmittance of the egg can be reduced; the first light intensity difference can be positive or negative, and a positive value means that compared with the sample egg used as a benchmark, the eggshell color of the egg to be tested has a negative impact on the transmittance (the eggshell color is darker), and the first light intensity difference can compensate for this negative impact, thereby obtaining a more accurate test result; the negative value has the opposite meaning to the positive value, which means that compared with the sample egg used as a benchmark, the eggshell color of the egg to be tested has a positive impact on the transmittance (the eggshell color is lighter), and the first light intensity difference can compensate for this positive impact, thereby obtaining a more accurate test result.

[0128] In an optional embodiment, before detecting the freshness level of the egg to be tested, the controller is further configured to:

[0129] For each sample egg, when it is detected that the sample egg is in the placement position, the movable component 5 is controlled to move toward the placement position 11 so that the movable component 5 is close to one end of the sample egg, and a first distance between the movable component 5 and a surface of the housing 1 below the placement position 11 is obtained as detected by the distance measuring sensor 6. The light source of the light source component 2 is controlled to illuminate the sample egg, and a second light intensity of the light source after passing through the sample egg is obtained as detected by the light sensor 3.

[0130] Taking the first distance of any sample egg as a reference distance and the second light intensity thereof as a second reference light intensity, calculating the distance difference between the first distance and the reference distance, and the fourth light intensity difference between the second light intensity and the second reference light intensity, for each of the remaining sample eggs;

[0131] A correspondence between distance differences and light intensity differences is established according to all the distance differences and all the fourth light intensity differences.

[0132] For example, see Figure 8 , Figure 8 4 is a fourth working flow diagram of the controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S31 to S35:

[0133] S31, detecting whether any of the sample eggs is in the placement position, if so, proceeding to step S32, if not, returning to step S31;

[0134] S32, controlling the movable component to move toward the placement position so that the movable component is close to one end of the sample egg, obtaining a first distance between the movable component and a surface of the housing below the placement position as detected by the distance measuring sensor, and controlling the light source of the light source component to illuminate the sample egg, obtaining a second light intensity of the light source after passing through the sample egg as detected by the light sensor, and then proceeding to step S33;

[0135] S33, determining whether the second light intensity and the first distance of all sample eggs are obtained, if so, proceeding to step S34, if not, proceeding to step S31;

[0136] S34, using the first distance of any sample egg as a reference distance and the second light intensity thereof as a second reference light intensity, calculating the distance difference between the first distance and the reference distance, and the fourth light intensity difference between the second light intensity and the second reference light intensity, for each of the remaining sample eggs;

[0137] S35. Construct a correspondence between distance differences and light intensity differences based on all the distance differences and all the fourth light intensity differences.

[0138] Specifically, since the egg size affects the light transmittance of the egg, the light intensity is calibrated by constructing a corresponding relationship between the distance difference and the light intensity difference:

[0139] Selecting sample eggs that differ only in size and are identical in all other respects, for each sample egg, controlling the movable member to move toward the placement position so that the movable member is close to one end of the sample egg, obtaining a first distance H between the movable member and a surface of the housing below the placement position as detected by the distance measuring sensor, and controlling the light source of the light source member to illuminate the sample egg, obtaining a second light intensity I2 of the light source after passing through the sample egg as detected by the light sensor;

[0140] Then, the first distance H and the second light intensity I2 of one of the sample eggs are selected as a benchmark, and a functional relationship between the distance difference ΔH and the light intensity difference ΔI between a large number of sample eggs (for example, 500) and the sample egg as the benchmark is established.

[0141] In an optional embodiment, calculating the second light intensity difference according to the distance and a pre-established correspondence between the distance difference and the light intensity difference includes:

[0142] Calculating a distance difference between the distance and the reference distance;

[0143] Substitute the distance difference into the corresponding relationship between the distance difference and the light intensity difference to obtain a second light intensity difference.

[0144] For example, see Figure 9 , Figure 9 5 is a fifth working flow diagram of the controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S144 to S145:

[0145] S144, calculating the distance difference between the distance and the reference distance, and proceeding to step S145;

[0146] S145 , substituting the distance difference into the correspondence between the distance difference and the light intensity difference to obtain a second light intensity difference.

[0147] It can be understood that by calibrating the light intensity through the second light intensity difference, the influence of egg size on egg transmittance can be reduced; the second light intensity difference can be positive or negative, and a positive value means that compared with the sample egg used as a benchmark, the egg size of the egg to be tested has a negative impact on the transmittance (the egg size is larger), and the second light intensity difference can compensate for this negative impact, thereby obtaining a more accurate test result; a negative value has the opposite meaning to the positive value, which means that compared with the sample egg used as a benchmark, the egg size of the egg to be tested has a positive impact on the transmittance (the egg size is smaller), and the second light intensity difference can compensate for this positive impact, thereby obtaining a more accurate test result.

[0148] Specifically, for the aforementioned sample eggs (of a certain size and color) used as a benchmark, the entire process of their freshness decline over time is tracked. Using the Haugh unit as a freshness indicator, the transmittance corresponding to the critical value of the freshness range is tested and recorded, and a corresponding relationship between the transmittance range and the freshness level is established. Based on the corresponding relationship between the transmittance range and the freshness level, the freshness level corresponding to the transmittance of the tested egg is determined;

[0149] To calculate the Haugh unit, first accurately weigh the egg, then gently crack it onto a large watch glass. Use a vernier caliper to measure the albumen height multiple times, and then take the average as the basis for calculating the Haugh unit for that egg. The Haugh unit is calculated using the following formula: H = 100 × lg (Hw + 7.57 - 1.7 × m∧0.37), where Hw is the albumen height and m is the total egg mass. Using the Haugh unit as an indicator of freshness, a Haugh unit greater than or equal to 72 indicates very fresh; a Haugh unit greater than or equal to 60 and less than or equal to 71 indicates relatively fresh; a Haugh unit greater than or equal to 31 and less than or equal to 59 indicates not fresh; and a Haugh unit less than 31 indicates spoiled.

[0150] In an optional embodiment, the light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component. Then, calibrating the light intensity using the first light intensity difference and the second light intensity difference, and calculating the light transmittance of the egg to be tested based on the calibrated light intensity, comprises:

[0151] Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity;

[0152] The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

[0153] For example, see Figure 10 , Figure 10 is a sixth working flow diagram of the controller provided in an embodiment of the present invention, wherein the controller is configured to execute steps S151 to S152:

[0154] S151, adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity, and proceeding to step S151;

[0155] S152. Divide the calibrated light intensity by the initial light intensity of the light source emitted by the light source component to obtain the light transmittance of the egg to be tested.

[0156] Specifically, when the egg to be tested is not placed in the placement position, the light source component is controlled to emit light, the light source sensor receives the light emitted by the light source component, and detects its initial light intensity; the transmittance of the egg to be tested is calculated based on the calibrated light intensity and the initial light intensity.

[0157] Compared with the prior art, an egg freshness detection device provided in an embodiment of the present invention first obtains a first light intensity difference by detecting the color of the egg to be tested, and obtains a second light intensity difference by detecting the distance between the movable component and the side of the shell below the placement position. The first light intensity difference and the second light intensity difference are then used to calibrate the light intensity of the light source after passing through the egg to be tested, and the transmittance of the egg to be tested is obtained according to the calibrated light intensity. Finally, the freshness level of the egg to be tested is detected according to the transmittance. This device can eliminate the influence of egg color and egg size on the transmittance of the egg, greatly improve the accuracy of the egg freshness detection result, and has a fast detection speed, meeting user needs.

[0158] See also Figure 11 , Figure 11Flowchart of an egg freshness detection method provided by an embodiment of the present invention, which is applied to the egg freshness detection device of the above embodiment. The egg freshness detection method includes:

[0159] S1. When it is detected that the egg to be tested is in the placement position, controlling the movable member to move toward the placement position so that the movable member is close to one end of the egg to be tested, and obtaining the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position;

[0160] S2. Control the light source of the light source component to illuminate the egg to be tested, and obtain the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor;

[0161] S3. Calculating a first light intensity difference based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference based on the distance and a pre-established correspondence between distance differences and light intensity differences;

[0162] S4. Calibrate the light intensity using the first light intensity difference and the second light intensity difference, and calculate the light transmittance of the egg to be tested according to the calibrated light intensity;

[0163] S5. Detecting the freshness level of the egg to be tested according to the transmittance and a pre-established correspondence between the transmittance range and the freshness level.

[0164] Exemplarily, the housing is a rectangular parallelepiped, and a placement position for eggs is provided therein;

[0165] The light source emitted by the light source component is received by the light sensor, and the light sensor detects the light intensity of the received light source;

[0166] The color sensor is arranged in the housing and is arranged opposite to the light source component. After the egg is irradiated by the light source, the color sensor can detect the color value of the egg, that is, the GRB value;

[0167] The movable part moves in the height direction of the placement position, and can move in the direction close to the placement position and in the direction away from the placement position; when the egg is not placed in the placement position, the movable part is controlled to move in the direction away from the placement position so that the placement position can accommodate the egg, and when the egg is placed in the placement position, the movable part is controlled to move in the direction close to the placement position so that the movable part is close to one end of the egg; at this time, the distance measuring sensor provided on the movable part detects the distance between the movable part and a side of the shell below the placement position (the bottom surface of the shell), that is, the distance between one end of the egg and the other end thereof, and this distance can represent the size of the egg.

[0168] The egg freshness detection device further includes a display module for displaying the detected freshness level; the controller sends the detected freshness level to the display module for display.

[0169] The egg freshness detection device is further provided with a first door body; when starting the freshness detection, the first door body is opened, as shown in the figure, the egg to be tested is placed, and then the first door body is closed, as shown in the figure. Figure 5 As shown, when the first door is closed, it can be considered that the egg to be tested is in the placement position, and the freshness test begins;

[0170] The egg freshness detection device provided by the embodiment of the present invention performs freshness detection on 100 eggs randomly selected from the market to obtain a freshness grade for each egg to be tested. The eggs are then cracked and the Haugh unit value of each egg to be tested is measured. The freshness grade corresponding to the measured Haugh unit value is compared with the freshness grade detected by the egg freshness detection device, and the agreement rate is calculated.

[0171] Results show that the accuracy of freshness grade detection achieved by this embodiment of the present invention is over 95%. This embodiment effectively addresses the shortcomings of current egg freshness transmittance detection technology, significantly improving detection accuracy. Combined with the advantages of rapid results and low cost, this method can quickly identify recently purchased eggs that are no longer fresh, meeting user needs.

[0172] Optionally, before detecting the freshness level of the eggs to be tested, the egg freshness detection method further includes:

[0173] For each sample egg, when it is detected that the sample egg is in the placement position, controlling the light source of the light source component to illuminate the sample egg, obtaining a first light intensity of the light source after passing through the sample egg detected by the light sensor and a first color value of the sample egg detected by the color sensor;

[0174] Calculating each first grayscale value according to each first color value;

[0175] Taking the first grayscale value of any sample egg as a reference grayscale value and the first light intensity thereof as a first reference light intensity, calculating, for each of the remaining sample eggs, a grayscale difference between the first grayscale value and the reference grayscale value, and a third light intensity difference between the first light intensity thereof and the first reference light intensity;

[0176] A correspondence between grayscale differences and light intensity differences is established according to all the grayscale differences and all the third light intensity differences.

[0177] Specifically, since the egg color, i.e., the eggshell color, affects the light transmittance of the egg, the light intensity is calibrated by constructing a corresponding relationship between the grayscale difference and the light intensity difference:

[0178] First, sample eggs are selected that are identical except for the eggshell color. For each sample egg, the light source of the light source component is controlled to illuminate the sample egg, and a first light intensity I1 of the light source after passing through the sample egg, as detected by the light sensor, and a first color value RGB of the sample egg, as detected by the color sensor, are obtained.

[0179] Then, the first grayscale value L reflecting the color depth of the egg is calculated using the formula L=R*0.299+G*0.587+B*0.114;

[0180] Finally, the first grayscale value L and the first light intensity I1 of one of the sample eggs are selected as a benchmark, and a functional relationship between the grayscale difference ΔL and the light intensity difference ΔI between a large number of sample eggs (for example, 500) and the benchmark sample egg is established.

[0181] Optionally, calculating the first light intensity difference according to the grayscale value calculated using the color value and a pre-established correspondence between the grayscale difference and the light intensity difference includes:

[0182] Calculating the grayscale value of the egg to be tested according to the color value;

[0183] Calculating a grayscale difference between the grayscale value and the reference grayscale value;

[0184] The grayscale difference is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0185] Specifically, the color value is substituted into R*0.299+G*0.587+B*0.114 to calculate the grayscale value of the egg to be tested;

[0186] The grayscale difference between the grayscale value and the reference grayscale value is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

[0187] It can be understood that by calibrating the light intensity through the first light intensity difference, the influence of eggshell color on the transmittance of the egg can be reduced; the first light intensity difference can be positive or negative, and a positive value means that compared with the sample egg used as a benchmark, the eggshell color of the egg to be tested has a negative impact on the transmittance (the eggshell color is darker), and the first light intensity difference can compensate for this negative impact, thereby obtaining a more accurate test result; the negative value has the opposite meaning to the positive value, which means that compared with the sample egg used as a benchmark, the eggshell color of the egg to be tested has a positive impact on the transmittance (the eggshell color is lighter), and the first light intensity difference can compensate for this positive impact, thereby obtaining a more accurate test result.

[0188] Optionally, before detecting the freshness level of the eggs to be tested, the egg freshness detection method further includes:

[0189] For each sample egg, when it is detected that the sample egg is in the placement position, the movable component is controlled to move toward the placement position so that the movable component is close to one end of the sample egg, a first distance between the movable component and a surface of the housing below the placement position is obtained as detected by the distance measuring sensor, and the light source of the light source component is controlled to illuminate the sample egg, and a second light intensity of the light source after passing through the sample egg is obtained as detected by the light sensor;

[0190] Taking the first distance of any sample egg as a reference distance and the second light intensity thereof as a second reference light intensity, calculating the distance difference between the first distance and the reference distance, and the fourth light intensity difference between the second light intensity and the second reference light intensity, for each of the remaining sample eggs;

[0191] A correspondence between distance differences and light intensity differences is established according to all the distance differences and all the fourth light intensity differences.

[0192] Specifically, since the egg size affects the light transmittance of the egg, the light intensity is calibrated by constructing a corresponding relationship between the distance difference and the light intensity difference:

[0193] Selecting sample eggs that differ only in size and are identical in all other respects, for each sample egg, controlling the movable member to move toward the placement position so that the movable member is close to one end of the sample egg, obtaining a first distance H between the movable member and a surface of the housing below the placement position as detected by the distance measuring sensor, and controlling the light source of the light source member to illuminate the sample egg, obtaining a second light intensity I2 of the light source after passing through the sample egg as detected by the light sensor;

[0194] Then, the first distance H and the second light intensity I2 of one of the sample eggs are selected as a benchmark, and a functional relationship between the distance difference ΔH and the light intensity difference ΔI between a large number of sample eggs (for example, 500) and the sample egg as the benchmark is established.

[0195] Optionally, calculating the second illumination intensity difference according to the distance and a pre-established correspondence between the distance difference and the illumination intensity difference includes:

[0196] Calculating a distance difference between the distance and the reference distance;

[0197] Substitute the distance difference into the corresponding relationship between the distance difference and the light intensity difference to obtain a second light intensity difference.

[0198] It can be understood that by calibrating the light intensity through the second light intensity difference, the influence of egg size on egg transmittance can be reduced; the second light intensity difference can be positive or negative, and a positive value means that compared with the sample egg used as a benchmark, the egg size of the egg to be tested has a negative impact on the transmittance (the egg size is larger), and the second light intensity difference can compensate for this negative impact, thereby obtaining a more accurate test result; a negative value has the opposite meaning to the positive value, which means that compared with the sample egg used as a benchmark, the egg size of the egg to be tested has a positive impact on the transmittance (the egg size is smaller), and the second light intensity difference can compensate for this positive impact, thereby obtaining a more accurate test result.

[0199] Specifically, for the aforementioned sample eggs (of a certain size and color) used as a benchmark, the entire process of their freshness decline over time is tracked. Using the Haugh unit as a freshness indicator, the transmittance corresponding to the critical value of the freshness range is tested and recorded, and a corresponding relationship between the transmittance range and the freshness level is established. Based on the corresponding relationship between the transmittance range and the freshness level, the freshness level corresponding to the transmittance of the tested egg is determined;

[0200] To calculate the Haugh unit, first accurately weigh the egg, then gently crack it onto a large watch glass. Use a vernier caliper to measure the albumen height multiple times, and then take the average as the basis for calculating the Haugh unit for that egg. The Haugh unit is calculated using the following formula: H = 100 × lg (Hw + 7.57 - 1.7 × m∧0.37), where Hw is the albumen height and m is the total egg mass. Using the Haugh unit as an indicator of freshness, a Haugh unit greater than or equal to 72 indicates very fresh; a Haugh unit greater than or equal to 60 and less than or equal to 71 indicates relatively fresh; a Haugh unit greater than or equal to 31 and less than or equal to 59 indicates not fresh; and a Haugh unit less than 31 indicates spoiled.

[0201] Optionally, the light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component, and the step of calibrating the light intensity using the first light intensity difference and the second light intensity difference, and calculating the light transmittance of the egg to be tested based on the calibrated light intensity, comprises:

[0202] Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity;

[0203] The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

[0204] Specifically, when the egg to be tested is not placed in the placement position, the light source component is controlled to emit light, the light source sensor receives the light emitted by the light source component, and detects its initial light intensity; the transmittance of the egg to be tested is calculated based on the calibrated light intensity and the initial light intensity.

[0205] Optionally, the light source component is arranged below the placement position;

[0206] The light sensor is provided on the movable component, and the light sensor and the light source component are arranged opposite to each other in the height direction of the placement position;

[0207] The color sensor is arranged on the moving component.

[0208] It can be understood that since the light sensor 3 and the light source component 2 are arranged opposite each other in the height direction of the placement position 11, the light emitted by the light source component 2 can be well received by the light sensor 3, thereby ensuring the accuracy of detection.

[0209] Compared with the prior art, an embodiment of the present invention provides an egg freshness detection method, which first obtains a first light intensity difference by detecting the color of the egg to be tested, and obtains a second light intensity difference by detecting the distance between the movable component and the side of the shell below the placement position. The first light intensity difference and the second light intensity difference are then used to calibrate the light intensity of the light source after passing through the egg to be tested, and the transmittance of the egg to be tested is obtained according to the calibrated light intensity. Finally, the freshness level of the egg to be tested is detected according to the transmittance. This method can eliminate the influence of egg color and egg size on the egg transmittance, greatly improve the accuracy of the egg freshness detection results, and has a fast detection speed, meeting user needs.

[0210] See also Figure 12 , Figure 12 This is a structural block diagram of a refrigerator provided by an embodiment of the present invention. The refrigerator includes a cabinet and the egg freshness detection device as described above. The egg freshness detection device is arranged in the refrigerator.

[0211] Specifically, the refrigerator of this embodiment has a roughly rectangular parallelepiped shape and includes a housing 100 defining a storage space and multiple second doors 200 located at the opening of the housing 100. The second doors 200 include a door shell located outside the housing 100, a door inner liner located inside the housing 100, an upper end cover, a lower end cover, and an insulation layer located between the door shell, the door inner liner, the upper end cover, and the lower end cover. Typically, the insulation layer is filled with foam. The housing 100 has a chamber, which includes a component storage cavity for refrigerator components, such as a compressor, and a storage space for food, etc. The storage space can be divided into multiple storage chambers, which can be configured as a refrigerator, a freezer, or a temperature-changing chamber (also known as a fresh-keeping chamber) depending on their use. Each storage chamber corresponds to one or more doors, which can be pivotally mounted at the opening of the housing or opened in a drawer-like manner to enable drawer-style storage.

[0212] Specifically, the back of the egg freshness detection device is provided with a connection mechanism 8 for connecting to a refrigerator. Figure 13 As shown, the refrigerator body 100 or the second door 200 is provided with a mounting groove 300 on the back side for accommodating the egg freshness detection device. Figure 14As shown, the egg freshness detection device is arranged on the box body 100 or the second door body 200 of the refrigerator through the connecting mechanism 8, so that the storage chamber of the refrigerator can accommodate the egg freshness detection device. The controller of the egg freshness detection device is connected to the controller of the refrigerator, so that the controller of the refrigerator supplies power (12V) to the egg freshness detection device. Since the egg freshness detection device is only powered on during each detection (the detection time is about 5s), the egg freshness detection device only increases the energy consumption of the refrigerator very little, and has the application prospect of being mounted on the refrigerator.

[0213] Compared with the prior art, the refrigerator provided by the embodiment of the present invention first obtains a first light intensity difference by detecting the color value of the egg to be tested, and obtains a second light intensity difference by detecting the distance between the movable component and the side of the shell below the placement position. The first light intensity difference and the second light intensity difference are then used to calibrate the light intensity of the light source after passing through the egg to be tested, and the transmittance of the egg to be tested is obtained according to the calibrated light intensity. Finally, the freshness level of the egg to be tested is detected according to the transmittance. This can eliminate the influence of the egg color and egg size on the egg transmittance, greatly improve the accuracy of the egg freshness detection results, and has a fast detection speed, meeting user needs.

[0214] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. An egg freshness detection device, characterized in that: include: The shell is provided with a placement position for placing eggs; A light source component is disposed in the housing and is used to emit light to illuminate the eggs; a light sensor disposed in the housing and opposite to the light source component, for detecting the light intensity of the light source after passing through the egg; A color sensor is provided in the housing and is arranged opposite to the light source component, and is used to detect the color value of the egg; a moving component, disposed in the housing and above the placement position, and movable toward the placement position; a distance measuring sensor, provided on the moving component, for detecting the distance between the moving component and a surface of the housing below the placement position; a controller configured to, when detecting that the egg to be tested is in the placement position, control the movable member to move toward the placement position so that the movable member is close to one end of the egg to be tested, and obtain the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position; controlling the light source of the light source component to illuminate the egg to be tested, and obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor; Calculating a first light intensity difference value based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference value based on the distance and a pre-established correspondence between distance differences and light intensity differences; Calibrate the light intensity using the first light intensity difference and the second light intensity difference, and calculate the light transmittance of the egg to be tested according to the calibrated light intensity; The freshness level of the egg to be tested is detected according to the transmittance and the pre-established correspondence between the transmittance range and the freshness level.

2. The egg freshness detection device according to claim 1, characterized in that: Before detecting the freshness level of the egg to be tested, the controller is further configured to: For each sample egg, when it is detected that the sample egg is in the placement position, controlling the light source of the light source component to illuminate the sample egg, obtaining a first light intensity of the light source after passing through the sample egg detected by the light sensor and a first color value of the sample egg detected by the color sensor; Calculating each first grayscale value according to each first color value; Taking the first grayscale value of any sample egg as a reference grayscale value and the first light intensity thereof as a first reference light intensity, calculating, for each of the remaining sample eggs, a grayscale difference between the first grayscale value and the reference grayscale value, and a third light intensity difference between the first light intensity thereof and the first reference light intensity; A correspondence between grayscale differences and light intensity differences is established according to all the grayscale differences and all the third light intensity differences.

3. The egg freshness detection device according to claim 2, characterized in that: Calculating the first light intensity difference according to the grayscale value calculated using the color value and a pre-established correspondence between the grayscale difference and the light intensity difference includes: Calculating the grayscale value of the egg to be tested according to the color value; Calculating a grayscale difference between the grayscale value and the reference grayscale value; The grayscale difference is substituted into the corresponding relationship between the grayscale difference and the light intensity difference to obtain a first light intensity difference.

4. The egg freshness detection device according to claim 1, characterized in that: Before detecting the freshness level of the egg to be tested, the controller is further configured to: For each sample egg, when it is detected that the sample egg is in the placement position, the movable component is controlled to move toward the placement position so that the movable component is close to one end of the sample egg, a first distance between the movable component and a surface of the housing below the placement position is obtained as detected by the distance measuring sensor, and the light source of the light source component is controlled to illuminate the sample egg, and a second light intensity of the light source after passing through the sample egg is obtained as detected by the light sensor; Taking the first distance of any sample egg as a reference distance and the second light intensity thereof as a second reference light intensity, calculating the distance difference between the first distance and the reference distance, and the fourth light intensity difference between the second light intensity and the second reference light intensity, for each of the remaining sample eggs; A correspondence between distance differences and light intensity differences is established according to all the distance differences and all the fourth light intensity differences.

5. The egg freshness detection device according to claim 4, characterized in that: Calculating a second illumination intensity difference according to the distance and a pre-established correspondence between the distance difference and the illumination intensity difference includes: Calculating a distance difference between the distance and the reference distance; Substitute the distance difference into the corresponding relationship between the distance difference and the light intensity difference to obtain a second light intensity difference.

6. The egg freshness detection device according to claim 1, characterized in that: The light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component. The light intensity is calibrated using the first light intensity difference and the second light intensity difference, and the light transmittance of the egg to be tested is calculated based on the calibrated light intensity, comprising: Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity; The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

7. The egg freshness detection device according to claim 1, characterized in that: The light source component is arranged below the placement position; The light sensor is provided on the movable component, and the light sensor and the light source component are arranged opposite to each other in the height direction of the placement position; The color sensor is arranged on the moving component.

8. A method for detecting the freshness of eggs, characterized in that: Applied to the egg freshness detection device according to claim 1, the egg freshness detection method comprises: When it is detected that the egg to be tested is in the placement position, the movable member is controlled to move toward the placement position so that the movable member is close to one end of the egg to be tested, and the distance detected by the distance measuring sensor between the movable member and a surface of the housing below the placement position is obtained; controlling the light source of the light source component to illuminate the egg to be tested, and obtaining the light intensity of the light source after passing through the egg to be tested detected by the light sensor and the color value of the egg to be tested detected by the color sensor; Calculating a first light intensity difference value based on a grayscale value calculated using the color value and a pre-established correspondence between grayscale differences and light intensity differences, and calculating a second light intensity difference value based on the distance and a pre-established correspondence between distance differences and light intensity differences; Calibrate the light intensity using the first light intensity difference and the second light intensity difference, and calculate the light transmittance of the egg to be tested according to the calibrated light intensity; The freshness level of the egg to be tested is detected according to the transmittance and the pre-established correspondence between the transmittance range and the freshness level.

9. The egg freshness detection method according to claim 8, characterized in that: The light sensor is further configured to detect an initial light intensity of the light source emitted by the light source component. The light intensity is calibrated using the first light intensity difference and the second light intensity difference, and the light transmittance of the egg to be tested is calculated based on the calibrated light intensity, comprising: Adding the first light intensity difference, the second light intensity difference, and the light intensity to obtain the calibrated light intensity; The light transmittance of the egg to be tested is obtained by dividing the calibrated light intensity by the initial light intensity of the light source emitted by the light source component.

10. A refrigerator, characterized in that: The invention comprises a box body and an egg freshness detection device according to any one of claims 1 to 7, wherein the egg freshness detection device is arranged in the refrigerator.

Citation Information

Patent Citations

  • Light sensation sensor calibration method and terminal

    CN106802183A

  • A nondestructive testing and automatic grading method for poultry egg surface cracks

    CN109685786A

  • Egg food freshness detection device and refrigerator comprising same

    CN217423708U