WO2020107965A1 - 电子设备、信息推送方法及相关产品 - Google Patents

电子设备、信息推送方法及相关产品 Download PDF

Info

Publication number
WO2020107965A1
WO2020107965A1 PCT/CN2019/102595 CN2019102595W WO2020107965A1 WO 2020107965 A1 WO2020107965 A1 WO 2020107965A1 CN 2019102595 W CN2019102595 W CN 2019102595W WO 2020107965 A1 WO2020107965 A1 WO 2020107965A1
Authority
WO
WIPO (PCT)
Prior art keywords
target food
detection sensor
substance detection
freshness
color
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.)
Ceased
Application number
PCT/CN2019/102595
Other languages
English (en)
French (fr)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2020107965A1 publication Critical patent/WO2020107965A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/02Food
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/20Scenes; Scene-specific elements in augmented reality scenes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/68Food, e.g. fruit or vegetables

Definitions

  • This application relates to the field of electronic technology, specifically to an electronic device, information pushing method and related products.
  • the embodiments of the present application provide an electronic device, an information push method, and related products, in order to help users better select fruits.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, and a substance detection sensor and a camera connected to the processor, the substance detection sensor is disposed near the camera, wherein,
  • the camera is used to determine the target food
  • the substance detection sensor is used to detect the freshness of the target food
  • the processor is configured to generate and output first preset information according to the freshness.
  • an embodiment of the present application provides an information push method, which is applied to an electronic device.
  • the electronic device includes a substance detection sensor and a camera.
  • the substance detection sensor is disposed near the camera.
  • the method includes:
  • an embodiment of the present application provides an information pushing apparatus, which is applied to an electronic device.
  • the electronic device includes a substance detection sensor and a camera.
  • the substance detection sensor is disposed near the camera.
  • the device includes:
  • a detection module configured to detect the freshness of the target food through the substance detection sensor
  • the output module is configured to generate and output the first preset information according to the freshness.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be processed by the above
  • the above program includes instructions for performing the steps in the second aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in the second aspect.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the second aspect.
  • the computer program product may be a software installation package.
  • FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • 1B is a schematic diagram of a positional relationship between a substance detection sensor and a camera provided by an embodiment of the present application;
  • 1C is a schematic diagram of the positional relationship between another substance detection sensor and a camera provided by an embodiment of the present application;
  • 1D is a schematic structural diagram of a color sensor provided by an embodiment of the present application.
  • 1E is a schematic flowchart of an information pushing method provided by an embodiment of the present application.
  • 1F is a schematic diagram of a substance detection sensor provided by an embodiment of the present application to detect the content of a substance
  • FIG. 1G is an example of an infrared spectrum provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another information pushing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a block diagram of functional modules of an information pushing device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (User Equipment, UE), Mobile Station (MS), terminal equipment, etc.
  • user devices User Equipment, UE
  • MS Mobile Station
  • terminal equipment etc.
  • the devices mentioned above are collectively referred to as electronic devices.
  • FIG. 1A is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 includes a housing 110, a display 120 disposed on the housing 110, and a housing.
  • the main board 130 in the body 110 is provided with a processor 140 and a memory 150.
  • the electronic device is further provided with a substance detection sensor 160, a camera 170, a color sensor 190, etc.
  • the camera 170 and the color sensor 190 are connected to the processor 140.
  • the processor 140 is connected to the display 120.
  • the electronic device 100 further includes a radio frequency system 180 as shown in FIG. 1A.
  • the radio frequency system 180 Including transmitter 181, receiver 182, signal processor 183, where,
  • the camera 170 is used to determine the target food
  • the substance detection sensor 160 is used to detect the freshness of the target food
  • the processor 140 is configured to generate and output first preset information according to the freshness.
  • the display 120 includes a display driving circuit, a display screen and a touch screen, and the display driving circuit is used to control the display screen to perform according to the display data and display parameters (for example, brightness, color, saturation, etc.)
  • the touch screen is used to detect touch operations
  • the display screen is an organic light emitting diode display screen OLED.
  • the camera 170 may be a front camera of the electronic device 100 or a rear camera of the electronic device 100, but whether the camera 170 is a front camera or a rear camera, the substance detection The sensors 160 are all disposed close to the camera 170.
  • the substance detection sensor 160 may be disposed between the camera 160 and the color sensor 190, or,
  • the substance detection sensor 160 is located in the middle of the camera 160 and the color sensor 190, etc., which is not limited herein.
  • the camera may be a single camera or The dual camera, further, the camera may be a visible light camera or an infrared camera.
  • the substance detection sensor 160 can detect a variety of substances, such as water, sugar, blood oxygen, fat, etc., which is not limited here, and because different substances have different absorption capabilities for infrared spectra, the Multiple channels are integrated.
  • the infrared LED lamp in the substance detection sensor 160 emits infrared light.
  • the lighting device in the substance detection sensor 160 reflects the different substances in each channel after being irradiated with different substances. Infrared light of different wavelengths is collected, and the data of the collected infrared light is transmitted to the processor 140, so that the processor 140 draws an infrared spectrum, and analyzes the infrared spectrum by big data to determine the material composition.
  • the shape and size of the main board 130 may be any size and shape that the electronic device 100 can accommodate, and is not limited herein.
  • the processor 140 includes an application processor and a baseband processor.
  • the processor 140 is a control center of the electronic device 100, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software stored in the memory 150
  • the programs and/or modules and the data stored in the memory 150 are called to perform various functions and process data of the electronic device 100, thereby performing overall monitoring on the electronic device 100.
  • the application processor mainly deals with the operating system, user interface and application programs, etc.
  • the baseband processor mainly deals with wireless communication. It can be understood that the above baseband processor may not be integrated into the processor.
  • the memory 150 may be used to store software programs and modules.
  • the processor 140 executes various functional applications and data processing of the electronic device 100 by running the software programs and modules stored in the memory 150.
  • the memory 150 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of electronic devices, and the like.
  • the memory 150 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the surface of the color sensor mentioned in the embodiments of the present application may be covered with a light diffusing material, wherein the light diffusing plate uses chemical or physical means to encounter two refractions along the way using light When the media with different rates (density) are different, the physical phenomena of refraction, reflection and scattering occur.
  • PMMA polymethyl methacrylate
  • PC polycarbonate
  • PS polystyrene
  • PP Polypropylene
  • other substrates are added with inorganic or organic light diffusing agents, or through the array of micro-features on the surface of the substrate to artificially adjust the light, so that the light is refracted, reflected, and scattered in different directions, thereby Change the travel path of light to realize the sufficient dispersion of incident light to produce the effect of optical diffusion.
  • It is generally widely used in liquid crystal display and LED lighting and imaging display systems.
  • the light diffusion material covers the color sensor, it can Light with a larger incident angle, and the light intensity and spectrum sensed by each light spot sensing unit are relatively close.
  • FIG. 1D is a drawing of an RGBW sensor.
  • the RGBW sensor contains four photoelectric sensing circuits, namely four channels of R, G, B, and W, and the surface of the RGBW sensor is covered with light containing diffusion as an example Diffusion plate.
  • the right figure of FIG. 1D shows the wavelength and sensitivity curves of the four channels.
  • the electronic device may collect color data about the target food based on the color sensor.
  • the color sensor may be an RGBW sensor or a color spectrum sensor.
  • RGBW contains 4 color data collection channels. Therefore, the 4 channels can be used to collect different color data respectively.
  • the 4 color data collection channels can be color data of R (red) channel and G (green) channel. Color data of B, B (blue) channel and W (white) channel, and then compare the color data with the standard color card to get the color of the target food.
  • the standard color card can be gray card and Color cards, gray cards can only display black and white colors, color cards can display color, commonly used color cards, such as 24 color cards, 144 color cards.
  • the wavelength receiving range of the color sensor is visible light, and the white LED lamp is emitted, and the wavelength range is 350 nm to 700 nm.
  • the white light source illuminates the skin or the surface of the object.
  • a total of 11 channels of F1-F8, Flicker, Clear, and NIR are integrated inside the chip.
  • the reflection diagram of the full wavelength, each channel has a layer of filter film on it, only allowing the corresponding wavelength by.
  • the 550nm channel only allows the wavelength of 550nm to pass, while the other wavelengths are not received.
  • Each channel collects light of different wavelengths, and uses the energy received by each channel to comprehensively judge the color. In this way, the color of the test object can be achieved.
  • the waveform is as follows: the color of the screen is composed of three colors of RGB light, then the waveform received by the sensor can correspond to R ⁇ G ⁇ B with a high peak.
  • the white LED lamp integrated with the substance sensor emits white light to illuminate the object.
  • the substance reflects the spectrum in the object.
  • the substance sensor can obtain the raw data of the reflection spectrum and analyze the raw data of the reflection spectrum to obtain the substance composition, while the color sensor The original data of the reflection spectrum can be compared with the data in the database to obtain the specific color.
  • the substance detection sensor is specifically used to:
  • the first mapping relationship is the target food Correspondence between moisture content and freshness.
  • the substance detection sensor is specifically used to:
  • the moisture content of the target food is determined according to the light data.
  • the electronic device further includes a color sensor, the color sensor is disposed near the camera, wherein,
  • the substance detection sensor and the color sensor are used to detect the maturity of the target food
  • the processor is further specifically configured to output second preset information according to the maturity and the freshness, or output third preset information according to the maturity.
  • the substance detection sensor is used to detect the sugar content of the target food
  • the color sensor is used for detecting the color of the target food; and detecting the maturity of the target food according to the sugar content and the color.
  • the color sensor is specifically used to:
  • Lighting the first light source of the electronic device collecting the second light signal reflected by the target food under the illumination of the current ambient light and the first light source, to obtain second light data of the target food;
  • the color of the target food is detected based on the target light data.
  • the first preset information includes at least one of the following:
  • the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food is the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food.
  • FIG. 1E is a schematic flowchart of an information push method provided by an embodiment of the present application.
  • the method is applied to the electronic device described in FIGS. 1A-1C and applied to the electronic device.
  • the substance detection sensor is located close to the camera.
  • this information pushing method includes:
  • the target food may be fruits, vegetables, eggs, meat, seafood, processed foods (such as meals, bread, etc.), etc., which is not limited herein.
  • the electronic device may acquire the target image through the camera, and then perform image recognition on the target image to obtain the target food. Further, the electronic device may pre-store template images corresponding to each food. Specifically, the The target image is image segmented to obtain the target area image, and the target area image is matched with the template image corresponding to the food, thereby determining the food corresponding to the target area image. For example, an apple image is acquired, the apple image is identified, and the food is determined to be an apple.
  • the freshness can be understood as the freshness of the food.
  • the freshness has a certain degree of correlation with the moisture of the food. The more moisture, the fresher and less moisture, the more likely it is not fresh.
  • different Food contains different moisture. Therefore, according to this theory, the electronic device can detect the freshness of the target food through the above substance detection sensor.
  • detecting the freshness of the target food by the substance detection sensor may include the following steps:
  • the moisture content of the target food is detected by the substance detection sensor
  • the first mapping relationship is the target Correspondence between the moisture content of food and freshness.
  • the electronic device can detect the moisture content corresponding to the target food through the substance detection sensor, and the mapping relationship between the corresponding moisture and freshness of different foods. Specifically, the electronic device can pre-store the correspondence of each food in multiple foods The mapping relationship between the moisture content and the freshness, and further, a first mapping relationship corresponding to the target food can be obtained, the first mapping relationship is the corresponding relationship between the moisture content and the freshness of the target food, the target The moisture content corresponding to the food is a query identifier, and the target food is queried in the first mapping relationship to obtain the freshness corresponding to the moisture content. In this way, the freshness corresponding to the target food can be determined by moisture.
  • the above substance detection sensor may be used to detect multiple substances, which may include: fat, moisture, sugar, protein, moisture, trace elements, etc., which are not limited herein.
  • detecting the moisture content of the target food by the substance detection sensor may include the following steps:
  • the substance detection sensor may be provided with an infrared light source and a plurality of first light channels, each light channel is provided with a layer of first filter film, and the first filter film is used to pass only each light
  • the optical signals of the wavelength bands corresponding to the channels are different from each other.
  • the target food can be irradiated by the infrared light source, and the optical signal of the target food reflected by the infrared light source can be collected by the substance detection sensor to obtain the optical data of the target food.
  • the optical data includes multiple wavelength bands corresponding to multiple first optical channels Multiple sets of first optical channel data, each of the first optical channel data is used to represent the absorption capacity of the target food to the optical signal of the corresponding wavelength band of each group of the first optical channel data, the optical data includes the relative value of the optical absorption rate, and furthermore, Determine the moisture content of the target food through the optical data.
  • each optical channel data corresponds to a substance, then you can determine what each substance is and its corresponding content.
  • multiple optical channel data must also have One optical channel data corresponds to moisture, and in turn, the moisture content of the target food can be determined.
  • the specific detection process of the target food scanning the target food to detect the moisture content of the target food may include the process shown in FIGS. 1F-1G.
  • the substance detection sensor in the electronic device is used to scan Target food, emit infrared light to illuminate the first position, and collect the reflected infrared light, that is, the original data.
  • the processor can compare the original data with the database to obtain the infrared spectrum shown in Figure 1G. , Analyze the moisture content of the food based on the infrared spectrum (of course, including other components of the target food).
  • A, B, and C represent the infrared spectral absorption curves obtained when the electronic device scans different fruits
  • A is the infrared spectral absorption curve obtained by scanning fruit a
  • B is the infrared spectrum obtained by scanning fruit b.
  • C is the infrared spectral absorption curve obtained by scanning fruit c, in which the substance detection sensor integrates N different channels between 750nm and 1100nm, each channel emits infrared light of different wavelength, then, according to The reflected infrared light collected by each channel is drawn as shown in the infrared spectrum shown in Figure 1G. Then, the band in which the absorption peak appears is determined.
  • the absorption peak appears in different bands to represent different substances.
  • the composition type and band are stored in the database.
  • the first set of mapping relationships between, for example, the absorption peaks of the A curve, B curve, and C curve appear in the first band and the second band, respectively, by querying the first mapping relationship set in the database to determine that the absorption peak appears in the first band
  • Fruit a, fruit b, and fruit c all contain ingredient 1
  • the absorption peak in the second band indicates that fruit a, fruit b, and fruit c all contain ingredient 2
  • the A curve, B curve, and C curve are in the first band and the second If the peaks of the absorption peaks in the band are different, it means that the contents of substance 1 and substance 2 in fruit a, fruit b, and fruit c are different.
  • the database also stores a second mapping relationship set between the peaks of the absorption peaks of different components and the content of the components. Finally, query the multiple mapping relationships corresponding to component 1 in the second mapping relationship set according to the peaks of the absorption peaks of component 1 in A curve, B curve, and C curve, and determine the component 1 of A curve, B curve, and C curve, respectively. Content, similarly, query the multiple mapping relationships corresponding to component 2 in the second mapping relationship set according to the peak value of the absorption peak of component 2 in the A curve, B curve, and C curve, and determine the A curve, B curve, and C curve respectively The content of ingredient 2.
  • the first preset information may be at least one of the following: the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food, which are not limited herein.
  • the purchase recommendation of the target food can be at least one of the following: whether to recommend shopping, the recommended retail price, etc., which is not limited herein
  • the consumption recommendation of the target food can be at least one of the following: whether it is edible, specific cooking practices, here Not limited.
  • the electronic device further includes a color sensor, and the color sensor is disposed near the camera.
  • the following steps may also be included:
  • the maturity of the target food is detected by the substance detection sensor and the color sensor;
  • the substance detection sensor can be used to detect the composition of the substance, and the color sensor can detect the color corresponding to the target food.
  • the maturity of the target food can be detected by combining the two.
  • the maturity can be understood as the food maturity Degree.
  • the second preset information is output according to the maturity and freshness, and the second preset information may be at least one of the following: target food freshness, target food maturity, target food purchase suggestion, target food consumption Recommendations, maturity time of the target food, etc., are not limited here.
  • the third preset information may be output according to the maturity, and the third preset information may be at least one of the following: the maturity of the target food, the purchase recommendation of the target food, the consumption recommendation of the target food, the maturity time of the target food, etc. Wait, not limited here.
  • detecting the maturity of the target food through the substance detection sensor and the color sensor may include the following steps:
  • the sugar content of the target food can be detected by the substance detection sensor.
  • the color of the target food can be detected by the color sensor, and then the maturity of the target food can be obtained by the sugar content and color.
  • detecting the color of the target food by the color sensor may include the following steps:
  • A121 Collect the first light signal reflected by the target food under the current ambient light irradiation through the color sensor to obtain first light data of the target food;
  • A122 Turn on the first light source of the electronic device, and collect the second light signal reflected by the target food under the current ambient light and the first light source through the color sensor to obtain the second light of the target food Optical data
  • A123 Determine target light data of the target food according to the first light data and the second light data
  • the first light source of the electronic device may be a flash of a camera, or a flash integrated with a color sensor.
  • the color sensor may be provided with a plurality of second light channels, and each second light channel is provided with a second filter film, and the second filter film is used to pass only the corresponding For the optical signal of the wavelength band, the corresponding wavelength bands of any two second optical channels are different from each other, and the wavelength band corresponding to each second optical channel is adapted to the wavelength range of one color.
  • the electronic device may collect the first optical signal of the target food reflected by the current ambient light through the color sensor to obtain the first optical data of the target food.
  • the freshness of vegetables can be detected through the embodiments of the present application.
  • the user can be recommended to eat or buy
  • the freshness does not reach the threshold, the user may not be recommended to eat or buy.
  • some vegetables are partially fresh and some are not fresh, which can help users remove the unfresh parts.
  • the user can know the freshness and maturity of the food, which is helpful for assisting the user to purchase fresh food, vegetables, fruits, etc., and provides convenience for the user's daily life.
  • the information pushing method described in the embodiments of the present application is applied to an electronic device including a substance detection sensor and a camera.
  • the substance detection sensor is located near the camera, the target food is determined by the camera, and the target is detected by the substance detection sensor
  • the freshness of the food is generated according to the freshness and outputs the first preset information, thereby helping the user to purchase fresh food, vegetables, fruits, etc., and providing convenience to the user's daily life.
  • FIG. 2 is a schematic flowchart of an information pushing method provided by an embodiment of the present application, which is applied to the electronic device described in FIGS.
  • An electronic device the electronic device includes a substance detection sensor and a camera, and the substance detection sensor is disposed close to the camera. As shown in the figure, the method includes:
  • the information pushing method described in the embodiments of the present application is applied to an electronic device including a substance detection sensor and a camera.
  • the substance detection sensor is located near the camera, the target food is determined by the camera, and the target is detected by the substance detection sensor
  • the first preset information is generated and output according to the freshness
  • the sugar content of the target food is detected by the substance detection sensor
  • the color of the target food is detected by the color sensor
  • the maturity of the target food is detected based on the sugar content and color.
  • the user can know the freshness and maturity of the food, which is helpful for assisting the user to purchase fresh food, vegetables, fruits, etc., and provides convenience for the user's daily life.
  • FIG. 3 is a schematic structural diagram of an electronic device 300 provided by an embodiment of the present application.
  • the electronic device 300 includes a substance detection sensor , A color sensor and a camera, the substance detection sensor and the color sensor are located close to the camera, as shown, the electronic device 300 includes a processor 310, a memory 320, a communication interface 330, and one or more programs 340 , Wherein the one or more programs 340 are stored in the memory and configured to be executed by the processor, the program 340 includes instructions for performing the following steps:
  • the electronic device described in the embodiments of the present application includes a substance detection sensor and a camera.
  • the substance detection sensor is located near the camera, the target food is determined by the camera, and the freshness of the target food is detected by the substance detection sensor.
  • the freshness generates and outputs the first preset information, thereby helping the user to purchase fresh food, vegetables, fruits, etc., and providing convenience to the user's daily life.
  • the above program 340 includes instructions for performing the following steps:
  • the first mapping relationship is the target food Correspondence between moisture content and freshness.
  • the substance detection sensor is provided with an infrared light source and a plurality of first light channels, each first light channel is provided with a layer of first filter film, the first filter film is used to pass only The optical signal of the waveband corresponding to each first optical channel, the waveband corresponding to any two first optical channels are different from each other; in terms of detecting the moisture content of the target food by the substance detection sensor, the above procedure 340 includes instructions for performing the following steps:
  • the optical signal reflected by the target food under the irradiation of the infrared light source is collected by the substance detection sensor to obtain optical data of the target food
  • the optical data includes a plurality of wavelength bands corresponding to the plurality of first optical channels Multiple sets of first optical channel data, each set of first optical channel data is used to represent the absorption capacity of the target food to the optical signal of the wavelength band corresponding to each set of first optical channel data, the optical data includes optical absorption Relative value
  • the moisture content of the target food is determined according to the light data.
  • the electronic device further includes a color sensor, the color sensor is disposed near the camera, and the above program 340 further includes instructions for performing the following steps:
  • the second preset information is output according to the maturity and the freshness, or the third preset information is output according to the maturity.
  • the above program 340 includes instructions for performing the following steps:
  • the maturity of the target food is detected based on the sugar content and the color.
  • the color sensor is provided with a plurality of second light channels, and each second light channel is provided with a second filter film, and the second filter film is used to pass only each of the The optical signals of the wavelength bands corresponding to the second optical channels, the corresponding wavelength bands of any two second optical channels are different from each other, and the wavelength band corresponding to each second optical channel is adapted to the wavelength range of one color;
  • the above program 340 includes instructions for performing the following steps:
  • first light data including the correspondence of the plurality of second light channels
  • first light data including the correspondence of the plurality of second light channels
  • Multiple sets of second optical channel data of multiple wavelength bands each set of second optical channel data is used to represent the absorption capacity of the target food to the optical signal of the corresponding wave band of each set of second optical channel data
  • the first A light data includes the relative value of light energy, or the relative value of light absorption rate
  • Lighting the first light source of the electronic device collecting the second light signal of the target food reflected by the current ambient light and the first light source through the color sensor to obtain the second light data of the target food ;
  • the color of the target food is detected based on the target light data.
  • the first preset information includes at least one of the following:
  • the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food is the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food.
  • the electronic device includes a hardware structure and/or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional modules of the electronic device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules may be implemented in the form of hardware or software function modules. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 4 is a block diagram of functional modules of the information pushing device 400 involved in the embodiment of the present application.
  • the information pushing device 400 is applied to an electronic device.
  • the electronic device includes a substance detection sensor, a color sensor, and a camera.
  • the substance detection sensor and the color sensor are both disposed close to the camera.
  • the information pushing device 400 includes a determination module 401 , Detection module 402 and output module 403, where,
  • a determining module 401 configured to determine the target food through the camera
  • a detection module 402 configured to detect the freshness of the target food through the substance detection sensor
  • the output module 403 is configured to generate and output first preset information according to the freshness.
  • the information pushing device described in the embodiments of the present application is applied to an electronic device.
  • the electronic device includes a substance detection sensor and a camera.
  • the substance detection sensor is located close to the camera.
  • the freshness of the food is generated according to the freshness and outputs the first preset information, thereby helping the user to purchase fresh food, vegetables, fruits, etc., and providing convenience to the user's daily life.
  • the detection module 402 is specifically used to:
  • the first mapping relationship is the target food Correspondence between moisture content and freshness.
  • the substance detection sensor is provided with an infrared light source and a plurality of first light channels, each first light channel is provided with a layer of first filter film, the first filter film is used to pass only The optical signal of the waveband corresponding to each first optical channel, the waveband corresponding to any two first optical channels are different from each other; in terms of detecting the moisture content of the target food by the substance detection sensor, the The detection module 402 is specifically used for:
  • the optical signal reflected by the target food under the irradiation of the infrared light source is collected by the substance detection sensor to obtain optical data of the target food
  • the optical data includes a plurality of wavelength bands corresponding to the plurality of first optical channels Multiple sets of first optical channel data, each set of first optical channel data is used to represent the absorption capacity of the target food to the optical signal of the wavelength band corresponding to each set of first optical channel data, the optical data includes optical absorption Relative value
  • the moisture content of the target food is determined according to the light data.
  • the detection module 402 is further specifically used for:
  • the output module 403 is further specifically configured to output second preset information according to the maturity and the freshness, or output third preset information according to the maturity.
  • the detection module 402 is specifically configured to:
  • the maturity of the target food is detected based on the sugar content and the color.
  • the color sensor is provided with a plurality of second light channels, and each second light channel is provided with a second filter film, and the second filter film is used to pass only each of the The optical signals of the wavelength bands corresponding to the second optical channels, the corresponding wavelength bands of any two second optical channels are different from each other, and the wavelength band corresponding to each second optical channel is adapted to the wavelength range of one color;
  • the detection module 402 is specifically used to:
  • first light data including the correspondence of the plurality of second light channels
  • first light data including the correspondence of the plurality of second light channels
  • Multiple sets of second optical channel data of multiple wavelength bands each set of second optical channel data is used to represent the absorption capacity of the target food to the optical signal of the corresponding wave band of each set of second optical channel data
  • the first A light data includes the relative value of light energy, or the relative value of light absorption rate
  • Lighting the first light source of the electronic device collecting the second light signal of the target food reflected by the current ambient light and the first light source through the color sensor to obtain the second light data of the target food ;
  • the color of the target food is detected based on the target light data.
  • the first preset information includes at least one of the following:
  • the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food is the freshness of the target food, the purchase recommendation of the target food, and the consumption recommendation of the target food.
  • the determination module 401 may be a camera or the like, the detection module 402 may be a substance detection sensor or a color sensor, and the output module 403 may be a communication interface, a transceiver, a display screen, or a processor.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to perform part or all of the steps of any method described in the foregoing method embodiments .
  • An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to perform any of the methods described in the foregoing method embodiments Some or all steps of the method.
  • the computer program product may be a software installation package.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematics.
  • the above-mentioned module division is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or integrated.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or modules, and may be in electrical or other forms.
  • modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software function modules.
  • the above integrated modules are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-Only Memory (English: Read-Only Memory, abbreviation: ROM), Random Access Device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Device
  • magnetic disk or optical disk etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Food Science & Technology (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Theoretical Computer Science (AREA)
  • Medicinal Chemistry (AREA)
  • Multimedia (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

一种电子设备、信息推送方法、信息推送装置、计算机可读存储介质及计算机程序产品,包括:通过摄像头(170)确定目标食物;通过物质检测传感器(160)检测目标食物的新鲜度;根据所述新鲜度生成并输出第一预设信息。

Description

电子设备、信息推送方法及相关产品 技术领域
本申请涉及电子技术领域,具体涉及一种电子设备、信息推送方法及相关产品。
背景技术
随着电子设备(例如智能手机,平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,智能手机向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。
目前,人们经常去买水果,而对于每种水果,长相都差不多,因此,如何挑选水果的问题亟待解决。
发明内容
本申请实施例提供了一种电子设备、信息推送方法及相关产品,以期能够帮助用户更好地挑选水果。
第一方面,本申请实施例提供一种电子设备,所述电子设备包括处理器,以及与所述处理器连接的物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,其中,
所述摄像头,用于确定目标食物;
所述物质检测传感器,用于检测所述目标食物的新鲜度;
所述处理器,用于根据所述新鲜度生成并输出第一预设信息。
第二方面,本申请实施例提供一种信息推送方法,应用于电子设备,所述电子设备包括物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,所述方法包括:
通过所述摄像头确定目标食物;
通过所述物质检测传感器检测所述目标食物的新鲜度;
根据所述新鲜度生成并输出第一预设信息。
第三方面,本申请实施例提供一种信息推送装置,应用于电子设备,所述电子设备包括物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,所述装置包括:
确定模块,用于通过所述摄像头确定目标食物;
检测模块,用于通过所述物质检测传感器检测所述目标食物的新鲜度;
输出模块,用于根据所述新鲜度生成并输出第一预设信息。
第四方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面中的步骤的指令。
第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面中所描述的部分或全部步骤。
第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例提供的一种物质检测传感器和摄像头之间位置关系的示意图;
图1C是本申请实施例提供的另一种物质检测传感器和摄像头之间位置关系的示意图;
图1D是本申请实施例提供的颜色传感器的结构示意图;
图1E是本申请实施例提供的一种信息推送方法的流程示意图;
图1F是本申请实施例提供的一种物质检测传感器检测物质含量的示意图;
图1G是本申请实施例提供的一种红外光谱示例图;
图2是本申请实施例提供的另一种信息推送方法的流程示意图;
图3是本申请实施例提供的一种电子设备的结构示意图;
图4是本申请实施例提供的一种信息推送装置的功能模块组成框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或模块。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。
下面对本申请实施例进行详细介绍。
请参阅图1A,图1A是本申请实施例提供了一种电子设备100的结构示意图,该电子设备100包括:壳体110、设置于所述壳体110上的显示器120、设置于所述壳体110内的主板130,主板130上设置有处理器140和存储器150,如图1B所示,所述电子设备还设置有物质检测传感器160、摄像头170、颜色传感器190等,所述物质检测传感器160、所述摄像头170和颜色传感器190连接所述处理器140,所述处理器140连接所述显示器120,所述电子设备100还包括如图1A所示的射频系统180,所述射频系统180包括发射器181、接收器182、信号处理器183,其中,
所述摄像头170,用于确定目标食物;
所述物质检测传感器160,用于检测所述目标食物的新鲜度;
所述处理器140,用于根据所述新鲜度生成并输出第一预设信息。
其中,所述显示器120包括显示器驱动电路、显示屏和触控屏,所述显示器驱动电路用于控制所述显示屏根据画面的显示数据和显示参数(例如,亮度,颜色,饱和度等)进行内容显示,所述触控屏用于检测触控操作,所述显示屏为有机发光二极管显示屏OLED。
其中,所述摄像头170可以为所述电子设备100的前置摄像头,也可以为所述电子设备100的后置摄像头,但无论所述摄像头170是前置摄像头还是后置摄像头,所述物质检测传感器160均靠近所述摄像头170设置,例如,如图1B所示,当所述摄像头170可为后置摄 像头时,所述物质检测传感器160可位于摄像头160、颜色传感器190的中间设置,或者,又如图1C所示,所述摄像头170为后置单摄像头时,所述物质检测传感器160位于摄像头160、颜色传感器190的中间设置等,在此不做唯一限定,上述摄像头可以为单摄像头或者双摄像头,进一步地,摄像头可以为可见光摄像头或者红外摄像头。
其中,所述物质检测传感器160可以检测多种物质,例如水分、糖分、血氧、脂肪等,在此不作限定,而由于不同物质对红外光谱吸收能力不同,因此,在所述物质检测传感器160内集成多个通道,当进行物质检测时,通过物质检测传感器160中的红外LED灯发射红外光,然后,使物质检测传感器160中的采光装置对每个通道中因照射不同物质后反射回的不同波长的红外光进行采集,并将采集的红外光的数据发射给处理器140,使处理器140绘制红外光谱,并对红外光谱进行大数据分析,从而来确定物质成分。
其中,所述主板130的形状大小可以为所述电子设备100能够容纳的任意大小和形状,在此不做唯一限定。
其中,处理器140包括应用处理器和基带处理器,处理器140是电子设备100的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器150内的软件程序和/或模块,以及调用存储在存储器150内的数据,执行电子设备100的各种功能和处理数据,从而对电子设备100进行整体监控。其中,应用处理器主要处理操作系统、用户界面和应用程序等,基带处理器主要处理无线通信。可以理解的是,上述基带处理器也可以不集成到处理器中。
其中,存储器150可用于存储软件程序以及模块,处理器140通过运行存储在存储器150的软件程序以及模块,从而执行电子设备100的各种功能应用以及数据处理。存储器150可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器150可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
其中,如图1D所示,本申请实施例中所提及的颜色传感器的表面可覆盖光扩散材料,其中,光扩散板是通过化学或物理的手段,利用光线在行径途中遇到两个折射率(密度)相异的介质时,发生折射、反射与散射的物理现象,通过在聚甲基丙烯酸甲酯(PMMA)、聚碳酸酯(Polycarbonate,PC)、聚苯乙烯(Polystyrene,PS)、聚丙烯(Polypropylene,PP)等基材基础中添加无机或有机光扩散剂、或者通过基材表面的微特征结构的阵列排列人为调整光线、使光线发生不同方向的折射、反射、与散射,从而改变光的行进路线,实现入射光充分散色以此产生光学扩散的效果,一般广泛应用在液晶显示与LED照明及成像显示系统中,实际应用中,光扩散材料覆盖在颜色传感器上时,能更大入射角度的光线,且各光点感应单元感应到的光线强度和光谱较为接近。由于扩散作用,测量的指向性更弱,不容易受到环境中局部鲜艳物体的影响,能更准确地测量物体颜色。如图1D所示,图1D作图为RGBW传感器,该RGBW传感器包含4个光电感应电路,即R、G、B、W四个通道,并且,该RGBW传感器表面覆盖有含有扩散为例的光扩散板。图1D的右图分别为该4个通道的波长及灵敏度曲线。
其中,本申请实施例中,电子设备可基于颜色传感器采集关于目标食物的颜色数据。其中,颜色传感器可为RGBW传感器、色谱传感器。其中,RGBW包含4个颜色数据采集通道,因而,可分别利用该4个通道采集不同的颜色数据,该4个颜色数据采集通道可分别为R(红色)通道的颜色数据、G(绿色)通道的颜色数据、B(蓝色)通道的颜色数据和W(白色)通道的颜色数据,再将该颜色数据与标准色卡进行比对,得到目标食物的颜色,标准色卡可为灰卡和色卡,灰卡即只能显示黑白颜色,色卡可呈现彩色,常用的色卡,如24色卡、144色卡。
可选地,本申请实施例中,颜色传感器的波长接收范围是可见光,发射的是白色LED灯,波长范围是350nm到700nm。白光源照射到皮肤或物体表面,在芯片内部集成了F1-F8、 Flicker、Clear、NIR一共11个通道,全波长的反射图,每个通道上面都有一层滤光膜,只让相应的波长通过。比如550nm的通道,只让550nm的波长通过,而其他波长都不接收。每个通道对不同波长的光进行采集,通过各个通道接收到的能量来综合判断颜色,如此,可以实现测试物体的颜色。举例说明下,当白光源射到红色的物质,其他波长的光线几乎被吸收,无法反射,只有红色的光线被反射到传感器,被其红色的波长吸收,那就只有红色波长有波形,又例如,如果传感器只负责接收屏幕发射某种光源,则波形如下:屏幕的颜色分别是RGB三种颜色的光组成,则传感器接收的波形可对应的R\G\B有一个高的波峰。具体实现中,物质传感器集成的白色LED灯发射白光照射物体,该物体中各物质反射光谱,物质传感器可以获取反射光谱原始数据,并对反射光谱原始数据进行分析,得到物质成分,而颜色传感器则可以依据反射光谱原始数据与数据库中的数据进行比对,得到具体颜色。
在一个可能的示例中,在所述通过所述物质检测传感器检测目标食物的新鲜度方面,所述物质检测传感器具体用于:
检测所述目标食物的水分含量;
以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
在一个可能的示例中,在所述检测所述目标食物的水分含量方面,所述物质检测传感器具体用于:
控制所述物质检测传感器的红外光源照射所述目标食物;
通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据;
根据所述光数据确定所述目标食物的水分含量。
在一个可能的示例中,所述电子设备还包括颜色传感器,所述颜色传感器靠近所述摄像头设置,其中,
所述物质检测传感器、所述颜色传感器,用于检测所述目标食物的成熟度;
所述处理器,还具体用于根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设信息。
在一个可能的示例中,在所述检测所述目标食物的成熟度方面,所述物质检测传感器,用于检测所述目标食物的糖分含量;
所述颜色传感器,用于检测所述目标食物的颜色;以及根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
在一个可能的示例中,在所述检测所述目标食物的颜色方面,所述颜色传感器具体用于:
采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据;
点亮所述电子设备的第一光源,采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
根据所述目标光数据检测所述目标食物的颜色。
在一个可能的示例中,所述第一预设信息包括以下至少一种:
所述目标食物的新鲜度、所述目标食物的购买建议、所述目标食物的食用建议。
请参阅图1E,图1E是本申请实施例提供了一种信息推送方法的流程示意图,应用于如图1A-1C所述的电子设备,应用于电子设备,所述电子设备包括物质检测传感器、颜色传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,如图所示,本信息推送方法包括:
101、通过所述摄像头确定目标食物。
其中,本申请实施例中,目标食物可以为水果、蔬菜、蛋类、肉类、海鲜类、加工制造 食物类(如饭菜、面包等等)等等,在此不作限定。
具体实现中,电子设备可以通过摄像头进行获取目标图像,进而,对该目标图像进行图像识别,得到目标食物,进一步地,电子设备中可以预先存储每一食物对应的模板图像,具体地,可以对目标图像进行图像分割,得到目标区域图像,将目标区域图像与食物对应的模板图像进行匹配,从而,确定该目标区域图像对应的食物。例如,获取苹果图像,对该苹果图像进行识别,确定该食物为苹果。
102、通过所述物质检测传感器检测所述目标食物的新鲜度。
其中,新鲜度可以为理解为食物的新鲜程度,生活中,新鲜度则与食物的水分有一定的关联度,水分多,则越新鲜,水分少,则极有可能不新鲜,当然,不同的食物,其含有水分也不一样,因此,依据该理论,则电子设备可以通过上述物质检测传感器实现检测目标食物的新鲜度。
可选地,上述步骤102,通过所述物质检测传感器检测目标食物的新鲜度,可包括如下步骤:
21、通过所述物质检测传感器检测所述目标食物的水分含量;
22、以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
其中,电子设备可以通过物质检测传感器检测目标食物对应的水分含量,不同的食物其对应的水分与新鲜度之间的映射关系,具体地,电子设备中可以预先保存多种食物中每一食物对应的水分与新鲜度之间的映射关系,进而,可以获取该目标食物对应的第一映射关系,该第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系,以该目标食物对应的水分含量为查询标识,在第一映射关系中查询目标食物得到水分含量对应的新鲜度,如此,可以实现通过水分确定目标食物对应的新鲜度。
具体实现中,上述物质检测传感器可以用于检测多种物质,该多种物质可以包括:脂肪、水分、糖分、蛋白质、水分、微量元素等等,在此不做唯一限定。
进一步可选地,上述步骤21,通过所述物质检测传感器检测所述目标食物的水分含量,可包括如下步骤:
211、控制所述物质检测传感器的红外光源照射所述目标食物;
212、通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据;
213、根据所述光数据确定所述目标食物的水分含量。
其中,本申请实施例中,物质检测传感器可以设置有红外光源和多个第一光通道,每一光通道设置有一层第一滤光膜,该第一滤光膜用于仅通过每一光通道对应的波段的光信号,当然,任意两个第一光通道对应的波段互不相同。进而,可以通过红外光源照射目标食物,并通过物质检测传感器采集目标食物在红外光源照射下反射的光信号,得到目标食物的光数据,该光数据包括多个第一光通道对应的多个波段的多组第一光通道数据,每一第一光通道数据用于表示目标食物对每组第一光通道数据对应的波段的光信号的吸收能力,光数据包括光吸收率相对值,进而,通过光数据确定目标食物的水分含量,具体地,每一光通道数据对应一种物质,则可以确定每一物质具体是啥,以及其对应的含量,当然,多个光通道数据中也必然有一个光通道数据对应水分,进而,可以确定目标食物的水分含量。
其中,物质检测传感器扫描目标食物的检测所述目标食物的水分含量的具体实现过程可以包括如图1F-1G所示的过程,首先,如图1F所示,使用电子设备中的物质检测传感器扫描目标食物,发射红外光照射第一位置,并采集反射回的红外光,即原始数据,然后,处理器可以通过将原始数据与数据库进行比对,得到如图1G所示的红外光谱图,最后,根据该红外光谱图分析出食物的水分含量(当然,还包括目标食物的其他成分)。
举例来说,如图1F所示,A、B、C分别表示电子设备扫描不同水果时获得的红外光谱 吸收曲线,A为扫描水果a获得的红外光谱吸收曲线,B为扫描水果b获得的红外光谱吸收曲线,C为扫描水果c获得的红外光谱吸收曲线,其中,物质检测传感器在波长750nm到1100nm之间集成N个不同的通道,在每个通道发射不同波长的红外光,然后,可以根据每个通道采集的反射回的红外光绘制如图1G所示的红外光谱图,然后,确定吸收峰出现的波段,吸收峰出现在不同的波段代表不同的物质,数据库中存储有成分类型与波段之间的第一映射关系集合,例如A曲线、B曲线、C曲线的吸收峰分别出现在第一波段和第二波段,通过查询数据库中的第一映射关系集合确定第一波段出现吸收峰表示水果a、水果b、水果c均含有成分1,第二波段出现吸收峰表示水果a、水果b、水果c均含有成分2,而且,A曲线、B曲线、C曲线在第一波段和第二波段的吸收峰的峰值不同,则表示水果a、水果b、水果c中物质1和物质2的含量不同,数据库中还存储有不同成分的吸收峰的峰值与成分含量的第二映射关系集合,最后,根据A曲线、B曲线、C曲线中成分1的吸收峰的峰值查询第二映射关系集合中成分1对应的多个映射关系,分别确定出A曲线、B曲线、C曲线中成分1的含量,同样地,根据A曲线、B曲线、C曲线中成分2的吸收峰的峰值查询第二映射关系集合中成分2对应的多个映射关系,分别确定出A曲线、B曲线、C曲线中成分2的含量。
假设水果a为目标食物,通过曲线A得知水果a包括成分1和成分2,以及通过成分1的吸收峰的峰值可确定成分1的含量,和通过成分2的吸收峰的峰值可确定成分2的含量,若成分1为水分,则水分含量=成分1/(成分1+成分2)。
103、根据所述新鲜度生成并输出第一预设信息。
其中,上述第一预设信息可以为以下至少一种:目标食物的新鲜度、目标食物的购买建议、目标食物的食用建议,在此不作限定。其中,目标食物的购买建议可以为以下至少一种:是否建议购物、建议零售价等,在此不作限定,目标食物的食用建议可以为以下至少一种:是否可以食用、具体烹饪做法,在此不作限定。
可选地,所述电子设备还包括颜色传感器,所述颜色传感器靠近所述摄像头设置,上述步骤103之后,还可以包括如下步骤:
A1、通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度;
A2、根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设信息。
其中,物质检测传感器可以用于检测物质成分,而颜色传感器则可以检测目标食物对应的颜色,如此,则可以通过两者结合,实现对目标食物的成熟度进行检测,成熟度可以理解为食物成熟的程度。进而,依据成熟度与新鲜度输出第二预设信息,上述第二预设信息可以为以下至少一种:目标食物的新鲜度、目标食物的成熟度、目标食物的购买建议、目标食物的食用建议、目标食物的成熟时间等等,在此不作限定。或者,还可以依据成熟度输出第三预设信息,第三预设信息可以为以下至少一种:目标食物的成熟度、目标食物的购买建议、目标食物的食用建议、目标食物的成熟时间等等,在此不作限定。
进一步可选地,上述步骤A1,通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度,可包括如下步骤:
A11、通过所述物质检测传感器检测所述目标食物的糖分含量;
A12、通过所述颜色传感器检测所述目标食物的颜色;
A13、根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
其中,依据上述描述,可以通过物质检测传感器检测目标食物的糖分含量,当然,通过颜色传感器检测目标食物的颜色,进而,通过糖分含量和颜色得到目标食物的成熟度,具体地,按照预设的糖分含量与成熟概率值之间的映射关系,确定目标食物的糖分含量对应的第一成熟概率值,按照预设的颜色与成熟概率值之间的映射关系,确定目标食物的颜色对应的第二成熟概率值,获取目标食物的糖分对应的第一权值,以及颜色对应的第二权值,依据第一成熟概率值、第二成熟概率值、第一权值和第二权值进行加权运算,得到目标食物的成熟度,即目标食物的成熟度=第一成熟概率值*第一权值+第二成熟概率值*第二权值,如此,实 现了通过糖分和颜色实现了目标食物的成熟度检测。
进一步可选地,上述步骤A12,通过所述颜色传感器检测所述目标食物的颜色,可包括如下步骤:
A121、通过所述颜色传感器采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据;
A122、点亮所述电子设备的第一光源,通过所述颜色传感器采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
A123、根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
A124、根据所述目标光数据检测所述目标食物的颜色。
其中,上述电子设备的第一光源可以为摄像头的闪光灯,或者颜色传感器集成的闪光灯。本申请实施例中,颜色传感器可设置有多个第二光通道,每个第二光通道设置有一层第二滤光膜,第二滤光膜用于仅通过每个第二光通道对应的波段的光信号,任意两个第二光通道对应的波段互不相同,所述每个第二光通道对应的波段适配一种颜色的波长范围。
具体实现中,电子设备可通过颜色传感器采集目标食物在当前环境光照射下反射的第一光信号,得到目标食物的第一光数据,第一光数据包括多个第二光通道对应的多个波段的多组第二光通道数据,每组第二光通道数据用于表示目标食物对所述每组第二光通道数据对应的波段的光信号的吸收能力,第一光数据包括光能量相对值,或者,光吸收率相对值,进而,点亮电子设备的第一光源,通过颜色传感器采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据,根据第一光数据和第二光数据确定目标食物的目标光数据,具体地,目标光数据=第二光数据-第一光数据,进一步地,可以将目标光数据与标准色卡进行比对,得到目标食物的颜色。
举例说明下,生活中,用户会遇到,例如,芒果或者西瓜,无法准确地知道里面熟了没,吃也不是,不吃也不是,通过本申请实施例,可以对芒果、西瓜等进行检测,在成熟度满足一定阈值时,则可以建议用户食用或者购买,在成熟度未达到阈值时,则可以不建议用户食用或者购买。当然,如针对内部的检测的话,例如,西瓜,则可以对发射光线的能量和方向性需要限定,如红外激光(940nm)。
再举例说明下,生活中,在选择蔬菜时,也可能无法知晓蔬菜是否清晰,因此,通过本申请实施例可以检测蔬菜的新鲜度,在新鲜度满足一定阈值时,则可以建议用户食用或者购买,在新鲜度未达到阈值时,则可以不建议用户食用或者购买。当然,有些蔬菜部分新鲜,部分不新鲜,则可以帮助用户去掉不新鲜部分。
再举例说明下,生活中,在选择生鲜时,例如,鸡蛋,无法知晓鸡蛋里面书否坏了,通过本申请实施例,可以对其新鲜度进行检测,在新鲜度满足一定阈值时,则可以建议用户食用或者购买,在新鲜度未达到阈值时,则可以不建议用户食用或者购买。
如此,用户可以知晓食物的新鲜度和成熟度,有利于辅助用户购买生鲜、蔬菜、水果等,给用户的日常生活提供了便捷性。
可以看出,本申请实施例中所描述的信息推送方法,应用于电子设备,该电子设备包括物质检测传感器和摄像头,物质检测传感器靠近摄像头设置,通过摄像头确定目标食物,通过物质检测传感器检测目标食物的新鲜度,根据新鲜度生成并输出第一预设信息,从而,有利于辅助用户购买生鲜、蔬菜、水果等,给用户的日常生活提供了便捷性。
与上述图1E所示的实施例一致的,请参阅图2,图2是本申请实施例提供的一种信息推送方法的流程示意图,应用于如图1A-1C所述的电子设备,应用于电子设备,所述电子设备包括物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,如图所示,方法包括:
201、通过所述摄像头确定目标食物。
202、通过所述物质检测传感器检测所述目标食物的新鲜度。
203、根据所述新鲜度生成并输出第一预设信息。
204、通过所述物质检测传感器检测所述目标食物的糖分含量。
205、通过所述颜色传感器检测所述目标食物的颜色。
206、根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
其中,上述步骤201-步骤206的具体描述可以参照上述图1E所描述的信息推送方法的相应步骤,在此不再赘述。
可以看出,本申请实施例中所描述的信息推送方法,应用于电子设备,该电子设备包括物质检测传感器和摄像头,物质检测传感器靠近摄像头设置,通过摄像头确定目标食物,通过物质检测传感器检测目标食物的新鲜度,根据新鲜度生成并输出第一预设信息,通过物质检测传感器检测目标食物的糖分含量,通过颜色传感器检测目标食物的颜色,根据糖分含量和颜色检测目标食物的成熟度,如此,用户可以知晓食物的新鲜度和成熟度,有利于辅助用户购买生鲜、蔬菜、水果等,给用户的日常生活提供了便捷性。
与上述图1E、图3、图2所示的实施例一致地,请参阅图3,图3是本申请实施例提供的一种电子设备300的结构示意图,所述电子设备300包括物质检测传感器、颜色传感器和摄像头,所述物质检测传感器、所述颜色传感器均靠近所述摄像头设置,如图所示,该电子设备300包括处理器310、存储器320、通信接口330以及一个或多个程序340,其中,上述一个或多个程序340被存储在上述存储器中,并且被配置由上述处理器执行,上述程序340包括用于执行以下步骤的指令:
通过所述摄像头确定目标食物;
通过所述物质检测传感器检测所述目标食物的新鲜度;
根据所述新鲜度生成并输出第一预设信息。
可以看出,本申请实施例中所描述的电子设备,该电子设备包括物质检测传感器和摄像头,物质检测传感器靠近摄像头设置,通过摄像头确定目标食物,通过物质检测传感器检测目标食物的新鲜度,根据新鲜度生成并输出第一预设信息,从而,有利于辅助用户购买生鲜、蔬菜、水果等,给用户的日常生活提供了便捷性。
在一个可能的示例中,在所述通过所述物质检测传感器检测目标食物的新鲜度方面,上述程序340包括用于执行以下步骤的指令:
通过所述物质检测传感器检测所述目标食物的水分含量;
以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
在一个可能的示例中,所述物质检测传感器设置有红外光源和多个第一光通道,每个第一光通道设置有一层第一滤光膜,所述第一滤光膜用于仅通过所述每个第一光通道对应的波段的光信号,任意两个第一光通道对应的波段互不相同;在所述通过所述物质检测传感器检测所述目标食物的水分含量方面,上述程序340包括用于执行以下步骤的指令:
控制所述红外光源照射所述目标食物;
通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据,所述光数据包括所述多个第一光通道对应的多个波段的多组第一光通道数据,每组第一光通道数据用于表示所述目标食物对所述每组第一光通道数据对应的波段的光信号的吸收能力,所述光数据包括光吸收率相对值;
根据所述光数据确定所述目标食物的水分含量。
在一个可能的示例中,所述电子设备还包括颜色传感器,所述颜色传感器靠近所述摄像头设置,上述程序340还包括用于执行以下步骤的指令:
通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度;
根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设 信息。
在一个可能的示例中,在所述通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度方面,上述程序340包括用于执行以下步骤的指令:
通过所述物质检测传感器检测所述目标食物的糖分含量;
通过所述颜色传感器检测所述目标食物的颜色;
根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
在一个可能的示例中,所述颜色传感器设置有多个第二光通道,每个第二光通道设置有一层第二滤光膜,所述第二滤光膜用于仅通过所述每个第二光通道对应的波段的光信号,任意两个第二光通道对应的波段互不相同,所述每个第二光通道对应的波段适配一种颜色的波长范围;在所述通过所述颜色传感器检测所述目标食物的颜色方面,上述程序340包括用于执行以下步骤的指令:
通过所述颜色传感器采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据,所述第一光数据包括所述多个第二光通道对应的多个波段的多组第二光通道数据,每组第二光通道数据用于表示所述目标食物对所述每组第二光通道数据对应的波段的光信号的吸收能力,所述第一光数据包括光能量相对值,或者,光吸收率相对值;
点亮所述电子设备的第一光源,通过所述颜色传感器采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
根据所述目标光数据检测所述目标食物的颜色。
在一个可能的示例中,所述第一预设信息包括以下至少一种:
所述目标食物的新鲜度、所述目标食物的购买建议、所述目标食物的食用建议。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的模块及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图4是本申请实施例中所涉及的信息推送装置400的功能模块组成框图。该信息推送装置400应用于电子设备,所述电子设备包括物质检测传感器、颜色传感器和摄像头,所述物质检测传感器、所述颜色传感器均靠近所述摄像头设置,该信息推送装置400包括确定模块401、检测模块402和输出模块403,其中,
确定模块401,用于通过所述摄像头确定目标食物;
检测模块402,用于通过所述物质检测传感器检测所述目标食物的新鲜度;
输出模块403,用于根据所述新鲜度生成并输出第一预设信息。
可以看出,本申请实施例中所描述的信息推送装置,应用于电子设备,该电子设备包括物质检测传感器和摄像头,物质检测传感器靠近摄像头设置,通过摄像头确定目标食物,通过物质检测传感器检测目标食物的新鲜度,根据新鲜度生成并输出第一预设信息,从而,有利于辅助用户购买生鲜、蔬菜、水果等,给用户的日常生活提供了便捷性。
在一个可能的示例中,在所述通过所述物质检测传感器检测目标食物的新鲜度方面,所 述检测模块402具体用于:
通过所述物质检测传感器检测所述目标食物的水分含量;
以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
在一个可能的示例中,所述物质检测传感器设置有红外光源和多个第一光通道,每个第一光通道设置有一层第一滤光膜,所述第一滤光膜用于仅通过所述每个第一光通道对应的波段的光信号,任意两个第一光通道对应的波段互不相同;在所述通过所述物质检测传感器检测所述目标食物的水分含量方面,所述检测模块402具体用于:
控制所述红外光源照射所述目标食物;
通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据,所述光数据包括所述多个第一光通道对应的多个波段的多组第一光通道数据,每组第一光通道数据用于表示所述目标食物对所述每组第一光通道数据对应的波段的光信号的吸收能力,所述光数据包括光吸收率相对值;
根据所述光数据确定所述目标食物的水分含量。
在一个可能的示例中,所述检测模块402还具体用于:
通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度;
所述输出模块403,还具体用于根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设信息。
在一个可能的示例中,在所述通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度方面,所述检测模块402具体用于:
通过所述物质检测传感器检测所述目标食物的糖分含量;
通过所述颜色传感器检测所述目标食物的颜色;
根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
在一个可能的示例中,所述颜色传感器设置有多个第二光通道,每个第二光通道设置有一层第二滤光膜,所述第二滤光膜用于仅通过所述每个第二光通道对应的波段的光信号,任意两个第二光通道对应的波段互不相同,所述每个第二光通道对应的波段适配一种颜色的波长范围;在所述通过所述颜色传感器检测所述目标食物的颜色方面,所述检测模块402具体用于:
通过所述颜色传感器采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据,所述第一光数据包括所述多个第二光通道对应的多个波段的多组第二光通道数据,每组第二光通道数据用于表示所述目标食物对所述每组第二光通道数据对应的波段的光信号的吸收能力,所述第一光数据包括光能量相对值,或者,光吸收率相对值;
点亮所述电子设备的第一光源,通过所述颜色传感器采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
根据所述目标光数据检测所述目标食物的颜色。
在一个可能的示例中,所述第一预设信息包括以下至少一种:
所述目标食物的新鲜度、所述目标食物的购买建议、所述目标食物的食用建议。
其中,确定模块401可以是摄像头等,检测模块402可以是物质检测传感器或者颜色传感器,输出模块403可以是通信接口、收发器、显示屏,还可以是处理器。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序 的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
上述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种电子设备,其特征在于,所述电子设备包括处理器,以及与所述处理器连接的物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,其中,
    所述摄像头,用于确定目标食物;
    所述物质检测传感器,用于检测所述目标食物的新鲜度;
    所述处理器,用于根据所述新鲜度生成并输出第一预设信息。
  2. 根据权利要求1所述的电子设备,其特征在于,在所述通过所述物质检测传感器检测目标食物的新鲜度方面,所述物质检测传感器具体用于:
    检测所述目标食物的水分含量;
    以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
  3. 根据权利要求2所述的电子设备,其特征在于,在所述检测所述目标食物的水分含量方面,所述物质检测传感器具体用于:
    控制所述物质检测传感器的红外光源照射所述目标食物;
    通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据;
    根据所述光数据确定所述目标食物的水分含量。
  4. 根据权利要求1-3任一项所述的电子设备,其特征在于,所述电子设备还包括颜色传感器,所述颜色传感器靠近所述摄像头设置,其中,
    所述物质检测传感器、所述颜色传感器,用于检测所述目标食物的成熟度;
    所述处理器,还具体用于根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设信息。
  5. 根据权利要求4所述的电子设备,其特征在于,在所述检测所述目标食物的成熟度方面,所述物质检测传感器,用于检测所述目标食物的糖分含量;
    所述颜色传感器,用于检测所述目标食物的颜色;以及根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
  6. 根据权利要求5所述的电子设备,其特征在于,在所述检测所述目标食物的颜色方面,所述颜色传感器具体用于:
    采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据;
    点亮所述电子设备的第一光源,采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
    根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
    根据所述目标光数据检测所述目标食物的颜色。
  7. 根据权利要求1-6任一项所述的电子设备,其特征在于,所述第一预设信息包括以下至少一种:
    所述目标食物的新鲜度、所述目标食物的购买建议、所述目标食物的食用建议。
  8. 一种信息推送方法,其特征在于,应用于电子设备,所述电子设备包括物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,所述方法包括:
    通过所述摄像头确定目标食物;
    通过所述物质检测传感器检测所述目标食物的新鲜度;
    根据所述新鲜度生成并输出第一预设信息。
  9. 根据权利要求8所述的方法,其特征在于,所述通过所述物质检测传感器检测目标食物的新鲜度,包括:
    通过所述物质检测传感器检测所述目标食物的水分含量;
    以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
  10. 根据权利要求9所述的方法,其特征在于,所述通过所述物质检测传感器检测所述目标食物的水分含量,包括:
    控制所述物质检测传感器的红外光源照射所述目标食物;
    通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据;
    根据所述光数据确定所述目标食物的水分含量。
  11. 根据权利要求8-10任一项所述的方法,其特征在于,所述电子设备还包括颜色传感器,所述颜色传感器靠近所述摄像头设置,所述方法还包括:
    通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度;
    根据所述成熟度与所述新鲜度输出第二预设信息,或者,根据所述成熟度输出第三预设信息。
  12. 根据权利要求11所述的方法,其特征在于,所述通过所述物质检测传感器和所述颜色传感器检测所述目标食物的成熟度,包括:
    通过所述物质检测传感器检测所述目标食物的糖分含量;
    通过所述颜色传感器检测所述目标食物的颜色;
    根据所述糖分含量和所述颜色检测所述目标食物的成熟度。
  13. 根据权利要求12所述的方法,其特征在于,所述通过所述颜色传感器检测所述目标食物的颜色,包括:
    通过所述颜色传感器采集所述目标食物在当前环境光照射下反射的第一光信号,得到所述目标食物的第一光数据;
    点亮所述电子设备的第一光源,通过所述颜色传感器采集所述目标食物在当前环境光和所述第一光源照射下反射的第二光信号,得到所述目标食物的第二光数据;
    根据所述第一光数据和所述第二光数据确定所述目标食物的目标光数据;
    根据所述目标光数据检测所述目标食物的颜色。
  14. 根据权利要求8-13任一项所述的方法,其特征在于,所述第一预设信息包括以下至少一种:
    所述目标食物的新鲜度、所述目标食物的购买建议、所述目标食物的食用建议。
  15. 一种信息推送装置,其特征在于,应用于电子设备,所述电子设备包括物质检测传感器和摄像头,所述物质检测传感器靠近所述摄像头设置,所述装置包括:
    确定模块,用于通过所述摄像头确定目标食物;
    检测模块,用于通过所述物质检测传感器检测所述目标食物的新鲜度;
    输出模块,用于根据所述新鲜度生成并输出第一预设信息。
  16. 根据权利要求15所述的装置,其特征在于,在所述通过所述物质检测传感器检测目标食物的新鲜度方面,所述检测模块具体用于:
    通过所述物质检测传感器检测所述目标食物的水分含量;
    以所述目标食物的水分含量为查询标识,查询预存的所述目标食物的第一映射关系,获取所述目标食物的水分含量对应的新鲜度,所述第一映射关系为所述目标食物的水分含量与新鲜度之间的对应关系。
  17. 根据权利要求16所述的装置,其特征在于,在所述通过所述物质检测传感器检测所述目标食物的水分含量方面,所述检测模块具体用于:
    控制所述物质检测传感器的红外光源照射所述目标食物;
    通过所述物质检测传感器采集所述目标食物在所述红外光源照射下反射的光信号,得到所述目标食物的光数据;
    根据所述光数据确定所述目标食物的水分含量。
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求8-14任一项所述的方法中的步骤的指令。
  19. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求8-14任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求8-14任一项所述的方法。
PCT/CN2019/102595 2018-11-27 2019-08-26 电子设备、信息推送方法及相关产品 Ceased WO2020107965A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811438115.3A CN109655414B (zh) 2018-11-27 2018-11-27 电子设备、信息推送方法及相关产品
CN201811438115.3 2018-11-27

Publications (1)

Publication Number Publication Date
WO2020107965A1 true WO2020107965A1 (zh) 2020-06-04

Family

ID=66111211

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/102595 Ceased WO2020107965A1 (zh) 2018-11-27 2019-08-26 电子设备、信息推送方法及相关产品

Country Status (2)

Country Link
CN (1) CN109655414B (zh)
WO (1) WO2020107965A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119845769A (zh) * 2025-03-24 2025-04-18 庄河市检验检测认证技术服务中心 一种动物源食品的新鲜度快速检测装置

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109655414B (zh) * 2018-11-27 2021-11-02 Oppo广东移动通信有限公司 电子设备、信息推送方法及相关产品
CN110487743A (zh) * 2019-08-20 2019-11-22 Oppo(重庆)智能科技有限公司 植物信息检测方法、装置及终端设备
CN110441485A (zh) * 2019-08-22 2019-11-12 虫洞(北京)卫生科技有限公司 多线程侦测食品烹饪或加工过程中食材成熟度的传感器
CN110659676A (zh) * 2019-09-09 2020-01-07 卓尔智联(武汉)研究院有限公司 一种信息处理方法、装置和存储介质
CN110796642A (zh) * 2019-10-09 2020-02-14 陈浩能 水果品质程度确定方法及相关产品
CN110738250B (zh) * 2019-10-09 2024-02-27 陈浩能 果蔬新鲜度识别方法及相关产品
CN112856921B (zh) * 2019-11-28 2023-01-31 合肥华凌股份有限公司 一种冰箱、冰箱的控制方法及计算机可读存储介质
CN111271936B (zh) * 2020-01-23 2022-03-22 深圳市大拿科技有限公司 智能冰箱控制方法及相关装置
CN111665201A (zh) * 2020-04-30 2020-09-15 华为技术有限公司 光谱检测方法、移动终端及芯片系统
CN113251617B (zh) * 2021-05-13 2023-05-16 青岛海尔空调器有限总公司 用于空调的控制方法及装置、空调

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102818777A (zh) * 2012-08-24 2012-12-12 北京农业智能装备技术研究中心 一种基于光谱和颜色测量的水果成熟度评价方法
CN204031249U (zh) * 2014-05-21 2014-12-17 上海酷宇通讯技术有限公司 具有糖度检测功能的手机
CN105717051A (zh) * 2016-04-22 2016-06-29 合肥美菱股份有限公司 一种快速检测果蔬新鲜度的系统及冰箱
CN107202761A (zh) * 2017-06-09 2017-09-26 甘肃萃英大农科技有限公司 一种快速检测水果内部品质的便携式检测设备及检测方法
US20180209901A1 (en) * 2017-01-26 2018-07-26 Aklartech Ltd System and method for evaluating fruits and vegetables
CN109655414A (zh) * 2018-11-27 2019-04-19 Oppo广东移动通信有限公司 电子设备、信息推送方法及相关产品

Family Cites Families (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE2147611A1 (de) * 1970-09-26 1972-05-25 Nii Konservna Promischlenost Verfahren und Einrichtung zum Sortieren von Tomaten nach der Farbe
JPS6171338A (ja) * 1984-09-15 1986-04-12 Maki Seisakusho:Kk 柿の判別法
JPS62292069A (ja) * 1986-06-12 1987-12-18 Oki Electric Ind Co Ltd 色識別装置
JPH07167780A (ja) * 1994-10-25 1995-07-04 Makio Akimoto 食品鮮度判別装置
US6512577B1 (en) * 2000-03-13 2003-01-28 Richard M. Ozanich Apparatus and method for measuring and correlating characteristics of fruit with visible/near infra-red spectrum
WO2001069191A1 (en) * 2000-03-13 2001-09-20 Autoline, Inc. Apparatus and method for measuring and correlating characteristics of fruit with visible/near infra-red spectrum
CA2430737C (en) * 2003-06-02 2011-12-20 Centre De Recherche Industrielle Du Quebec Method and apparatus for estimating surface moisture content of wood chips
JP2007108124A (ja) * 2005-10-17 2007-04-26 Arata Satori 鮮度センサ
CN101021478A (zh) * 2007-02-13 2007-08-22 江西农业大学 一种水果品质的激光诱导荧光高光谱图像检测方法和装置
JP2008292350A (ja) * 2007-05-25 2008-12-04 Satake Corp 精米の糠量判定方法及びその装置
WO2009038206A1 (ja) * 2007-09-21 2009-03-26 Suntory Holdings Limited 可視光線・近赤外線分光分析法及びブドウ醸造方法
CN101477086B (zh) * 2008-12-29 2011-09-21 中国科学院广州能源研究所 气体水合物生成取样分析方法及装置
CN101702088B (zh) * 2009-10-27 2012-05-30 华东交通大学 基于可见近红外光谱的水果糖酸度分选生产线控制装置
CN102858233B (zh) * 2010-04-21 2015-11-25 皇家飞利浦电子股份有限公司 脂水比的确定
CN101957313B (zh) * 2010-09-21 2012-07-04 吉林大学 鲜玉米果穗质量的计算机视觉检测分级方法及装置
KR20120060006A (ko) * 2010-12-01 2012-06-11 대한민국(농촌진흥청장) 거봉 포도의 숙기 판정방법 및 거봉 포도의 숙기 판정용 칼라차트
CN102735621A (zh) * 2011-04-13 2012-10-17 广东工业大学 一种基于颜色传感器的水果成熟度检测方法
CN103674850A (zh) * 2012-09-17 2014-03-26 新疆农业大学 一种肉类水分检测方法
CN103063595B (zh) * 2012-12-19 2015-03-25 北京农业智能装备技术研究中心 一种葡萄成熟度的检测装置及其应用
CN103063585B (zh) * 2013-01-05 2015-09-02 石河子大学 瓜果成熟度快速无损检测装置及检测系统建立方法
CN104316478A (zh) * 2014-10-28 2015-01-28 福建农林大学 一种斑玉蕈菌包成熟度的测定方法
US20180003688A1 (en) * 2015-01-23 2018-01-04 Koninklijke Philips N.V. Freshness indication
CN204374184U (zh) * 2015-02-10 2015-06-03 韶山新真喜食品有限公司 一种新鲜猪肉肉质检测装置
CN104965235B (zh) * 2015-06-12 2017-07-28 同方威视技术股份有限公司 一种安检系统及方法
KR101745372B1 (ko) * 2015-07-08 2017-06-09 피도연 식품 상태 측정 장치, 식품 상태 측정 모듈, 이를 포함하는 스마트 장치
CN107024433A (zh) * 2016-02-02 2017-08-08 苏州三星电子有限公司 一种检测冰箱内食物新鲜度的方法及系统
CN105891112A (zh) * 2016-03-31 2016-08-24 江苏大学 一种基于Android手机的蔬菜叶片新鲜度检测装置及方法
CN108133743A (zh) * 2016-12-01 2018-06-08 佛山市顺德区美的电热电器制造有限公司 一种信息推送的方法、装置和系统
JP2018096712A (ja) * 2016-12-08 2018-06-21 アクア株式会社 鮮度・熟成判定装置及び鮮度・熟成判定装置を備えた冷蔵庫
CN106954009B (zh) * 2017-01-07 2020-08-04 大连欧普迪光电仪器有限公司 图谱获取装置、方法及便携终端
CN108693145B (zh) * 2017-04-11 2020-02-07 中国农业大学 一种植物叶片含水率检测方法
CN107607481A (zh) * 2017-08-31 2018-01-19 维沃移动通信有限公司 一种烹饪时间信息的计算方法及移动终端
CN107576584A (zh) * 2017-09-20 2018-01-12 天津瑞泽分析仪器有限公司 一种水果品质综合检测分析仪
CN108872218A (zh) * 2018-06-21 2018-11-23 京东方科技集团股份有限公司 生鲜食品新鲜度监测方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102818777A (zh) * 2012-08-24 2012-12-12 北京农业智能装备技术研究中心 一种基于光谱和颜色测量的水果成熟度评价方法
CN204031249U (zh) * 2014-05-21 2014-12-17 上海酷宇通讯技术有限公司 具有糖度检测功能的手机
CN105717051A (zh) * 2016-04-22 2016-06-29 合肥美菱股份有限公司 一种快速检测果蔬新鲜度的系统及冰箱
US20180209901A1 (en) * 2017-01-26 2018-07-26 Aklartech Ltd System and method for evaluating fruits and vegetables
CN107202761A (zh) * 2017-06-09 2017-09-26 甘肃萃英大农科技有限公司 一种快速检测水果内部品质的便携式检测设备及检测方法
CN109655414A (zh) * 2018-11-27 2019-04-19 Oppo广东移动通信有限公司 电子设备、信息推送方法及相关产品

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119845769A (zh) * 2025-03-24 2025-04-18 庄河市检验检测认证技术服务中心 一种动物源食品的新鲜度快速检测装置
CN119845769B (zh) * 2025-03-24 2025-07-15 庄河市检验检测认证技术服务中心 一种动物源食品的新鲜度快速检测装置

Also Published As

Publication number Publication date
CN109655414B (zh) 2021-11-02
CN109655414A (zh) 2019-04-19

Similar Documents

Publication Publication Date Title
WO2020107965A1 (zh) 电子设备、信息推送方法及相关产品
US10498941B2 (en) Sensor-synchronized spectrally-structured-light imaging
US9316595B2 (en) Method for outputting freshness information, freshness information output apparatus, and non-transitory computer-readable recording medium
US9959628B2 (en) Imaging system for object recognition and assessment
CN109668852B (zh) 电子设备、信息推送方法及相关产品
Huang et al. Smart-u: Smart utensils know what you eat
CN106996916B (zh) 一种物质鉴别方法
US20200196935A1 (en) Antioxidant sensor and method of obtaining antioxidant signal
EP3999822A1 (en) Spectrometer device
CN109618045A (zh) 电子装置、信息推送方法及相关产品
US11540721B2 (en) Antioxidant sensor and method of measuring antioxidant value
CN113655017B (zh) 一种智能手机连用的无损糖度检测装置及其检测方法
CN111044466A (zh) 果蔬新鲜度的光谱检测系统及检测方法
Hu et al. NIRSCam: A mobile near-infrared sensing system for food calorie estimation
CN111007026A (zh) 一种基于光谱芯片的食品新鲜度检测系统及检测方法
CN109587268A (zh) 电子设备、信息推送方法及相关产品
CN109639888B (zh) 电子装置、信息推送方法及相关产品
Klakegg et al. Towards commoditised near infrared spectroscopy
EP3737077A1 (en) Electronic device for acquiring state information on object, and control method therefor
US12326362B2 (en) Method and apparatus for determining or classifying the surface colour of at least partly translucent materials
US9423300B2 (en) Frequency visualization apparatus and method
CN106198404A (zh) 食物调味系统、食物调味装置及食物调味的处理装置
CN104483272A (zh) 一种电子设备和检测方法
US11330983B2 (en) Electronic device for acquiring state information on object, and control method therefor
TR201706549A2 (tr) Çalişma performansi i̇yi̇leşti̇ri̇len bi̇r akilli kesme tahtasi

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19890246

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19890246

Country of ref document: EP

Kind code of ref document: A1