The content of the invention
It is contemplated that at least solving one of technical problem present in prior art or correlation technique.
Therefore, it is an object of the present invention to propose a kind of acquisition methods of food information.
It is another object of the present invention to propose a kind of acquisition device of food information.
A further object of the present invention is to propose a kind of terminal.
To realize above-mentioned at least one purpose, embodiment according to the first aspect of the invention, it is proposed that a kind of food letter
The acquisition methods of breath, including:If receiving the signal for obtaining food information, start the camera of terminal;In the camera
During obtaining preview image, detect whether to receive the shooting signal that the terminal is triggered automatically;If receiving the bat
Signal is taken the photograph, then food image is shot by the camera;The food image that will be photographed is sent to server, to receive
From the food information that the server sends;Show the food information.
Acquisition methods of food information according to an embodiment of the invention, during camera obtains preview image,
Shooting signal can automatically be triggered, it is ensured that user can be achieved with automatically snapping food figure in the case where shooting operation is not involved in
Picture.After food image is shot, the food image that will can be photographed automatically is sent to server, so that server is to food
Image is identified obtaining related food information to treatment.Therefore, by above scheme, can cause that user more facilitates
Get food information, so as to improve the experience of user.
The acquisition methods of food information according to the abovementioned embodiments of the present invention, can also have following technical characteristic:
According to one embodiment of present invention, the shooting signal includes:The mistake of preview image is obtained in the camera
There is the signal that triggers and/or detect in the preview image that the camera is obtained when camera auto-focusing described in journey is completed
The signal triggered during food.
The acquisition methods of food information, trigger when camera auto-focusing is completed and shoot according to an embodiment of the invention
Signal comes to shooting food image, and/or detects in the preview image of camera acquisition triggering when having food and shoot signal
Food image is shot, the excessive Attended Operation of user during food information is obtained so as to avoid, and then ensure that food
The acquisition of information is more intelligent.
According to one embodiment of present invention, after the camera shoots the food image, and by the food
Before object image is sent to the server, also include:Parameter to the food image is adjusted, after parameter adjustment
The food image be sent to the server.
Acquisition methods of food information according to an embodiment of the invention, after food image is shot, can be automatically right
The parameter of food image is adjusted, for example, size, the resolution ratio of adjustment food image, not only ensure that food image can
Server is rapidly sent to, the accuracy rate that server recognizes food image is also improved.
According to one embodiment of present invention, the step of showing the food information, also includes:Show the food figure
Picture, and the food information is displayed in the predeterminated position of the food image in the form of animation.
The acquisition methods of food information, can be shown food information in the form of animation according to an embodiment of the invention
In the predeterminated position of food image, for example, the surrounding of food image is displayed in, or left side, or right side, such that it is able to more
Food information is intuitively showed into user.
According to one embodiment of present invention, also include:The user of reception user input is eaten in the food image
The amount of food;The amount that user eats the food in the food image is sent to the server.
Acquisition methods of food information according to an embodiment of the invention, by by the food in the edible food image of user
Amount be sent to server, so that server is counted to the food that user eats, for the health condition of counting user is provided
Foundation.
According to one embodiment of present invention, the food information includes one below or various combinations:Food materials, food
Whether the food in spectrum, nutritional ingredient, food title, the food image meets user health condition.
Acquisition methods of food information according to an embodiment of the invention, if the food in food image is what culinary art was completed
Food, then food information can be food materials, the nutritional ingredient for cooking the food, if the food in food image is food materials, eat
Thing information can be the recipe cooked using the food materials.Food information can also be whether the food in food image meets
User health condition, for example, be sugar when the food in food image is recognized, and user has diabetes, then can in food information
With the information eaten including the improper user of the food.
A kind of embodiment according to the second aspect of the invention, it is proposed that acquisition device of food information, including:Start single
Unit, if obtaining the signal of food information for receiving, starts the camera of terminal;Detection unit, in the shooting
During head obtains preview image, detect whether to receive the shooting signal that the terminal is triggered automatically;Shooting unit, is used for
If the detection unit is detected receives the shooting signal, food image is shot by the camera;Communication unit,
The food image for that will photograph is sent to server, to receive the food information sent from the server;It is aobvious
Show unit, for showing the food information.
The acquisition device of food information according to an embodiment of the invention, during camera obtains preview image,
Shooting signal can automatically be triggered, it is ensured that user can be achieved with automatically snapping food figure in the case where shooting operation is not involved in
Picture.After food image is shot, the food image that will can be photographed automatically is sent to server, so that server is to food
Image is identified obtaining related food information to treatment.Therefore, by above scheme, can cause that user more facilitates
Get food information, so as to improve the experience of user.
According to one embodiment of present invention, the shooting signal includes:The mistake of preview image is obtained in the camera
There is the signal that triggers and/or detect in the preview image that the camera is obtained when camera auto-focusing described in journey is completed
The signal triggered during food.
The acquisition device of food information, triggers when camera auto-focusing is completed and shoots according to an embodiment of the invention
Signal comes to shooting food image, and/or detects in the preview image of camera acquisition triggering when having food and shoot signal
Food image is shot, the excessive Attended Operation of user during food information is obtained so as to avoid, and then ensure that food
The acquisition of information is more intelligent.
According to one embodiment of present invention, also include:Adjustment unit, adjusts for the parameter to the food image
It is whole so that the transmitting element by parameter adjustment after the food image be sent to the server.
The acquisition device of food information according to an embodiment of the invention, after food image is shot, can be automatically right
The parameter of food image is adjusted, for example, size, the resolution ratio of adjustment food image, not only ensure that food image can
Server is rapidly sent to, the accuracy rate that server recognizes food image is also improved.
According to one embodiment of present invention, the display unit is additionally operable to, and shows the food image, and the food
Information is displayed in the predeterminated position of the food image in the form of animation.
The acquisition device of food information, can be shown food information in the form of animation according to an embodiment of the invention
In the predeterminated position of food image, for example, the surrounding of food image is displayed in, or left side, or right side, such that it is able to more
Food information is intuitively showed into user.
According to one embodiment of present invention, the receiving unit is additionally operable to, and the user for receiving user input is edible described
The amount of the food in food image;The transmitting element is additionally operable to, and user is eaten the amount hair of the food in the food image
Give the server.
The acquisition device of food information according to an embodiment of the invention, by by the food in the edible food image of user
Amount be sent to server, so that server is counted to the food that user eats, for the health condition of counting user is provided
Foundation.
According to one embodiment of present invention, the food information includes one below or various combinations:Food materials, food
Whether the food in spectrum, nutritional ingredient, food title, the food image meets user health condition.
The acquisition device of food information according to an embodiment of the invention, if the food in food image is what culinary art was completed
Food, then food information can be food materials, the nutritional ingredient for cooking the food, if the food in food image is food materials, eat
Thing information can be the recipe cooked using the food materials.Food information can also be whether the food in food image meets
User health condition, for example, be sugar when the food in food image is recognized, and user has diabetes, then can in food information
With the information eaten including the improper user of the food.
Any one of a kind of embodiment according to the third aspect of the invention we, it is proposed that terminal, including above-mentioned technical proposal
The acquisition device of described food information, therefore, the terminal has and the food information any one of above-mentioned technical proposal
Acquisition device identical technique effect, will not be repeated here.
Additional aspect of the invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by practice of the invention.
Specific embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied to be further described in detail the present invention.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the schematic flow diagram of the acquisition methods of food information according to an embodiment of the invention.
As shown in figure 1, the acquisition methods of food information according to an embodiment of the invention, including:
Step 102, if receiving the signal for obtaining food information, starts the camera of terminal.
Obtained on the interface of preview image in display camera, guide user effectively to be eaten using the mode of dynamic image
The shooting of thing.
Step 104, during the camera obtains preview image, detects whether that receive the terminal touches automatically
The shooting signal of hair.
Preferably, the shooting signal includes:The camera obtain preview image during the camera from
The letter for moving the signal triggered when focusing is completed and/or being triggered when having food in the preview image for detecting the camera acquisition
Number.
Shooting signal is triggered when camera auto-focusing is completed to come to shooting food image, and/or detects camera
Shooting signal is triggered when having food in the preview image of acquisition to shoot food image, and the mistake of food information is obtained so as to avoid
The excessive Attended Operation of user in journey, and then ensure that the acquisition of food information is more intelligent.
For example, after camera is opened, camera is constantly in the state for obtaining preview image, when terminal rests on certain
Exceed Preset Time at individual position, camera auto-focusing when camera auto-focusing is completed, is triggered and shoots signal, with logical
Cross camera and shoot food image.
Again for example, after camera is opened, camera is constantly in the state for obtaining preview image, detection camera is obtained
Whether there is food in the preview image for taking, if having food in detecting the preview image that camera is obtained, camera is automatically right
Burnt food, when camera auto-focusing is completed, triggering shoots signal, and food image is shot with by camera.
Again for example, after camera is opened, camera is constantly in the state for obtaining preview image, detection camera is obtained
Whether there is food in the preview image for taking, if having food in detecting the preview image that camera is obtained, directly triggering shoots
Signal, food image is shot with by camera.Preferably, detect camera acquisition preview image in have food it
Afterwards, and before triggering shoots signal, judge food in preview image whether in the predeterminated position in preview image (for example
The center of preview image), if it is determined that predeterminated position of the food in preview image, then triggering shoots signal, if it is determined that food
Predeterminated position of the thing not in preview image, then show mobile terminal prompting (prompting include suggested terminals movement direction
And distance), so that predeterminated position of the food in preview image, meets following condition when terminal is moved:Food is in preview
Stop prompting during predeterminated position in image, and trigger shooting signal.
Step 106, if receiving the shooting signal, food image is shot by the camera.
Step 108, the food image that will be photographed is sent to server, to receive what is sent from the server
Food information.
Preferably, after step 106, and before stage 108, also include:Parameter to the food image is carried out
Adjustment, by parameter adjustment after the food image be sent to the server.
After food image is shot, it is not necessary to which user intervenes manually, and the parameter to food image is adjusted automatically, example
Such as, size, the resolution ratio of food image are adjusted, not only ensure that food image can rapidly be sent to server, also improved
Server recognizes the accuracy rate of food image.
Server is received after food image, and food image is identified to identify that the feature in food image is believed
Breath, the inquiry of relevant information is carried out using this feature information.
Preferably, the food information includes one below or various combinations:Food materials, recipe, nutritional ingredient, food name
Whether the food in title, the food image meets user health condition.
If the food in food image be culinary art complete food, food information can be cook the food food materials,
Nutritional ingredient, if the food in food image is food materials, food information can be the recipe cooked using the food materials.Food
Thing information can also be whether the food in food image meets user health condition, to determine whether food is recommendation, not push away
Recommend, the food of excessive risk or fasting.For example, be sugar when the food in food image is recognized, and user has diabetes, then eat
The information that the improper user of the food eats can be included in thing information.
Step 110, shows the food information.
When the food information from server transmission is received, the interface of terminal automatic jumps to the boundary of information displaying
Face, to show food information.
Preferably, while food information is shown, food image is shown, and food information is displayed in the form of animation
The predeterminated position of food image.
Can by food information in the form of animation include food image predeterminated position, for example, being displayed in food figure
The surrounding of picture, or left side, or right side, such that it is able to food information more intuitively is showed into user.
In the technical scheme, during camera obtains preview image, shooting signal can be automatically triggered, it is ensured that
User can be achieved with the case where shooting operation is not involved in automatically snapping food image.After food image is shot, can
Server is sent to the food image that will be photographed automatically, food image is identified for server and is processed to obtain
Related food information.Therefore, by above scheme, can cause that user more easily gets food information, so as to carry
The experience of user is risen.And the acquisition process of food information is exactly that the camera of using terminal replaces human eye, works as shooting
When head photographs a food, the nutritional information on the food, cooking methods just occur in terminal, eaten if appropriate for user
With etc., information technology is merged with real world.
In the above-mentioned technical solutions, it is preferable that also include after step 110:Receive the edible institute of user of user input
State the amount of the food in food image;The amount that user eats the food in the food image is sent to the server.
By by the amount of the food in the edible food image of user server is sent to, so that server eats to user
Food is counted, for the health condition of counting user provides foundation.
Fig. 2 shows the schematic flow diagram of the acquisition methods of food information according to another embodiment of the invention.
As shown in Fig. 2 the acquisition methods of food information according to another embodiment of the invention, including:
Step 202, terminal starts camera when food automatic identification model is opened, and detects the pre- of camera acquisition
Look in image when having food, control camera auto-focusing.
Step 204, when camera auto-focusing is completed, shoots food image.
Step 206, pre-processes to food image, to adjust the parameter of food image.
Food image after parameter adjustment is sent to server by step 208, terminal.
Step 210, server is identified to food image.
Step 212, according to recognition result, obtains food information from database.
Food information is sent to terminal by step 214, server.
Step 216, terminal-pair food information is shown.
Step 218, the amount of food in the edible food image of terminal reception user input.
The amount of food in the edible food image of user is sent to server by step 220, terminal.
Step 222, server is by the amount storage of food in the edible food image of user to diet effects database.
Wherein, step 202 to step 208 and step 216 to the executive agent of step 220 is terminal, step 210 to step
214 and step 222 executive agent be server.
Fig. 3 shows the schematic block diagram of the acquisition device of food information according to an embodiment of the invention.
As shown in figure 3, the acquisition device 300 of food information according to an embodiment of the invention, including:Start unit 302,
Detection unit 304, shooting unit 306 and communication unit 308.
Start unit 302, if obtaining the signal of food information for receiving, starts the camera of terminal;Detection is single
Unit 304, during obtaining preview image in the camera, detects whether to receive the bat that the terminal is triggered automatically
Take the photograph signal;Shooting unit 306, the shooting signal is received if being detected for the detection unit 304, is taken the photograph by described
As head shoots food image;Communication unit 308, the food image for that will photograph is sent to server, is come with receiving
From the food information that the server sends;Display unit 310, for showing the food information.
During camera obtains preview image, shooting signal can be automatically triggered, it is ensured that user is being not involved in
Can be achieved with automatically snapping food image in the case of shooting operation.After food image is shot, will can photograph automatically
Food image be sent to server, so that server is identified obtaining related food letter to treatment to food image
Breath.Therefore, by above scheme, can cause that user more easily gets food information, so as to improve making for user
With experience.
In the above-mentioned technical solutions, it is preferable that the shooting signal includes:The mistake of preview image is obtained in the camera
There is the signal that triggers and/or detect in the preview image that the camera is obtained when camera auto-focusing described in journey is completed
The signal triggered during food.
Shooting signal is triggered when camera auto-focusing is completed to come to shooting food image, and/or detects camera
Shooting signal is triggered when having food in the preview image of acquisition to shoot food image, and the mistake of food information is obtained so as to avoid
The excessive Attended Operation of user in journey, and then ensure that the acquisition of food information is more intelligent.
In the above-mentioned technical solutions, it is preferable that the acquisition device 300 of food information also includes:Adjustment unit 312, is used for
Parameter to the food image is adjusted so that the transmitting element by parameter adjustment after the food image be sent to
The server.
After food image is shot, parameter that can be automatically to food image is adjusted, for example, adjustment food image
Size, resolution ratio, not only ensure that food image can rapidly be sent to server, also improve server identification food
The accuracy rate of image.
In the above-mentioned technical solutions, it is preferable that the display unit 310 is additionally operable to, the food image is shown, and it is described
Food information is displayed in the predeterminated position of the food image in the form of animation.
Can by food information in the form of animation include food image predeterminated position, for example, being displayed in food figure
The surrounding of picture, or left side, or right side, such that it is able to food information more intuitively is showed into user.
In the above-mentioned technical solutions, it is preferable that the receiving unit is additionally operable to, the user for receiving user input is edible described
The amount of the food in food image;The transmitting element is additionally operable to, and user is eaten the amount hair of the food in the food image
Give the server.
By by the amount of the food in the edible food image of user server is sent to, so that server eats to user
Food is counted, for the health condition of counting user provides foundation.
In the above-mentioned technical solutions, it is preferable that the food information includes one below or various combinations:Food materials, food
Whether the food in spectrum, nutritional ingredient, food title, the food image meets user health condition.
If the food in food image be culinary art complete food, food information can be cook the food food materials,
Nutritional ingredient, if the food in food image is food materials, food information can be the recipe cooked using the food materials.Food
Thing information can also be whether the food in food image meets user health condition, for example, in food image is recognized
Food is sugar, and user has diabetes, then can include the information that the improper user of the food eats in food information.
Fig. 4 shows the schematic block diagram of terminal according to an embodiment of the invention.
As shown in figure 4, terminal 400 according to an embodiment of the invention, including any one of above-mentioned technical proposal
The acquisition device 300 of food information, therefore, the terminal 400 has and the food information any one of above-mentioned technical proposal
The identical technique effect of acquisition device 300, will not be repeated here.
Technical scheme is described in detail above in association with accompanying drawing, by technical scheme, can be conveniently
User obtains food information, so as to lift the experience of user.
In the present invention, term " first ", " second " are only used for the purpose for describing, and it is not intended that indicating or implying phase
To importance;Term " multiple " represents two or more.For the ordinary skill in the art, can be according to tool
Body situation understands above-mentioned term concrete meaning in the present invention.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.