Egg freshness detection device and detection method

By collecting multi-angle two-dimensional images of the egg during its rotation and inverting the three-dimensional information to calculate the volume parameters, the accuracy and efficiency problems of traditional egg freshness detection are solved, and efficient and accurate freshness determination is achieved.

CN111948362BActive Publication Date: 2025-09-23ZHONGKAI UNIV OF AGRI & ENG
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010855219.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-24
Publication Date
2025-09-23
Estimated Expiration
2040-08-24

AI Technical Summary

Technical Problem

Existing egg freshness detection methods require destroying the eggs or are based on single-angle two-dimensional image detection, resulting in poor detection accuracy and low efficiency.

Method used

By collecting multi-angle two-dimensional images during the rotation of the egg, the three-dimensional information of the yolk, air chamber and the whole egg is inverted, the volume parameters are calculated, and the freshness is determined by combining the Hough value.

Benefits of technology

It improves the accuracy and efficiency of egg freshness detection, avoids errors caused by differences in collection angles, and is suitable for use in multiple scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111948362B_ABST
    Figure CN111948362B_ABST
Patent Text Reader

Abstract

The present invention discloses an egg freshness detection device and method. The device comprises a housing and an egg tray module disposed within the housing. The egg tray module comprises two rollers and a motor that drives the rollers. An egg is placed between the two rollers and rotates with the rollers. The housing integrates an image acquisition module, a display module, and a light source. The light intensity of the light source is sufficient to penetrate the egg to be inspected and display information about the yolk and air chamber within the egg. The image acquisition module continuously captures two-dimensional images of the egg as it rotates using its camera and feeds these images back to the display module. The display module's single-chip microcomputer processes the captured two-dimensional images and displays the results on a display screen. After capturing a two-dimensional image of the egg, the device inverts the two-dimensional image to extract three-dimensional information about the yolk, air chamber, and the entire egg, calculates volume parameters, and then calculates the egg freshness based on the volume parameters. This method addresses the problem of errors often occurring in traditional visual inspection and evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of quality inspection equipment, and in particular to an egg freshness inspection device and a inspection method thereof. Background Art

[0002] Eggs are an important part of people's daily diet. They are rich in nutrition, inexpensive and deeply loved by consumers. However, during the production, processing, sales and circulation links, as the storage time increases, the nutritional value and safety of use will gradually decrease, which will harm the interests of consumers. Therefore, detecting the freshness of eggs and predicting their storage time are of great significance for guiding egg storage and ensuring egg quality. During the storage of eggs, the water in the egg will evaporate through the pores of the eggshell, causing the air chamber of the egg to enlarge; the water in the egg white will also transfer to the yolk through the yolk membrane, causing the yolk index to decrease. Therefore, the size of the air chamber, the yolk index, etc. are important indicators for judging the freshness of eggs.

[0003] Traditional egg freshness testing methods typically involve cracking the egg, measuring parameters such as the albumen height, yolk height, and yolk diameter with a vernier caliper, and measuring the albumen pH with a pH meter. While accurate and reliable, these tests are time-consuming, labor-intensive, and inefficient. There are also non-destructive methods for testing egg freshness based on machine vision. These methods typically align a light source, egg, and camera to capture an image of the egg. Image processing algorithms are then used to extract and calculate parameters such as the yolk and air cell to determine egg freshness. However, current machine vision testing methods are mostly based on two-dimensional images of the egg captured at a specific angle, and variations in acquisition angle can affect detection accuracy to a certain extent. Summary of the Invention

[0004] The purpose of the present invention is to overcome the shortcomings and deficiencies of the existing technology and propose an egg freshness detection device and a detection method. After collecting a two-dimensional image of the egg, the three-dimensional information of the yolk, air chamber and whole egg is inverted through the two-dimensional image, and the volume parameters are inverted and calculated. The freshness of the egg is then calculated based on the volume parameters, which can solve the problem that errors are prone to occur in current traditional visual inspection and evaluation.

