The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State a kind of the knowledge drawing method and device based on picture of problem.
The embodiments of the invention provide a kind of knowledge drawing method based on picture, this method includes:
The picture of user's input is received, the corresponding type of the content of descriptor and the picture of the picture is determined;
According to the corresponding database of the type, judge to whether there is the descriptor in the entry that the database is preserved;
When there is the descriptor in the entry that the database is preserved, shown using the corresponding onebox forms of the type
The corresponding content of the entry in the database.
In order to further provide a user accurate knowledge figure result, methods described also includes:
According to the picture, the picture resource relevant information with the picture match is searched in picture database;
The picture resource relevant information is shown using onebox forms.
It is preferred that the use onebox forms show that the picture resource relevant information includes:
Recognize the size with each picture of picture identical in picture resource relevant information;
It is determined that the size range where the size of each picture, onebox form exhibitions are used by the picture of every kind of size range
Show.
In order to further provide a user accurate knowledge figure result, the use onebox forms show the picture money
Source relevant information includes:
Recognize the size with each picture of picture identical in picture resource relevant information;
It is determined that the size range where the size of each picture, onebox form exhibitions are used by the picture of every kind of size range
Show.
In order to further provide a user accurate knowledge figure result, the descriptor of the determination picture includes:
According to the picture, the picture resource relevant information with the picture match is searched in picture database;
According to each corresponding descriptor of picture in the picture resource relevant information, the descriptor of the picture is determined.
In order to further provide a user accurate knowledge figure result, the corresponding type bag of content of the determination picture
Include:
According to the picture, the picture resource relevant information with the picture match is searched in picture database;
According to each corresponding type of picture in the picture resource relevant information, the corresponding class of content of the picture is determined
Type.
The embodiments of the invention provide a kind of knowledge map device based on picture, the device includes:
Receive determining module, for receive user input picture, determine the picture descriptor and the picture it is interior
Hold corresponding type;
Judge module, for according to the corresponding database of the type, judging to whether there is in the entry that the database is preserved
The descriptor;
Display module, during for there is the descriptor in judging the entry that the database is preserved when judge module, is used
The corresponding onebox forms of the type show the corresponding content of the entry in the database.
In order to further provide a user accurate knowledge figure result, described device also includes:
Picture database, for preserving picture resource relevant information;
The display module, is additionally operable to, according to the picture, the figure with the picture match be searched in picture database
Piece resource related information;The picture resource relevant information is shown using onebox forms.
In order to further provide a user accurate knowledge figure result, the display module, specifically for identification picture money
With the size of each picture of picture identical in the relevant information of source;It is determined that the size range where the size of each picture,
The picture of every kind of size range is shown using onebox forms.
In order to further provide a user accurate knowledge figure result, the picture database, specifically for preserving picture
Resource related information, and preserve each picture and its corresponding descriptor;
The reception determining module, specifically for according to the picture, being searched and the picture in picture database
The picture resource relevant information matched somebody with somebody;According to each corresponding descriptor of picture in the picture resource relevant information, the figure is determined
The descriptor of piece.
In order to further provide a user accurate knowledge figure result, the picture database, specifically for preserving picture
Resource related information, and preserve each picture and its corresponding type of content;
The reception determining module, specifically for according to the picture, being searched and the picture in picture database
The picture resource relevant information matched somebody with somebody;According to each corresponding type of picture in the picture resource relevant information, the picture is determined
The corresponding type of content.
In order to further provide a user accurate knowledge figure result, described device further comprises knowledge data base, uses
In each entry for preserving figure kind's type, and the corresponding content of the entry.
The embodiments of the invention provide a kind of knowledge drawing method and device based on picture, user's input is received in this method
Picture after, the corresponding type of the content of descriptor and the picture of the picture is determined, when the corresponding database of the type is preserved
Entry in exist the descriptor when, using the entry in the corresponding onebox forms display data storehouse of the type it is corresponding in
Hold.Due to determining the descriptor of picture in the embodiment of the present invention, and when there is the descriptor in the entry that database is preserved, adopt
The corresponding content of the entry in the database is shown with the corresponding onebox forms of the type of the content of the picture, so as to realize
Knowledge figure mode based on pictorial information, expands the scope of application of picture recognition, convenient for users to use.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Embodiment
In order to realize the scheme that picture recognition is carried out by pictorial information, expand the scope of application of picture recognition, it is convenient to use
The use at family.The embodiments of the invention provide a kind of knowledge drawing method and device based on picture.
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
With reference to explanation accompanying drawing, the embodiment of the present invention is illustrated.
Fig. 2 is a kind of knowledge figure process schematic based on picture provided in an embodiment of the present invention, and the process includes following step
Suddenly:
S201:The picture of user's input is received, the corresponding type of the content of descriptor and the picture of the picture is determined.
In embodiments of the present invention when user carries out picture recognition, it can be that search is drawn to be somebody's turn to do the identifying device based on picture
Hold up or other devices.
The picture recognition frame for carrying out pictorial information input is provided a user installed in the client of user's local device, is passed through
Input of the user in picture recognition frame obtains picture, and the picture is sent into the device.Wherein, figure of the user in client
The picture inputted in piece identification frame can be the picture pulled based on drag operation from local device, or based on drag operation
The picture pulled from internet, or the picture that is obtained from the clipbook of local device of paste operation etc..
S202:According to the corresponding database of the type, judge to whether there is the theme in the entry that the database is preserved
Word, when judged result when being, to carry out step S203, otherwise, carries out step S204.
The each type of image content is directed in embodiments of the present invention, preserves database corresponding with the type, picture
The corresponding type of content include:Personage, landscape, news, animal, vehicle etc..Preserved in each database and correspond to such
The corresponding entry information of type.
S203:The corresponding content of the entry in the database is shown using the corresponding onebox forms of the type.
The different onebox display forms of each type correspondence, every kind of onebox display forms can be with identical, can also not
Together.When user inputs search service demand in search box, after searched engine is clearly identified, it will distribute to what is preset
Premium content resource or application provider's processing, so that the application result that user's request matches efficiently precisely is returned to,
In search service, this application result referred to as onebox matched with user's request can will be provided in result of page searching,
Or using frame or apply box..
S204:Displaying and the picture resource relevant information of the picture match.
Due to determining the descriptor of picture in the embodiment of the present invention, and in the presence of the descriptor in the entry that database is preserved
When, the corresponding content of the entry in the database is shown using the corresponding onebox forms of the type of the content of the picture, from
And the knowledge figure mode based on pictorial information is realized, and the scope of application of picture recognition is expanded, it is convenient for users to use.
Schematic diagram is presented for the interface provided in an embodiment of the present invention for know when scheming based on picture in Fig. 3, of the invention real
Apply in example when client is opened, client provides a user the picture recognition of progress pictorial information input as shown in Figure 3
Frame, the user's identification frame is used for the picture for receiving user's input.The picture of user's input can be the dragging based on drag operation
The picture in the picture recognition frame is pasted to the picture in the picture recognition frame or based on paste operation.
Client recognizes user in the drag operation of setting regions, and input frame replacement picture recognition is placed using pulling
Frame, will pull placement input frame and be supplied to user, place the boundary after input frame replacement picture recognition frame using dragging as shown in Figure 4
Schematic diagram is presented in face.The dragging of user for convenience, client can show in input frame is placed in the dragging and " please drag picture
To herein " prompt message, point out user's drag operation picture placement location.
Browser is based on picture recognition frame or pulls after the picture for placing input frame acquisition user's input, and user is inputted
Picture be sent to the knowledge map device, know after the picture that map device receives user's input, it is determined that picture descriptor when, root
According to the picture, the picture resource relevant information with the picture match is searched in picture database;Provided according to the picture
The corresponding descriptor of each picture, determines the descriptor of the picture in the relevant information of source.
The picture resource relevant information include with the user input the same or analogous picture of picture, in addition to the use
Other pictures of the picture correlation of family input, and the webpage including above-mentioned picture etc..The picture of such as user input is one
Zhang Pingguo picture, then the picture resource relevant information include the identical or similar apple of apple picture inputted with user
Picture, or other pictures including apple etc., the webpage of the apple picture of above-mentioned user's input can also be included
Deng.
Specifically, picture database can be stored in knowledge map device, can also exist independently of map device is known.In picture
Plurality of pictures is preserved in database, and for preserving the corresponding descriptor of the picture per pictures.Server is according to reception
Arrive user input picture, the picture is matched with each picture in picture database, it is determined that with the picture match
Picture resource relevant information, according to each corresponding descriptor of picture in each picture resource relevant information, determines that the user is defeated
The descriptor of the picture entered.
When being matched, the picture resource relevant information that the picture inputted in picture database with user matches may
Including multiple, the picture in each picture resource relevant information has corresponding descriptor, it is determined that the figure of user's input
During the descriptor of piece, it is determined that corresponding with the picture in each picture resource relevant information that the picture that the user inputs matches
Descriptor, in the corresponding descriptor, counts the number of times that each descriptor occurs, will appear from the most descriptor conduct of number of times
The descriptor of the picture of user input.
Know after the picture that map device receives user's input, when determining the corresponding type of content of the picture, according to described
Picture, searches the picture resource relevant information with the picture match in picture database;It is related according to the picture resource
The corresponding type of each picture in information, determines the corresponding type of content of the picture.
Picture database preserves plurality of pictures, and for preserving the corresponding class of content of the picture per pictures
Type, it is personage, landscape, news, animal, vehicle etc. type for example to record the picture.When being matched, in picture database
Potentially included with the picture resource relevant information that matches of picture that user inputs it is multiple, in each picture resource relevant information
Picture has corresponding type, it is determined that user's input picture content corresponding type when, it is determined that defeated with the user
The corresponding type of picture in each picture resource relevant information that the picture entered matches, in the corresponding type, statistics
The number of times that each type occurs, will appear from the corresponding type of content for the picture that the most type of number of times is inputted as the user.
Fig. 5 is the knowledge figure process schematic based on picture that the embodiment of the present invention one is provided, and the process comprises the following steps:
S501:Receive the picture for user's input that browser is sent.
S502:Each picture in picture and picture database that user is inputted is searched, it is determined that with the picture
The picture resource relevant information matched somebody with somebody.
S503:According to each corresponding descriptor of picture in each picture resource relevant information, and each picture is corresponding
Type, determines the corresponding type of the content of descriptor and the picture of the picture of user input.
S504:According to the corresponding database of the type, judge to whether there is the theme in the entry that the database is preserved
Word, when judged result when being, to carry out step S505, otherwise, carries out step S506.
S505:The corresponding content of the entry in the database is shown using the corresponding onebox forms of the type.
S506:Displaying and the picture resource relevant information of the picture match.
Exist in the embodiment of the present invention and preserved in multiple databases, each database in multiple entries, each database
Entry belong to the entry that multiple personages are preserved in a type, such as the first database, the second database preserves many
Locate the entry of landscape, the 3rd database preserves the entry of a plurality of news, and the 4th database preserves the entry of many animals, the
Five databases preserve entry of a variety of vehicles etc..Because the characteristics of each type of entry has itself, thus in order to
Family provides detailed knowledge figure information, in embodiments of the present invention for each type, is provided with its corresponding onebox forms exhibition
Show, the result of figure is known by the corresponding onebox forms displaying displaying.
After the corresponding type of content for the picture that user's input is determined, according to the corresponding database of each type, judge
The descriptor of the picture inputted in the entry that the database is preserved with the presence or absence of user, exists when in the entry that the database is preserved
During the descriptor, using the corresponding content of the entry in the corresponding onebox forms display data storehouse of the type.
Specifically, server is received after the picture of user's input, according to the picture, searched in picture database with being somebody's turn to do
The picture resource relevant information of picture match, and it is corresponding according to each picture in each picture resource relevant information found
Descriptor and the corresponding type of image content, it is female star " model so-and-so ", the content pair of the picture to determine the descriptor of the picture
The type answered is " personage ".
The corresponding database of personage's type is knowledge data base, and such as " 360 encyclopaedia " can be used as a kind of knowledge data base.
Search in the entry that knowledge data base is preserved with the presence or absence of descriptor " model so-and-so ", when there is master in the entry that the database is preserved
" model so-and-so " entry correspondence during epigraph " model so-and-so ", is shown in knowledge data base using the corresponding onebox forms of personage's type
Content.Displaying has the content after correspondence polymerization in onebox forms.
The onebox forms of personage's type are shown including " Profile ", " briefly introducing ", " personal story ", " main work
Product ", " obtaining honor ", " nude substitute's exposure ", " personage's evaluation ", " waxen imagen moulding ", " Cannes dispute ", " personal interview " etc..
Polymerization has the archives of the personage in " Profile " of the displaying of onebox forms, and corresponding shelves can be shown by clicking on " Profile "
Polymerization has the recommended information of the personage in case content, " briefly introducing ", and clicking on " briefly introducing " can show in corresponding introduce
Hold etc..The above-mentioned simple declaration simply shown to onebox forms in the embodiment of the present invention, as long as using onebox form exhibitions
Show, to the specific form that shows without restriction.
In order to improve the accuracy of knowledge figure result, also wrapped during the knowledge figure provided in an embodiment of the present invention based on picture
Include:
According to the picture, the picture resource relevant information with the picture match is searched in picture database;Using
Onebox forms show the picture resource relevant information.
Specifically, showing that the picture resource relevant information includes using onebox forms:
Recognize the size with each picture of picture identical in picture resource relevant information;
It is determined that the size range where the size of each picture, onebox shapes are respectively adopted by the picture of every kind of size range
Formula is shown.
It is every kind of in embodiments of the present invention in order to using the information of onebox form exhibiting pictures, be provided with sizes
Size have its corresponding size range, sizes for example including:Overall dimension, large scale, middle size, small size etc.,
Every kind of size has its corresponding size range, such as overall dimension be include searching with all pictures of picture identical
Size, large-sized size range is 1024*1024~1600*1200, the size range of middle size for 500*500~
1024*1024, the size range of small size is the scope below 500*500 sizes.
When know figure based on picture, according to the picture match inputted with user found in picture database
Picture resource relevant information, recognizes the size of each picture in the picture resource relevant information, according to each size model of setting
The size of each picture enclosed and recognized, it is determined that the size range where the size of each picture, by every kind of size range
Picture is aggregated to the picture for showing every kind of size range using onebox forms together.
In another embodiment, the picture inputted according to the user received, is searched and the figure in picture database
The picture resource relevant information of piece matching, identifies the picture identical picture inputted with the user, and recognize each picture
Size, it is determined that after the size range where the size of each picture, the picture of every kind of size is shown using onebox forms
Under " overall dimension ", " large scale ", " middle size " and " small size ", " overall dimension ", " large scale ", " middle size " and
Under " small size " polymerization have a corresponding size with the input picture identical picture.In addition, the accuracy in order to improve knowledge figure, root
According to the descriptor of the relevant information of each picture resource in picture database, the descriptor of the picture of user input is determined, i.e.,
Best-guess " Fan Bingbing ".
In addition, in order to improve the comprehensive of knowledge figure, server has also been provided a user and picture in embodiments of the present invention
Other picture resource relevant informations of matching, such as picture related to the picture that the user inputs, the webpage comprising the picture
Etc. information.Upper figure is a simple declaration to the embodiment of the present invention, the picture inputted according to user, the embodiment of the present invention
Knowledge graphic operation can be carried out, and knows figure result to user's displaying is corresponding, wherein the picture phase inputted with the user recognized
Same picture, shows according to the size of picture in onebox forms, when existing in database with the descriptor identical entry,
The content of the entry in display data storehouse is shown in onebox forms, in addition, being also provided with the embodiment of the present invention and the picture
Other related picture concerneds, and the information such as the webpage comprising the picture.
Fig. 6 is a kind of knowledge map device structural representation based on picture provided in an embodiment of the present invention, and described device includes:
Determining module 61 is received, the picture for receiving user's input determines the descriptor and the picture of the picture
The corresponding type of content;
Judge module 62, for according to the corresponding database of the type, judging whether deposited in the entry that the database is preserved
In the descriptor;
Display module 63, during for there is the descriptor in judging the entry that the database is preserved when judge module, is adopted
The corresponding content of the entry in the database is shown with the corresponding onebox forms of the type.
Described device also includes:
Picture database 64, for preserving picture resource relevant information;
The display module 63, is additionally operable to, according to the picture, search in picture database and the picture match
Picture resource relevant information;The picture resource relevant information is shown using onebox forms.
The display module 63, specifically for identification picture resource relevant information in each picture of picture identical
Size;It is determined that the size range where the size of each picture, onebox form exhibitions are used by the picture of every kind of size range
Show.
The picture database 64, specifically for preserving picture resource relevant information, and preserves each picture and its correspondingly
Descriptor;
The reception determining module 61, specifically for according to the picture, being searched and the picture in picture database
The picture resource relevant information of matching;According to each corresponding descriptor of picture in the picture resource relevant information, it is determined that should
The descriptor of picture.
The picture database 64, specifically for preserving picture resource relevant information, and preserves each picture and its content
Corresponding type;
The reception determining module 61, specifically for according to the picture, being searched and the picture in picture database
The picture resource relevant information of matching;According to each corresponding type of picture in the picture resource relevant information, the figure is determined
The corresponding type of content of piece.
Described device also includes:
Knowledge data base 65, each entry for preserving figure kind's type, and the corresponding content of the entry.
The embodiments of the invention provide a kind of knowledge drawing method and device based on picture, user's input is received in this method
Picture after, the corresponding type of the content of descriptor and the picture of the picture is determined, when the corresponding database of the type is preserved
Entry in exist the descriptor when, using the entry in the corresponding onebox forms display data storehouse of the type it is corresponding in
Hold.Due to determining the descriptor of picture in the embodiment of the present invention, and when there is the descriptor in the entry that database is preserved, adopt
The corresponding content of the entry in the database is shown with the corresponding onebox forms of the type of the content of the picture, so as to realize
Knowledge figure mode based on pictorial information, expands the scope of application of picture recognition, convenient for users to use.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed
One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) come realize it is according to embodiments of the present invention by know in map device some or
The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one
Divide or whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair
Bright program can be stored on a computer-readable medium, or can have the form of one or more signal.It is such
Signal can be downloaded from internet website and obtained, and either provided or provided in any other form on carrier signal.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.