WO2018045711A1 - Method and device for determining food item and mobile terminal - Google Patents

Method and device for determining food item and mobile terminal Download PDF

Info

Publication number
WO2018045711A1
WO2018045711A1 PCT/CN2017/072058 CN2017072058W WO2018045711A1 WO 2018045711 A1 WO2018045711 A1 WO 2018045711A1 CN 2017072058 W CN2017072058 W CN 2017072058W WO 2018045711 A1 WO2018045711 A1 WO 2018045711A1
Authority
WO
WIPO (PCT)
Prior art keywords
absorption characteristic
target food
determining
food
infrared light
Prior art date
Application number
PCT/CN2017/072058
Other languages
French (fr)
Chinese (zh)
Inventor
贾鑫
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018045711A1 publication Critical patent/WO2018045711A1/en

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
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light

Definitions

  • This document relates to, but is not limited to, the field of communication technology, and relates to a method and device for determining food, and a mobile terminal.
  • Blind people are a large group in society. How to provide more convenient life services for blind users is a widespread concern. Especially the problems that must be faced every day, such as eating and drinking for the blind, the lack of vision makes the blind people unable to distinguish the food, which is easy to cause dangers such as eating, which brings great inconvenience and trouble to the blind.
  • the embodiment of the invention provides a method and a device for determining a food, and a mobile terminal, which solves the problem that the blind person cannot distinguish the food in the related art, thereby easily causing the danger of eating by mistake.
  • An embodiment of the present invention provides a food determining method, including: transmitting infrared light covering a preset frequency range to a target food and receiving corresponding reflected light; determining the target according to the emitted infrared light and the received reflected light.
  • the transmitting the infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light comprises: transmitting the infrared light covering the preset frequency range to the target food by changing a frequency of the infrared light Receive corresponding reflected light.
  • the preset frequency range includes at least one frequency interval.
  • the determining, according to the emitted infrared light and the received reflected light, the absorption characteristic information of the target food to the infrared light covering the preset frequency range comprises: respectively determining the The target food absorbs the infrared light of each frequency in the preset frequency range and draws a corresponding absorption characteristic curve by using the absorption rate corresponding to all the frequencies in the preset frequency range.
  • the comparing the absorption characteristic information with the pre-stored absorption characteristic model, and determining the name of the target food according to the comparison result comprises: determining a similarity between the absorption characteristic information and the absorption characteristic model, When the similarity between the absorption characteristic information and the absorption characteristic model is greater than a preset threshold, determining that the food name corresponding to the absorption characteristic model is the name of the target food.
  • the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a pair of longitudinal coordinate values of two points corresponding to the same abscissa in the absorption characteristic model as a pair Calculating a difference, obtaining a difference data queue; determining a standard deviation for each data in the difference data queue; determining a similarity between the absorption characteristic information and the absorption characteristic model according to the determined standard deviation.
  • the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a pair of longitudinal coordinate values of two points corresponding to the same abscissa in the absorption characteristic model as a pair Calculating a difference; determining a similarity between the absorption characteristic information and the absorption characteristic model according to a ratio of the number of points having a difference smaller than a preset range.
  • the method further includes: separately acquiring, by the one or more foods, absorption characteristic information of the infrared light of the preset frequency range to establish The absorption characteristics model for each food.
  • the method further comprises: receiving an infrared signal emitted by the target food itself to determine a temperature of the target food.
  • An embodiment of the present invention further provides a food determining apparatus, comprising: a transmitting and receiving unit, configured to emit infrared light covering a preset frequency range to a target food and receive corresponding reflected light; and determining a unit, configured to The infrared light emitted by the receiving unit and the received reflected light determine absorption characteristic information of the target food for infrared light covering the preset frequency range; and the comparing unit is configured to set the absorption characteristic information determined by the determining unit with the pre-stored The absorption characteristic model is compared, and the name of the target food is determined based on the comparison result.
  • the transmitting and receiving unit is configured to: emit infrared light that covers a preset frequency range and receive corresponding reflected light to the target food by changing a frequency of the infrared light.
  • the preset frequency range includes at least one frequency interval.
  • the determining unit is configured to: respectively determine an absorption rate of the target food to infrared light of each frequency in the preset frequency range, and use an absorption rate corresponding to all frequencies in the preset frequency range Draw the corresponding absorption characteristic curve.
  • the comparing unit is configured to: determine a similarity between the absorption characteristic information and the absorption characteristic model, where the similarity between the absorption characteristic information determined by the determining unit and the absorption characteristic model is greater than a preset threshold In the case, it is determined that the food name corresponding to the absorption characteristic model is the name of the target food.
  • the comparison unit includes a first similarity determination module, and the first similarity determination module is configured to: compare the absorption characteristic information with two points of the same abscissa in the absorption characteristic model The axis coordinate value is used as a pair of difference values to obtain a difference data queue; a standard deviation is obtained for each data in the difference data queue; and the absorption characteristic information is determined according to the obtained standard deviation The similarity of the absorption characteristic model.
  • the comparing unit includes a second similarity determining module, where the second similarity determining module is configured to: the longitudinal axis coordinate of the two points corresponding to the same abscissa in the absorption characteristic model The value is used as a pair of difference values; and the similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
  • the device further includes: an acquiring unit, configured to respectively acquire one or more infrared light of the food to the preset frequency range before determining the name of the target food according to the comparison result Absorbing characteristic information to establish a model of the absorption characteristics corresponding to each food.
  • an acquiring unit configured to respectively acquire one or more infrared light of the food to the preset frequency range before determining the name of the target food according to the comparison result Absorbing characteristic information to establish a model of the absorption characteristics corresponding to each food.
  • the device further includes: a temperature determining unit configured to receive an infrared signal emitted by the target food itself to determine a temperature of the target food after the determining the name of the target food according to the comparison result.
  • a temperature determining unit configured to receive an infrared signal emitted by the target food itself to determine a temperature of the target food after the determining the name of the target food according to the comparison result.
  • the embodiment of the invention further provides a mobile terminal, comprising: a processor, a memory, an infrared transceiver device, and an output device; the processor is configured to perform the following process: controlling the infrared transceiver device to transmit a preset frequency range to the target food Infrared light and receiving corresponding reflected light; determining, according to the emitted infrared light and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range; The information is compared with the pre-stored absorption characteristic model, and the name of the target food is determined according to the comparison result; the memory is set to be stored a program executed by the device; the infrared transceiver device is configured to emit infrared light covering a preset frequency range to the target food under the control of the processor and receive corresponding reflected light; the output device is configured to be in the After the processor determines the name of the target food, the name is output.
  • Embodiments of the present invention also provide a computer readable storage medium having computer executable instructions stored therein, the food executable method being implemented when the computer executable instructions are executed.
  • the food determining method and device provided by the embodiment of the present invention can determine the absorption characteristics of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light. Then, by comparing the absorption characteristic information with the pre-existing absorption characteristic model, the name of the target food is determined, thereby helping the blind person to identify the specific food and providing great convenience for the blind person's life.
  • Other aspects will be apparent upon reading and understanding the drawings and detailed description.
  • FIG. 1 is a flow chart of a food determining method according to an embodiment of the present invention.
  • FIG. 2 is a schematic view showing absorption of infrared light of different frequencies by different foods in an embodiment of the present invention
  • FIG. 3 is another flow chart of a food determining method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a food determining apparatus according to an embodiment of the present invention.
  • an embodiment of the present invention provides a food determining method, including:
  • Step S11 emitting infrared light covering a preset frequency range to the target food and receiving corresponding reflected light;
  • Step S12 determining, according to the emitted infrared light and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range;
  • step S13 the absorption characteristic information is compared with a pre-stored absorption characteristic model, and the name of the target food is determined according to the comparison result.
  • the food determining method provided by the embodiment of the present invention can determine the absorption characteristics of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic.
  • the information is compared with the pre-existing absorption characteristics model to determine the name of the target food, which can help the blind to identify the specific food and provide great convenience for the blind person's life.
  • step S11 by changing the frequency of the infrared light, infrared light covering a preset frequency range may be emitted to the target food and corresponding reflected light may be received, for example, may be sequentially performed for a period of time.
  • Increasing or decreasing the frequency of the infrared light wherein the infrared light of each frequency corresponds to a part of the absorbed light and a part of the reflected light on the target food.
  • infrared light of various frequencies can also be simultaneously emitted to the target food, and the absorption and reflection of the infrared light of the target food by the target food can be detected at one time.
  • the preset frequency range may include a frequency interval or a plurality of frequency intervals, and the specific range of the frequency interval may be determined according to the sensitivity and discrimination of the food to the infrared light, and the absorption characteristic is selected to most clearly distinguish one of the corresponding foods. Or multiple frequency bands.
  • step S12 determining, according to the emitted infrared light and the received reflected light, the absorption characteristic information of the target food to the infrared light covering the preset frequency range may include: separately determining The target food has an absorption rate of infrared light of each frequency in the preset frequency range, and draws a corresponding absorption characteristic curve by using an absorption rate corresponding to all frequencies in the preset frequency range.
  • the horizontal axis is the frequency of infrared light
  • the vertical axis is the absorption rate of food for infrared light.
  • Three different absorption characteristics are shown in the figure, corresponding to three kinds of foods.
  • the food has different infrared absorption and feedback for different frequencies, as shown in Table 1.
  • the absorption characteristic information can be compared with the pre-stored absorption characteristic model, and the name of the target food can be determined based on the comparison result.
  • determining the similarity between the absorption characteristic information and the absorption characteristic model if the similarity between the absorption characteristic information and the absorption characteristic model is greater than a preset threshold, determining that the food name corresponding to the absorption characteristic model is The name of the target food.
  • the absorption characteristic information and the absorption characteristic model can be expressed in various forms such as arrays, coordinates, curves, etc., but the essence reflects the absorption characteristics of food for different frequencies of infrared light. Taking the curve form as an example, how to compare the absorption characteristic information with the absorption characteristic model, and other forms of comparison methods are similar.
  • the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a vertical coordinate value of two points corresponding to the same abscissa in the absorption characteristic model as a pair a difference value, a difference data queue is obtained; a standard deviation is obtained for each data in the difference data queue; and a similarity between the absorption characteristic information and the absorption characteristic model is determined according to the determined standard deviation.
  • the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a vertical coordinate value of two points corresponding to the same abscissa in the absorption characteristic model as a pair a difference; determining a similarity between the absorption characteristic information and the absorption characteristic model according to a ratio of the number of points having a difference smaller than a preset range.
  • the discrimination methods mainly include the similarity function definition method and the eigenvalue method. It is assumed that the two curves A and B are each composed of N points, and the horizontal axis (X-axis) coordinate value of each point is the same, where N is a positive integer greater than or equal to 1. Among them, the curve A is a curve drawn based on the absorption characteristic information, and the curve B is a curve corresponding to the pre-stored absorption characteristic model. Alternatively, the following two methods can be used to determine the degree of similarity between curve B and curve A.
  • Method 1 The data values of the difference axes are obtained by taking the coordinate values of the vertical axes of the two points corresponding to the two curves as a pair, such as X 1 , X 2 , X 3 , ... Xn. Then, the standard deviation ⁇ is obtained, and its average value (arithmetic mean value) is ⁇ , as shown in the formula (1). The smaller the standard deviation obtained, the higher the similarity is, and the larger the standard deviation is, the lower the similarity is. If the standard deviation is less than the preset threshold, the two curves may be considered similar, and the food name corresponding to the absorption characteristic model is determined to be the name of the target food.
  • Method 2 Taking the vertical axis coordinate values of the two points corresponding to the two curves as a pair of difference values, assuming a data queue of the vertical axis (Y-axis) coordinate values of 50 key points, and then pressing the given curve
  • the key point calculation error the more points that fall within the error range, the higher the similarity. Therefore, an error range can be set in advance, and the maximum value and the minimum value of the Y-axis corresponding to each frequency point when the food is tested multiple times can be recorded as the error range.
  • the two curves are considered similar if the number of points falling within the error range is higher than the preset cover threshold (eg, 80%).
  • the 50 key points of the two curves do not coincide, but if more than 80% of the points (for example, 42 points) fall within the error range, then the two curves can be considered similar.
  • the name of the food corresponding to the pre-stored absorption characteristic model is determined as the name of the target food.
  • the detected food name can be broadcasted by sound, so that the blind can pre-determine what food is eaten.
  • the method further comprises: separately acquiring one or more food pairs The absorption characteristic information of the infrared light of the preset frequency range is used to establish an absorption characteristic model corresponding to each food.
  • each food material in the food absorbs different degrees of infrared invisible light at different frequencies, so the variation curve of the infrared absorption function of different foods is different.
  • the absorption The characteristic model may be a curve of the amount of infrared reflection, absorption, or reflectance, absorption rate, etc. recorded by the food as the frequency of the infrared light changes, and the curve is saved and corresponds to a food name to form an absorption characteristic model.
  • the infrared light frequency is sequentially increased in order, and the infrared function change curve value of the food return is obtained, and then compared with the pre-stored absorption characteristic model, the food name is obtained according to the correspondence relationship between the function change curve and the food name. .
  • the detection accuracy will increase as the library becomes more abundant.
  • the method may further include: receiving an infrared signal emitted by the target food itself to determine The temperature of the target food.
  • the temperature value of the target food can be determined by the corresponding relationship between the infrared parameter and the temperature built in the terminal, and after the voice value is broadcasted, the blind person can broadcast according to the broadcast.
  • the temperature value determines whether or not to eat, thus avoiding burns.
  • the correspondence between food and temperature can be as shown in Table 2.
  • the correspondence relationship with the object to be tested can be selected from the corresponding relationship according to the type information of the object to be tested.
  • the user can select the corresponding relationship of the temperature of the pasta; when the object to be tested is water
  • the user can choose to measure the correspondence of water temperature.
  • the terminal may select an infrared parameter and a temperature correspondence relationship that match the food name from the corresponding relationship according to the obtained food name, and the terminal may specifically identify the infrared parameter and the temperature corresponding to the object to be tested by determining the object to be tested, and determine the location.
  • the temperature value of the object to be tested is described.
  • the terminal can determine the infrared parameter and the temperature corresponding relationship of the object to be tested by identifying the object to be tested, and query the temperature value corresponding to the parameter of the infrared ray of the object to be tested, that is, obtain the object to be tested. Temperature value.
  • the output of the temperature value is not necessarily intuitive, and the words such as: cold food, hot food, hot food, suitable temperature, high temperature, and high temperature may be used instead of specific temperature values.
  • the food determining method provided by the embodiment of the present invention may further include a food position before emitting the infrared light of the preset frequency range and receiving the corresponding reflected light to the target food. Detection steps.
  • the smart terminal may determine whether an object exists in the preset range of the terminal; if there is an object, measure a distance between the terminal and the object; and determine whether the distance is less than a preset threshold; When the distance is less than the preset threshold, a voice prompt is issued to inform the user to start performing food name detection and temperature detection.
  • the preset range may be within a range in which the infrared temperature measuring device of the terminal emits infrared rays, and the determining manner may be that the infrared detecting device emits infrared rays into the preset range, if preset If there is an object in the range, the object will be reflected back after receiving the infrared light from the infrared temperature measuring device.
  • the measuring method of measuring the distance between the terminal and the object may be that the terminal emits infrared rays, and the object will reflect after receiving the infrared ray, and the terminal calculates the distance between the terminal and the object according to the speed of the infrared ray, the time of transmitting the infrared ray, and the time of receiving the infrared ray. . Then, it can be determined whether the measured distance between the terminal and the food is less than a preset threshold, and the preset threshold can be set according to an actual scene.
  • the preset threshold may be 1 meter, 50 cm, 20 cm, 5 cm, or the like. If the distance is less than a preset threshold, a voice prompt is sent to inform the user to start execution Food name detection and temperature detection.
  • the food determining method may include the following steps:
  • Step S201 determining a location of the target food to be tested
  • Determining whether there is an object in the preset range of the terminal if there is an object in the preset range, measuring a distance between the terminal and the object; determining whether the distance is less than a preset threshold; if the distance is less than a preset When the threshold is set, a voice prompt is issued to inform the user to start performing food name detection and temperature detection.
  • the infrared detecting device is used to emit infrared rays into a preset range. If an object exists in the preset range, the object will be reflected back after receiving the infrared rays of the infrared temperature measuring device.
  • the measuring method of measuring the distance between the terminal and the object may be that the control terminal emits infrared rays, and the object will reflect after receiving the infrared light, and the terminal calculates the distance between the terminal and the object according to the speed of the infrared light, the time of transmitting the infrared light, and the time of receiving the infrared light. distance. It is further determined whether the measured distance between the terminal and the food is less than a preset threshold, and the preset threshold may be set according to an actual scenario.
  • Step S202 transmitting infrared rays of a specific wavelength band to the target food to be tested and receiving infrared rays values of the wavelength band returned by the food;
  • the infrared frequency of the terminal emitting linearly to the food means sequentially emitting near-infrared invisible light of different wavelength bands, and the near-infrared invisible light of the different wavelength bands is different
  • the food material has the best absorption effect of the matching band of invisible light.
  • Step S203 the food name and each band infrared feedback parameter are associated to form an absorption characteristic model and saved to the terminal;
  • Step S204 when the next time the terminal is used to emit infrared invisible light to the food, the hair is sequentially increased. Sending a frequency for transmission, and measuring a variation curve of the received infrared value of the band;
  • Step S205 determining the name of the target food to be tested according to the correspondence between the infrared absorption parameter and the food name in the pre-stored absorption characteristic model;
  • the value of the change curve of the infrared absorption amount in the t time during which the food received by the terminal is returned is compared with Table 1, and the food name can be known.
  • the detected food name is sent to the controller, and the controller broadcasts the food name through the sound broadcast device, and the blind person can pre-determine what food is eaten according to the broadcasted food name.
  • Step S206 the infrared sensor detects a parameter of the target food radiating infrared rays
  • Step S207 Query the temperature corresponding to the parameter of the infrared radiation of the object to be tested according to the corresponding relationship between the infrared parameter and the temperature of each food name stored in advance, thereby obtaining the temperature value of the object to be tested.
  • an embodiment of the present invention further provides a food determining apparatus, including:
  • the transmitting and receiving unit 31 is configured to emit infrared light covering the preset frequency range to the target food and receive the corresponding reflected light;
  • the determining unit 32 is configured to determine, according to the infrared light emitted by the transmitting and receiving unit and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range;
  • the comparing unit 33 is configured to compare the absorption characteristic information determined by the determining unit with the pre-stored absorption characteristic model, and determine the name of the target food according to the comparison result.
  • the food determining apparatus provided by the embodiment of the invention can determine the absorption characteristic of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic The information is compared with the pre-existing absorption characteristics model to determine the name of the target food, which can help the blind to identify the specific food and provide great convenience for the blind person's life.
  • the transmitting and receiving unit 31 is configured to: emit infrared light that covers a preset frequency range and receive corresponding reflected light to the target food by changing a frequency of the infrared light.
  • the preset frequency range includes at least one frequency interval.
  • the determining unit 32 is configured to: respectively determine the target food to the preset frequency The absorption rate of infrared light at each frequency in the range, and the corresponding absorption characteristic curve is drawn by the absorption rate corresponding to all frequencies in the preset frequency range.
  • the comparing unit 33 is configured to: determine the similarity between the absorption characteristic information and the absorption characteristic model, where the similarity between the absorption characteristic information determined by the determining unit 32 and the absorption characteristic model is greater than a preset threshold And determining that the food name corresponding to the absorption characteristic model is the name of the target food.
  • the comparison unit includes a first similarity determination module, and the first similarity determination module is configured to: vertically axis the two points corresponding to the same abscissa in the absorption characteristic model The coordinate value is used as a pair of difference values to obtain a difference data queue X 1 , X 2 , X 3 , ... Xn; a standard deviation is obtained for each data in the difference data queue; The standard deviation determines the similarity of the absorption characteristic information to the absorption characteristic model.
  • the comparison unit includes a second similarity determination module, and the second similarity determination module is configured to: the longitudinal axis of the two points corresponding to the same abscissa in the absorption characteristic model The coordinate value is used as a pair of difference values; and the similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
  • the food determining apparatus may further include: an acquiring unit, configured to respectively acquire one or more foods to the preset before determining the name of the target food according to the comparison result
  • the absorption characteristic information of the infrared light in the frequency range is used to establish a corresponding absorption characteristic model for each food.
  • the food determining apparatus may further include a temperature determining unit configured to receive an infrared signal emitted by the target food itself to determine the target after determining the name of the target food according to the comparison result. The temperature of the food.
  • the embodiment of the invention further provides a mobile terminal, comprising: a processor, a memory, an infrared transceiver device, and an output device;
  • the processor is configured to perform a process of: controlling the infrared transceiver device to emit infrared light covering a preset frequency range to a target food and receiving corresponding reflected light; determining, according to the emitted infrared light and the received reflected light Absorbing characteristic information of the target food to infrared light covering the preset frequency range; comparing the absorption characteristic information with a pre-stored absorption characteristic model, and determining a name of the target food according to the comparison result;
  • the memory is configured to store a program executed by the processor
  • the infrared transceiver device is configured to emit infrared light covering a preset frequency range to the target food under the control of the processor and receive corresponding reflected light;
  • the output device is configured to output the name after the processor determines the name of the target food.
  • the embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented to implement a food confirmation method.
  • the mobile terminal provided by the embodiment of the present invention can determine the absorption characteristic of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic information.
  • the name of the target food is determined, which can help the blind person to identify the specific food and provide great convenience for the blind person's life.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present application.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (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