[0005] To achieve the above objectives, the present invention provides a technical solution: an egg freshness detection device, comprising a housing, characterized in that it also includes an egg tray module disposed within the housing, the egg tray module comprising two side-by-side rollers and a motor for driving the rollers to rotate. The egg to be tested is placed between the two rollers and can rotate with the rollers. The housing integrates an image acquisition module, a display module, and a light source. The light intensity of the light source is sufficient to penetrate the egg to be tested and reflect the yolk and air cell information within the egg. The image acquisition module continuously captures two-dimensional images of the egg during rotation using its camera and feeds these images back to the display module. The single-chip microcomputer of the display module processes the captured two-dimensional images, including extracting two-dimensional contour features of the egg, yolk, and air cell, and the coordinates of the image edge contour points, performing mapping conversion, constructing a three-dimensional multi-contour graph from the two-dimensional image contours, and calculating the volumes of the egg, yolk, and air cell, respectively, to achieve freshness detection. The results are displayed on a display screen.

[0006] Furthermore, the shell is a transparent shell and is equipped with a detachable base and shell cover. The light source is installed on the base and is located below the gap between the two rollers, and its light direction is upward to illuminate the eggs to be inspected. The image acquisition module and display module are installed on the shell cover.

[0007] Furthermore, the base has a built-in power supply battery and is provided with a plurality of heat dissipation holes.

[0008] Furthermore, a control button is provided on the top of the shell cover, and the display screen of the display module is located on the top of the shell cover.

[0009] Furthermore, the shell is designed with an opening and closing door to facilitate the placement and removal of eggs.

[0010] Furthermore, a handle is provided on the shell.

[0011] Furthermore, the light source is an LED lamp bead.

[0012] The present invention also provides a detection method of the egg freshness detection device, comprising the following steps:

[0013] 1) Place the egg to be tested between two rollers with its long axis parallel to the rollers. Start the motor to drive the two rollers to rotate. While the egg rotates, turn on the image acquisition module and light source to capture two-dimensional images of the egg at equally spaced angles. After the egg rotates one full rotation, the captured image is an image of the egg rotating around its long axis, covering the entire surface of the egg.

[0014] 2) After acquiring a series of egg images, the single-chip microcomputer of the display module processes the acquired images, sets a measurement coordinate system in the actual three-dimensional space where the egg is located, and sets an image coordinate system in each picture. The upper left corner of each image is set as the origin, and the image coordinate information of the edge contour points of the three target images of the egg as a whole, the yolk, and the air chamber in each photo is extracted. The mapping between the image coordinate system and the measurement coordinate system in the actual three-dimensional space is further derived through the formula. The column where the long axis of the egg in the image is located is zh, and the long axis of the egg in the measurement coordinate system is the Z axis; therefore, the z axis in the image coordinate system is zh, and the long axis of the egg in the measurement coordinate system is the Z axis. h The column corresponds to the Z axis of the measurement coordinate system. The image is rotated about the Z axis. The relationship between the same point in the target image before and after rotation is as follows:

[0015]

[0016] z'=h max -x

[0017] Where (x, y) is the image coordinate before rotation, x is the column value of the image coordinate and z is the column value of the image coordinate. h The difference between the two, y is 0; (x', y') is the coordinate of the measurement coordinate system after rotation; α is the rotation angle of the image, and the counterclockwise direction is set as the positive direction; h max To detect the maximum row value of the edge of the egg being measured in the image coordinate system; based on formula (1), the coordinates of the three-dimensional wireframe model of the measured target in the measurement coordinate system are obtained;

[0018] 3) After the mapping derivation is completed, the volumes of the yolk, air chamber, and the egg as a whole are calculated based on the following formula (2). Each target along the long axis of the egg is cut into multiple slices, and the slices are approximated as a platform. The volume of each slice is calculated using the platform formula, and the volume of all slices is accumulated to obtain the volume of the measured egg:

[0019]

[0020] Where z is the height of the slice; n is the number of layers; m is an integer, ranging from 1 to n-1; A m 、A m+1 is the area of ​​the mth and m+1th layers;

[0021] 4) After completing the volume calculation, the egg yolk, air chamber, and whole egg volumes are substituted into the formula (3) to calculate the Hough value of the egg. The egg freshness is determined and a consumption prompt is given based on the inspection and egg freshness indicators specified in the egg product standards of the Ministry of Agriculture.

[0022] Ha=p1V e +p2V q +p3V a +q (3)

