Show the augmented reality devices and methods therefor for formulating combination marker virtual informationTechnical field
The present invention relates to augmented reality fields, formulate combination marker virtual information more particularly to a kind of showAugmented reality device.
Background technique
Augmented reality (Augmented Reality, abbreviation AR) is a kind of position for calculating camera image in real timeAnd angle and add respective image technology, it is therefore an objective to virtual world is covered in real world and is interacted on the screen.ThisKind technology is most proposed earlier than nineteen ninety.The essence of augmented reality is that the virtual information for generating computer is shown in actual environmentIn, to reach the enhancing to actual environment.Its advantage and effect be, the letter that people cannot be directly read in real worldBreath, by computer related device, allows people to directly read the virtual information.
Effect and advantage based on augmented reality, and specifically asking for food materials is chosen for people in everyday reality lifeTopic, it is desirable to find it is a kind of based on augmented reality, solve people to the determination of food materials needed for established recipe, in numerous foodsThe food materials needed for oneself are found in material, and food materials amount is determined according to different numbers of meals and corresponding food is formulated according to own health situationThe problems such as spectrum.
Summary of the invention
Goal of the invention: the present invention is solved in everyday reality life, and people choose according to established recipeWhen, how food materials needed for how defining find the food materials needed for oneself in numerous food materials, how to be determined and eaten according to different numbersMaterial amount, the problems such as how formulating the recipe for meeting own health situation.
Technical solution: a kind of to show the augmented reality device for formulating combination marker virtual information, comprising: Image Acquisition mouldBlock, for acquiring real world images using camera;Data obtaining module formulates recipe letter for obtaining at least the one of user's inputBreath;Information splits module, and the fractionation for being combined food for that will formulate recipe information generates the combination after splitting and constitutes formulationThe food information as AR marker of recipe information;Picture recognition module, for according to the food information actual form pairThe real world images of described image acquisition module acquisition are identified have in identifying real world images and meet the food information realityWhen the segment of border form, segment present position in real world images is obtained;Visual render module, for generating virtual tag simultaneouslyVirtual tag is shown in the top of segment present position in real world images, and will show that result is incident upon in OLED screen and carry outDisplay.
As a kind of preferred embodiment of the invention, the enhancing that combination marker virtual information is formulated in a kind of displaying is existingActual load is set, further includes: mapping relations establish module, for establishing the mapping of several AR markers and tie element, nutrientRelationship is simultaneously stored in database;Virtual information transfers module, believes for transferring from the database with the foodCease corresponding ingredient, nutrient;The visual render module be also used to using the corresponding ingredient of the food information, nutrient asVirtual information is shown in the top of segment present position in real world images.
As a kind of preferred embodiment of the invention, the data obtaining module is also used to obtain the dining people of user's inputNumber;The augmented reality device further include: amount computing module, after calculating formulation recipe information fractionation according to number of mealsThe corresponding demand weight of food information;The visual render module is also used to using the corresponding demand weight of food information as virtualInformation is shown in the top of segment present position in real world images.
As a kind of preferred embodiment of the invention, the enhancing that combination marker virtual information is formulated in a kind of displaying is existingActual load is set, further includes: the User profile acquisition module communicated with sign monitor device, the physical condition for obtaining user are believedBreath;Recipe formulates module, for formulating the recipe beneficial to user's body health according to the physical condition information of user;Recipe informationJudgment module is covered for judging whether the formulation recipe information of user's input formulates the recipe that module is formulated by recipe;FoodSpectrum information processing module, for obtaining not when formulation recipe information is not formulated the recipe that module is formulated by recipe and coveredThe recipe information being included;The information splits module and is also used to not be combined tearing open for food to the recipe information not being includedPoint.
As a kind of preferred embodiment of the invention, the recipe information judgment module is also used to judge the formulation of user's inputWhether recipe information covers ingredient, the nutrient beneficial to user's body health;The recipe information processing module is also used to makingWhen determining recipe information and not covering the ingredient beneficial to user's body health, nutrient, acquisition is not covered by healthy beneficial to user's bodyIngredient, nutrient recipe information;The information split module be also used to not to be not covered by beneficial to user's body health atDivide, the recipe information of nutrient is combined the fractionation of food.
It is a kind of to show the augmented reality method for formulating combination marker virtual information, use enhancing described in claim 1Real device the described method comprises the following steps:
Step1, obtain user's input at least one formulate recipe information;
Formulation recipe information is combined the fractionation of food by Step2, is generated the combination composition formulation recipe after splitting and is believedThe food information as AR marker of breath;
Step3 acquires real world images using camera;
Step4 knows according to the real world images that the food information actual form acquires described image acquisition moduleNot, when having the segment for meeting the food information actual form in identifying real world images, the segment is obtained in real world imagesMiddle present position;
Step5 generates virtual tag and shows virtual tag in the top of segment present position in real world images, andIt will show that result is incident upon in OLED screen to show.
As a kind of preferred embodiment of the invention, after step4, further includes:
Establish several AR markers and tie element, nutrient mapping relations and be stored in database;
Ingredient corresponding with the food information, nutrient are transferred from the database;
Using the food information tie element, nutrient as virtual information show in segment in real world images locating positionThe top set.
As a kind of preferred embodiment of the invention, after step2, further includes:
Obtain the number of meals of user's input;
It is calculated according to number of meals and formulates the corresponding demand weight of food information after recipe information is split;
After step4, further includes:
Using the corresponding demand weight of the food information as virtual information show in segment in real world images locating positionThe top set.
As a kind of preferred embodiment of the invention, before step2, further includes:
It is communicated with sign monitor device to obtain the physical condition information of user;
The recipe beneficial to user's body health is formulated according to the physical condition information of user;
Judge whether the formulation recipe information of user's input is formulated the recipe that module is formulated by recipe and covered;
When formulation recipe information is not formulated the recipe that module is formulated by recipe and covered, the recipe not being included is obtainedInformation;
The fractionation of food is not combined to the recipe information not being included.
As a kind of preferred embodiment of the invention, the enhancing that combination marker virtual information is formulated in a kind of displaying is existingReal method, further includes:
Judge whether the formulation recipe information of user's input covers ingredient, the nutrient beneficial to user's body health;
When formulation recipe information does not cover the ingredient beneficial to user's body health, nutrient, acquisition is not covered by beneficialThe recipe information of the ingredient of user's body health, nutrient;
The fractionation of food is not combined to the recipe information being not covered by beneficial to the ingredient of user's body health, nutrient.
The present invention realizes following the utility model has the advantages that user formulates recipe and its number of meals by inputting in data obtaining moduleInformation, information split module and its amount computing module determines respectively formulate recipe needed for food materials and its required foodMaterial amount.When people carry out choosing food materials using described device, by picture recognition module and visual render module, in numerous foodsIdentify required food materials in material, and by its virtual tag.It is therefore seen that this invention addresses the determinations of food materials needed for formulating recipeProblem, and help user to be quickly found out required food materials in numerous food materials when choosing, and determined not according to different numbers of mealsWith food materials amount.In addition, mapping relations of the invention establish module, also sets up formulation recipe and correspond to food materials and its nutritional ingredient, battalionThe mapping relations for supporting element, have using user understand prepared recipe whether reasonable nutritional arrangment.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosureExample, and consistent with the instructions for explaining the principles of this disclosure.Fig. 1 is that displaying provided by the invention formulation combination marker is virtualThe enhancement device framework schematic diagram of information;
Fig. 2 is that reality provided by the invention acquires image schematic diagram;
Fig. 3 is displaying result schematic diagram provided by the invention;
Fig. 4 is that the process provided by the invention for showing the augmented reality method for formulating the virtual nutritional information of combination marker is shownIt is intended to.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
Embodiment one
Referring to FIG. 1, Fig. 1 is that a kind of enhancing for showing the formulation virtual nutritional information of combination marker provided by the invention is existingActual load sets framework map.
Specifically, the present embodiment provides a kind of augmented reality device for showing the formulation virtual nutritional information of combination marker,It include: image capture module 1, for acquiring real world images using camera;Data obtaining module 2, for obtaining user's inputAt least one formulate recipe information;Information splits module 3, and the fractionation for being combined food for that will formulate recipe information generatesCombination after fractionation constitutes the food information as AR marker for formulating recipe information;Picture recognition module 4, for according to instituteIt states the real world images that food information actual form acquires described image acquisition module to identify, in identifying real world imagesWhen having the segment for meeting the food information actual form, segment present position in real world images is obtained;Mapping relations are builtFormwork erection block 5, for establishing the mapping relations of several AR markers and tie element, nutrient and being stored in database12;Virtual information transfers module 6, for transferring ingredient corresponding with the food information, nutrient from the database;AmountComputing module 7 formulates the corresponding demand weight of food information after recipe information is split for calculating according to number of meals;VisionRendering module 8, for generating virtual tag and showing virtual tag in the top of segment present position in real world images, andIt will show that result is incident upon in OLED screen 13 to show.
In addition, the present embodiment provides a kind of augmented reality devices for showing the formulation virtual nutritional information of combination marker, alsoIt include: the User profile acquisition module 9 communicated with sign monitor device, for obtaining the physical condition information of user;Recipe systemCover half block 10, for formulating the recipe beneficial to user's body health according to the physical condition information of user;Recipe information judges mouldBlock 11 is covered for judging whether the formulation recipe information of user's input formulates the recipe that module is formulated by recipe;Recipe letterCease processing module 14, for formulate recipe information not by recipe formulate module formulate recipe cover when, obtain not byThe recipe information covered;The information splits module and is also used to not be combined tearing open for food to the recipe information not being includedPoint.
Wherein it is worth noting that of the present invention show that the enhancing for formulating the virtual nutritional information of composition marker is existingActual load is set, and specific device mode can be glasses, the helmet, scanner or mobile terminal of similar mobile phone etc..
Further specifically, the User profile acquisition module 9 communicated first with sign detector gets sign testerDetection information.The information detected such as sign monitor is to lack vitamin C and iron in user's body.At this time when recipe customized moduleAfter 10 receive the information, and is formulated according to the detection information and be beneficial to the recipe of user's body health, such as tomato egg, blackAgaric fried pork livers, cucumber egg, shredded pork with green pepper, and the recipe for being beneficial to user's body health of customization is stored in database12.When user uses described device, the recipe information formulated first according to oneself hobby, the food formulated such as user's lunch todaySpectrum are as follows: cucumber egg, the Fish with Chinese Sauerkraut, stirfried bean curd in hot sauce, black fungus fried pork livers.User passes through the present that data obtaining module 9 is formulatedThe recipe information of its lunch inputs.In addition, data obtaining module 9, is also used to the information that user inputs number of meals.
Further, when recipe information judgment module 11 obtains the formulation recipe information that user is inputted, it is carried outJudgement.I.e. recipe information judgment module 11 is by retrieval comparison in the database, for formulating in recipe information not by recipeThe recipe that the recipe that module 10 is formulated is covered is formulated, the recipe not being included is obtained by recipe information processing module 14 and is believedBreath, is not processed it;The recipe that the recipe that module 10 is formulated is covered is formulated by recipe for formulating in recipe information, is passed throughRecipe information processing module 14 obtains the information of covered recipe, and sends it to information and split module 3.For example, this implementationStoring the recipe in example in database and formulating the recipe that module 10 is formulated includes: tomato egg, black fungus fried pork livers, cucumberEgg, shredded pork with green pepper;User inputs the recipe that lunch today is formulated are as follows: cucumber egg, the Fish with Chinese Sauerkraut, stirfried bean curd in hot sauce, black fungus are friedPork liver.Recipe information judgment module 11 compares the two information, is then contained by the acquisition of recipe information processing module 14The information of lid recipe, and send it to information and split module 3.Such as the recipe being included in the present embodiment: cucumber egg, black woodEar fried pork livers.
Further specifically, will be connect after information splits module 3 and receives the information of the transmission of recipe information processing module 14The recipe information received is combined the fractionation of food, generates the combination after splitting and constitutes identifying as AR for formulation recipe informationThe food information of object.As recipe information processing module 14 is sent to the recipe information that information splits module 3 in the present embodiment are as follows: yellowMelon egg, black fungus fried pork livers.Information is split after module 3 split are as follows: cucumber, egg, black fungus, pork liver, and by theseFood materials are as AR marker.Comparison method of formation wherein can be for the method for splitting of recipe information.Stored in database 12Recipe formulates the fractionation information contrast table for the recipe that module 10 is formulated, shown in table specific as follows:
Information splits module 3 and splits having for 12 storages in the recipe name and database in the recipe information receivedThe recipe name of information compares, and extracts the fractionation information of the comparison consistent recipe of recipe name.
Further, the food materials information as AR marker is sent respectively to mapping relations foundation when information splits module 3Module 5 and amount computing module 7, mapping relations establish module 5 upon receiving this information, establish the AR mark for including in the informationKnow object and tie element, nutrient mapping relations and be stored in database 12.Specific mapping relations are established can be withIt is that comparison is established the actual form of food materials needed for recipe of the storage comprising composition recipe formulation module in method, such as database and reflectedThe relation information table of comparisons is penetrated, shown in table specific as follows:
Mapping relations establish the food materials title that module 5 receives food materials title and database in above- mentioned information by comparing,Establish the mapping relations of the consistent AR marker of food materials title and tie element, nutrient.Such as the AR mark that the present embodiment is above-mentionedKnow object and corresponding nutritional ingredient.Nutrient mapping relations:
When the mapping relations of the AR marker established must after, which is stored in database 12.
Measure computing module 7 receive information split module 3 send information after, according to user input number of meals information,Weight required for each AR marker is made, and is stored in database 12.Specific demand weight can basisThe method that the empirical value that the worker that multidigit is engaged in food and drink provides is averaging establishes the table of comparisons of corresponding food materials, as shown in the table:
If the present embodiment user input is 3 people, then the required weight of above-mentioned AR marker are as follows: cucumber, 0.6Kg, egg,0.5Kg,
Black fungus, 0.3Kg, pork liver, 0.7Kg.
Further, when user carries out choosing food materials using described device, image capture module 1 is to actual environment firstIt is acquired, such as acquisition real world images are as shown in Figure 2.After having acquired, picture recognition module 4 is according to collected real world imagesIt is compared with AR marker actual form, when identifying the segment for having the actual form for meeting AR marker in real world imagesWhen, the segment is obtained the location of in real world images.
Further when getting position of the segment in real world images, virtual information extraction module 6 extracts shouldThe corresponding AR marker of segment corresponding information, i.e. nutritional ingredient, nutrient, required weight information in the database.Vision wash with watercoloursModule 8 is contaminated, the segment is subjected to virtual tag, and the information that virtual information extraction module 6 is extracted is shown in segment in existingThe top of present position in real image, and will show that result is incident upon in OLED screen 13 and show.Such as in the present embodimentShow that result is as shown in Figure 3.
Embodiment two
Fig. 1 is please referred to, Fig. 1 is a kind of enhancing for showing the formulation virtual nutritional information of combination marker provided by the inventionReal device framework map.In conjunction with the content of above-mentioned first embodiment, in second embodiment of the invention, with above-mentioned first embodimentContent it is essentially identical, the difference is that, recipe formulate module 10, for according to the physical condition information of user formulate it is beneficialThe nutritional ingredient of user's body health, nutrient.Recipe information judgment module 11 is also used to judge the formulation recipe of user's inputWhether information covers ingredient, the nutrient beneficial to user's body health;The recipe information processing module 13 is also used to formulatingWhen recipe information does not cover the ingredient beneficial to user's body health, nutrient, obtains and be not covered by beneficial to user's body healthThe recipe information of ingredient, nutrient;The information split module 3 be also used to not to be not covered by beneficial to user's body health atDivide, the recipe information of nutrient is combined the fractionation of food.
Embodiment three
Referring to FIG. 4, Fig. 4 is the augmented reality side provided by the invention for showing and formulating the virtual nutritional information of combination markerThe flow diagram of method.Specifically, the present embodiment provides a kind of augmented reality sides for showing formulation combination marker virtual informationMethod the described method comprises the following steps using augmented reality device described in claim 1:
Step1, obtain user's input at least one formulate recipe information;
Formulation recipe information is combined the fractionation of food by Step2, is generated the combination composition formulation recipe after splitting and is believedThe food information as AR marker of breath;
Step3 acquires real world images using camera;
Step4 knows according to the real world images that the food information actual form acquires described image acquisition moduleNot, when having the segment for meeting the food information actual form in identifying real world images, the segment is obtained in real world imagesMiddle present position;
Step5 generates virtual tag and shows virtual tag in the top of segment present position in real world images, andIt will show that result is incident upon in OLED screen to show.
As a kind of preferred embodiment of the invention, after step4, further includes:
Establish several AR markers and tie element, nutrient mapping relations and be stored in database;
Ingredient corresponding with the food information, nutrient are transferred from the database;
Using the food information tie element, nutrient as virtual information show in segment in real world images locating positionThe top set.
As a kind of preferred embodiment of the invention, after step2, further includes:
Obtain the number of meals of user's input;
It is calculated according to number of meals and formulates the corresponding demand weight of food information after recipe information is split;
After step4, further includes:
Using the corresponding demand weight of the food information as virtual information show in segment in real world images locating positionThe top set.
As a kind of preferred embodiment of the invention, before step2, further includes:
It is communicated with sign monitor device to obtain the physical condition information of user;
The recipe beneficial to user's body health is formulated according to the physical condition information of user;
Judge whether the formulation recipe information of user's input is formulated the recipe that module is formulated by recipe and covered;
When formulation recipe information is not formulated the recipe that module is formulated by recipe and covered, the recipe not being included is obtainedInformation;
The fractionation of food is not combined to the recipe information not being included.
As a kind of preferred embodiment of the invention, the enhancing that combination marker virtual information is formulated in a kind of displaying is existingReal method, further includes:
Judge whether the formulation recipe information of user's input covers ingredient, the nutrient beneficial to user's body health;
When formulation recipe information does not cover the ingredient beneficial to user's body health, nutrient, acquisition is not covered by beneficialThe recipe information of the ingredient of user's body health, nutrient;
The fractionation of food is not combined to the recipe information being not covered by beneficial to the ingredient of user's body health, nutrient.
It should be understood that the process that embodiment two implements can be corresponding with the description of embodiment one, no longer retouch in detail hereinIt states.
Augmented reality device provided by embodiment one, it is only the example of the division of the above functional modules, realIn the application of border, it can according to need and be completed by different functional modules above-mentioned function distribution, i.e., by augmented reality deviceInternal structure is divided into different functional modules, to complete all or part of the functions described above.
The above embodiments merely illustrate the technical concept and features of the present invention, and the purpose is to allow the skill for being familiar with the technical fieldArt personnel can understand the content of the present invention and implement it accordingly, and can not be limited the scope of the invention with this.All basesEquivalent changes or modifications made by spirit of the invention, should be covered by the protection scope of the present invention.