CN113933305A - Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone - Google Patents

Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone Download PDF

Info

Publication number
CN113933305A
CN113933305A CN202111342051.9A CN202111342051A CN113933305A CN 113933305 A CN113933305 A CN 113933305A CN 202111342051 A CN202111342051 A CN 202111342051A CN 113933305 A CN113933305 A CN 113933305A
Authority
CN
China
Prior art keywords
thin
skinned fruit
rgb
skinned
fruit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111342051.9A
Other languages
Chinese (zh)
Other versions
CN113933305B (en
Inventor
吴晶晶
李振兴
李梦晗
谢文喆
王继成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangnan University
Original Assignee
Jiangnan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangnan University filed Critical Jiangnan University
Priority to CN202111342051.9A priority Critical patent/CN113933305B/en
Publication of CN113933305A publication Critical patent/CN113933305A/en
Application granted granted Critical
Publication of CN113933305B publication Critical patent/CN113933305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/01Arrangements or apparatus for facilitating the optical investigation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/47Scattering, i.e. diffuse reflection
    • G01N21/4738Diffuse reflection, e.g. also for testing fluids, fibrous materials
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N2021/8466Investigation of vegetal material, e.g. leaves, plants, fruits

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The invention relates to a sugar degree nondestructive measurement method of a thin-skinned fruit based on a smart phone, which comprises the steps of selecting an interested area of the thin-skinned fruit, and emitting a visible light source and infrared light sources with different wave bands to enable the visible light source and the infrared light sources to reach the surface layer of the thin-skinned fruit and generate diffuse reflection; acquiring photos of the region of interest of the thin-skinned fruit, which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment; the mobile phone extracts the RGB value of the interested region of the thin-skinned fruit in each picture, an RGB-brix model is constructed based on the RGB value of the interested region of the thin-skinned fruit, and the brix value of the interested region of the thin-skinned fruit is obtained according to the RGB-brix model. The method directly utilizes the correlation between the RGB value of the mobile phone picture and the sugar content of the thin-skinned fruit, omits complex equipment such as a spectrometer and the like, simplifies a detection system, reduces the data processing amount, improves the detection efficiency, is quick and accurate, and has wide application market and prospect.

Description

Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone
Technical Field
The invention relates to the technical field of agricultural product detection, in particular to a sugar degree nondestructive measurement method and system for thin-skinned fruits based on a smart phone.
Background
China is one of the important fruit producing countries in the world, in recent years, with the improvement of living standard of people and the increase of the yield of various fruits, the consumption of the fruits is changed from 'quantity type' to 'quality type', the demand of people for the quality of the fruits is higher and higher, wherein the sugar degree of the fruits is taken as a main factor of the quality of the fruits and has an important position in the fruit detection technology. Most of the traditional fruit sugar degree detection methods are destructive detection, the measurement of the internal quality of fruits wastes time and labor, and only spot check can be performed. In order to solve the problem, the nondestructive testing of the fruit quality by using the hyperspectral imaging technology has been realized in recent two years, but the nondestructive testing method in the prior art still has the following problems: the nondestructive testing method has higher requirements on hardware, can realize fruit quality testing by usually needing a hyperspectral imaging system or a spectrometer to be matched with specific software, and has poor transportability; moreover, the nondestructive testing method usually needs to utilize a large amount of spectral data, increases the burden of data processing, and is inconvenient for rapid testing.
Therefore, in order to solve these limitations, it is necessary to optimize the hardware device design and perform the simplest processing on it, so as to enhance the portability of the hardware device; complex equipment such as a spectrometer and the like is also needed to be removed, and a detection system is simplified, so that the detection process is convenient, quick and easy to operate while the accuracy is ensured.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the technical defects in the prior art, and provide a thin-skinned fruit sugar content nondestructive measurement method and system based on a smart phone,
in order to solve the technical problem, the invention provides a non-destructive measurement method for sugar content of thin-skinned fruits based on a smart phone, which comprises the following steps:
s100: selecting an interested area of the thin-skinned fruit, and emitting a visible light source and infrared light sources with different wave bands to enable the visible light source and the infrared light sources to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
s200: acquiring photos of the region of interest of the thin-skinned fruit, which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
s300: extracting the RGB value of the interested region of the thin-skinned fruit in each picture, constructing an RGB-brix model based on the RGB value of the interested region of the thin-skinned fruit, and obtaining the brix value of the interested region of the thin-skinned fruit according to the RGB-brix model.
In one embodiment of the present invention, in S1, the visible light source has a rated voltage of 10V or less and a rated power of 5W or less; the rated voltage of the infrared light sources in different wave bands is below 10V, and the rated power of the infrared light sources is below 10W.
In one embodiment of the present invention, in S2, the method for obtaining a photo of the diffuse reflection of the region of interest of the thin-skinned fruit under the irradiation of the visible light source and the infrared light sources with different wave bands in the dark environment includes:
the method comprises the steps of shooting light of visible light after diffuse reflection occurs on the surface layer of the thin-skinned fruit by using a smart phone in a shooting mode, and shooting light of infrared light of different wave bands after diffuse reflection occurs on the surface layer of the thin-skinned fruit in a professional mode under fixed parameters.
In one embodiment of the present invention, in S3, the method for extracting RGB values of the region of interest of the thin-skinned fruit in each photo includes:
dividing a square area with the size of M multiplied by N pixels by using the middle point of the pixel of the image shot by the mobile phone as a central coordinate by the mobile phone APP; and averaging the RGB values of all the pixel values in the area to obtain an average RGB value.
In one embodiment of the present invention, in S3, the method for constructing an RGB-brix model based on RGB values of the thin-skinned fruit region of interest includes:
the sugar degree of the interested area of the thin-skin fruit is measured by a sugar degree meter, and the measured value is used as a real sugar degree value. Combining the corresponding average RGB values to construct an RGB-brix value database;
and fitting the average RGB value and the corresponding real sugar degree value by utilizing an RGB-sugar degree value database to obtain an RGB-sugar degree model.
In one embodiment of the present invention, in S3, the method for obtaining the brix value of the thin-skinned fruit region of interest according to the RGB-brix model comprises:
the mobile phone shoots pictures of the interested region of the thin-skinned fruit to be detected under different light sources, the mobile phone APP loads the pictures, the RGB value is calculated and substituted into the RGB-brix model to calculate the output value of the model, and the output value is the brix value of the interested region of the thin-skinned fruit to be detected.
In addition, the invention also provides a thin-skinned fruit sugar degree nondestructive measurement system based on the smart phone, which comprises:
the light source module is used for emitting a visible light source and infrared light sources with different wave bands to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
the device comprises a photo acquisition module, a light source module and a control module, wherein the photo acquisition module is used for acquiring photos of the region of interest of the thin-skinned fruit which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
the intelligent mobile phone processing module is used for extracting the RGB value of the thin-skinned fruit interesting region in each picture, constructing an RGB-brix model based on the RGB value of the thin-skinned fruit interesting region, and obtaining the brix value of the thin-skinned fruit interesting region according to the RGB-brix model.
In one embodiment of the invention, in the light source module, the rated voltage of the visible light source is below 10V, and the rated power of the visible light source is below 5W; the rated voltage of the infrared light sources in different wave bands is below 10V, and the rated power of the infrared light sources is below 10W.
In an embodiment of the present invention, the photo acquisition module is further configured to:
the method comprises the steps of shooting light of visible light after diffuse reflection occurs on the surface layer of the thin-skinned fruit by using a smart phone in a shooting mode, and shooting light of infrared light of different wave bands after diffuse reflection occurs on the surface layer of the thin-skinned fruit in a professional mode under fixed parameters.
In an embodiment of the present invention, the smartphone processing module is further configured to:
selecting an M multiplied by N pixel region in the center of the region of interest of the thin-skinned fruit in each picture, calculating an average RGB value of all pixel values in the region, measuring the sugar degree of the region of interest of the thin-skinned fruit by using a sugar degree meter, and taking the measured value as a real sugar degree value;
and fitting the obtained average RGB value of the pixel values with the corresponding real sugar degree value to obtain an RGB-sugar degree model.
In an embodiment of the present invention, the smartphone processing module is further configured to:
and taking the RGB value of the interested region of the thin-skinned fruit as an input value, and calculating by using an RGB-brix model to obtain an output value of the model, wherein the output value is the brix value of the interested region of the thin-skinned fruit.
Moreover, the invention also provides a smart phone APP for realizing the non-destructive measurement method for the sugar content of the thin-skinned fruit based on the smart phone.
Compared with the prior art, the technical scheme of the invention has the following advantages:
according to the method, firstly, the correlation between the RGB value of the mobile phone picture and the characteristic spectrum and the correlation between the characteristic spectrum and the sugar content of the thin-skinned fruit are utilized, the intermediate variable, namely the characteristic spectrum, is removed, the correlation between the RGB value of the mobile phone picture and the sugar content of the thin-skinned fruit is directly utilized, complex equipment such as a spectrometer and the like is omitted, a detection system is simplified, meanwhile, the data processing amount is reduced, the detection efficiency is improved, and the method is quick and accurate; secondly, based on smart mobile phone imaging system and cell-phone APP to thin skin fruit sugar degree carry out nondestructive test system with low costs, the device is small, and is small and exquisite light, and portability is strong, has extensive application market and prospect.
Drawings
In order that the present disclosure may be more readily and clearly understood, reference is now made to the following detailed description of the embodiments of the present disclosure taken in conjunction with the accompanying drawings, in which
Fig. 1 is a schematic flow chart of a smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of an actual device for implementing a smartphone-based nondestructive measurement method for sugar content of thin-skinned fruits according to an embodiment of the present invention.
Fig. 3 is a schematic expanded structural diagram of an actual device for implementing a smartphone-based nondestructive measurement method for sugar content of thin-skinned fruits according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a structure of a reflection light path according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a smartphone-based nondestructive measurement system for sugar content of thin-skinned fruit according to an embodiment of the present invention.
Fig. 6 is a schematic circuit diagram according to an embodiment of the present invention.
Fig. 7 is a schematic circuit diagram according to an embodiment of the present invention.
Description of reference numerals: 1. a light source module; 2. a photo acquisition module; 3. a smart phone processing module; 4. a warm white LED visible light source; 5. a near infrared light source with a waveband of 850nm to 855 nm; 6. a near infrared light source with a wave band of 940nm to 945 nm; 7. a warm white LED visible light source switch; 8. a near infrared light source switch with a waveband of 850nm to 855 nm; 9. a near-infrared light source switch with a wave band of 940nm to 945 nm; 10. detecting holes for the thin-skinned fruits; 11. a mobile phone photographing hole; 12. a table top; 13. an apple region of interest; 14. a 3.2V rechargeable lithium battery; 15. a 3.7V rechargeable lithium battery.
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
Example one
Referring to fig. 1, an embodiment of the present invention provides a method for nondestructive measurement of sugar content of a thin-skinned fruit based on a smart phone, including the following steps:
s100: selecting an interested area of the thin-skinned fruit, and emitting a visible light source and infrared light sources with different wave bands to enable the visible light source and the infrared light sources to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
s200: acquiring photos of the region of interest of the thin-skinned fruit, which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
s300: extracting the RGB value of the interested region of the thin-skinned fruit in each picture, constructing an RGB-brix model based on the RGB value of the interested region of the thin-skinned fruit, and obtaining the brix value of the interested region of the thin-skinned fruit according to the RGB-brix model.
In the nondestructive measurement method for sugar content of thin-skinned fruit based on the smart phone, in S1, the rated voltage of the visible light source is 10V or less, and the rated power thereof is 5W or less; the rated voltage of the infrared light sources in different wave bands is below 10V, and the rated power of the infrared light sources is below 10W.
In the nondestructive measurement method for sugar content of thin-skinned fruit based on the smart phone, preferably, 3 LED light sources can be selected in the embodiment, which are warm white LED visible light lamp beads with a wave band of 2800-. Wherein the rated voltage of the warm white LED visible light is 3.0-3.4V, and the rated power is 1W; the rated voltage of 850-855nm band near infrared light is 1.6-2.2V, and the rated power is 3W; the rated voltage of the 940-945nm band near infrared light is 1.3-1.8V, and the rated power is 3W.
In the thin-peel fruit sugar content nondestructive measurement method based on the smart phone, in order to ensure that the light source outputs stable power, the voltage stabilizer can be added to ensure that the light source outputs stable power, and the influence of the power consumption of the lithium battery on the power of the light source is reduced.
In the nondestructive measurement method for the sugar content of the thin-skinned fruit based on the smart phone, in S2, the method for obtaining the photo of the diffuse reflection of the interested region of the thin-skinned fruit under the irradiation of the visible light source and the infrared light sources with different wave bands in the dark environment includes:
the method comprises the steps of shooting light of visible light after diffuse reflection occurs on the surface layer of the thin-skinned fruit by using a smart phone in a shooting mode, and shooting light of infrared light of different wave bands after diffuse reflection occurs on the surface layer of the thin-skinned fruit in a professional mode under fixed parameters.
In the nondestructive measurement method for sugar content of thin-skinned fruit based on the smart phone, preferably, in the embodiment, when the warm white LED visible light irradiates the apple, the mobile phone camera takes a picture in a picture taking mode; when the apples are irradiated by near infrared light in two wave bands of 850-855nm and 940-945nm, the mobile phone camera adopts a professional mode for photographing, and the parameters are as follows: sensitivity (ISO) set to 1600; the integration time (S) is set to 1.
In the nondestructive measurement method for the sugar content of the thin-skinned fruit based on the smart phone, in S3, the method for extracting the RGB values of the region of interest of the thin-skinned fruit in each photo includes:
and calling a library function of MATLAB in the smart phone APP to extract the RGB value of the photo region of interest.
In the nondestructive measurement method for the sugar content of the thin-skinned fruit based on the smart phone, in S3, the method for constructing the RGB-sugar content model based on the RGB values of the region of interest of the thin-skinned fruit comprises:
s310: selecting an M multiplied by N pixel region in the center of the region of interest of the thin-skinned fruit in each picture, calculating an average RGB value of all pixel values in the region, measuring the sugar degree of the region of interest of the thin-skinned fruit by using a sugar degree meter, and taking the measured value as a real sugar degree value;
s320: and fitting the obtained average RGB value of the pixel values with the corresponding real sugar degree value to obtain an RGB-sugar degree model.
In the non-destructive measurement method for sugar content of thin-skinned fruit based on the smart phone, as preferable, the specific content of the RGB-sugar content model constructed in the embodiment is as follows: firstly, a picture shot under the irradiation of three light sources is marked as I1,I2And I and3subscripts "1", "2", and "3" respectively represent images under infrared 1, infrared 2, and warm white LED light sources, each image being a color image having three color channels Red, Green, and Blue, R respectively1,G1,B1,R2,G2,B2And R3,G3,B3. Taking an apple as an example, selecting 350X 350 images of the center of the apple region of interest in each picturePixel region and calculating average RGB value of all pixel values in the region, r1,g1,b1,r2,g2,b2And r3,g3,b3(ii) a The X apples are respectively photographed, and the data obtained by calculation is (r)1k,g1k,b1k,r2k,g2k,b2k,r3k,g3k,b3kK ═ 1, …, X); then, the sugar degree of the region of interest of X apples is measured by a sugar degree meter (high-precision sugar degree display meter) as a true sugar degree value Tk(k ═ 1, …, X) in Brix; finally, according to the obtained pixel RGB value (r)1k,g1k,b1k,r2k,g2k,b2k,r3k,g3k,b3kK 1, …, X) and corresponding brix value Tk(k ═ 1, …, X), using a multiple linear regression model to model: y is 15.806-12.160 xr1-13.100×g1+13.992×b1-27.991×r2+70.833×g2-0.848×b2+5.656×r3-7.022×g3-3.495×b3+7.128×r1×g1×b1-2.870×r2×g2×b2-4.0790×r3×g3×b3
In the nondestructive measurement method for the brix of the thin-skinned fruit based on the smart phone, in S3, the method for obtaining the brix value of the region of interest of the thin-skinned fruit according to the RGB-brix model includes:
and taking the RGB value of the interested region of the thin-skinned fruit as an input value, and calculating by using an RGB-brix model to obtain an output value of the model, wherein the output value is the brix value of the interested region of the thin-skinned fruit.
In the nondestructive measurement method of the sugar content of the thin-skinned fruit based on the smart phone, firstly, the correlation between the RGB value of the picture of the mobile phone and the characteristic spectrum and the correlation between the characteristic spectrum and the sugar content of the thin-skinned fruit are utilized, an intermediate variable, namely the characteristic spectrum is removed, the correlation between the RGB value of the picture of the mobile phone and the sugar content of the thin-skinned fruit is directly utilized, complex equipment such as a spectrometer is omitted, a detection system is simplified, meanwhile, the data processing amount is reduced, the detection efficiency is improved, and the method is rapid and accurate; secondly, based on smart mobile phone imaging system and cell-phone APP to thin skin fruit sugar degree carry out nondestructive test system with low costs, the device is small, and is small and exquisite light, and portability is strong, has extensive application market and prospect.
Example two
In the following, a nondestructive measurement system for sugar content of thin-skinned fruit based on a smart phone disclosed in the second embodiment of the present invention is introduced, and a nondestructive measurement system for sugar content of thin-skinned fruit based on a smart phone described in the following and a nondestructive measurement method for sugar content of thin-skinned fruit based on a smart phone described in the foregoing can be referred to correspondingly.
Referring to fig. 5, a second embodiment of the present invention provides a system for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone, including:
the light source module 1 is used for emitting a visible light source and infrared light sources with different wave bands to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
the photo acquisition module 2 is used for acquiring photos of the region of interest of the thin-skinned fruit, which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
the intelligent mobile phone processing module 3 is used for extracting the RGB value of the thin-skin fruit interesting region in each picture, constructing an RGB-sugar degree model based on the RGB value of the thin-skin fruit interesting region, and obtaining the sugar degree value of the thin-skin fruit interesting region according to the RGB-sugar degree model.
In the nondestructive measurement system for the sugar content of the thin-skinned fruit based on the smart phone, in the light source module 1, the rated voltage of a visible light source is below 10V, and the rated power of the visible light source is below 5W; the rated voltage of the infrared light sources in different wave bands is below 10V, and the rated power of the infrared light sources is below 10W.
In the non-destructive thin-skinned fruit brix measurement system based on the smart phone of the present disclosure, the photo acquisition module 2 is further configured to take the light of the visible light after the diffuse reflection occurs on the surface layer of the thin-skinned fruit in the photographing mode by using the smart phone, and take the light of the infrared light of different bands after the diffuse reflection occurs on the surface layer of the thin-skinned fruit in the professional mode under the fixed parameters.
In the thin-skinned fruit brix nondestructive measurement system based on the smart phone of the present disclosure, the smart phone processing module 3 is further configured to invoke the smart phone APP to extract the RGB values of the photo interest regions.
In the nondestructive measurement system for the sugar content of the thin-skinned fruit based on the smart phone, the smart phone processing module 3 is further configured to select an M × N pixel region in the region of interest of the thin-skinned fruit in each picture, calculate an average RGB value of all pixel values in the region, measure the sugar content of the region of interest of the thin-skinned fruit by using a sugar content meter, and take a measured value of the measured value as a real sugar content value; and fitting the obtained average RGB value of the pixel values with the corresponding real sugar degree value to obtain an RGB-sugar degree model.
In the nondestructive measurement system for the sugar content of the thin-skinned fruit based on the smart phone, the smart phone processing module 3 is further configured to use the obtained RGB values of the region of interest of the thin-skinned fruit as input values, and calculate an output value of the model by using an RGB-sugar content model, where the output value is the sugar content value of the region of interest of the thin-skinned fruit.
Fig. 2 and fig. 3 are schematic structural diagrams of an actual device for realizing smartphone-based sugar content nondestructive measurement of thin-skinned fruit according to an embodiment of the present invention. The device comprises the actual design of the light source module and the actual design of the photo taking module.
In the preferred embodiment of the present invention, in the practical design of the light source module 1, 6 light sources are uniformly arranged on the inclined table 12 as shown in fig. 3, wherein the angle between each two adjacent light sources and the line connecting the centers of the inclined table 12 is 60 degrees, and the inclination angle of the inclined table 12 is just enough to make the light of each light source irradiate the center of the thin-skinned fruit detection hole 10.
In the preferred embodiment of the present invention, in the practical design of the light source module 1, the circuit connection of the light sources takes into consideration the rated voltage of each light source, as shown in fig. 6, so that two warm white LED visible light sources 4 are connected in parallel and then connected in series with a switch 7 on both sides of a 3.2V rechargeable lithium battery 14, and two near infrared light sources 6 with the wavelength range of 940nm to 945nm are connected in series and then connected in series with a switch 9 on both sides of the 3.2V rechargeable lithium battery 14; as shown in FIG. 7, two near infrared light sources 5 with a wavelength range of 850nm to 855nm are connected in series and then connected in series with a switch 8 to both sides of a 3.7V rechargeable lithium battery 15.
In a preferred embodiment of the present invention, in the actual design of the photo acquisition module 2, when taking a picture of an apple, the area of interest of the apple is aligned with the thin-skinned fruit inspection hole 10 as shown in fig. 2; the mobile phone is fixed at a designated position, so that the camera is aligned with the mobile phone photographing hole 11, and the structural schematic diagram of the reflection light path is shown in fig. 4 during photographing, so that light can be transmitted to the mobile phone photographing hole 11 after being reflected on the surface layer of the apple region of interest 13, and the mobile phone camera can receive light signals.
In the nondestructive measurement system for the sugar content of the thin-skinned fruit based on the smart phone, firstly, the correlation between the RGB value of the picture of the mobile phone and the characteristic spectrum and the correlation between the characteristic spectrum and the sugar content of the thin-skinned fruit are utilized, an intermediate variable, namely the characteristic spectrum is removed, the correlation between the RGB value of the picture of the mobile phone and the sugar content of the thin-skinned fruit is directly utilized, complex equipment such as a spectrometer is omitted, a detection system is simplified, meanwhile, the data processing amount is reduced, the detection efficiency is improved, and the method is fast and accurate; secondly, based on smart mobile phone imaging system and cell-phone APP to thin skin fruit sugar degree carry out nondestructive test system with low costs, the device is small, and is small and exquisite light, and portability is strong, has extensive application market and prospect.
The system for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone in this embodiment is used to implement the foregoing method for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone, so that the specific implementation of the system can be found in the foregoing section of the embodiment of the method for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone, and therefore, the specific implementation thereof can refer to the description of the corresponding section of the embodiment, and will not be further described herein.
In addition, since the system for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone of the present embodiment is used for implementing the method for nondestructive measurement of sugar content of thin-skinned fruit based on a smart phone, the effect corresponds to the effect of the method described above, and details are not described here.
EXAMPLE III
The embodiment of the invention also provides a smart phone APP for realizing the nondestructive measurement method of the sugar content of the thin-skinned fruit based on the smart phone, and the specific method and the system for realizing the nondestructive measurement of the sugar content of the thin-skinned fruit by the smart phone APP can be described with reference to the first embodiment and the second embodiment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications of the invention may be made without departing from the spirit or scope of the invention.