A method and device for determining a food item and a mobile terminal. The method comprises: transmitting an infrared light covering a preset frequency range to a target food item and receiving a corresponding reflected light (S11); determining, on the basis of the transmitted infrared light and of the received reflected light, absorption characteristic information of the target food item with respect to the infrared light covering the preset frequency range (S12); comparing the absorption characteristic information with a prestored absorption characteristic model, and determining the name of the target food item on the basis of the comparison result (S13). Solved is the problem in the prior art of a visually impaired person being prone to hazards of accidental ingestion due to inability to distinguish food items.

Description

一种食物确定方法及装置、移动终端Food determination method and device, mobile terminal 技术领域Technical field
本文涉及但不限于通信技术领域,涉及一种用于食物确定方法及装置、移动终端。This document relates to, but is not limited to, the field of communication technology, and relates to a method and device for determining food, and a mobile terminal.
背景技术Background technique
盲人是社会中的一个广大群体,如何为盲人用户提供更为方便的生活服务是人们广泛关注的问题。尤其是涉及到盲人的饮食起居等每天必须面对的问题,视力的缺失使盲人无法分辨食物,从而容易造成误食等危险,给盲人带来很大不便和困扰。Blind people are a large group in society. How to provide more convenient life services for blind users is a widespread concern. Especially the problems that must be faced every day, such as eating and drinking for the blind, the lack of vision makes the blind people unable to distinguish the food, which is easy to cause dangers such as eating, which brings great inconvenience and trouble to the blind.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种食物确定方法及装置、移动终端,解决了相关技术中盲人无法分辨食物,从而容易造成误食等危险的问题。The embodiment of the invention provides a method and a device for determining a food, and a mobile terminal, which solves the problem that the blind person cannot distinguish the food in the related art, thereby easily causing the danger of eating by mistake.
本发明实施例提供一种食物确定方法,包括:向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。An embodiment of the present invention provides a food determining method, including: transmitting infrared light covering a preset frequency range to a target food and receiving corresponding reflected light; determining the target according to the emitted infrared light and the received reflected light. The absorption characteristic information of the food to the infrared light covering the preset frequency range; comparing the absorption characteristic information with the pre-stored absorption characteristic model, and determining the name of the target food according to the comparison result.
可选的,所述向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光包括:通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光。Optionally, the transmitting the infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light comprises: transmitting the infrared light covering the preset frequency range to the target food by changing a frequency of the infrared light Receive corresponding reflected light.
可选的,所述预设频率范围包括至少一段频率区间。Optionally, the preset frequency range includes at least one frequency interval.
可选的,所述根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息包括:分别确定所述 目标食物对所述预设频率范围内每一种频率的红外光的吸收率并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。Optionally, the determining, according to the emitted infrared light and the received reflected light, the absorption characteristic information of the target food to the infrared light covering the preset frequency range comprises: respectively determining the The target food absorbs the infrared light of each frequency in the preset frequency range and draws a corresponding absorption characteristic curve by using the absorption rate corresponding to all the frequencies in the preset frequency range.
可选的,所述将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称包括:确定吸收特性信息与所述吸收特性模型的相似度,在所述吸收特性信息与所述吸收特性模型的相似度大于预设阈值时,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。Optionally, the comparing the absorption characteristic information with the pre-stored absorption characteristic model, and determining the name of the target food according to the comparison result comprises: determining a similarity between the absorption characteristic information and the absorption characteristic model, When the similarity between the absorption characteristic information and the absorption characteristic model is greater than a preset threshold, determining that the food name corresponding to the absorption characteristic model is the name of the target food.
可选的,所述确定吸收特性信息与所述吸收特性模型的相似度包括:将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值,得到差值数据队列;对所述差值数据队列中的每个数据求标准差;根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a pair of longitudinal coordinate values of two points corresponding to the same abscissa in the absorption characteristic model as a pair Calculating a difference, obtaining a difference data queue; determining a standard deviation for each data in the difference data queue; determining a similarity between the absorption characteristic information and the absorption characteristic model according to the determined standard deviation.
可选的,所述确定吸收特性信息与所述吸收特性模型的相似度包括:将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值;根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a pair of longitudinal coordinate values of two points corresponding to the same abscissa in the absorption characteristic model as a pair Calculating a difference; determining a similarity between the absorption characteristic information and the absorption characteristic model according to a ratio of the number of points having a difference smaller than a preset range.
可选地,在所述根据对比结果确定所述目标食物的名称之前,所述方法还包括:分别获取一种或多种食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。Optionally, before the determining the name of the target food according to the comparison result, the method further includes: separately acquiring, by the one or more foods, absorption characteristic information of the infrared light of the preset frequency range to establish The absorption characteristics model for each food.
可选地,在所述根据对比结果确定所述目标食物的名称之后,所述方法还包括:接收所述目标食物自身发射的红外信号以确定所述目标食物的温度。Optionally, after the determining the name of the target food according to the comparison result, the method further comprises: receiving an infrared signal emitted by the target food itself to determine a temperature of the target food.
本发明实施例还提供一种食物确定装置,包括:发射和接收单元,设置为向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;确定单元,设置为根据所述发射和接收单元发射的红外光与接收的反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;对比单元,设置为将所述确定单元确定的吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。An embodiment of the present invention further provides a food determining apparatus, comprising: a transmitting and receiving unit, configured to emit infrared light covering a preset frequency range to a target food and receive corresponding reflected light; and determining a unit, configured to The infrared light emitted by the receiving unit and the received reflected light determine absorption characteristic information of the target food for infrared light covering the preset frequency range; and the comparing unit is configured to set the absorption characteristic information determined by the determining unit with the pre-stored The absorption characteristic model is compared, and the name of the target food is determined based on the comparison result.
可选的,所述发射和接收单元是设置为:通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光。 Optionally, the transmitting and receiving unit is configured to: emit infrared light that covers a preset frequency range and receive corresponding reflected light to the target food by changing a frequency of the infrared light.
可选的,所述预设频率范围包括至少一段频率区间。Optionally, the preset frequency range includes at least one frequency interval.
可选的,所述确定单元是设置为:分别确定所述目标食物对所述预设频率范围内每一种频率的红外光的吸收率,并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。Optionally, the determining unit is configured to: respectively determine an absorption rate of the target food to infrared light of each frequency in the preset frequency range, and use an absorption rate corresponding to all frequencies in the preset frequency range Draw the corresponding absorption characteristic curve.
可选的,所述对比单元是设置为:确定吸收特性信息与所述吸收特性模型的相似度,在所述确定单元确定的吸收特性信息与所述吸收特性模型的相似度大于预设阈值的情况下,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。Optionally, the comparing unit is configured to: determine a similarity between the absorption characteristic information and the absorption characteristic model, where the similarity between the absorption characteristic information determined by the determining unit and the absorption characteristic model is greater than a preset threshold In the case, it is determined that the food name corresponding to the absorption characteristic model is the name of the target food.
可选的,所述对比单元包括第一相似度确定模块,所述第一相似度确定模块设置为:将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值,得到差值数据队列;对所述差值数据队列中的每个各数据求标准差;根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the comparison unit includes a first similarity determination module, and the first similarity determination module is configured to: compare the absorption characteristic information with two points of the same abscissa in the absorption characteristic model The axis coordinate value is used as a pair of difference values to obtain a difference data queue; a standard deviation is obtained for each data in the difference data queue; and the absorption characteristic information is determined according to the obtained standard deviation The similarity of the absorption characteristic model.
可选的,所述对比单元包括第二相似度确定模块,第二相似度确定模块设置为:将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值;根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the comparing unit includes a second similarity determining module, where the second similarity determining module is configured to: the longitudinal axis coordinate of the two points corresponding to the same abscissa in the absorption characteristic model The value is used as a pair of difference values; and the similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
可选地,所述装置还包括:获取单元,设置为在所述根据对比结果确定所述目标食物的名称之前,分别获取一种或多种哦你食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。Optionally, the device further includes: an acquiring unit, configured to respectively acquire one or more infrared light of the food to the preset frequency range before determining the name of the target food according to the comparison result Absorbing characteristic information to establish a model of the absorption characteristics corresponding to each food.
可选地,所述装置还包括:温度确定单元,设置为在所述根据对比结果确定所述目标食物的名称之后,接收所述目标食物自身发射的红外信号以确定所述目标食物的温度。Optionally, the device further includes: a temperature determining unit configured to receive an infrared signal emitted by the target food itself to determine a temperature of the target food after the determining the name of the target food according to the comparison result.
本发明实施例还提供一种移动终端,包括:处理器、存储器、红外收发器件、输出器件;所述处理器设置为执行以下流程:控制所述红外收发器件向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称;所述存储器设置为存储处理 器执行的程序;所述红外收发器件,设置为在所述处理器的控制下向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;所述输出器件,设置为在所述处理器确定所述目标食物的名称后,将所述名称输出。The embodiment of the invention further provides a mobile terminal, comprising: a processor, a memory, an infrared transceiver device, and an output device; the processor is configured to perform the following process: controlling the infrared transceiver device to transmit a preset frequency range to the target food Infrared light and receiving corresponding reflected light; determining, according to the emitted infrared light and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range; The information is compared with the pre-stored absorption characteristic model, and the name of the target food is determined according to the comparison result; the memory is set to be stored a program executed by the device; the infrared transceiver device is configured to emit infrared light covering a preset frequency range to the target food under the control of the processor and receive corresponding reflected light; the output device is configured to be in the After the processor determines the name of the target food, the name is output.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现食物确定方法。Embodiments of the present invention also provide a computer readable storage medium having computer executable instructions stored therein, the food executable method being implemented when the computer executable instructions are executed.
本发明实施例提供的食物确定方法及装置,移动终端,通过向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光,可以确定目标食物对这些频率的红外光呈现的吸收特性,然后通过将吸收特性信息与预存的吸收特性模型相对比,来确定出目标食物的名称,从而能够帮助盲人辨别出具体食物,为盲人的生活提供的极大的便利。在阅读并理解了附图和详细描述后,可以明白其它方面。The food determining method and device provided by the embodiment of the present invention can determine the absorption characteristics of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light. Then, by comparing the absorption characteristic information with the pre-existing absorption characteristic model, the name of the target food is determined, thereby helping the blind person to identify the specific food and providing great convenience for the blind person's life. Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图说明DRAWINGS
图1是本发明实施例提供的食物确定方法的流程图;1 is a flow chart of a food determining method according to an embodiment of the present invention;
图2是本发明实施例中不同的食物对不同频率的红外光的吸收情况的示意图;2 is a schematic view showing absorption of infrared light of different frequencies by different foods in an embodiment of the present invention;
图3是本发明实施例提供的食物确定方法的另一流程图;3 is another flow chart of a food determining method according to an embodiment of the present invention;
图4是本发明实施例提供的食物确定装置的结构示意图。FIG. 4 is a schematic structural diagram of a food determining apparatus according to an embodiment of the present invention.
具体实施方式detailed description
以下结合附图对本发明进行详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不限定本申请。The invention will be described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
如图1所示,本发明实施例提供一种食物确定方法,包括:As shown in FIG. 1 , an embodiment of the present invention provides a food determining method, including:
步骤S11,向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;Step S11, emitting infrared light covering a preset frequency range to the target food and receiving corresponding reflected light;
步骤S12,根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息; Step S12: determining, according to the emitted infrared light and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range;
步骤S13,将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。In step S13, the absorption characteristic information is compared with a pre-stored absorption characteristic model, and the name of the target food is determined according to the comparison result.
本发明实施例提供的食物确定方法,通过向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光,可以确定目标食物对这些频率的红外光呈现的吸收特性,然后通过将吸收特性信息与预存的吸收特性模型相对比,来确定出目标食物的名称,从而能够帮助盲人辨别出具体食物,为盲人的生活提供的极大的便利。The food determining method provided by the embodiment of the present invention can determine the absorption characteristics of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic. The information is compared with the pre-existing absorption characteristics model to determine the name of the target food, which can help the blind to identify the specific food and provide great convenience for the blind person's life.
在本实施例中,在步骤S11中,可以通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光,例如,可以在一段时间内依次增大或减小红外光的频率,其中每一种频率的红外光在目标食物上都对应有一部分吸收光和一部分反射光。当然,在本申请的其他实施例中,也可以同时向目标食物发射多种频率的红外光,一次性探测该目标食物对多种频率的红外光的吸收和反射情况。In this embodiment, in step S11, by changing the frequency of the infrared light, infrared light covering a preset frequency range may be emitted to the target food and corresponding reflected light may be received, for example, may be sequentially performed for a period of time. Increasing or decreasing the frequency of the infrared light, wherein the infrared light of each frequency corresponds to a part of the absorbed light and a part of the reflected light on the target food. Of course, in other embodiments of the present application, infrared light of various frequencies can also be simultaneously emitted to the target food, and the absorption and reflection of the infrared light of the target food by the target food can be detected at one time.
可选的,预设频率范围可以包括一段频率区间或者多段频率区间,频率区间的具体范围可以根据食物对红外光的敏感度和区分度来确定,选取吸收特性最能显著区分出相应食物的一个或者多个频段。Optionally, the preset frequency range may include a frequency interval or a plurality of frequency intervals, and the specific range of the frequency interval may be determined according to the sensitivity and discrimination of the food to the infrared light, and the absorption characteristic is selected to most clearly distinguish one of the corresponding foods. Or multiple frequency bands.
在本实施例中,在步骤S12中,根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息可包括:分别确定所述目标食物对所述预设频率范围内每一种频率的红外光的吸收率,并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。In this embodiment, in step S12, determining, according to the emitted infrared light and the received reflected light, the absorption characteristic information of the target food to the infrared light covering the preset frequency range may include: separately determining The target food has an absorption rate of infrared light of each frequency in the preset frequency range, and draws a corresponding absorption characteristic curve by using an absorption rate corresponding to all frequencies in the preset frequency range.
举例说明,如图2所示,横轴为红外光的频率,纵轴为食物对红外光的吸收率,图中展示了三条不同的吸收特性曲线,分别对应三种食物。食物对不同频率的红外线吸收和反馈不同,具体情况可如表1所示。For example, as shown in Figure 2, the horizontal axis is the frequency of infrared light, and the vertical axis is the absorption rate of food for infrared light. Three different absorption characteristics are shown in the figure, corresponding to three kinds of foods. The food has different infrared absorption and feedback for different frequencies, as shown in Table 1.
Figure PCTCN2017072058-appb-000001
Figure PCTCN2017072058-appb-000001
Figure PCTCN2017072058-appb-000002
Figure PCTCN2017072058-appb-000002
表1Table 1
得到目标食物的吸收特性曲线之后,在步骤S13中,即可将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。可选的,确定吸收特性信息与所述吸收特性模型的相似度,可以在吸收特性信息与吸收特性模型的相似度大于预设阈值的情况下,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。After obtaining the absorption characteristic curve of the target food, in step S13, the absorption characteristic information can be compared with the pre-stored absorption characteristic model, and the name of the target food can be determined based on the comparison result. Optionally, determining the similarity between the absorption characteristic information and the absorption characteristic model, if the similarity between the absorption characteristic information and the absorption characteristic model is greater than a preset threshold, determining that the food name corresponding to the absorption characteristic model is The name of the target food.
可选的,吸收特性信息和吸收特性模型可以以数组、坐标、曲线等多种形式展现,但本质都是反映了食物对不同频率的红外光的吸收特征。以曲线形式为例,说明如何将吸收特性信息与吸收特性模型相对比,其他形式的比较方法类似。Alternatively, the absorption characteristic information and the absorption characteristic model can be expressed in various forms such as arrays, coordinates, curves, etc., but the essence reflects the absorption characteristics of food for different frequencies of infrared light. Taking the curve form as an example, how to compare the absorption characteristic information with the absorption characteristic model, and other forms of comparison methods are similar.
可选的,所述确定吸收特性信息与所述吸收特性模型的相似度包括:将所述吸收特性信息与所述吸收特性模型中相同横坐标对应的两点的纵轴坐标值作为一对求差值,得到差值数据队列;对所述差值数据队列中的每个数据求标准差;根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a vertical coordinate value of two points corresponding to the same abscissa in the absorption characteristic model as a pair a difference value, a difference data queue is obtained; a standard deviation is obtained for each data in the difference data queue; and a similarity between the absorption characteristic information and the absorption characteristic model is determined according to the determined standard deviation.
可选的,所述确定吸收特性信息与所述吸收特性模型的相似度包括:将所述吸收特性信息与所述吸收特性模型中相同横坐标对应的两点的纵轴坐标值作为一对求差值;根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises: using the absorption characteristic information as a vertical coordinate value of two points corresponding to the same abscissa in the absorption characteristic model as a pair a difference; determining a similarity between the absorption characteristic information and the absorption characteristic model according to a ratio of the number of points having a difference smaller than a preset range.
在本实施例中,如何比较两条曲线的相似性已经有很多成熟算法,目前判别方法主要有相似性函数定义法和特征值法。假设2条曲线A和B均由N个点组成,且每个点的横轴(X轴)坐标值相同,其中N为大于等于1的正整数。其中,曲线A为根据吸收特性信息画出的曲线,而曲线B为预存的吸收特性模型对应的曲线。可选的,可以使用以下两种方法来判断曲线B和曲线A的相似程度。 In this embodiment, there are many mature algorithms for how to compare the similarity of two curves. At present, the discrimination methods mainly include the similarity function definition method and the eigenvalue method. It is assumed that the two curves A and B are each composed of N points, and the horizontal axis (X-axis) coordinate value of each point is the same, where N is a positive integer greater than or equal to 1. Among them, the curve A is a curve drawn based on the absorption characteristic information, and the curve B is a curve corresponding to the pre-stored absorption characteristic model. Alternatively, the following two methods can be used to determine the degree of similarity between curve B and curve A.
方法一:以将两条曲线对应的两点的纵轴坐标值作为一对求差值,得到一个差值的数据队列,如X1,X2,X3,......Xn。然后求标准差σ,其平均值(算术平均值)为μ,如公式(1)所示。求得的标准差越小可以认为相似度高,求得的标准差越大则相似度越低。如果标准差小于预设阈值,则可以认为这两条曲线相似,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。Method 1: The data values of the difference axes are obtained by taking the coordinate values of the vertical axes of the two points corresponding to the two curves as a pair, such as X 1 , X 2 , X 3 , ... Xn. Then, the standard deviation σ is obtained, and its average value (arithmetic mean value) is μ, as shown in the formula (1). The smaller the standard deviation obtained, the higher the similarity is, and the larger the standard deviation is, the lower the similarity is. If the standard deviation is less than the preset threshold, the two curves may be considered similar, and the food name corresponding to the absorption characteristic model is determined to be the name of the target food.
Figure PCTCN2017072058-appb-000003
Figure PCTCN2017072058-appb-000003
方法二:以将两条曲线对应的两点的纵轴坐标值作为一对求差值,假设有50个关键点的纵轴(Y轴)坐标值的数据队列,然后对给出的曲线按关键点计算误差,落入误差范围内的点越多,相似度就越高。因此,可以预先设定一个误差范围,将多次测试食物时的每个频率点对应的Y轴的最大值和最小值记录为误差范围。在进行实际测量时,如果落入误差范围内的点的数量高于预设盖里阈值(如80%)就可认为两条曲线相似。Method 2: Taking the vertical axis coordinate values of the two points corresponding to the two curves as a pair of difference values, assuming a data queue of the vertical axis (Y-axis) coordinate values of 50 key points, and then pressing the given curve The key point calculation error, the more points that fall within the error range, the higher the similarity. Therefore, an error range can be set in advance, and the maximum value and the minimum value of the Y-axis corresponding to each frequency point when the food is tested multiple times can be recorded as the error range. When the actual measurement is made, the two curves are considered similar if the number of points falling within the error range is higher than the preset cover threshold (eg, 80%).
例如,对于50个关键点的曲线,两条曲线的50个关键点都不重合,但是如果80%以上的点(例如42个点)都落入了误差范围,则可以认为两条曲线相似,确定预存的吸收特性模型对应的食物名称即为目标食物的名称。可以将检测到的食物名称通过声音播报出来,这样可使盲人预先判断吃的是什么食物。For example, for a curve with 50 key points, the 50 key points of the two curves do not coincide, but if more than 80% of the points (for example, 42 points) fall within the error range, then the two curves can be considered similar. The name of the food corresponding to the pre-stored absorption characteristic model is determined as the name of the target food. The detected food name can be broadcasted by sound, so that the blind can pre-determine what food is eaten.
上述实施例中,需要将确定出的吸收特性信息与预存的吸收特性模型相对比,可见吸收特性模型的准确与否直接关系着能否准确判断出是哪种食物。为了获取到准确的吸收特性模型,可选地,在本发明实施例中,在所述根据对比结果确定所述目标食物的名称之前,所述方法还包括:分别获取一种或多种食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。In the above embodiment, it is necessary to compare the determined absorption characteristic information with the pre-stored absorption characteristic model. It can be seen that the accuracy of the absorption characteristic model is directly related to whether or not the food can be accurately determined. In order to obtain an accurate absorption characteristic model, optionally, in the embodiment of the present invention, before the determining the name of the target food according to the comparison result, the method further comprises: separately acquiring one or more food pairs The absorption characteristic information of the infrared light of the preset frequency range is used to establish an absorption characteristic model corresponding to each food.
需要说明的是,食物中每种食物材料对不同频率的红外不可见光吸收程度不同,所以不同的食物的对红外线吸收量函数变化曲线是不同的。该吸收 特性模型可以是随着红外光频率的变化记录的食物对红外线反射量、吸收量、或者反射率、吸收率等的变化曲线,将该曲线保存并对应一个食物名称,形成吸收特性模型。It should be noted that each food material in the food absorbs different degrees of infrared invisible light at different frequencies, so the variation curve of the infrared absorption function of different foods is different. The absorption The characteristic model may be a curve of the amount of infrared reflection, absorption, or reflectance, absorption rate, etc. recorded by the food as the frequency of the infrared light changes, and the curve is saved and corresponds to a food name to form an absorption characteristic model.
当下一次向食物发出红外光时,顺序依次增大红外光频率,获取食物返回的红外线函数变化曲线数值,然后和预先存储的吸收特性模型相比较,根据函数变化曲线和食物名称对应关系得到食物名称。这样,随着用户的使用和记录数据不断的增加,检测精度也会随着函数库的不断丰富而提升。When the infrared light is emitted to the food next time, the infrared light frequency is sequentially increased in order, and the infrared function change curve value of the food return is obtained, and then compared with the pre-stored absorption characteristic model, the food name is obtained according to the correspondence relationship between the function change curve and the food name. . Thus, as the user's usage and recorded data continue to increase, the detection accuracy will increase as the library becomes more abundant.
可选地,在所述根据对比结果确定所述目标食物的名称之后,为了避免用户食用食物时造成烫伤等情况,所述方法还可包括:接收所述目标食物自身发射的红外信号以确定所述目标食物的温度。Optionally, after the determining the name of the target food according to the comparison result, in order to avoid a situation such as burns caused by the user eating the food, the method may further include: receiving an infrared signal emitted by the target food itself to determine The temperature of the target food.
在本实施例中,检测到的目标食物辐射红外线的参数后,可以通过内置在终端的红外线参数与温度的对应关系,确定目标食物的温度值,将该温度值语音播报后,盲人可根据播报的温度数值判断是否进食,从而避免了烫伤。食物与温度的对应关系可如表2所示。In this embodiment, after detecting the parameter of the infrared radiation of the target food, the temperature value of the target food can be determined by the corresponding relationship between the infrared parameter and the temperature built in the terminal, and after the voice value is broadcasted, the blind person can broadcast according to the broadcast. The temperature value determines whether or not to eat, thus avoiding burns. The correspondence between food and temperature can be as shown in Table 2.
食物材料ingredients 温度数值Temperature value 红外线参数Infrared parameter
食物1Food 1 温度1Temperature 1 参数1Parameter 1
  温度2Temperature 2 参数2Parameter 2
  温度3Temperature 3 参数3Parameter 3
  ... ...
