The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided one kind can allow people in time by conveniently mode
Learn the advertisement acquisition method and device based on fruits and vegetables component and profile of fruit-vegetable information.
A kind of advertisement acquisition method based on fruits and vegetables component and profile, methods described include:
Receive the advertisement that first terminal is sent and obtain request, carrying the first terminal in the advertisement acquisition request obtains
Fruits and vegetables component information and appearance profile information;
Search the target components information to match in server with the component information of the fruits and vegetables of reception;
Search the target shape profile information with the appearance profile information match of the fruits and vegetables of reception in server;
Judge whether the target components information and the target shape profile information are associated with advertising message, if so, then
Transfer the advertising message, and by the transmitting advertisement information transferred to the first terminal.
In one embodiment, if the target components information and the target shape profile information do not have related advertisement
Information, the then incidence relation established between the target components information and the target shape profile information;
Methods described also includes:
Fruits and vegetables corresponding to the target components information of reception second terminal transmission and the target shape profile information
Advertising message, and the pass established between the advertising message and the target components information and the target shape profile information
Connection relation.
In one embodiment, the component information of the fruits and vegetables of acquisition includes sour-sweet degree content information and vitamin C contains
Measure information;
The step of target components information to match in the lookup server with the component information of the fruits and vegetables of reception
For:The content range of the sour-sweet degree of fruits and vegetables in the component information of server storage is searched with being wrapped in ascorbic content range
Include the target components information of the sour-sweet degree content information and Vitamin C content information of acquisition.
A kind of advertisement acquisition method based on fruits and vegetables component and profile, methods described include:
Obtain the constituent content information and appearance profile information of fruits and vegetables;
Request is obtained according to the constituent content information of acquisition and appearance profile information generation advertisement, and will generation
The advertisement obtain request and send to server;
The advertising message that server returns is shown, wherein the constituent content information of the advertising message association returned and outer
The shape profile information constituent content information and appearance profile information match with the fruits and vegetables of acquisition respectively.
In one embodiment, the advertising message returned in displaying server, wherein the advertising message association returned
Constituent content information and the appearance profile information constituent content information and appearance profile information phase with the fruits and vegetables of acquisition respectively
With the step of after, in addition to:
Obtain the request of sharing to the advertising message of user's triggering, the use shared request and carry third-party application
Family identifies;
In response to it is described share that request generates the advertising message share connection;
The third-party application interface is called to receive and send the chain of sharing to terminal corresponding to user mark.
A kind of device that advertisement is obtained based on fruits and vegetables component and profile, described device are included:
Advertisement obtains request receiving module, and the advertisement for receiving first terminal transmission obtains request, and the advertisement obtains
The component information and appearance profile information for the fruits and vegetables that the first terminal obtains are carried in request;
Components do match module, for searching the target group to match in server with the component information of the fruits and vegetables of reception
Divide information;
Appearance profile matching module, for searching the appearance profile information match in server with the fruits and vegetables of reception
Target shape profile information;
Transmitting advertisement information module, for judging whether the target components information and the target shape profile information are right
There should be advertising message, if so, the advertising message corresponding to then transferring, and by the transmitting advertisement information transferred to described the
One terminal.
In one embodiment, described device also includes:
Component information and appearance profile information association module, if for the target components information and the target shape wheel
Wide information does not have related advertising message, then the pass established between the target components information and the target shape profile information
Connection relation;
Described device also includes:
Advertising message relating module, for the target components information for receiving second terminal transmission and the target shape
The advertising message of fruits and vegetables corresponding to profile information, and establish the advertising message and the target components information and the target
Incidence relation between appearance profile information.
In one embodiment, the component information of the fruits and vegetables of acquisition includes sour-sweet degree content information and vitamin C contains
Measure information;
The components do match module, it is additionally operable to search the content model of fruits and vegetables sour-sweet degree in the component information stored in server
Enclose the target of the sour-sweet degree content information and Vitamin C content information with including obtaining in ascorbic content range
Component information.
A kind of advertisement acquisition device based on fruits and vegetables component and profile, described device include:
Constituent content and appearance profile acquisition module, for obtaining the constituent content information and appearance profile information of fruits and vegetables;
Advertisement obtains request module, is generated for the constituent content information according to acquisition and the appearance profile information
Advertisement obtains request, and the advertisement of generation is obtained into request and sent to server;
Advertising message display module, the advertising message returned for showing server, wherein the advertising message returned
Constituent content information and appearance profile information phase of the constituent content information and appearance profile information of association with the fruits and vegetables of acquisition
Matching.
In one embodiment, described device also includes:
Share acquisition request module, it is described to share for obtaining the request of sharing to the advertising message of user's triggering
Request carries user's mark of third-party application;
Share link generation module, in response to it is described share that request generates the advertising message share connection;
Sharing module, for calling the third-party application interface to receive and send the chain of sharing to user mark pair
The terminal answered.
Above-mentioned advertisement acquisition method and device based on fruits and vegetables component and profile, the wide of fruits and vegetables is previously stored with server
Information is accused, and the component information of fruits and vegetables corresponding to advertising message and appearance profile information are established into incidence relation with advertising message,
Server can obtain the first terminal carried in request after the advertisement for receiving first terminal upload obtains request according to advertisement
Meet component information while storage in the component information of the fruits and vegetables of acquisition and the appearance profile information searching server of fruits and vegetables
Enable one to lead to terminal display with the advertising message with appearance profile information matches, and by the transmitting advertisement information of acquisition
The advertising message for crossing viewing fruits and vegetables understands fruits and vegetables, only needs first terminal to capture the component and appearance profile information of fruits and vegetables,
Advertisement corresponding to fruits and vegetables can be learned, people know that the mode of fruit-vegetable information is simpler quick.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
The advertisement acquisition method based on fruits and vegetables component and profile provided in the embodiment of the present invention may apply to such as Fig. 1
In shown application environment.First terminal 102 passes through network connection with server 104.Scanning product in first terminal 102
106 can be used for scanning fruits and vegetables to identify the appearance profile information of fruits and vegetables, and the nondestructive testing instrument component of first terminal can be used for detecting
The constituent content of fruits and vegetables, first terminal 102 generate advertisement according to the appearance profile information and component information of fruits and vegetables and obtain request, will
Advertisement obtains request and sent by network to server 104.Server 104 receives advertisement and obtains request, and being obtained according to advertisement please
Advertising message corresponding to the component information of the fruits and vegetables of carrying and the appearance profile acquisition of information of fruits and vegetables is sought, and advertising message is returned
It is back to first terminal 102.First terminal 102 shows ad content.
In one embodiment, as shown in Figure 2, there is provided a kind of advertisement acquisition method based on fruits and vegetables component and profile,
This method is illustrated exemplified by applying in server 104 as shown in Figure 1, is specifically included:
Step S202:Receive the advertisement that first terminal is sent and obtain request, carrying first terminal in advertisement acquisition request obtains
The component information and appearance profile information of the fruits and vegetables taken.
The species of fruits and vegetables is various, and based on the principle of safe and healthy diet, people need the nutritive value to edible fruits and vegetables
Information, the overall understandings such as crowd's information, edible taboo are applicable, healthy edible can be accomplished.
Every kind of fruits and vegetables has the constituent content and outward appearance of its characteristic.First terminal is mounted with Advertising application,
As people it should be understood that during the details of fruits and vegetables, the scanning product of first terminal is started to fruits and vegetables by the Advertising application
It is scanned to obtain the image information of fruits and vegetables, the appearance profile of fruits and vegetables is obtained by carrying out rim detection to the image information of scanning
Information.At the same time, the component for also starting the Non-Destructive Testing component detection fruits and vegetables of first terminal by the Advertising application contains
Amount, it is specially:Mathematical modeling is carried out according to the distribution intensity of the near-infrared absorption spectrum of fruits and vegetables and obtains the component information of fruits and vegetables, its
In, component information includes the component and constituent content of fruits and vegetables.
In one embodiment, the constituent content information of the fruits and vegetables of first terminal detection includes sour-sweet degree and vitamin C contains
Amount.In another embodiment, other component informations of fruits and vegetables can also be included.
Step S204:Search the target components information to match in server with the component information of the fruits and vegetables of reception.
The component information and appearance profile information and advertisement letter of the fruits and vegetables of collection have been prestored in server database
Breath, and establish the component information of advertising message and corresponding fruits and vegetables and the incidence relation of appearance profile information.Server receives
The advertisement that first terminal is sent obtains request, and extracts the component information and appearance profile information of the fruits and vegetables carried in request.
In one embodiment, content range whether includes extraction in the component information for the fruits and vegetables that whois lookup prestores
Fruits and vegetables component information, if comprising if component information match.For example, one group of component information of storage includes content
Component A and 9%-11%B components for 6%-8%, if component A content is 7%, B in the constituent content that first terminal uploads
Constituent content is 8%, then illustrates that the constituent content for the fruits and vegetables that first terminal uploads matches with this group of component information to prestore.
In the present embodiment, the constituent content for the fruits and vegetables that server prestores is value range, and the value range is same by measuring
The measured value that a variety of samples of species fruits and vegetables obtain, for example, such as the constituent content model that fruit and vegetable is Fuji apple, then Fuji apple
Enclose is obtained by the multigroup constituent content information for the Fuji apple for counting big number of samples.
In another embodiment, the matching threshold of component information can be also preset, when the fruits and vegetables that first terminal uploads
Constituent content and server in the difference of the constituent contents of fruits and vegetables that prestores within predetermined threshold value, then both phases of explanation
Match somebody with somebody, the component information to prestore of matching is target components information.
Step S206:The target shape profile in server with the appearance profile information match of the fruits and vegetables of reception is searched to believe
Breath.
Specifically, gray value has the point of significant change in subrange in the extraction of appearance profile substantially extraction image
(singular point), the set for having the singular point necessarily associated in image are the appearance profile information of image.The appearance profile of fruits and vegetables
The extraction of information carries out edge extracting using edge detection algorithm, and one of extracting mode is:By appearance profile image data
Point sequence data are converted into, i.e., image information are split into an information, its midpoint information includes the position relationship with consecutive points
The information such as information, gradient.By the contrast of an information, the appearance profile information of fruits and vegetables and the appearance profile of server storage are obtained
The matching degree of information, matching degree are more than the appearance profile information to be prestored in the server of predetermined threshold value and believed for target shape profile
Breath.
In one embodiment, it is also an option that setting the key point information conduct of quantity in the appearance profile information received
Representative is contrasted, and reduces the quantity of comparison data, accelerates the speed of comparison.
Step S208:Judge whether target components information and target shape profile information are associated with advertising message, if so, then
Transfer advertising message, and by the transmitting advertisement information transferred to first terminal.
Specifically, whois lookup whether there is the advertisement letter associated with target components information and target shape profile information
Breath, if so, the advertising message being then associated is transferred, and by the transmitting advertisement information transferred to terminal display, so that eventually
End subscriber can be fully understood by by the advertising message to fruits and vegetables.
It is previously stored with the advertising message of fruits and vegetables in the present embodiment, in server, and by fruits and vegetables corresponding to advertising message
Component information and appearance profile information establish incidence relation with advertising message, and server is receiving the advertisement of first terminal upload
After obtaining request, the component information of fruits and vegetables and the profile of fruits and vegetables that the first terminal carried in request obtains can be obtained according to advertisement
Profile information searches the advertising message for meeting component information matching and appearance profile information matches while storage in server, and
The transmitting advertisement information of acquisition to terminal display is enabled one to understand fruits and vegetables by the advertising message for watching fruits and vegetables, only needed
First terminal captures to the component and appearance profile information of fruits and vegetables, you can learns advertisement corresponding to fruits and vegetables, people know fruit
The mode of vegetable information is simpler quick.
In addition, in the present embodiment, the index by the appearance profile information of fruits and vegetables and component information collectively as advertising message
Label, the classification of fruits and vegetables in server can be made finer, i.e., distinguished the fruits and vegetables that component information is similar, shape difference is larger
And distinguish the fruits and vegetables that shape is similar, component information gap is larger, the advertising message degree of accuracy for identifying to obtain is higher.
Moreover, using the appearance profile information of fruits and vegetables as the advertisement addressable address of fruits and vegetables, because the appearance profile of fruits and vegetables is believed
Cease consistency, no matter when light or color change all without change its shape edges, therefore, use appearance profile information one
Aspect can characterize the exclusive characteristic of fruits and vegetables, on the other hand not disturbed by shooting condition, and matching accuracy and Degree of Success are high.
In one embodiment, if target components information and target shape profile information do not have related advertising message,
The incidence relation established between target components information and target shape profile information.
Advertisement acquisition method based on fruits and vegetables component and profile also includes:
The advertisement letter for the fruits and vegetables corresponding to target components information and target shape profile information that reception second terminal is sent
Breath, and the incidence relation established between advertising message and target components information and target shape profile information.
Specifically, if the match is successful for component information and target shape profile information, that is, target components are found
Information and target shape profile information, but it is corresponding with target components information and target shape profile information without storing in server
Advertising message, server can (can be that article manufacturer terminal and operator are whole to the second terminal that uploads advertisement is had permission
End) prompting message that advertising message uploads is sent, remind second terminal to upload and believe with target components information and target shape profile
Advertising message corresponding to breath, and establish advertising message and target components information and the incidence relation of target shape profile information.Example
Such as, the article that target components information and target shape profile information point to is pineapple, then second terminal should upload pineapple correlation
Advertising message.
In one embodiment, when server does not find the target components matched with the component information of first terminal scanning
Information and do not find with first terminal scanning appearance profile information matches target shape profile information when, by first terminal
The component information and appearance profile information of the fruits and vegetables of transmission are stored into the database of server, as data extending.
In one embodiment, second terminal can also voluntarily upload advertising message, and be selected according to the advertising message of upload
The component information and appearance profile information of the fruits and vegetables corresponding with the advertising message to be prestored in server, server is set to establish selection
Fruits and vegetables component information and appearance profile information and the advertising message of upload between incidence relation.In the present embodiment, utilize
Existing appearance profile information and component information issuing advertisement information, advertising message issue can be made more quick.
In one embodiment, second terminal can voluntarily upload advertising message, when not being stored with server and the advertisement
When the component information and appearance profile information of fruits and vegetables corresponding to information, second terminal voluntarily uploads corresponding component information and profile
Profile information, server is set to establish between component information and appearance profile information and the advertising message of upload of the fruits and vegetables uploaded
Incidence relation.In the present embodiment, second terminal user can carry out the issue of advertising message, so that other users can pass through profile wheel
Wide information and component information get the advertisement of issue, realize the propagation of advertising message.
In one embodiment, the advertising message that server uploads second terminal generates advertising message list.Advertisement is believed
Breath list includes advertisement and identifier, Item Title and advertisement brief introduction etc..User can upload ad content to second terminal and enter place
Reason, including issue, delete, change and edit.User sends advertising inquiry to server by second terminal and asked, server
According to advertising inquiry acquisition request advertising message list.
Advertising message list is back to second terminal by server.User can pass through advertising message list in second terminal
Identified corresponding to the middle pending advertisement of selection, i.e., pending advertisement and identifier, and pending advertisement and identifier is uploaded onto the server.
Server pending advertisement according to corresponding to obtaining pending advertisement and identifier, corresponding processing operation is carried out to pending advertisement.
Asked for example, user sends advertising inquiry by second terminal to server, server is asked according to advertising inquiry
Advertising message list is obtained, and advertising message list is back to second terminal.User is arranged by advertising message in second terminal
Advertisement to be deleted is selected in table, and advertisement and identifier to be deleted is uploaded onto the server.Server is according to advertisement and identifier to be deleted
Advertisement to be deleted is obtained, and deletion action is carried out to advertisement to be deleted.
By selecting pending advertisement and identifier in advertising message list, so as to be issued to pending advertisement,
The operations such as deletion, modification or editor, thus facilitate user to need to handle ad content according to itself.
In one embodiment, should as shown in figure 3, additionally providing a kind of acquisition advertisement based on fruits and vegetables component and profile
Method is illustrated exemplified by applying in first terminal 102 as shown in Figure 1, is specifically included:
Step S302:Obtain the constituent content information and appearance profile information of fruits and vegetables.
Terminal is mounted with Advertising application, as people it should be understood that during the details of fruits and vegetables, passes through the advertisement applications
The scanning product that program starts terminal is scanned to obtain the image information of fruits and vegetables to fruits and vegetables, by entering to the image information of scanning
Row rim detection obtains the appearance profile information of fruits and vegetables.At the same time, the lossless of terminal is also started by the Advertising application
Detector detects the constituent content of fruits and vegetables, is specially:Mathematics is carried out according to the distribution intensity of the near-infrared absorption spectrum of fruits and vegetables to build
Mould obtains the component information of fruits and vegetables.
Step S304:Request is obtained according to the constituent content information of acquisition and the generation advertisement of appearance profile information, and will be raw
Into advertisement obtain request and send to server.
Step S306:The advertising message that server returns is shown, wherein the constituent content letter of the advertising message association returned
The constituent content information and appearance profile information match of breath and appearance profile information with the fruits and vegetables of acquisition.
Terminal generates advertisement according to the component information and appearance profile information of the fruits and vegetables of acquisition and obtains request, and by generation
Advertisement obtains request and sent to server, and server extracts the component information and profile that the advertisement obtains the fruits and vegetables carried in request
Profile information, and search prestored in server with component information and the target components information and target of appearance profile information matches
Appearance profile information, and search the advertising message that there is incidence relation with target components information and target shape profile information.Clothes
The advertising message of lookup is returned to terminal by business device, and terminal can show or play the advertising message.Advertising message can with when it is quiet
State advertisement, can also when dynamic advertising, wherein, static advertising includes copy and display advertising etc..Dynamic advertising includes two
Tie up video ads, 3 D video advertisement and AR (Augmented Reality Technique, augmented reality) advertisement etc..
In one embodiment, as shown in figure 4, in step S306:The advertising message that server returns is shown, wherein returning
Advertising message association constituent content information and profile with the fruits and vegetables of acquisition of constituent content information and appearance profile information
After profile information matches, in addition to:
Step S308:Obtain user's triggering shares request to advertising message, shares request and carries third-party application
User identifies.
Step S310:Share connection in response to sharing request generation advertising message.
Step S312:Call third-party application interface to share chain to receive and send to terminal corresponding to user's mark.
Specifically, advertisement is provided with the advertising display page of terminal shares button, terminal user triggers the advertisement eventually
That shares that button can generate advertising message shares request, and this is shared request and carries user's mark, and user mark can be that this is wide
Accuse local user's mark of server or user's mark of third-party application.
When user, which triggers advertisement, shares button, terminal shares link according to advertising message generation, when user is identified as the
Tripartite application user mark when, by way of calling interface by this share chain receive and send to third-party application user mark
In corresponding terminal;When the user shared is identified as local user's mark, chain will be shared and received and sent to home server, it is local
Server will share chain and receive and send to terminal corresponding to user's mark.
In one embodiment, as shown in Figure 5, there is provided a kind of device that advertisement is obtained based on fruits and vegetables component and profile,
The device includes:
Advertisement obtains request receiving module 402, and the advertisement for receiving first terminal transmission obtains request, and advertisement obtains please
Seek the component information and appearance profile information of the fruits and vegetables of middle carrying first terminal acquisition.
Components do match module 404, for searching the target group to match in server with the component information of the fruits and vegetables of reception
Divide information.
Appearance profile matching module 406, for searching the appearance profile information match in server with the fruits and vegetables of reception
Target shape profile information.
Transmitting advertisement information module 408, for judging whether target components information and target shape profile information are associated with
Advertising message, if so, then transfer corresponding advertising message, and by the transmitting advertisement information transferred to first terminal.
In one embodiment, as shown in fig. 6, the advertisement acquisition device based on fruits and vegetables component and profile also includes:
Component information and appearance profile information association module 410, if believing for target components information and target shape profile
Breath is without association advertising message, then the incidence relation established between target components information and target shape profile information.
Advertisement acquisition device based on fruits and vegetables component and profile also includes:
Advertising message relating module 412, for receiving the target components information and target shape profile of second terminal transmission
The advertising message of fruits and vegetables corresponding to information, and establish between advertising message and target components information and target shape profile information
Incidence relation.
In one embodiment, the component information of the fruits and vegetables of acquisition includes sour-sweet degree content information and Vitamin C content is believed
Breath.
Components do match module 404, be additionally operable to search in server in the component information that stores, the content range of sour-sweet degree with
Include the target components information of the sour-sweet degree content information and Vitamin C content information obtained in ascorbic content range.
In one embodiment, as shown in Figure 7, there is provided a kind of advertisement acquisition device based on fruits and vegetables component and profile,
The device includes:
Constituent content and appearance profile acquisition module 502, for obtaining the constituent content information and appearance profile letter of fruits and vegetables
Breath.
Advertisement obtains request module 504, for the constituent content information according to acquisition and the generation advertisement of appearance profile information
Request is obtained, and the advertisement of generation is obtained into request and sent to server.
Advertising message display module 506, the advertising message returned for showing server, wherein the advertising message returned is closed
The constituent content information and appearance profile information of connection the constituent content information and appearance profile information phase with the fruits and vegetables of acquisition respectively
Matching.
In one embodiment, the advertisement acquisition method based on fruits and vegetables component and profile also includes:
Share acquisition request module 508, for obtain user triggering request is shared to advertising message, share request and take
User's mark with third-party application.
Share link generation module 510, for sharing connection in response to sharing request generation advertising message.
Sharing module 512, received and sent for calling third-party application interface to share chain to terminal corresponding to user's mark.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield, all it is considered to be the scope of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.