Claims (10)

1. A non-destructive measurement method for sugar content of thin-skinned fruits based on a smart phone is characterized by comprising the following steps:
s100: selecting an interested area of the thin-skinned fruit, and emitting a visible light source and infrared light sources with different wave bands to enable the visible light source and the infrared light sources to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
s200: acquiring photos of the region of interest of the thin-skinned fruit, which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
s300: extracting the RGB value of the interested region of the thin-skinned fruit in each picture, constructing an RGB-brix model based on the RGB value of the interested region of the thin-skinned fruit, and obtaining the brix value of the interested region of the thin-skinned fruit according to the RGB-brix model.
2. The smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to claim 1, characterized in that: at S1, the visible light source has a rated voltage of 10V or less and a rated power of 5W or less; the rated voltage of the infrared light sources in different wave bands is below 10V, and the rated power of the infrared light sources is below 10W.
3. The smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to claim 1, characterized in that: in S2, the method for obtaining a photo of the diffuse reflection of the region of interest of the thin-skinned fruit under the irradiation of the visible light source and the infrared light sources with different wave bands in the dark environment includes:
the method comprises the steps of shooting light of visible light after diffuse reflection occurs on the surface layer of the thin-skinned fruit by using a smart phone in a shooting mode, and shooting light of infrared light of different wave bands after diffuse reflection occurs on the surface layer of the thin-skinned fruit in a professional mode under fixed parameters.
4. The smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to claim 1, characterized in that: in S3, the method for extracting RGB values of the region of interest of the thin-skinned fruit in each photo includes:
dividing a square area with the size of M multiplied by N pixels by using the middle point of the pixel of the image shot by the mobile phone as a central coordinate by the mobile phone APP; and averaging the RGB values of all the pixel values in the area to obtain an average RGB value.
5. The smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to claim 1, characterized in that: in S3, the method for constructing an RGB-brix model based on the RGB values of the thin-skinned fruit region of interest includes:
the sugar degree of the interested area of the thin-skin fruit is measured by a sugar degree meter, and the measured value is used as a real sugar degree value. Combining the corresponding average RGB values to construct an RGB-brix value database;
and fitting the average RGB value and the corresponding real sugar degree value by utilizing an RGB-sugar degree value database to obtain an RGB-sugar degree model.
6. The smartphone-based nondestructive measurement method for sugar content of thin-skinned fruit according to claim 5, characterized in that: in S3, the method for obtaining the brix value of the region of interest of the thin-skinned fruit according to the RGB-brix model comprises:
the mobile phone shoots pictures of the interested region of the thin-skinned fruit to be detected under different light sources, the mobile phone APP loads the pictures, the RGB value is calculated and substituted into the RGB-brix model to calculate the output value of the model, and the output value is the brix value of the interested region of the thin-skinned fruit to be detected.
7. The utility model provides a thin skin fruit sugar content nondestructive measurement system based on smart mobile phone which characterized in that includes:
the light source module is used for emitting a visible light source and infrared light sources with different wave bands to reach the surface layer of the thin-skinned fruit and generate diffuse reflection;
the device comprises a photo acquisition module, a light source module and a control module, wherein the photo acquisition module is used for acquiring photos of the region of interest of the thin-skinned fruit which is subjected to diffuse reflection under the irradiation of a visible light source and infrared light sources with different wave bands in a dark environment;
the intelligent mobile phone processing module is used for extracting the RGB value of the thin-skinned fruit interesting region in each picture, constructing an RGB-brix model based on the RGB value of the thin-skinned fruit interesting region, and obtaining the brix value of the thin-skinned fruit interesting region according to the RGB-brix model.
8. The smartphone-based, non-destructive thin-skinned fruit brix measurement system of claim 7, wherein: the photo acquisition module is further configured to:
the method comprises the steps of shooting light of visible light after diffuse reflection occurs on the surface layer of the thin-skinned fruit by using a smart phone in a shooting mode, and shooting light of infrared light of different wave bands after diffuse reflection occurs on the surface layer of the thin-skinned fruit in a professional mode under fixed parameters.
9. The smartphone-based, non-destructive thin-skinned fruit brix measurement system of claim 7, wherein: the smart phone processing module is further configured to:
selecting an M multiplied by N pixel region in the center of the region of interest of the thin-skinned fruit in each picture, calculating an average RGB value of all pixel values in the region, measuring the sugar degree of the region of interest of the thin-skinned fruit by using a sugar degree meter, and taking the measured value as a real sugar degree value;
and fitting the obtained average RGB value of the pixel values with the corresponding real sugar degree value to obtain an RGB-sugar degree model.
10. A smartphone APP implementing the smartphone-based method for nondestructive measurement of brix of thin-skinned fruit according to any of claims 1-6.
CN202111342051.9A 2021-11-12 2021-11-12 Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone Active CN113933305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111342051.9A CN113933305B (en) 2021-11-12 2021-11-12 Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111342051.9A CN113933305B (en) 2021-11-12 2021-11-12 Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone

Publications (2)

Publication Number Publication Date
CN113933305A true CN113933305A (en) 2022-01-14
CN113933305B CN113933305B (en) 2022-12-20

Family

ID=79286538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111342051.9A Active CN113933305B (en) 2021-11-12 2021-11-12 Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone

Country Status (1)

Country Link
CN (1) CN113933305B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117347312A (en) * 2023-12-06 2024-01-05 华东交通大学 Orange continuous detection method and equipment based on multispectral structured light

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100297291A1 (en) * 2007-09-21 2010-11-25 Suntory Holdings Limited Visible/near-infrared spectrum analyzing method and grape fermenting method
CN103792235A (en) * 2014-01-10 2014-05-14 内蒙古农业大学 Diffuse transmission spectrum and image information fusion method for detecting internal quality of honeydew melons on line and device
CN106067173A (en) * 2016-05-30 2016-11-02 湖南生物机电职业技术学院 The Complexity Measurement lossless detection method of citrusfruit pol
CN108284076A (en) * 2018-01-07 2018-07-17 华东交通大学 A kind of sugar degree sorting unit and method based on sorting line transformation of weighing
CN111982835A (en) * 2020-08-17 2020-11-24 吉林求是光谱数据科技有限公司 Fruit sugar degree nondestructive testing device and method based on silicon-based multispectral chip
CN213715040U (en) * 2020-11-03 2021-07-16 华东交通大学 Portable infrared detection device of thin-skinned fruit sugar degree
CN113340823A (en) * 2021-06-02 2021-09-03 浙江德菲洛智能机械制造有限公司 Rapid nondestructive testing process for sugar content of strawberry

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100297291A1 (en) * 2007-09-21 2010-11-25 Suntory Holdings Limited Visible/near-infrared spectrum analyzing method and grape fermenting method
CN103792235A (en) * 2014-01-10 2014-05-14 内蒙古农业大学 Diffuse transmission spectrum and image information fusion method for detecting internal quality of honeydew melons on line and device
CN106067173A (en) * 2016-05-30 2016-11-02 湖南生物机电职业技术学院 The Complexity Measurement lossless detection method of citrusfruit pol
CN108284076A (en) * 2018-01-07 2018-07-17 华东交通大学 A kind of sugar degree sorting unit and method based on sorting line transformation of weighing
CN111982835A (en) * 2020-08-17 2020-11-24 吉林求是光谱数据科技有限公司 Fruit sugar degree nondestructive testing device and method based on silicon-based multispectral chip
CN213715040U (en) * 2020-11-03 2021-07-16 华东交通大学 Portable infrared detection device of thin-skinned fruit sugar degree
CN113340823A (en) * 2021-06-02 2021-09-03 浙江德菲洛智能机械制造有限公司 Rapid nondestructive testing process for sugar content of strawberry

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117347312A (en) * 2023-12-06 2024-01-05 华东交通大学 Orange continuous detection method and equipment based on multispectral structured light
CN117347312B (en) * 2023-12-06 2024-04-26 华东交通大学 Orange continuous detection method and equipment based on multispectral structured light