[0023] Where Ha is the calculated Hough value; V e 、V q 、V a are the volumes of yolk, air chamber and whole egg respectively; p1, p2, p3 are the corresponding volume coefficients of yolk, air chamber and whole egg respectively; q is a constant.

[0024] Furthermore, the indicator representing the freshness of eggs is essentially the corresponding relationship between the freshness of eggs and the Haugh value, which is as follows:

[0025] When the Haugh value is ≥72, the egg is judged to be AA grade freshness, and the consumption indication is high freshness and high nutritional value;

[0026] When the Haugh value is between 60 and 72, the egg is judged to be fresh as Grade A and is edible.

[0027] When the Haugh value is between 30 and 60, the freshness of the egg is judged to be grade B, and the consumption indication is that it is not suitable for consumption.

[0028] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0029] 1. The device of the present invention uses two-dimensional images to invert three-dimensional information of the yolk, air cell, and whole egg, thereby predicting the yolk index and Hough value to determine freshness. Compared with the traditional detection method of taking a two-dimensional image of the egg from a single angle, the device calculates freshness by inverting the volume of the yolk, air cell, and whole egg, avoiding the shortcomings of the traditional method that may affect detection accuracy to a certain extent due to differences in acquisition angles.

[0030] 2. The device of the present invention includes a closed shell to form a stable environment space, which is convenient for stably obtaining clear images of eggs.

[0031] 3. The device of the present invention is easy to carry and does not require the configuration of computers and other equipment. It can be used in many scenarios such as small family farms, wholesale and retail links of farmers' markets, supermarkets, and homes. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a three-dimensional diagram of an egg freshness detection device.

[0033] Figure 2 This is the front view of the egg freshness detection device.

[0034] Figure 3 Schematic diagram of the egg tray module.

[0035] Figure 4 A schematic diagram of the base.

[0036] Figure 5 This is a schematic diagram of the shell cover.

[0037] Figure 6 This is the second schematic diagram of the shell cover. DETAILED DESCRIPTION

[0038] The present invention will be further described below with reference to specific embodiments.

[0039] like Figures 1 to 6 As shown, the egg freshness detection device provided by this embodiment includes a shell 4 and an egg tray module 2 placed in the shell 4, the egg tray module 2 includes two side-by-side rollers 21 and a motor 22 for driving the rollers 21 to rotate, the egg 5 to be detected is placed between the two rollers 21, and the two rollers 21 rotate in the same direction to drive the egg 5 to rotate; the shell 4 is a transparent shell, and is equipped with a detachable base 1 and a shell cover 3, the shell 4 is designed with an opening and closing door 41 for convenient placement and removal of eggs, and the shell 4 is also provided with a handle 42 for easy carrying of the device; a light source 12 and a built-in power supply battery 11 are installed on the base 1, and a plurality of heat dissipation holes are reserved, the light source 12 is specifically a high-brightness LED lamp bead, and is located in the gap between the two rollers 21. Below, its light intensity can penetrate the egg 5 to be tested and reflect its internal yolk information and air chamber information; the shell cover 3 is equipped with an image acquisition module 31, a display module 32 and a control button 33. The image acquisition module 31 continuously captures the two-dimensional image of the egg 5 during rotation through its camera, and feeds it back to the display module 32. The single-chip microcomputer of the display module 32 processes the collected two-dimensional image, including extracting the two-dimensional contour features of the egg as a whole, the yolk, and the air chamber and the coordinates of the image edge contour points, mapping and converting them, constructing a three-dimensional multi-contour graph from the two-dimensional image contour, and then calculating the volumes of the egg as a whole, the yolk, and the air chamber respectively, thereby realizing freshness detection and displaying the results through the display screen of the display module 32.

[0040] The following is a detection method of the egg freshness detection device in this embodiment. The specific process is as follows:

[0041] 1) Place the egg 5 to be inspected between the two rollers 21 with its long axis parallel to the rollers 21. Start the motor 22 to drive the two rollers 21 to rotate. While the egg 5 rotates, turn on the image acquisition module 31 and the light source 12 to capture two-dimensional images of the egg at equally spaced angles. After the egg rotates one circle, the captured image is an image of the egg rotating around its long axis, covering all surface information of the egg.

[0042] 2) After acquiring a series of egg images, the single-chip microcomputer of the display module 32 processes the acquired images, sets a measurement coordinate system in the actual three-dimensional space where the egg is located, and sets an image coordinate system in each picture, sets the upper left corner of each image as the origin, and extracts the image coordinate information of the edge contour points of the three target images of the egg as a whole, the yolk, and the air chamber in each picture. The image coordinate system is further mapped to the measurement coordinate system in the actual three-dimensional space through a formula to deduce that the column where the long axis of the egg in the image is located is zh, and the long axis of the egg in the measurement coordinate system is the Z axis; therefore, the z axis in the image coordinate system is zh, and the long axis of the egg in the measurement coordinate system is the Z axis. h The column corresponds to the Z axis of the measurement coordinate system. The image is rotated about the Z axis. The relationship between the same point in the target image before and after rotation is as follows:

[0043]

[0044] z'=h max -x

[0045] Where (x, y) is the image coordinate before rotation, x is the column value of the image coordinate and z is the column value of the image coordinate. h The difference between the two, y is 0; (x', y') is the coordinate of the measurement coordinate system after rotation; α is the rotation angle of the image, and the counterclockwise direction is set as the positive direction; h max In order to detect the maximum row value of the edge of the egg being measured in the image coordinate system, the coordinates of the three-dimensional wireframe model of the measured target in the measurement coordinate system are obtained based on formula (1).

[0046] 3) After the mapping derivation is completed, the volumes of the yolk, air chamber, and the egg as a whole are calculated based on the following formula (2). Each target along the long axis of the egg is cut into multiple slices, and the slices are approximated as a platform. The volume of each slice is calculated using the platform formula, and the volume of all slices is accumulated to obtain the volume of the measured egg:

[0047]

[0048] Where z is the height of the slice; n is the number of layers; m is an integer, ranging from 1 to n-1; A m 、A m+1 is the layer area of ​​the mth and m+1th layers.

[0049] 4) After completing the volume calculation, the egg yolk, air chamber, and whole egg volumes are substituted into the formula (3) to calculate the Haugh value of the egg. Based on the inspection and egg freshness indicators specified in the Ministry of Agriculture's egg standards (see Table 1 below), the egg freshness is determined and a consumption reminder is given.

[0050] Ha=p1V e +p2V q +p3V a+q (3)

[0051] Where Ha is the calculated Hough value; V e 、V q 、V a are the volumes of yolk, air chamber and whole egg respectively; p1, p2, p3 are the corresponding volume coefficients of yolk, air chamber and whole egg respectively; q is a constant.

[0052] Table 1 Correspondence between egg freshness and Haugh value

[0053] Freshness Hough value Eating tips AA ≥72 High freshness and high nutritional value A-level 60~72 edible Class B 30~60 Not suitable for consumption

[0054] After the test is completed, the test result of the egg freshness will be displayed through the display module 32 in the shell cover 3.

[0055] The above-described embodiments are only preferred embodiments of the present invention and are not intended to limit the scope of implementation of the present invention. Therefore, any changes made based on the shape and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. An egg freshness detection device, comprising a housing, characterized in that: The housing further comprises an egg tray module, the egg tray module comprising two side-by-side rollers and a motor for driving the rollers to rotate. The egg to be tested is placed between the two rollers and can rotate with the rollers. The housing is integrated with an image acquisition module, a display module, and a light source. The light intensity of the light source can penetrate the egg to be tested and reflect the yolk information and air chamber information inside the egg. The image acquisition module continuously captures two-dimensional images of the egg during rotation through its camera and feeds them back to the display module. The single-chip microcomputer of the display module processes the captured two-dimensional images, including extracting two-dimensional contour features of the egg as a whole, the yolk, and the air chamber, and the coordinates of the image edge contour points, performing mapping conversion, constructing a three-dimensional multi-contour graph from the two-dimensional image contours, and then calculating the volumes of the egg as a whole, the yolk, and the air chamber, thereby realizing freshness detection, and displaying the results on a display screen. The egg freshness detection method comprises the following steps: 1) Place the egg to be tested between two rollers with its long axis parallel to the rollers. Start the motor to drive the two rollers to rotate. While the egg rotates, turn on the image acquisition module and light source to capture two-dimensional images of the egg at equally spaced angles. After the egg rotates one full rotation, the captured image is an image of the egg rotating around its long axis, covering the entire surface of the egg. 2) After acquiring a series of egg images, the single-chip microcomputer of the display module processes the acquired images, sets a measurement coordinate system in the actual three-dimensional space where the egg is located, and sets an image coordinate system in each picture. The upper left corner of each image is set as the origin, and the image coordinate information of the edge contour points of the three target images of the egg as a whole, the yolk, and the air chamber in each photo is extracted. The mapping between the image coordinate system and the measurement coordinate system in the actual three-dimensional space is further derived through the formula. The column where the long axis of the egg in the image is located is zh, and the long axis of the egg in the measurement coordinate system is the Z axis; therefore, the z axis in the image coordinate system is zh, and the long axis of the egg in the measurement coordinate system is the Z axis. h The column corresponds to the Z axis of the measurement coordinate system. The image is rotated about the Z axis. The relationship between the same point in the target image before and after rotation is as follows: z'=h max -x Where (x, y) is the image coordinate before rotation, x is the column value of the image coordinate and z is the column value of the image coordinate. h The difference between the two, y is 0; (x′, y′) is the coordinate of the measurement coordinate system after rotation; α is the rotation angle of the image, and the counterclockwise direction is set as the positive direction; h max To detect the maximum row value of the edge of the egg being measured in the image coordinate system; based on formula (1), the coordinates of the three-dimensional wireframe model of the measured target in the measurement coordinate system are obtained; 3) After the mapping derivation is completed, the volumes of the yolk, air chamber, and the egg as a whole are calculated based on the following formula (2). Each target along the long axis of the egg is cut into multiple slices, and the slices are approximated as a platform. The volume of each slice is calculated using the platform formula, and the volume of all slices is accumulated to obtain the volume of the measured egg: Where z is the height of the slice; n is the number of layers; m is an integer, ranging from 1 to n-1; A m 、A m+1 is the area of ​​the mth and m+1th layers; 4) After completing the volume calculation, the egg yolk, air chamber, and whole egg volumes are substituted into the formula (3) to calculate the Hough value of the egg. The egg freshness is determined and a consumption prompt is given based on the inspection and egg freshness indicators specified in the egg product standards of the Ministry of Agriculture. Ha=p1V e +p2V q +p3V a +q (3) Where Ha is the calculated Hough value; V e 、V q 、V a are the volumes of yolk, air chamber and whole egg respectively; p1, p2, p3 are the corresponding volume coefficients of yolk, air chamber and whole egg respectively; q is a constant.

2. The egg freshness detection device according to claim 1, characterized in that: The shell is a transparent shell and is equipped with a detachable base and shell cover. The light source is installed on the base and is located below the gap between the two rollers, and its light direction is upward to illuminate the eggs to be inspected. The image acquisition module and display module are installed on the shell cover.

3. The egg freshness detection device according to claim 2, characterized in that: The base is equipped with a power supply battery and is provided with a plurality of heat dissipation holes.

4. The egg freshness detection device according to claim 2, characterized in that: A control button is provided on the top of the shell cover, and a display screen of the display module is located on the top of the shell cover.

5. The egg freshness detection device according to claim 1, characterized in that: The shell is designed with an opening and closing door to facilitate the placement and removal of eggs.

6. The egg freshness detection device according to claim 1, characterized in that: A handle is provided on the shell.

7. The egg freshness detection device according to claim 1, characterized in that: The light source is an LED lamp bead.

8. The egg freshness detection device according to claim 1, characterized in that: The indicator of egg freshness is essentially the corresponding relationship between egg freshness and Haugh value, as follows: When the Haugh value is ≥72, the egg is judged to be AA grade freshness, and the consumption indication is high freshness and high nutritional value; When the Haugh value is between 60 and 72, the egg is judged to be fresh as Grade A and is edible. When the Haugh value is between 30 and 60, the freshness of the egg is judged to be grade B, and the consumption indication is that it is not suitable for consumption.

Citation Information

Patent Citations

  • Egg freshness detection device

    CN212275719U

  • Automatic spotted-egg detection mechanism and hen egg sorting / packing system equipped therewith

    JP2005127720A

  • KR1018295440000B1