食物2Food 2 温度1Temperature 1 参数1Parameter 1
  温度2Temperature 2 参数2Parameter 2
  温度3Temperature 3 参数3Parameter 3
  ... ...
表2Table 2
在本实施例中,当待测物的温度高于绝对零度(即-273.15℃)时,会时刻向外界辐射红外线。由于红外参数和温度的对应关系对于与其相对应的测温 对象的测量精度较高,而对于其它类型的测温对象的测量精度较低。例如,红外参数和水温的对应关系对于水的测试精度较高,而对于面食的测试精度较低。所以可以根据待测物的种类信息从对应关系中选择与该待测物相匹配的对应关系,例如,待测物为面食时,用户可选择测量面食温度的对应关系;待测物为水时,用户可选择测量水温度的对应关系。终端可根据得到的食物名称从对应关系中选择与食物名称匹配的红外参数和温度对应关系,终端具体可通过对待测物进行识别以获取该待测物对应的红外参数和温度对应关系,确定所述待测物的温度值。在本实施例中,终端可以通过对待测物进行识别而确定待测物对应的红外参数和温度对应关系,查询得到该待测物辐射红外线的参数对应的温度值,也即得到该待测物的温度值。In the present embodiment, when the temperature of the object to be tested is higher than the absolute zero (i.e., -273.15 ° C), infrared rays are radiated to the outside. Because of the corresponding relationship between infrared parameters and temperature, the corresponding temperature measurement The measurement accuracy of the object is high, while the measurement accuracy for other types of temperature measurement objects is low. For example, the correspondence between the infrared parameter and the water temperature is higher for the water test accuracy, and for the pasta test. Therefore, the correspondence relationship with the object to be tested can be selected from the corresponding relationship according to the type information of the object to be tested. For example, when the object to be tested is a pasta, the user can select the corresponding relationship of the temperature of the pasta; when the object to be tested is water The user can choose to measure the correspondence of water temperature. The terminal may select an infrared parameter and a temperature correspondence relationship that match the food name from the corresponding relationship according to the obtained food name, and the terminal may specifically identify the infrared parameter and the temperature corresponding to the object to be tested by determining the object to be tested, and determine the location. The temperature value of the object to be tested is described. In this embodiment, the terminal can determine the infrared parameter and the temperature corresponding relationship of the object to be tested by identifying the object to be tested, and query the temperature value corresponding to the parameter of the infrared ray of the object to be tested, that is, obtain the object to be tested. Temperature value.
可选的,以温度的数值作为结果输出不一定直观,也可以选用例如:食物较冷、食物较热、食物较烫、温度适宜、温度比较高、温度过高等词来代替具体的温度数值。Optionally, the output of the temperature value is not necessarily intuitive, and the words such as: cold food, hot food, hot food, suitable temperature, high temperature, and high temperature may be used instead of specific temperature values.
可选地,为了能在合适的场合使用用餐辅助功能,在向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光之前,本发明实施例提供的食物确定方法还可包括食物位置的检测步骤。Optionally, in order to be able to use the meal assisting function in a suitable occasion, the food determining method provided by the embodiment of the present invention may further include a food position before emitting the infrared light of the preset frequency range and receiving the corresponding reflected light to the target food. Detection steps.
在本实施例中,智能终端可以判断所述终端预设范围内是否存在物体;若存在物体,则测量所述终端与所述物体之间的距离;判断所述距离是否小于预设阈值;若所述距离小于预设阈值,则发出语音提示,告知用户开始执行食物名称检测和温度检测。In this embodiment, the smart terminal may determine whether an object exists in the preset range of the terminal; if there is an object, measure a distance between the terminal and the object; and determine whether the distance is less than a preset threshold; When the distance is less than the preset threshold, a voice prompt is issued to inform the user to start performing food name detection and temperature detection.
首先判断终端预设范围内是否存在物体,其中,预设范围可以为终端的红外测温装置发射红外线的范围之内,判断方式可以是利用红外探测装置向预设范围内发射红外线,若预设范围内存在物体,则该物体接收到红外测温装置的红外线后会反射回来。测量终端与物体之间的距离的测量方式可以是终端发射红外线,物体接收到该红外线后会进行反射,终端根据红外线的速度、发送红外线时间以及接收红外线时间,计算出终端与物体之间的距离。然后可以判断所测量的终端与食物之间的距离是否小于预设阈值,预设阈值可以根据实际场景进行设定,例如,预设阈值可以是1米、50厘米、20厘米、5厘米等。若所述距离小于预设阈值,则发出语音提示,告知用户开始执行 食物名称检测和温度检测。First, it is determined whether there is an object in the preset range of the terminal, wherein the preset range may be within a range in which the infrared temperature measuring device of the terminal emits infrared rays, and the determining manner may be that the infrared detecting device emits infrared rays into the preset range, if preset If there is an object in the range, the object will be reflected back after receiving the infrared light from the infrared temperature measuring device. The measuring method of measuring the distance between the terminal and the object may be that the terminal emits infrared rays, and the object will reflect after receiving the infrared ray, and the terminal calculates the distance between the terminal and the object according to the speed of the infrared ray, the time of transmitting the infrared ray, and the time of receiving the infrared ray. . Then, it can be determined whether the measured distance between the terminal and the food is less than a preset threshold, and the preset threshold can be set according to an actual scene. For example, the preset threshold may be 1 meter, 50 cm, 20 cm, 5 cm, or the like. If the distance is less than a preset threshold, a voice prompt is sent to inform the user to start execution Food name detection and temperature detection.
下面通过具体实施例对本申请提供的食物确定方法进行详细说明。如图3所示,本实施例中,食物确定方法可包括如下步骤:The food determination method provided by the present application will be described in detail below by way of specific examples. As shown in FIG. 3, in this embodiment, the food determining method may include the following steps:
步骤S201,确定待测的目标食物的位置;Step S201, determining a location of the target food to be tested;
判断所述终端预设范围内是否存在物体;若预设范围内存在物体,则测量所述终端与所述物体之间的距离;判断所述距离是否小于预设阈值;若所述距离小于预设阈值,则发出语音提示,告知用户开始执行食物名称检测和温度检测。Determining whether there is an object in the preset range of the terminal; if there is an object in the preset range, measuring a distance between the terminal and the object; determining whether the distance is less than a preset threshold; if the distance is less than a preset When the threshold is set, a voice prompt is issued to inform the user to start performing food name detection and temperature detection.
在本实施例中,利用红外探测装置向预设范围内发射红外线,若预设范围内存在物体,则该物体接收到红外测温装置的红外线后会反射回来。测量终端与物体之间的距离的测量方式可以是控制终端发射红外线,物体接收到该红外线后会进行反射,终端根据红外线的速度、发送红外线时间以及接收红外线时间,计算出终端与物体之间的距离。进一步判断所测量的终端与食物之间的距离是否小于预设阈值,预设阈值可以根据实际场景进行设定。In this embodiment, the infrared detecting device is used to emit infrared rays into a preset range. If an object exists in the preset range, the object will be reflected back after receiving the infrared rays of the infrared temperature measuring device. The measuring method of measuring the distance between the terminal and the object may be that the control terminal emits infrared rays, and the object will reflect after receiving the infrared light, and the terminal calculates the distance between the terminal and the object according to the speed of the infrared light, the time of transmitting the infrared light, and the time of receiving the infrared light. distance. It is further determined whether the measured distance between the terminal and the food is less than a preset threshold, and the preset threshold may be set according to an actual scenario.
步骤S202,向待测的目标食物发送特定波段的红外线并接收食物所返回的该波段的红外线数值;Step S202, transmitting infrared rays of a specific wavelength band to the target food to be tested and receiving infrared rays values of the wavelength band returned by the food;
在扫描食物时,t时间内线性增大红外线频率,所述终端向食物发出线性增大的红外线频率是指依次发出不同波段的近红外不可见光,所述不同波段的近红外不可见光是使不同的食物材料有最佳吸收效果的匹配波段的不可见光。When scanning food, linearly increasing the infrared frequency in t time, the infrared frequency of the terminal emitting linearly to the food means sequentially emitting near-infrared invisible light of different wavelength bands, and the near-infrared invisible light of the different wavelength bands is different The food material has the best absorption effect of the matching band of invisible light.
步骤S203,将食物名称和每个波段红外线反馈参数对应起来形成吸收特性模型保存到终端;Step S203, the food name and each band infrared feedback parameter are associated to form an absorption characteristic model and saved to the terminal;
可选的,该反馈参数可以包括红外光反射量、反射率、吸收量、吸收率等。终端记录t时刻内红外线吸收量数值的变化曲线,形成一个t时间内红外线吸收量变化的函数关系,并和食物名称一起存储在终端,形成如表1的对应关系。Optionally, the feedback parameter may include infrared light reflection amount, reflectance, absorption amount, absorption rate, and the like. The terminal records the change curve of the infrared absorption amount value at time t, and forms a functional relationship of the change of the infrared absorption amount in the t time, and stores it in the terminal together with the food name to form a correspondence relationship as shown in Table 1.
步骤S204,当下一次使用终端向食物发出红外不可见光时,依次增大发 送频率进行发送,测量所接收的该波段红外线的数值的变化曲线;Step S204, when the next time the terminal is used to emit infrared invisible light to the food, the hair is sequentially increased. Sending a frequency for transmission, and measuring a variation curve of the received infrared value of the band;
步骤S205,根据预存的吸收特性模型中的红外吸收参数与食物名称的对应关系确定待测的目标食物的名称;Step S205, determining the name of the target food to be tested according to the correspondence between the infrared absorption parameter and the food name in the pre-stored absorption characteristic model;
将终端接收到的食物返回的t时间内红外线吸收量的变化曲线数值和表1进行比较,就能够得知食物名称。将检测到的食物名称发送至控制器,控制器通过声音播报装置播报出食物名称,盲人可根据播报的食物名称预先判断吃的是什么食物。The value of the change curve of the infrared absorption amount in the t time during which the food received by the terminal is returned is compared with Table 1, and the food name can be known. The detected food name is sent to the controller, and the controller broadcasts the food name through the sound broadcast device, and the blind person can pre-determine what food is eaten according to the broadcasted food name.
步骤S206,红外传感器检测到目标食物辐射红外线的参数;Step S206, the infrared sensor detects a parameter of the target food radiating infrared rays;
步骤S207,根据预先保存的每种食物名称红外线参数与温度的对应关系,查询到该待测物辐射红外线的参数对应的温度,从而得到该待测物的温度值。Step S207: Query the temperature corresponding to the parameter of the infrared radiation of the object to be tested according to the corresponding relationship between the infrared parameter and the temperature of each food name stored in advance, thereby obtaining the temperature value of the object to be tested.
如图4所示,本发明实施例还提供一种食物确定装置,包括:As shown in FIG. 4, an embodiment of the present invention further provides a food determining apparatus, including:
发射和接收单元31,设置为向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;The transmitting and receiving unit 31 is configured to emit infrared light covering the preset frequency range to the target food and receive the corresponding reflected light;
确定单元32,设置为根据所述发射和接收单元发射的红外光与接收的反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;The determining unit 32 is configured to determine, according to the infrared light emitted by the transmitting and receiving unit and the received reflected light, absorption characteristic information of the target food on infrared light covering the preset frequency range;
对比单元33,设置为将所述确定单元确定的吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。The comparing unit 33 is configured to compare the absorption characteristic information determined by the determining unit with the pre-stored absorption characteristic model, and determine the name of the target food according to the comparison result.
本发明实施例提供的食物确定装置,通过向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光,可以确定目标食物对这些频率的红外光呈现的吸收特性,然后通过将吸收特性信息与预存的吸收特性模型相对比,来确定出目标食物的名称,从而能够帮助盲人辨别出具体食物,为盲人的生活提供的极大的便利。The food determining apparatus provided by the embodiment of the invention can determine the absorption characteristic of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic The information is compared with the pre-existing absorption characteristics model to determine the name of the target food, which can help the blind to identify the specific food and provide great convenience for the blind person's life.
可选的,发射和接收单元31是设置为:通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光。Optionally, the transmitting and receiving unit 31 is configured to: emit infrared light that covers a preset frequency range and receive corresponding reflected light to the target food by changing a frequency of the infrared light.
可选的,所述预设频率范围包括至少一段频率区间。Optionally, the preset frequency range includes at least one frequency interval.
可选的,确定单元32是设置为:分别确定所述目标食物对所述预设频率 范围内每一种频率的红外光的吸收率,并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。Optionally, the determining unit 32 is configured to: respectively determine the target food to the preset frequency The absorption rate of infrared light at each frequency in the range, and the corresponding absorption characteristic curve is drawn by the absorption rate corresponding to all frequencies in the preset frequency range.
可选的,对比单元33是设置为:确定吸收特性信息与所述吸收特性模型的相似度,在确定单元32确定的吸收特性信息与所述吸收特性模型的相似度大于预设阈值的情况下,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。Optionally, the comparing unit 33 is configured to: determine the similarity between the absorption characteristic information and the absorption characteristic model, where the similarity between the absorption characteristic information determined by the determining unit 32 and the absorption characteristic model is greater than a preset threshold And determining that the food name corresponding to the absorption characteristic model is the name of the target food.
可选的,所述对比单元包括第一相似度确定模块,所述第一相似度确定模块设置为:将所述吸收特性信息与所述吸收特性模型中相同横坐标对应的两点的纵轴坐标值作为一对求差值,得到差值数据队列X1,X2,X3,......Xn;对所述差值数据队列中的每个数据求标准差;根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the comparison unit includes a first similarity determination module, and the first similarity determination module is configured to: vertically axis the two points corresponding to the same abscissa in the absorption characteristic model The coordinate value is used as a pair of difference values to obtain a difference data queue X 1 , X 2 , X 3 , ... Xn; a standard deviation is obtained for each data in the difference data queue; The standard deviation determines the similarity of the absorption characteristic information to the absorption characteristic model.
可选的,所述对比单元包括第二相似度确定模块,所述第二相似度确定模块设置为:将所述吸收特性信息与所述吸收特性模型中相同横坐标对应的两点的纵轴坐标值作为一对求差值;根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。Optionally, the comparison unit includes a second similarity determination module, and the second similarity determination module is configured to: the longitudinal axis of the two points corresponding to the same abscissa in the absorption characteristic model The coordinate value is used as a pair of difference values; and the similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
可选地,本发明实施例提供的食物确定装置还可包括:获取单元,设置为在所述根据对比结果确定所述目标食物的名称之前,分别获取一种或多种食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。Optionally, the food determining apparatus provided by the embodiment of the present invention may further include: an acquiring unit, configured to respectively acquire one or more foods to the preset before determining the name of the target food according to the comparison result The absorption characteristic information of the infrared light in the frequency range is used to establish a corresponding absorption characteristic model for each food.
可选地,本发明实施例提供的食物确定装置还可包括温度确定单元,设置为在根据对比结果确定所述目标食物的名称之后,接收所述目标食物自身发射的红外信号以确定所述目标食物的温度。Optionally, the food determining apparatus provided by the embodiment of the present invention may further include a temperature determining unit configured to receive an infrared signal emitted by the target food itself to determine the target after determining the name of the target food according to the comparison result. The temperature of the food.
本发明实施例还提供一种移动终端,包括:处理器、存储器、红外收发器件、输出器件;The embodiment of the invention further provides a mobile terminal, comprising: a processor, a memory, an infrared transceiver device, and an output device;
所述处理器设置为执行以下流程:控制所述红外收发器件向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称; The processor is configured to perform a process of: controlling the infrared transceiver device to emit infrared light covering a preset frequency range to a target food and receiving corresponding reflected light; determining, according to the emitted infrared light and the received reflected light Absorbing characteristic information of the target food to infrared light covering the preset frequency range; comparing the absorption characteristic information with a pre-stored absorption characteristic model, and determining a name of the target food according to the comparison result;
所述存储器,设置为存储处理器执行的程序;The memory is configured to store a program executed by the processor;
所述红外收发器件,设置为在所述处理器的控制下向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;The infrared transceiver device is configured to emit infrared light covering a preset frequency range to the target food under the control of the processor and receive corresponding reflected light;
所述输出器件,设置为在所述处理器确定所述目标食物的名称后,将所述名称输出。The output device is configured to output the name after the processor determines the name of the target food.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现食物确认方法。The embodiment of the invention further provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions, and the computer executable instructions are implemented to implement a food confirmation method.
本发明实施例提供的移动终端,通过向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光,可以确定目标食物对这些频率的红外光呈现的吸收特性,然后通过将吸收特性信息与预存的吸收特性模型相对比,来确定出目标食物的名称,从而能够帮助盲人辨别出具体食物,为盲人的生活提供的极大的便利。The mobile terminal provided by the embodiment of the present invention can determine the absorption characteristic of the target food for the infrared light of the frequency by emitting infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light, and then adopting the absorption characteristic information. In contrast to the pre-existing absorption characteristics model, the name of the target food is determined, which can help the blind person to identify the specific food and provide great convenience for the blind person's life.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present application.
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above is only an alternative embodiment of the present application, and thus does not limit the scope of the patent application, and the equivalent structure or equivalent process transformation of the specification and the drawings of the present application, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of this application.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software. A person skilled in the art should understand that the technical solutions of the present application can be modified or equivalent, without departing from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
工业实用性Industrial applicability
上述技术方案可以帮助盲人辨别出具体食物,为盲人的生活提供的极大的便利。 The above technical solutions can help blind people to identify specific foods and provide great convenience for the lives of the blind.