Also Published As

Publication number Publication date
CN113933305B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
US10068149B2 (en) Image processing utilizing reference images
CN104168475B (en) A kind of imaging type of digital camera changeable parameters obtains the method for color tristimulus values
KR101624583B1 (en) Urine Examination Method and Related Devices
CN101839979A (en) Method and device for measuring index number of canopy vegetation of crops
CN113933305B (en) Thin-skinned fruit sugar content nondestructive measurement method and system based on smart phone
CN105635533A (en) Snapshot hyperspectral camera with high dynamic response range
US20170214911A1 (en) Image-sticking inspection method for liquid crystal panel and device of the same
CN115100082A (en) High-precision color display system based on hyperspectral camera
CN105115910A (en) Method for detecting protein content distribution in peanuts based on hyperspectral imaging technology
CN110514304B (en) Area array chromaticity measuring device and method
CN109856073A (en) Portable Kiwi berry expands fruit fast non-destructive detection method and device
CN113639881A (en) Color temperature testing method and device, computer readable medium and electronic equipment
Raza et al. Accuracy of hyperspectral imaging systems for color and lighting research
CN206740363U (en) A kind of detection optical system is as the system of matter
CN112098415A (en) Nondestructive testing method for quality of waxberries
CN104458736B (en) A kind of device and detection method for Detecting Pesticide
US20190204154A1 (en) Method and apparatus for combining colorants using camera
CN114166752A (en) Apple lossless sugar degree detector based on smart phone and detection method thereof
CN108985308A (en) The system and method for electric energy meter presentation quality is quickly analyzed based on data mining algorithm
CN217521013U (en) Apple sugar degree nondestructive measurement device based on smart phone
CN206488857U (en) A kind of food temperature detecting system
Manakov Evaluation of computational radiometric and spectral sensor calibration techniques
CN201051074Y (en) Multi-spectrum flesh verdure artificial intelligence measurement system
Lin et al. Portable in vivo measurement of apple sugar content based on mobile phone
TWI494549B (en) A luminance inspecting method for backlight modules based on multiple kernel support vector regression and apparatus thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant