Method and device for reminding human body nutrition intake and electronic equipmentTechnical Field
The embodiment of the invention relates to the technical field of terminals, in particular to a method and a device for reminding human body nutrition intake and electronic equipment.
Background
With the increasing standard of living, more and more people begin to become obese. From the perspective of modern medicine, obesity is considered as a 'accident', and the obesity can cause heavy physical condition, inconvenient movement, mental disorder, various fatal diseases and even early death. Obesity is the most harmful to the health of people, and can cause a series of serious complications, such as hypertension, diabetes, dyslipidemia, coronary heart disease, malignant tumor and the like, and the diseases are the main killers of human health. Meanwhile, healthy diet and health care become important consideration for modern people today, so the eating link is especially critical. In the process of losing weight or controlling diet, the calorie of food, namely the calorie of the food, is inevitably controlled.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: in the prior art, when people need to control the nutrient intake of the human body, the people generally inquire the nutrient content of the human body of food on the internet, then evaluate the weight of the food to be eaten, and then judge the nutrient intake of the human body when eating by themselves, so that the steps for obtaining the nutrient intake of the human body are complicated and very inconvenient.
Disclosure of Invention
The embodiment of the invention mainly solves the technical problem of providing a method, a device and electronic equipment for reminding human body nutrition intake, and can solve the problem that in the prior art, when a user takes food, the steps for obtaining the human body nutrition intake of the food are complicated.
In order to solve the above technical problem, one technical solution adopted by the embodiments of the present invention is: provides a method for reminding the nutrition intake of a human body, which is applied to electronic equipment provided with double cameras,
the method comprises the following steps:
acquiring a first 3D picture generated after the food before eating is shot by the double cameras, and acquiring a first human body nutrient content contained in the food before eating according to the first 3D picture;
acquiring a second 3D picture generated after the double cameras shoot the eaten food, and acquiring a second human body nutrient content contained in the eaten food according to the second 3D picture;
and acquiring the nutrient intake of the fed human body according to the first human body nutrient content and the second human body nutrient content, and reminding to control the food intake according to the comparison result of the nutrient intake of the human body and the target human body nutrient intake.
Optionally, the obtaining a first 3D picture generated after the food before eating is photographed by the dual cameras, and obtaining a first human body nutrient content contained in the food before eating according to the first 3D picture includes:
acquiring the first 3D picture generated after the food before eating is shot by the double cameras, and acquiring the type, the quantity and the volume of the food before eating after image processing is carried out on the first 3D picture;
calculating the first human body nutrient content contained in the food before eating according to the type, the quantity and the volume of the food before eating.
Optionally, the obtaining a second 3D picture generated after the double cameras take a picture of the eaten food, and obtaining a second human body nutrient content contained in the eaten food according to the second 3D picture includes:
acquiring a second 3D picture generated after the food is shot by the double cameras, and acquiring the type, the quantity and the volume of the food after the food is eaten after image processing is carried out on the second 3D picture;
and calculating the second human body nutrient content contained in the eaten food according to the type, the quantity and the volume of the eaten food.
Optionally, the prompting to control the food intake according to the comparison result of the human body nutrition intake and the target human body nutrition intake comprises:
comparing the obtained human body nutrient intake with the target human body nutrient intake;
if the human body nutrient intake is less than the target human body nutrient intake, reminding to increase food intake;
if the human body nutrient intake is larger than the target human body nutrient intake, reminding to reduce the food intake;
if the human body nutrition intake is equal to the target human body nutrition intake, reminding to keep the food intake unchanged.
Optionally, the target human body nutrient intake is set by receiving an instruction or automatically generated according to human body data.
Optionally, the human nutrition includes protein, fat, carbohydrate, trace element data.
In order to solve the above technical problem, another technical solution adopted in the embodiments of the present invention is: the utility model provides a reminding device of human nutrition intake, is applied to the electronic equipment who is provided with two cameras, and wherein, the device includes:
the first nutrition content acquisition module is used for acquiring a first 3D picture generated after the food before eating is shot by the double cameras and acquiring a first human nutrition content contained in the food before eating according to the first 3D picture;
the second nutrition content acquisition module is used for acquiring a second 3D picture generated after the double cameras shoot the eaten food and acquiring second human nutrition content contained in the eaten food according to the second 3D picture;
and the comparison and reminding module is used for acquiring the fed human nutrition intake according to the first human nutrition content and the second human nutrition content and reminding to control the food intake according to the comparison result of the human nutrition intake and the target human nutrition intake.
Optionally, the first nutrient content obtaining module comprises:
the first food data acquisition unit is used for acquiring the first 3D picture generated after the food before eating is shot by the double cameras, and acquiring the type, the quantity and the volume of the food before eating after image processing is carried out on the first 3D picture;
the first nutrition content calculation unit is used for calculating the first human nutrition content contained in the food before eating according to the type, the quantity and the volume of the food before eating.
Optionally, the second nutrient content obtaining module comprises:
the second food data acquisition unit is used for acquiring a second 3D picture generated after the food is shot by the double cameras, and acquiring the type, the quantity and the volume of the food after the food is eaten after image processing is carried out on the second 3D picture;
and the second nutrient content calculation unit is used for calculating the second human body nutrient content contained in the eaten food according to the type, the quantity and the volume of the eaten food.
Optionally, the comparing and reminding module includes:
the comparison unit is used for comparing the acquired human body nutrition intake with the target human body nutrition intake;
the first reminding unit is used for reminding the increase of the food intake if the human body nutrition intake is smaller than the target human body nutrition intake;
the second reminding unit is used for reminding to reduce the food intake if the human body nutrition intake is larger than the target human body nutrition intake;
and the third reminding unit is used for reminding that the food intake is kept unchanged if the human body nutrition intake is equal to the target human body nutrition intake.
Optionally, the target human body nutrient intake is set by receiving an instruction or automatically generated according to human body data.
Optionally, the human nutrition includes protein, fat, carbohydrate, trace element data.
In order to solve the above technical problem, another technical solution adopted in the embodiments of the present invention is: an electronic device is provided, which includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the above-described method of alerting of nutritional intake of a human.
Another embodiment of the present invention provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the above-mentioned method of alerting of human nutritional intake.
Another embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by one or more processors, the one or more processors may be configured to execute the above-mentioned method for reminding the human body of the nutrient intake.
The embodiment of the invention provides a method and a device for reminding human body nutrition intake and electronic equipment. Therefore, the food intake management system can take 3D pictures of food before and after a user eats, quickly acquire the nutrient intake of the human body eaten by the user, and promote the adjustment of the dietary structure of the user through reminding, so that the nutrient intake target of the user is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below. It is obvious that the drawings described below are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for reminding human nutrition intake according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of step S100 in FIG. 2;
FIG. 4 is a schematic flow chart of step S200 in FIG. 2;
FIG. 5 is a schematic flow chart of step S300 in FIG. 2;
FIG. 6 is a functional structure diagram of a device for reminding human nutrition intake according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of the first nutrient content obtaining module 100 of FIG. 6;
FIG. 8 is a functional block diagram of the second nutrient content obtaining module 200 shown in FIG. 6;
FIG. 9 is a functional block diagram of the compare-and-remind module 300 of FIG. 6;
fig. 10 is a hardware configuration diagram of an electronic device according to still another embodiment of the present invention.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The reminding method of the human body nutrition intake of the embodiment of the invention can be executed in any suitable type of electronic equipment with a user interaction device and a processor with calculation capacity, such as: portable phones, smart phones, tablet computers, notebooks, tablet PCs, laptop computers, digital broadcast terminals, personal digital assistants (PADs), Portable Multimedia Players (PMPs), navigators, and the like.
The reminding device of the human body nutrition intake in the embodiment of the invention can be used as one of software or hardware functional units and independently arranged in the electronic equipment, and also can be used as one of functional modules integrated in a processor to execute the reminding method of the human body nutrition intake in the embodiment of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 1, the electronic apparatus 1000 includes a wireless communication unit 11, an audio/video (a/V) input unit 12, a user input unit 13, a sensing unit 14, an output unit 15, a display unit 16, a memory 17, an interface unit 18, and a controller 19.
The electronic device 1000 may include a multi-mode (multi mode) portable terminal that is respectively connected to communication networks according to at least two communication methods or at least two operators, and a multi standby (multi standby) portable terminal that is simultaneously connected to the communication networks according to at least two communication methods or at least two operators.
For illustrative purposes, a terminal according to an embodiment of the present invention is described as a multi-standby terminal as an example. The multi-standby terminal is a portable terminal as shown below, that is: which is simultaneously connected to three communication networks selected from a plurality of communication methods including, for example, Code Division Multiple Access (CDMA), global system for mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), or wireless broadband (Wibro).
The wireless communication unit 11 may include at least one module capable of enabling wireless communication between the terminal and a wireless communication system or between the terminal and a network in which the electronic device is located. For example, the wireless communication unit 11 includes a broadcast receiving module, a mobile communication module, a wireless internet module, a short-range communication module, and a location information module.
The broadcast receiving module receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. Here, the broadcast channel may include a satellite channel and a terrestrial channel. The broadcast management server refers to a server as follows: which generates and transmits a broadcast signal and/or broadcast associated information, or receives an already-generated broadcast signal and/or broadcast associated information and transmits the already-generated broadcast signal and/or broadcast associated information to a terminal. The broadcast signal may include not only a television broadcast signal, a radio broadcast signal, and a data broadcast signal, but also a broadcast signal in a form in which a data broadcast signal is combined with a television broadcast signal or a radio broadcast signal.
The broadcast associated information may refer to information related to a broadcast channel, a broadcast program, or a broadcast service provider. The broadcast associated information may also be provided through a mobile communication network. In this case, the broadcast associated information may be received by the mobile communication module. The broadcasting related information may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB) or an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H).
The broadcast receiving module may receive a digital broadcast signal using a digital broadcasting system such as terrestrial digital multimedia broadcasting (DMB-T), satellite digital multimedia broadcasting (DMB-S), media forward link only (MediaFLO), digital video broadcasting-handheld (DVB-H), or terrestrial integrated services digital broadcasting (ISDB-T). It should be noted that the broadcast receiving module 111 may be included to be suitable not only for the above-described digital broadcasting system but also for other broadcasting systems. The broadcast signal and/or the broadcast associated information received through the broadcast receiving module may also be stored in the memory.
In addition, an audio/video (a/V) input unit 12 is used to input an audio signal or a video signal, and may include a camera and a microphone (microphone). The camera processes a still image or a video frame such as a moving picture obtained by an image sensor in a video call mode or a photographing mode. The processed video frame may be displayed on a display unit. The video frames processed by the camera may be stored in the memory or may be transmitted to the outside through the wireless communication unit. Two or more cameras may be included depending on the user environment.
The user input unit 13 generates input data for controlling the operation of the terminal by the user. The user input unit may include, for example, a keyboard, a dome switch (dome switch), a touch pad (constant voltage/constant current), a jog wheel (jog wheel), or a jog switch (jog switch). The user input unit may include an identification module selection switch for generating a selection signal for selecting a specific identification module among the plurality of selection modules.
The sensing unit 14 may detect a current state of the electronic device, such as an open/close state of the electronic device, a position of the terminal, whether contact is made with a user, a direction of the terminal, or acceleration/deceleration of the electronic device, to generate a sensing signal for controlling an operation of the terminal. For example, when the terminal is a slide phone type, whether the slide phone is opened or closed may be sensed. In addition, whether the power supply unit supplies power or whether an external device is connected to the interface unit may be sensed. The sensing unit may include, for example, a touch sensor and a proximity sensor. The touch sensor is a sensor for detecting a touch operation. For example, the touch sensor may have the form of a touch film, a touch sheet, or a touch unit.
The touch sensor may have an interlayer structure (hereinafter, referred to as a "touch screen") together with the display unit. The touch sensor may be configured to convert a pressure applied to a specific portion of the display unit or a change in capacitance generated at the specific portion of the display unit into an electrical input signal. The touch sensor may be configured to detect not only a position and an area of a touch but also a pressure of the touch.
When there is a touch input on the touch sensor, a signal (or signals) corresponding thereto is sent to the touch controller. The touch controller processes the signal(s) and then sends corresponding data to the controller. Thus, the controller may determine which region of the display unit is touched.
In some embodiments, the sensing unit 14 of the electronic device 1000 may include two touch units, namely a first touch unit 141 and a second touch unit 142, where the first touch unit 141 is capable of responding to a first touch instruction input by a user, and the second touch unit 142 is capable of responding to a second touch instruction input by the user, and each touch instruction may be a track operation, a click operation, a double-click operation, and the like performed on a touch-sensitive surface of the touch unit.
The output unit 15 is used to generate an output related to a visual sense, an auditory sense, or a touch, and may include a sound output module, an alarm unit, and a haptic module.
The sound output module may output audio data received from the wireless communication unit or output audio data stored in the memory upon receiving a call signal in a call mode, a recording mode, a voice recognition mode, or a broadcast reception mode. The sound output module may output a sound signal related to a certain function performed by the electronic device (e.g., a sound of receiving a call signal, a sound of receiving a message, etc.). The sound output module may include a receiver, a speaker, or a buzzer.
The alarm unit outputs a signal for notifying the occurrence of an event of the terminal. Examples of events occurring in the electronic device include receiving a call signal, receiving a message, a key signal input, and a touch input. The alarm unit may output a signal other than a video signal or an audio signal, for example, a signal notifying occurrence of an event by vibration. The video signal or the audio signal may be output through the display unit or the sound output module. Thus, the display unit or the sound output module may be classified as a part of the alarm unit.
The haptic module generates various haptic effects that a user can feel. A typical example of a haptic effect generated by a haptic module is vibration. The intensity and pattern of the vibrations generated by the haptic module may be controlled. For example, different vibrations may be output synthetically or sequentially.
The memory 17 may store a program for operating the controller, and may temporarily store input/output data (e.g., address book, message, still image, video, etc.). The memory may also store data related to various patterns of vibration and sound output when a touch input is applied to the touch screen.
The memory may include at least one of the following types of storage media: flash memory type memory, hard disk type memory, micro multimedia card type memory, card type memory (e.g., SD or XD memory), Random Access Memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), magnetic memory, magnetic disk, and optical disk. The terminal may operate in association with a network storage that performs a storage function of the memory on the internet.
The interface unit 18 performs a function of a path connecting all external devices to the terminal. The interface unit receives data from an external device, is supplied with power and transfers power to each element within the terminal, or transmits data within the terminal to the external device. For example, a wired/wireless headset port, an external charger port, a wired/wireless data port, a memory card port, a port for connecting to a device having an identification module, an audio input/output (I/O) port, a video input/output (I/O) port, and a headset port may be included in the interface unit.
The identification module is a chip storing various information for authenticating a user's access to the terminal, and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), and a Universal Subscriber Identity Module (USIM). A device having an identification module (hereinafter referred to as "identification device") may be manufactured in the form of a smart card. Thus, the identification device may be connected with the terminal via the port.
The interface unit may be used as a path for supplying power from the cradle to the terminal when the terminal is connected to an external cradle, or a path for transmitting various command signals input by a user through the cradle to the electronic device. Various command signals or power input from the cradle may be used as a signal for identifying whether the terminal is properly mounted to the cradle.
Further, the controller 19 controls the overall operation of the electronic apparatus. For example, the controller 19 may perform control and processing related to a voice call, data communication, or video call. The controller 19 may include a multimedia module for playing multimedia. The multimedia module may be implemented within the controller and may be implemented separately from the controller 19.
In a hardware implementation, the embodiments described herein may be implemented using at least one of the following: application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, and other electronic units performing these functions. In some cases, these embodiments may be implemented by the controller 19.
In embodiments of the present invention, the electronic device supports the installation of various desktop applications, such as one or more of the following desktop applications: a drawing application, a presentation application, a word processing application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, a training support application, a photo management application, a digital camera application, a digital video recorder application, a web browsing application, a digital music player application, a digital video player application, and the like.
The electronic equipment disclosed by the embodiment of the invention can complete the implementation of various functional applications or scenes based on the electronic equipment.
The electronic equipment in the embodiment of the invention is provided with the double cameras, and the electronic equipment with the double cameras can be used for shooting 3D videos and 3D pictures. And the 3D picture can more conveniently acquire the food type, quantity and volume compared with the 2D picture. The two cameras have a certain distance, so that different depths of field of the same scene can be acquired, and a 3D picture is generated.
In order to implement the electronic device with two cameras, an embodiment of the present invention provides a flow diagram of a method for reminding a human body of a nutrient intake, as shown in fig. 2, the embodiment includes:
and S100, acquiring a first 3D picture generated after the food before eating is shot by the double cameras, and acquiring a first human body nutrient content contained in the food before eating according to the first 3D picture.
In specific implementation, the 3D picture is a three-dimensional picture, and before the user eats, the first 3D picture of the food before eating is generated after the user respectively obtains the pictures of the food before eating through the two cameras arranged on the electronic device. Generating a 3D picture from a picture taken by two cameras is prior art and is not described here in detail. After the electronic equipment generates the first 3D picture, the first 3D picture is subjected to image processing, and a food picture in the first 3D picture is extracted. The electronic equipment acquires the focal lengths of the two cameras, and identifies the size of the food in the first 3D picture according to the geometrical optics principle after acquiring the distance between the two cameras and the food. The electronic equipment also identifies the food type through an image identification technology and acquires the first human body nutrient content contained in the identified food. Wherein, the human nutrition comprises protein, fat, carbohydrate and trace element data.
And S200, acquiring a second 3D picture generated after the double cameras shoot the eaten food, and acquiring a second human body nutrition content contained in the eaten food according to the second 3D picture.
When the user eats, the two cameras arranged on the electronic equipment respectively acquire the pictures of the eaten food and then generate a second 3D picture of the eaten food. Generating a 3D picture from a picture taken by two cameras is prior art and is not described here in detail. After the second 3D picture is generated, image processing is carried out on the second 3D picture, food pictures in the second 3D picture are extracted, according to the geometrical optics principle, the sizes of food in the first 3D picture are identified after the two cameras are at a distance from the food by obtaining the focal lengths of the two cameras of the electronic equipment, and after the second 3D picture is generated, the electronic equipment carries out image processing on the second 3D picture, and the food pictures in the second 3D picture are extracted. The electronic equipment acquires the focal lengths of the two cameras of the electronic equipment, and identifies the size of the food in the second 3D picture according to the geometrical optics principle after acquiring the distance between the two cameras and the food. The electronic equipment also identifies the food type through an image identification technology and acquires the first human body nutrient content contained in the identified food. Wherein, the human nutrition comprises protein, fat, carbohydrate and trace element data.
And S300, acquiring the nutrient intake of the fed human body according to the first human body nutrient content and the second human body nutrient content, and reminding to control the food intake according to the comparison result of the nutrient intake of the human body and the target human body nutrient intake.
During specific implementation, the second human body nutrition content is subtracted from the obtained first human body nutrition content to obtain the human body nutrition intake of the meal, the human body nutrition intake is compared with the target human body nutrition intake according to the human body nutrition intake, and the food intake is reminded to be controlled according to a comparison result. Wherein, the target human body nutrition intake is set by receiving instructions or automatically generated according to human body data.
The target human body nutrition intake is set by receiving the instruction, namely the target human body nutrition intake is set according to the personal condition of the user, and if the user is in a weight-losing state at present, the target human body nutrition intake is set to maintain the amount of the human body nutrition intake for survival and exercise consumption in one day. If the human body is in a fattening state at present, the human body nutrient content in the target human body nutrient content can be increased by a large amount of carbohydrate.
The target human body nutrient intake is automatically generated according to the human body data of the user. The electronic device can automatically generate the human body data according to the user, or the electronic device uploads the human body data of the user to the cloud server through the network to obtain the target human body nutrition intake generated on the cloud server. Specifically, the automatic generation of the target human body nutrient intake according to the human body data of the user refers to automatic generation according to the health data or exercise data of the user. For example, health data is obtained for a user, such as a diabetic, and the target human nutritional intake is generated to minimize carbohydrates based on a standard human nutritional intake for an existing adult. For another example, the exercise data of the user is acquired, and if the daily exercise consumption of the user is detected to be large, the carbohydrate is added to the existing standard human body nutrition intake of the adult, so that the target human body nutrition intake is automatically generated, and convenience is brought to daily food intake of the user.
Optionally, after step S300, the method further includes: recording the daily nutrient intake of the human body of the user, and pushing a food intake analysis table to the user at intervals of preset time. Wherein the predetermined time is one week or one month. The user can adjust the nutrient intake of the user according to the food intake analysis table, and convenience is provided for the user.
Optionally, an embodiment of the present invention further provides a flowchart of step S100 in fig. 2, and as shown in fig. 3, step S100 specifically includes:
s101, acquiring a first 3D picture generated after food before eating is shot by the double cameras, and acquiring the type, quantity and volume of the food before eating after image processing is performed on the first 3D picture;
step S102, calculating the first human body nutrient content contained in the food before eating according to the type, the quantity and the volume of the food before eating.
During specific implementation, shoot food before eating or shoot single food respectively through two cameras on the electronic equipment, according to the first 3D picture that generates, utilize the image recognition technology, obtain food kind before eating, quantity and volume, after the food kind is discerned, and according to the human nutrient content that the food kind of prestore corresponds or control electronic equipment and pass through network connection to the high in the clouds server and obtain the human nutrient content that food corresponds, calculate the first human nutrient content that food before eating contains, and the first human nutrient content that will calculate the result shows and supplies to look over on the screen.
For example, the electronic device can calculate theoretical healthy weight, daily nutrition and caloric intake according to preset height, weight and other data; the expected weight, daily nutrition and calorie intake can be set according to the preference of the user.
Optionally, an embodiment of the present invention further provides a flowchart of step S200 in fig. 2, and as shown in fig. 4, step S200 specifically includes:
step S201, acquiring a second 3D picture generated after the food is shot by the double cameras, and after the second 3D picture is subjected to image processing, acquiring the type, the quantity and the volume of the food after the food is eaten;
step S202, calculating the second human body nutrient content contained in the eaten food according to the type, the quantity and the volume of the eaten food.
During specific implementation, shoot the food after the feed or shoot single food respectively through two cameras on the electronic equipment, according to the second 3D picture that generates, utilize the image recognition technology, obtain the food kind after the feed, quantity and volume, after the food kind is discerned, and the human nutrient content that the food after the feed corresponds is obtained through internet access to high in the clouds server according to the human nutrient content that the food kind of prestore corresponds or control electronic equipment, calculate the human nutrient content of second that the food after the feed contains, and the human nutrient content of second that will eat shows after the feed supplies to look over on the screen.
Optionally, an embodiment of the present invention further provides a flowchart of step S300 in fig. 2, and as shown in fig. 5, the reminding of controlling the food intake according to the comparison result between the human nutrition intake and the target human nutrition intake in step S300 includes:
step S301, comparing the obtained human body nutrition intake with a target human body nutrition intake, and judging whether the human body nutrition intake is smaller than the target human body nutrition intake;
step S302, if the nutrition intake of the human body is less than the target nutrition intake of the human body, reminding to increase the food intake;
step S303, if the nutrition intake of the human body is larger than the target nutrition intake of the human body, reminding to reduce the food intake;
and step S304, if the human body nutrition intake is equal to the target human body nutrition intake, reminding to keep the food intake unchanged.
In specific implementation, after the nutrient intake of the human body for eating is obtained according to calculation, the nutrient intake is compared with the target nutrient intake of the human body, if the nutrient intake of the human body is smaller than the target nutrient intake of the human body, in order to maintain the body health of the user, the user is prompted to increase the food intake, and food rich in the nutrient intake of the human body can be pushed to the user according to the lack of the specific nutrient intake of the human body. For example, the electronic device may recommend eggs, milk, etc. to the user upon detecting that the user has too little protein intake.
If the nutrient intake of the human body is larger than the target nutrient intake of the human body, the nutrition is over-rich, the reduction of the food intake is prompted, and the exercise is prompted.
If the nutrient intake of the human body is equal to the target nutrient intake of the human body, the food intake nutrition structure is reasonable, and the adjustment is not needed.
On the other hand, referring to fig. 6, fig. 6 is a functional structure diagram of a device for reminding human nutrition intake according to another embodiment of the present invention. The reminding device of human nutrition intake is used for being provided with the electronic equipment of two cameras, as shown in fig. 6, and the device includes:
the first nutritional content acquisition module 100 is used for acquiring a first 3D picture generated after the food before eating is photographed by the two cameras, and acquiring a first human nutritional content contained in the food before eating according to the first 3D picture;
the second nutrition content obtaining module 200 is configured to obtain a second 3D picture generated by shooting the eaten food with the two cameras, and obtain a second human nutrition content included in the eaten food according to the second 3D picture;
and the comparison and reminding module 300 is used for acquiring the human nutrition intake of the food according to the first human nutrition content and the second human nutrition content, and reminding to control the food intake according to the comparison result of the human nutrition intake and the target human nutrition intake.
When the food is taken, the user respectively obtains the pictures of the food before taking food through the two cameras arranged on the electronic equipment before taking food, and then the first 3D pictures of the food before taking food are generated. Generating a 3D picture from a picture taken by two cameras is prior art and is not described here in detail. After the electronic equipment generates the first 3D picture, the first 3D picture is subjected to image processing, and a food picture in the first 3D picture is extracted. The electronic equipment acquires the focal lengths of the two cameras, and identifies the size of the food in the first 3D picture according to the geometrical optics principle after acquiring the distance between the two cameras and the food. The electronic equipment also identifies the food type through an image identification technology and acquires the first human body nutrient content contained in the identified food. Wherein, the human nutrition comprises protein, fat, carbohydrate and trace element data.
After the user eats, the two cameras arranged on the electronic equipment respectively acquire the pictures of the eaten food and then generate a second 3D picture of the eaten food. Generating a 3D picture from a picture taken by two cameras is prior art and is not described here in detail. And after the electronic equipment generates the second 3D picture, carrying out image processing on the second 3D picture, and extracting the food picture in the second 3D picture. The electronic equipment acquires the focal lengths of the two cameras of the electronic equipment, and identifies the size of the food in the second 3D picture according to the geometrical optics principle after acquiring the distance between the two cameras and the food. The electronic equipment also identifies the food type through an image identification technology and acquires the first human body nutrient content contained in the identified food. Wherein, the human nutrition comprises protein, fat, carbohydrate and trace element data.
Subtracting the second human body nutrition content according to the obtained first human body nutrition content to obtain the human body nutrition intake of the meal, comparing the human body nutrition intake with the target human body nutrition intake, and controlling the food intake according to the comparison result. Wherein, the target human body nutrition intake is set by receiving instructions or automatically generated according to human body data.
The target human body nutrition intake is set by receiving the instruction, namely the target human body nutrition intake is set according to the personal condition of the user, and if the user is in a weight-losing state at present, the target human body nutrition intake is set to maintain the amount of the human body nutrition intake for survival and exercise consumption in one day. If the human body is in a fattening state at present, the human body nutrient content in the target human body nutrient content can be increased by a large amount of carbohydrate.
The target human body nutrient intake is automatically generated according to the human body data of the user. The electronic device can automatically generate the human body data according to the user, or the electronic device uploads the human body data of the user to the cloud server through the network to obtain the target human body nutrition intake generated on the cloud server. Specifically, the automatic generation of the target human body nutrient intake according to the human body data of the user refers to automatic generation according to the health data or exercise data of the user. For example, health data is obtained for a user, such as a diabetic, and the target human nutritional intake is generated to minimize carbohydrates based on a standard human nutritional intake for an existing adult. For another example, the exercise data of the user is acquired, and if the daily exercise consumption of the user is detected to be large, the carbohydrate is added to the existing standard human body nutrition intake of the adult, so that the target human body nutrition intake is automatically generated, and convenience is brought to daily food intake of the user.
Optionally, the apparatus is further configured to: recording the daily nutrient intake of the human body of the user, and pushing a food intake analysis table to the user at intervals of preset time. Wherein the predetermined time is one week or one month. The user can adjust the nutrient intake of the user according to the food intake analysis table, and convenience is provided for the user.
Optionally, referring to fig. 7, fig. 7 is a functional structure diagram of the first nutrient content obtaining module 100 in fig. 6 according to an embodiment of the present invention, and as shown in fig. 7, the first nutrient content obtaining module 100 includes:
the first food data acquisition unit 101 is configured to acquire a first 3D picture generated after food before eating is photographed by the two cameras, and acquire the type, quantity and volume of the food before eating after image processing is performed on the first 3D picture;
the first nutrient content calculation unit 102 is used for calculating the first human nutrient content contained in the food before eating according to the type, the quantity and the volume of the food before eating.
During specific implementation, shoot food before eating or shoot single food respectively through two cameras on the electronic equipment, according to the first 3D picture that generates, utilize the image recognition technology, obtain food kind before eating, quantity and volume, after the food kind is discerned, and according to the human nutrient content that the food kind of prestore corresponds or control electronic equipment and pass through network connection to the high in the clouds server and obtain the human nutrient content that food corresponds, calculate the first human nutrient content that food before eating contains, and the first human nutrient content that will calculate the result shows and supplies to look over on the screen.
For example, the electronic device can calculate theoretical healthy weight, daily nutrition and caloric intake according to preset height, weight and other data; the expected weight, daily nutrition and calorie intake can be set according to the preference of the user.
Optionally, referring to fig. 8, fig. 8 is a functional structure diagram of a second nutrient content obtaining module 200 in fig. 6 according to an embodiment of the present invention, and as shown in fig. 8, the second nutrient content obtaining module 200 includes:
the second food data acquisition unit 201 is configured to acquire a second 3D picture generated after the food is taken by the two cameras, perform image processing on the second 3D picture, and acquire the type, quantity, and volume of the food before the food is taken;
and the second nutrient content calculation unit 202 is used for calculating the second human body nutrient content contained in the eaten food according to the type, the quantity and the volume of the eaten food.
During specific implementation, shoot the food after the feed or shoot single food respectively through two cameras on the electronic equipment, according to the second 3D picture that generates, utilize the image recognition technology, obtain the food kind after the feed, quantity and volume, after the food kind is discerned, and the human nutrient content that the food after the feed corresponds is obtained through internet access to high in the clouds server according to the human nutrient content that the food kind of prestore corresponds or control electronic equipment, calculate the human nutrient content of second that the food after the feed contains, and the human nutrient content of second that will eat shows after the feed supplies to look over on the screen.
Optionally, referring to fig. 9, fig. 9 is a functional structure schematic diagram of the comparison and reminder module 300 in fig. 6 according to an embodiment of the present invention, and as shown in fig. 9, the comparison and reminder module 300 includes:
a comparison unit 301 for comparing the obtained human body nutrient intake with a target human body nutrient intake;
a first reminding unit 302 for reminding to increase the food intake if the human nutrition intake is less than the target human nutrition intake;
a second reminding unit 303, configured to remind a user to reduce the food intake if the human nutrition intake is greater than the target human nutrition intake;
and a third reminding unit 304, configured to remind the user to keep the food intake unchanged if the human nutrition intake is equal to the target human nutrition intake.
In specific implementation, after the nutrient intake of the human body for eating is obtained according to calculation, the nutrient intake is compared with the target nutrient intake of the human body, if the nutrient intake of the human body is smaller than the target nutrient intake of the human body, in order to maintain the body health of the user, the user is prompted to increase the food intake, and food rich in the nutrient intake of the human body can be pushed to the user according to the lack of the specific nutrient intake of the human body. For example, the electronic device may recommend eggs, milk, etc. to the user upon detecting that the user has too little protein intake.
If the nutrient intake of the human body is larger than the target nutrient intake of the human body, the nutrition is excessive, the user is prompted to reduce the food intake, and the user is prompted to do exercise.
If the nutrient intake of the human body is equal to the target nutrient intake of the human body, the food intake nutrition structure is reasonable, and the adjustment is not needed.
Optionally, the comparison and reminding module is further configured to record the daily nutrient intake of the human body, and push the food intake analysis table to the user at predetermined intervals. Wherein the predetermined time is one week or one month. The user can adjust the nutrient intake of the user according to the food intake analysis table, and convenience is provided for the user.
As shown in fig. 10, a schematic diagram of a hardware structure of an electronic device according to another embodiment of the present invention is provided, where the electronic device 10 includes:
one or more processors 401 and a memory 402 are described as an example of one processor 401 in fig. 10, the processor 401 and the memory 402 may be connected by a bus or in other manners, and fig. 10 illustrates an example of a connection by a bus.
The memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/units corresponding to the method for reminding the human body nutrient intake in the embodiment of the present invention (for example, the first nutrient content obtaining module 100, the second nutrient content obtaining module 200, and the comparison and reminding module 300 shown in fig. 6). The processor 401 executes various functional applications and data processing of the electronic device by running the nonvolatile software program, instructions and units stored in the memory 402, that is, implements the method for reminding the human body nutrient intake in the above method embodiments.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more units are stored in the memory 402, and when executed by the one or more processors 401, perform the method for reminding the human body nutrient intake in any of the above-mentioned method embodiments, for example, perform the above-described method steps S100 to S300 in fig. 2, and implement the functions of the module 100 and 300 in fig. 6.
The electronic device 10 of the embodiment of the present invention is in various forms, and performs the above-described steps illustrated in fig. 2 to 5; when the functions of the modules and units described in fig. 6 to 9 can also be implemented, the electronic device 10 includes but is not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include intelligent electronic devices (e.g., iphones), multimedia electronic devices, functional electronic devices, and low-end electronic devices, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play video content, and generally also have mobile internet access features. This type of device comprises: video players, handheld game consoles, and intelligent toys and portable car navigation devices.
(4) Other electronic devices with touch screens.
The electronic equipment can execute the reminding method of the human body nutrition intake provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the embodiment of the electronic device, reference may be made to the method for reminding the human nutrition intake provided by the embodiment of the present invention.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer-executable instructions, which are executed by one or more processors, for example, to execute the above-described method steps S100 to S300 in fig. 2, and implement the functions of the module 100 and 300 in fig. 6.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. With this in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.