Claims (19)

  1. 一种食物确定方法,包括:A food determination method comprising:
    向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;Infrared light covering a preset frequency range is emitted to the target food and receives corresponding reflected light;
    根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;Determining absorption characteristic information of the target food against infrared light covering the preset frequency range according to the emitted infrared light and the received reflected light;
    将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。The absorption characteristic information is compared with a pre-stored absorption characteristic model, and the name of the target food is determined based on the comparison result.
  2. 根据权利要求1所述的方法,其中:所述向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光包括:The method according to claim 1, wherein the transmitting the infrared light covering the preset frequency range to the target food and receiving the corresponding reflected light comprises:
    通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光。By changing the frequency of the infrared light, infrared light covering a predetermined frequency range is emitted to the target food and corresponding reflected light is received.
  3. 根据权利要求1所述的方法,其中:所述预设频率范围包括至少一段频率区间。The method of claim 1 wherein: said predetermined frequency range comprises at least one frequency interval.
  4. 根据权利要求1所述的方法,其中:所述根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息包括:The method according to claim 1, wherein the determining, according to the emitted infrared light and the received reflected light, the absorption characteristic information of the target food to infrared light covering the preset frequency range comprises:
    分别确定所述目标食物对所述预设频率范围内每一种频率的红外光的吸收率,并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。The absorption rate of the infrared light of the target food to each frequency in the preset frequency range is respectively determined, and the corresponding absorption characteristic curve is drawn by using the absorption rate corresponding to all the frequencies in the preset frequency range.
  5. 根据权利要求1所述的方法,其中:所述将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称包括:The method according to claim 1, wherein said comparing said absorption characteristic information with a pre-stored absorption characteristic model, and determining the name of said target food based on the comparison result comprises:
    确定吸收特性信息与所述吸收特性模型的相似度,在所述吸收特性信息与所述吸收特性模型的相似度大于预设阈值时,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。Determining the similarity between the absorption characteristic information and the absorption characteristic model, and determining that the food name corresponding to the absorption characteristic model is the target food when the similarity between the absorption characteristic information and the absorption characteristic model is greater than a preset threshold The name.
  6. 根据权利要求5所述的方法,其中:所述确定吸收特性信息与所述吸收特性模型的相似度包括:The method of claim 5 wherein: the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises:
    将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的 纵轴坐标值作为一对求差值,得到差值数据队列;The absorption characteristic information and the absorption characteristic model have two points corresponding to the same abscissa The vertical axis coordinate value is used as a pair of difference values to obtain a difference data queue;
    对所述差值数据队列中的每个数据求标准差;Finding a standard deviation for each of the data in the difference data queue;
    根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。A similarity between the absorption characteristic information and the absorption characteristic model is determined based on the determined standard deviation.
  7. 根据权利要求5所述的方法,其中:所述确定吸收特性信息与所述吸收特性模型的相似度包括:The method of claim 5 wherein: the determining the similarity between the absorption characteristic information and the absorption characteristic model comprises:
    将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值;The absorption characteristic information and the longitudinal axis coordinate values of the two points corresponding to the same abscissa in the absorption characteristic model are used as a pair of difference values;
    根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。The similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
  8. 根据权利要求1至7中任一项所述的方法,在所述根据对比结果确定所述目标食物的名称之前,所述方法还包括:The method according to any one of claims 1 to 7, before the determining the name of the target food based on the comparison result, the method further comprising:
    分别获取一种或多种食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。The absorption characteristic information of the infrared light of the predetermined frequency range of the one or more foods is separately obtained to establish an absorption characteristic model corresponding to each food.
  9. 根据权利要求1至7中任一项所述的方法,在所述根据对比结果确定所述目标食物的名称之后,所述方法还包括:The method according to any one of claims 1 to 7, after the determining the name of the target food based on the comparison result, the method further comprises:
    接收所述目标食物自身发射的红外信号以确定所述目标食物的温度。Receiving an infrared signal emitted by the target food itself to determine a temperature of the target food.
  10. 一种食物确定装置,包括:A food determining device comprising:
    发射和接收单元,设置为向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;a transmitting and receiving unit configured to emit infrared light covering a preset frequency range to the target food and receive corresponding reflected light;
    确定单元,设置为根据所述发射和接收单元发射的红外光与接收的反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;a determining unit configured to determine, according to the infrared light emitted by the transmitting and receiving unit and the received reflected light, absorption characteristic information of the target food to infrared light covering the preset frequency range;
    对比单元,设置为将所述确定单元确定的吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称。The comparing unit is configured to compare the absorption characteristic information determined by the determining unit with the pre-stored absorption characteristic model, and determine the name of the target food according to the comparison result.
  11. 根据权利要求10所述的装置,其中,所述发射和接收单元是设置为:通过改变所述红外光的频率,向所述目标食物发射覆盖预设频率范围的红外光并接收相应的反射光。 The apparatus according to claim 10, wherein said transmitting and receiving unit is configured to: emit infrared light that covers a predetermined frequency range and receive corresponding reflected light to said target food by changing a frequency of said infrared light .
  12. 根据权利要求10所述的装置,其中:所述预设频率范围包括至少一段频率区间。The apparatus of claim 10 wherein: said predetermined frequency range comprises at least one frequency interval.
  13. 根据权利要求10所述的装置,其中,所述确定单元是设置为:分别确定所述目标食物对所述预设频率范围内每一种频率的红外光的吸收率,并利用预设频率范围内所有频率对应的吸收率绘制相应的吸收特性曲线。The apparatus according to claim 10, wherein the determining unit is configured to: respectively determine an absorption rate of the target food to infrared light of each frequency within the preset frequency range, and utilize a preset frequency range The corresponding absorption curve is plotted for the absorbance corresponding to all frequencies.
  14. 根据权利要求10所述的装置,其中:所述对比单元是设置为:确定吸收特性信息与所述吸收特性模型的相似度,在所述吸收特性信息与所述吸收特性模型的相似度大于预设阈值的情况下,确定所述吸收特性模型对应的食物名称为所述目标食物的名称。The apparatus according to claim 10, wherein: said comparing unit is configured to: determine a similarity between said absorption characteristic information and said absorption characteristic model, wherein said absorption characteristic information is more similar to said absorption characteristic model than said In the case where the threshold is set, it is determined that the food name corresponding to the absorption characteristic model is the name of the target food.
  15. 根据权利要求14所述的装置,其中:所述对比单元包括第一相似度确定模块,所述第一相似度确定模块设置为:The apparatus of claim 14, wherein: said comparing unit comprises a first similarity determining module, said first similarity determining module being configured to:
    将所述吸收特性信息与所述吸收特性模型中相同横坐标对应的两点的纵轴坐标值作为一对求差值,得到差值数据队列;And calculating, by using the absorption characteristic information and the vertical axis coordinate values of two points corresponding to the same abscissa in the absorption characteristic model as a pair of difference values, to obtain a difference data queue;
    对所述差值数据队列中的每个数据求标准差;Finding a standard deviation for each of the data in the difference data queue;
    根据求出的所述标准差确定所述吸收特性信息与所述吸收特性模型的相似度。A similarity between the absorption characteristic information and the absorption characteristic model is determined based on the determined standard deviation.
  16. 根据权利要求14所述的装置,其中:所述对比单元包括第二相似度确定模块,第二相似度确定模块设置为:The apparatus according to claim 14, wherein: said comparing unit comprises a second similarity determining module, and said second similarity determining module is configured to:
    将所述吸收特性信息与所述吸收特性模型中,相同横坐标对应的两点的纵轴坐标值作为一对求差值;The absorption characteristic information and the longitudinal axis coordinate values of the two points corresponding to the same abscissa in the absorption characteristic model are used as a pair of difference values;
    根据差值小于预设范围的点的数量占比,确定所述吸收特性信息与所述吸收特性模型的相似度。The similarity between the absorption characteristic information and the absorption characteristic model is determined according to the ratio of the number of points whose difference is smaller than the preset range.
  17. 根据权利要求10至16中任一项所述的装置,所述装置还包括:The apparatus according to any one of claims 10 to 16, the apparatus further comprising:
    获取单元,设置为在所述根据对比结果确定所述目标食物的名称之前,分别获取一种或多种食物对所述预设频率范围的红外光的吸收特性信息,以建立每种食物对应的吸收特性模型。Obtaining a unit, configured to respectively acquire absorption characteristic information of one or more foods for infrared light of the preset frequency range before determining the name of the target food according to the comparison result, to establish corresponding to each food Absorption characteristics model.
  18. 根据权利要求10至16中任一项所述的装置,所述装置还包括:温度确定单元,设置为在所述根据对比结果确定所述目标食物的名称之后,接 收所述目标食物自身发射的红外信号以确定所述目标食物的温度。The apparatus according to any one of claims 10 to 16, further comprising: a temperature determining unit configured to, after determining the name of the target food based on the comparison result, An infrared signal emitted by the target food itself is received to determine the temperature of the target food.
  19. 一种移动终端,包括:处理器、存储器、红外收发器件、输出器件;A mobile terminal includes: a processor, a memory, an infrared transceiver device, and an output device;
    所述处理器,设置为执行以下流程:The processor is configured to perform the following process:
    控制所述红外收发器件向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;根据发射的所述红外光与接收的所述反射光确定所述目标食物对覆盖所述预设频率范围的红外光的吸收特性信息;将所述吸收特性信息与预存的吸收特性模型相对比,根据对比结果确定所述目标食物的名称;Controlling, the infrared transceiver device emits infrared light covering a preset frequency range to the target food and receives corresponding reflected light; determining, according to the emitted infrared light and the received reflected light, the target food pair covering the preset Absorption characteristic information of infrared light in a frequency range; comparing the absorption characteristic information with a pre-stored absorption characteristic model, and determining a name of the target food according to the comparison result;
    所述存储器,设置为存储处理器执行的程序;The memory is configured to store a program executed by the processor;
    所述红外收发器件,设置为在所述处理器的控制下向目标食物发射覆盖预设频率范围的红外光并接收相应的反射光;The infrared transceiver device is configured to emit infrared light covering a preset frequency range to the target food under the control of the processor and receive corresponding reflected light;
    所述输出器件,设置为在所述处理器确定所述目标食物的名称后,将所述名称输出。 The output device is configured to output the name after the processor determines the name of the target food.
PCT/CN2017/072058 2016-09-07 2017-01-22 Method and device for determining food item and mobile terminal WO2018045711A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610809502.8A CN107807106A (en) 2016-09-07 2016-09-07 A kind of food determines method and device, mobile terminal
CN201610809502.8 2016-09-07

Publications (1)

Publication Number Publication Date
WO2018045711A1 true WO2018045711A1 (en) 2018-03-15

Family

ID=61561349

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072058 WO2018045711A1 (en) 2016-09-07 2017-01-22 Method and device for determining food item and mobile terminal

Country Status (2)

Country Link
CN (1) CN107807106A (en)
WO (1) WO2018045711A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182411A (en) * 2020-11-09 2021-01-05 广州酷狗计算机科技有限公司 Multimedia data recommendation method and device, computer equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2737573B1 (en) * 1995-07-31 1997-09-26 Alliance Instr Sa METHOD FOR INFRARED ANALYSIS OF A SAMPLE AND DEVICE FOR CARRYING OUT THE METHOD
CN1936542A (en) * 2006-10-13 2007-03-28 杨振宁 Article kind based on infrared light-spectrum and device for identifying its true or false
CN1963463A (en) * 2006-11-29 2007-05-16 乐金电子(中国)研究开发中心有限公司 Analysis method and apparatus for nutrient ingredient of food based on mobile communication terminal
CN102297460A (en) * 2010-06-23 2011-12-28 乐金电子(天津)电器有限公司 Method of preventing users from being scalded after food heating by microwave oven
CN102866130A (en) * 2011-07-07 2013-01-09 夏普株式会社 Optical measurement analysis device, storage room, electromagnetic-wave generating device, and optical measurement analysis method
CN105241826A (en) * 2015-10-13 2016-01-13 惠州Tcl移动通信有限公司 Intelligent mobile terminal and food detection method using the same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102564997A (en) * 2012-01-17 2012-07-11 南京理工大学 Domestic near-infrared detection device for food quality
CN203233450U (en) * 2013-04-27 2013-10-09 翁整 Near-infrared food safety identification system
CN104390933A (en) * 2014-11-25 2015-03-04 广西壮族自治区梧州食品药品检验所 Rapid food and drug detection method based on near infrared technology
CN105891122A (en) * 2016-03-31 2016-08-24 广东小天才科技有限公司 Food component detection method and system of mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2737573B1 (en) * 1995-07-31 1997-09-26 Alliance Instr Sa METHOD FOR INFRARED ANALYSIS OF A SAMPLE AND DEVICE FOR CARRYING OUT THE METHOD
CN1936542A (en) * 2006-10-13 2007-03-28 杨振宁 Article kind based on infrared light-spectrum and device for identifying its true or false
CN1963463A (en) * 2006-11-29 2007-05-16 乐金电子(中国)研究开发中心有限公司 Analysis method and apparatus for nutrient ingredient of food based on mobile communication terminal
CN102297460A (en) * 2010-06-23 2011-12-28 乐金电子(天津)电器有限公司 Method of preventing users from being scalded after food heating by microwave oven
CN102866130A (en) * 2011-07-07 2013-01-09 夏普株式会社 Optical measurement analysis device, storage room, electromagnetic-wave generating device, and optical measurement analysis method
CN105241826A (en) * 2015-10-13 2016-01-13 惠州Tcl移动通信有限公司 Intelligent mobile terminal and food detection method using the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182411A (en) * 2020-11-09 2021-01-05 广州酷狗计算机科技有限公司 Multimedia data recommendation method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN107807106A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US20210235990A1 (en) Biological component measuring apparatus and biological component measuring method
WO2021184254A1 (en) Infrared thermal imaging temperature measurement method, electronic device, unmanned aerial vehicle and storage medium
US20180247212A1 (en) Method and device for evaluating cooking quality
TW201144769A (en) Time of flight system capable of increasing measurement accuracy, saving power and/or increasing motion detection rate and method thereof
US20230393234A1 (en) System and methods for detecting a position using differential attenuation
CN109051494B (en) Article monitoring system and method
US10753906B2 (en) System and method using sound signal for material and texture identification for augmented reality
KR101784755B1 (en) Apparatus for learning painting, method thereof and computer recordable medium storing program to perform the method
US20050140547A1 (en) Method of, and apparatus for, determining position
WO2018045711A1 (en) Method and device for determining food item and mobile terminal
CN109118636B (en) Service processing method and device
US20210041292A1 (en) Terahertz spectroscopy and imaging in dynamic environments
US9891110B1 (en) System including distance sensor for non-contact temperature sensing
CN108488989B (en) Air conditioner installation position determining method and device, readable storage medium and air conditioner
US20190101460A1 (en) Temperature gauge systems for remotely monitoring cooking sessions and methods thereto
US11099072B2 (en) Terahertz spectroscopy and imaging in dynamic environments with spectral response enhancements
US11555792B2 (en) Terahertz spectroscopy and imaging in dynamic environments with performance enhancements using ambient sensors
US20180106775A1 (en) Method and System For Human Presence Correlation Using Carbon Dioxide
KR102488997B1 (en) A method, server, device and program for measuring amount of food using potable device
US10775151B2 (en) Distance determination
WO2022134694A1 (en) Method and apparatus for identifying interference signal, and storage medium and processor
Liu et al. Fuzzy weighted location algorithm for abnormal target in wireless sensor networks
Tanbo et al. Active RFID attached object clustering method with new evaluation criterion for finding lost objects
CN113655470B (en) Object detection method, device, equipment and storage medium
CN112485782B (en) Sitting posture monitoring method and device, electronic equipment and readable storage medium

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: 17847887

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: 17847887

Country of ref document: EP

Kind code of ref document: A1