CN108062372A - image generating method and device based on artificial intelligence - Google Patents
image generating method and device based on artificial intelligence Download PDFInfo
- Publication number
- CN108062372A CN108062372A CN201711317507.XA CN201711317507A CN108062372A CN 108062372 A CN108062372 A CN 108062372A CN 201711317507 A CN201711317507 A CN 201711317507A CN 108062372 A CN108062372 A CN 108062372A
- Authority
- CN
- China
- Prior art keywords
- information
- mentioned
- image
- search
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application discloses image generating method and device based on artificial intelligence.One specific embodiment of this method includes:Search information input by user is received, wherein, which is used to indicate the search need for the functional image for treating drafting function with information;The search is sent to server with information, wherein, which, which parses the search and obtain this with information, treats drafting function, determines and returns to the image generation information for treating drafting function;Receive the image generation information;Using the image generation information, the functional image is generated.The embodiment enriches the mode of generating function image.
Description
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field more particularly to based on people
The image generating method and device of work intelligence.
Background technology
Artificial intelligence (Artificial Intelligence), english abbreviation AI.It is research, exploitation for simulating,
Theory, method, a new technological sciences of technology and application system for the intelligence of extension and extension people.Artificial intelligence is to calculate
One branch of machine science, it attempts to understand essence of intelligence, and produce it is a kind of it is new can be in a manner that human intelligence be similar
The intelligence machine made a response, the research in the field include robot, language identification, image identification, natural language processing and specially
Family's system etc..
Functional relation, abbreviation function.Function can include three elements:(mapping is closed for domain, codomain and correspondence rule
System).Functional image can intuitively show the relation between independent variable and dependent variable with image format.
However, existing functional image generating mode, it usually needs in the mathematical software of terminal installation specialty, user's study
Substantial amounts of mathematical knowledge could use mathematical software drafting function image.
The content of the invention
The embodiment of the present application proposes image generating method and device based on artificial intelligence.
In a first aspect, the embodiment of the present application provides a kind of image generating method based on artificial intelligence, including:It receives and uses
The search information of family input, wherein, the search that above-mentioned search is used to indicate the functional image for treating drafting function with information needs
It asks;Above-mentioned search is sent to server with information, wherein, above-mentioned server parses above-mentioned search and obtains above-mentioned waiting to paint with information
Function processed determines and returns to the above-mentioned image generation information for treating drafting function;Receive above-mentioned image generation information;Using upper
Image generation information is stated, generates above-mentioned functional image.
In some embodiments, above-mentioned server is search engine server, above-mentioned search engine server obtain with it is upper
It states and treats the relevant search result of drafting function, generate and return to webpage and above-mentioned image generation information, above-mentioned webpage includes upper
It states search result and is used to indicate position indication information of the above-mentioned functional image in above-mentioned webpage.
In some embodiments, the above-mentioned image generation information of above-mentioned reception, including:Receive above-mentioned webpage and above-mentioned image
Generation information.
In some embodiments, the above method further includes:It renders and above-mentioned webpage is presented, wherein, render the webpage bag of presentation
Include the functional image in the position indicated by above-mentioned position indication information.
In some embodiments, after above-mentioned drafting generates above-mentioned functional image, the above method further includes:It shows above-mentioned
Functional image.
In some embodiments, above-mentioned image generation information treats drafting function and domain including above-mentioned;On and
It states using above-mentioned image generation information, generates above-mentioned functional image, including:Drafting function and above-mentioned definition are treated according to above-mentioned
Domain determines the value of dependent variable corresponding with the independent variable in above-mentioned domain;Based on above-mentioned domain and identified dependent variable
Value, draw above-mentioned functional image.
In some embodiments, above-mentioned image generation further includes the above-mentioned extreme point information for treating drafting function with information, on
It is that above-mentioned server is determined by following steps to state extreme point information:It treats drafting function derivation to above-mentioned and/or seeks local derviation, obtain
To asking for result;It is asked for according to above-mentioned as a result, determining above-mentioned the first extreme point information for treating drafting function.
In some embodiments, it is above-mentioned to utilize above-mentioned image generation information, above-mentioned functional image is generated, including:According to
The value of identified dependent variable determines the above-mentioned secondary extremal point information for treating drafting function;According to above-mentioned domain and determine
The value of dependent variable and above-mentioned first extreme point information and/or above-mentioned secondary extremal point information, draw above-mentioned functional image.
In some embodiments, after the above-mentioned functional image of above-mentioned display, the above method further includes:User is received to be directed to
The operation information of the operation of shown functional image, wherein, aforesaid operations are following at least one:Rotation, scaling and dragging,
Aforesaid operations information includes action type and operating position information;According to aforesaid operations information, shown functional image is adjusted.
In some embodiments, after the above-mentioned functional image of above-mentioned display, the above method further includes:Receive user's input
User-specific information, wherein, user-specific information includes at least one of following:Specified scaling multiple specified is determined
Adopted domain, specified codomain, specified independent variable numerical value and specified dependent variable numerical value;User according to receiving specifies
Information determines image to be displayed corresponding with above-mentioned user-specific information and/or numerical value to be shown;It is to be shown determined by display
Image and/or numerical value to be shown.
Second aspect, the embodiment of the present application provide a kind of video generation device based on artificial intelligence, including:First connects
Unit is received, is configured to receive search information input by user, wherein, above-mentioned search is used to indicate with information treats drafting letter
The search need of several functional images;Transmitting element is configured to above-mentioned search being sent to server with information, wherein, on
State server parse above-mentioned search with information obtain it is above-mentioned treat drafting function, determine and return to the above-mentioned image life for treating drafting function
Into with information;Second receiving unit is configured to receive above-mentioned image generation information;Generation unit is configured to using upper
Image generation information is stated, generates above-mentioned functional image.
In some embodiments, above-mentioned server is search engine server, above-mentioned search engine server obtain with it is upper
It states and treats the relevant search result of drafting function, generate and return to webpage and above-mentioned image generation information, above-mentioned webpage includes upper
It states search result and is used to indicate position indication information of the above-mentioned functional image in above-mentioned webpage.
In some embodiments, above-mentioned second receiving unit, is configured to:It receives above-mentioned webpage and the generation of above-mentioned image is used
Information.
In some embodiments, above device further includes:Display unit is configured to render the above-mentioned webpage of presentation, wherein,
The webpage for rendering presentation is included in the functional image of the position indicated by above-mentioned position indication information.
In some embodiments, after above-mentioned drafting generates above-mentioned functional image, above device further includes:First display
Unit is configured to show above-mentioned functional image.
In some embodiments, above-mentioned image generation information treats drafting function and domain including above-mentioned;On and
Generation unit is stated, is configured to:Drafting function and above-mentioned domain are treated according to above-mentioned, are determined and becoming certainly in above-mentioned domain
Measure the value of corresponding dependent variable;Based on above-mentioned domain and the value of identified dependent variable, above-mentioned functional image is drawn.
In some embodiments, above-mentioned image generation further includes the above-mentioned extreme point information for treating drafting function with information, on
It is that above-mentioned server is determined by following steps to state extreme point information:It treats drafting function derivation to above-mentioned and/or seeks local derviation, obtain
To asking for result;It is asked for according to above-mentioned as a result, determining above-mentioned the first extreme point information for treating drafting function.
In some embodiments, above-mentioned generation unit, is configured to:According to the value of identified dependent variable, determine above-mentioned
Treat the secondary extremal point information of drafting function;According to the value and above-mentioned first extreme value of above-mentioned domain and identified dependent variable
Point information and/or above-mentioned secondary extremal point information, draw above-mentioned functional image.
In some embodiments, after the above-mentioned functional image of above-mentioned display, above device further includes:3rd receives list
Member, be configured to receive user for shown functional image operation operation information, wherein, aforesaid operations be with down toward
Few one kind:Rotation, scaling and dragging, aforesaid operations information include action type and operating position information;Adjustment unit, configuration are used
According to aforesaid operations information, shown functional image is adjusted.
In some embodiments, above device further includes:4th receiving unit is configured to receive user input by user
Specify information, wherein, user-specific information includes at least one of following:Specified scales multiple, specified domain, institute
Codomain, specified independent variable numerical value and the specified dependent variable numerical value specified;Determination unit is configured to basis and receives
User-specific information, determine image to be displayed corresponding with above-mentioned user-specific information and/or numerical value to be shown;Second display
Unit is configured to show identified image to be displayed and/or numerical value to be shown.
The third aspect, the embodiment of the present application provide a kind of terminal, and above-mentioned terminal includes:One or more processors;It deposits
Storage device, for storing one or more programs, when said one or multiple programs are performed by said one or multiple processors
When so that said one or multiple processors realization such as the method for first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence realizes the method such as first aspect when the program is executed by processor.
Image generating method and device provided by the embodiments of the present application based on artificial intelligence, it is input by user by receiving
Search information, wherein, above-mentioned search is used to indicate the search need for the functional image for treating drafting function with information;It will be above-mentioned
Search is sent to server with information, wherein, above-mentioned server parse above-mentioned search with information obtain it is above-mentioned treat drafting function, really
Determine and return to the above-mentioned image generation information for treating drafting function;Receive above-mentioned image generation information;It is given birth to using above-mentioned image
Into with information, above-mentioned functional image is generated, enriches the mode of generating function image.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the image generating method based on artificial intelligence of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the image generating method based on artificial intelligence of the application;
Fig. 4 A are the flow charts according to the further embodiment of the image generating method based on artificial intelligence of the application;
Fig. 4 B are the schematic diagrames according to an application scenarios of the image generating method based on artificial intelligence shown in Fig. 4 A;
Fig. 5 A are the flow charts according to another embodiment of the image generating method based on artificial intelligence of the application;
Fig. 5 B are the schematic diagrames according to an application scenarios of the image generating method based on artificial intelligence shown in Fig. 5 A
Fig. 6 is the structure diagram according to one embodiment of the video generation device based on artificial intelligence of the application;
Fig. 7 is adapted for the structure diagram of the computer system of the terminal device for realizing the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the image generating method based on artificial intelligence that can apply the application or the figure based on artificial intelligence
As the exemplary system architecture 100 of the embodiment of generating means.
As shown in Figure 1, system architecture 100 can include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102,103 by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications, such as browser application, purchase can be installed on terminal device 101,102,103
Species application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, wrap
It includes but is not limited to smart mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts
Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable
Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to being shown on terminal device 101,102,103
Webpage provides the background server supported.Background server can analyze etc. to the search that receives with data such as information
Reason, and handling result (such as image is generated with information) is fed back into terminal device.
It should be noted that the image generating method based on artificial intelligence that the embodiment of the present application is provided is generally by terminal
Equipment 101,102,103 perform, correspondingly, the video generation device based on artificial intelligence be generally positioned at terminal device 101,
102nd, in 103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need
Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, it illustrates an implementations of the image generating method based on artificial intelligence according to the application
The flow 200 of example.The above-mentioned image generating method based on artificial intelligence, comprises the following steps:
Step 201, search information input by user is received.
In the present embodiment, electronic equipment (such as Fig. 1 institutes of the image generating method operation based on artificial intelligence thereon
The terminal device shown) search information input by user can be received.Herein, above-mentioned search is used to indicate to treat with information and be painted
The search need of the functional image of function processed.
In the present embodiment, above-mentioned search information can be text message, voice messaging or pictorial information.
As an example, search information can be text " y=x+1 ".
As an example, search information can be voice, voice content is " y adds 1 equal to x ".
As an example, search can also be picture with information, there is image " y=x+1 " in picture.
Can be that user passes through various forms of search information as an example, to the search need of above-mentioned functional image
Expression.As an example, the search information of expression search need can be " y=x+1 " or " figure of y=x+1
Picture " or " y=x+1 long what " etc..
In the present embodiment, it is above-mentioned to treat that drafting function wait the function of drafting function image, as an example, waiting to paint
Function processed can be binary function or polynary (more than ternary or ternary) function.
Step 202, search is sent to server with information.
In the present embodiment, above-mentioned search can be sent to server by above-mentioned electronic equipment with information.
In the present embodiment, above-mentioned server can parse above-mentioned search information, obtain treating drafting function.Then, really
The fixed above-mentioned image generation information for treating drafting function, finally, returns to above-mentioned search information.
As an example, the process that above-mentioned server parses above-mentioned search information can be as follows:
First, server pre-processes above-mentioned search with information, obtains corresponding text.
For example, if search is voice with information, carries out speech recognition and obtain corresponding text;If above-mentioned search letter
Breath asks picture, then identifies to obtain the correspondence text in picture using optical character recognition technology.
Then, server can will carry out semantics recognition to corresponding text, obtain treating drafting function.For example, server obtains
To correspondence text can be " y=x+1 long what ", carry out semantics recognition and can obtain including in above-mentioned corresponding text to treat
Drafting function " y=x+1 ".
As an example, server carries out semantics recognition to corresponding text, obtain treating that drafting function can include:First, take
Business device corresponds to text with information to search and carries out semantics recognition, and the mathematics form for obtaining standard treats drafting function, such as corresponds to
Text is " y is equal to the image that x adds 1 ", and the mathematics form of obtained standard treats that drafting function can be " y=x+1 ", at this
In, the mathematics form of standard treats that drafting function can be the function after normalization.Then, server can utilize some pre-
The rule first set, judgement treat whether drafting function can draw.Pre-set rule may indicate which condition met
Function cannot be drawn.If for example, user provide treat that drafting function is not to be inconsistent logical function, cannot be drawn.
It is appreciated that server can be towards multiple terminals, each terminal may send one or more search information.
The search that server receives may indicate that the search need to functional image with information, it is also possible to not indicate to functional image
Search need.After server receives search information, it can sentence during semantics recognition is carried out with information to search
Whether disconnected search indicates the search need to functional image with information.
It is appreciated that the search information that the terminal device in the present embodiment is sent to server can be indicated to functional arrangement
The search need of picture, then server can parse to obtain to treat drafting function.It is not indicated pair for what other electronic equipments were sent
The search information of the search need of functional image, other search needs that server can be obtained according to identification, is returned to terminal
Return information corresponding with above-mentioned other search needs.
In the present embodiment, above-mentioned image generation with information can be server be supplied to terminal for drafting function figure
The information of picture.
As an example, image generation information can include independent variable and dependent variable with correspondence.Alternatively, image
Generation with information can include domain and the mapping relations of independent variable and dependent variable (treating drafting function), by terminal calculate with
The corresponding dependent variable of independent variable.
It should be noted that in the present embodiment, user can input the input information of various forms, be parsed by server
It obtains treating drafting function.Thus, it is possible to reduce the professional requirement to user, user can also be improved and check functional image just
Victory.
Step 203, image generation information is received.
In the present embodiment, above-mentioned electronic equipment can receive above-mentioned image generation information.
Step 204, image generation information, generating function image are utilized.
In the present embodiment, above-mentioned electronic equipment can utilize above-mentioned image generation information, generate above-mentioned functional image.
It is appreciated that terminal determine with mapping relations independent variable and dependent variable in the case of, can be with generating function
Image.
In some optional realization methods of the present embodiment, image generation information determined by above-mentioned server can
To include above-mentioned treating drafting function and domain.
In some optional realization methods of the present embodiment, step 204 can include:According to it is above-mentioned treat drafting function with
And above-mentioned domain, the value of definite dependent variable corresponding with the independent variable in above-mentioned domain.Based on above-mentioned domain and institute really
Determine the value of dependent variable, draw above-mentioned functional image.
It should be noted that calculating dependent variable mode by terminal, the load pressure of server can be reduced.Server needs
The a large amount of requests of processing, if for it is each parse treat drafting function, calculate dependent variable, load pressure is huge.It is moreover, right
For terminal, terminal is on the basis of getting domain and treating drafting function (mapping relations), the dependent variable of a function
Calculation amount will not impact the operation of terminal.
In some optional realization methods of the present embodiment, image generation information determined by above-mentioned server, also
It can include the extreme point information for treating drafting function.Herein, above-mentioned extreme point information can be that server passes through following steps
Definite:It treats drafting function derivation to above-mentioned and/or seeks local derviation, obtain asking for result;It is asked for according to above-mentioned as a result, determining above-mentioned
Treat the first extreme point information of drafting function.
It should be noted that server is according to asking for as a result, can not only determine the first extreme point information, but also can be with
Determine some particular point information.For example, for y=tanx this function, the value of function argument cannot be 90 °.It can
Above-mentioned particular point information is sent to terminal, terminal is reminded to pay attention to the processing of particular point information when image is generated.
In some optional realization methods of the present embodiment, above-mentioned steps 204 can include:According to identified because becoming
The value of amount determines to treat the secondary extremal point information of drafting function.According to the value of above-mentioned domain and identified dependent variable and
Above-mentioned first extreme point information and above-mentioned secondary extremal point information, draw above-mentioned functional image.
It should be noted that due to cannot be guaranteed server by derivation or local derviation is asked to determine all extreme points, because
This, after calculating dependent variable in terminal, being compared to each other between dependent variable, it may be determined that secondary extremal point information.
When generating image, extreme point information needs special consideration, accurate to draw, thus, it is possible to generate more accurate functional arrangement
Picture.
With continued reference to Fig. 3, Fig. 3 is the application scenarios according to the image generating method based on artificial intelligence of the present embodiment
One schematic diagram.In the application scenarios of Fig. 3, user inputs a search information in terminal first, for example, " y=x+1's
Image ".Afterwards, server can obtain above-mentioned search information from the background.Then, above-mentioned server parses above-mentioned search information
It obtains treating drafting function, for example, above-mentioned server can obtain treating drafting function " y=x+1 ".Then, above-mentioned server can be with
It determines and returns to the above-mentioned image generation information for treating drafting function, can to include domain (such as arbitrary for example, drawing information
Value) and treat drafting function (such as " y=x+1 ").Then, above-mentioned terminal can receive above-mentioned image generation information.Finally, on
Above-mentioned image generation information, generating function image, for example, the image generated can be as shown in Figure 3 can be utilized by stating terminal.
In some optional realization methods of the present embodiment, above-mentioned terminal device can be equipped with Image Rendering class to answer
Electronic equipment.It should be noted that operating with for existing Image Rendering class application, usually has user higher
It is required that, it is necessary to user inputs the mathematical function of standard or directly draws out accurate image.In this application scene, use
Family can input search information by the preset search box in the application of Image Rendering class.Then server can be parsed and searched
Rope is obtained treating drafting function with information, is determined and is returned to the image generation information for treating drafting function.Terminal device can connect
After receiving image generation information, the drawing function of Image Rendering class application, generating function image are called.The function generated
Image may be various forms.
The method that above-described embodiment of the application provides, by receiving search information input by user, wherein, it is above-mentioned to search
Rope is used to indicate the search need for the functional image for treating drafting function with information;Above-mentioned search is sent to service with information
Device, wherein, above-mentioned server parse above-mentioned search with information obtain it is above-mentioned treat drafting function, determine and return to above-mentioned letter to be drawn
Several image generation information;Receive above-mentioned image generation information;Using above-mentioned image generation information, above-mentioned function is generated
Image enriches the mode of generating function image.
With further reference to Fig. 4 A, it illustrates the flows of another embodiment of the image generating method based on artificial intelligence
400.The flow 400 of the image generating method based on artificial intelligence, comprises the following steps:
Step 401, by the input control of browser, search information input by user is received.
In the present embodiment, electronic equipment (such as Fig. 1 institutes of the image generating method operation based on artificial intelligence thereon
The terminal device shown) can search information input by user be received by the input control of browser.Herein, above-mentioned end
End equipment can be equipped with the electronic equipment of browser class application.Above-mentioned search is used to indicate with information treats drafting function
The search need of functional image.
As an example, input control can be search box.
Step 402, search is sent to search engine server with information.
In the present embodiment, above-mentioned search can be sent to search engine server by above-mentioned electronic equipment with information.It searches
Rope engine server can be the server that operation has search engine.
In the present embodiment, above-mentioned search engine server can parse to obtain it is above-mentioned treat drafting function, determine above-mentioned treat
The image generation information of drafting function, also, obtain and treat the relevant search result of drafting function.Then, above-mentioned search is drawn
Holding up server can generate and return to webpage and above-mentioned image generation information.Herein, above-mentioned webpage can include search knot
Fruit and the position indication information for being used to indicate position of the functional image in above-mentioned webpage.
As an example, search engine server, which can parse to obtain, treats drafting function " y=x+1 ", and can obtain with
" y=x+1 " relevant search result, for example, search result can " be putd question to:How y=x+1 draws " " y=x+1 is solved in detail
Method ".Then, above-mentioned search engine server can return to webpage, and the webpage of return can include search result and position instruction
Information.
As an example, above-mentioned webpage can utilize the 5th edition hypertext markup language (Hyper Text Markup
Language5, HTML5) write.
As an example, the position indication information in webpage can be placeholder, the web placement shared by the placeholder is used for
The corresponding functional image of drafting function is treated in insertion.
In some optional realization methods of the present embodiment, position indication information can serve to indicate that above-mentioned functional image
Before all search results in position in above-mentioned webpage.When user sees webpage, functional image can be interpreted as
And a kind of sensu lato search result, and in the position of first.
Step 403, webpage and image generation information are received.
In the present embodiment, above-mentioned electronic equipment can receive above-mentioned webpage and above-mentioned image generation information.
Step 404, image generation information, generating function image are utilized.
In the present embodiment, above-mentioned electronic equipment can utilize above-mentioned image generation information, generate above-mentioned functional image.
Step 405, presentation webpage is rendered.
In the present embodiment, above-mentioned electronic equipment, which can render, is presented above-mentioned webpage, wherein, the webpage for rendering presentation can be with
It is included in the functional image of the position indicated by above-mentioned position indication information.
As an example, the webpage presented can be as shown in Figure 4 B.
As an example, terminal can load analyzing web page, presentation webpage is then rendered.For rendering the webpage of presentation,
Position indicated by above-mentioned position indication information can be embedded with generated functional image.Herein, functional image can be can
Vector graphics (Scalable Vector Graphics, SVG) form of scaling.
As an example, SVG can be it is a kind of with extensible markup language (Extensible Markup Language,
XML the language) defined, for describing two-dimensional vector and vector/grid graph.User can directly with code come depiction picture,
Any word processing tool open SVG image can be used, makes image that there is interactive function by changing section code, and can be with
It is inserted into HTML5 and is watched by browser at any time.
From Fig. 4 A and Fig. 4 B as can be seen that compared with the corresponding embodiments of Fig. 2, in the present embodiment based on artificial intelligence
The flow 400 of image generating method highlight using search engine server, return to the webpage for including search result, and wash with watercolours
Dye is presented the step of including functional image and search result.As a result, the present embodiment description scheme can present more fully with
The information of functional dependence.
With further reference to Fig. 5 A, it illustrates the flows of another embodiment of the image generating method based on artificial intelligence
500.The flow 500 of the image generating method based on artificial intelligence, comprises the following steps:
Step 501, search information input by user is received.
In the present embodiment, electronic equipment (such as Fig. 1 institutes of the image generating method operation based on artificial intelligence thereon
The terminal device shown) search information input by user can be received.Herein, above-mentioned search is used to indicate to treat with information and be painted
The search need of the functional image of function processed.
Step 502, search is sent to server with information.
In the present embodiment, above-mentioned search can be sent to server by above-mentioned electronic equipment with information.
Step 503, image generation information is received.
In the present embodiment, above-mentioned electronic equipment can receive above-mentioned image generation information.
Step 504, image generation information, generating function image are utilized.
In the present embodiment, above-mentioned electronic equipment can utilize above-mentioned image generation information, generate above-mentioned functional image.
Step 505, explicit function image.
In the present embodiment, above-mentioned electronic equipment can show above-mentioned functional image.
In the present embodiment, above-mentioned electronic equipment can include screen, and above-mentioned functional image can be presented on the screen.
Step 506, operation information of the user for the operation of shown functional image is received.
In the present embodiment, above-mentioned electronic equipment can receive operation of the user for the operation of shown functional image
Information.Herein, aforesaid operations are that can be but be not limited to following operation:Rotation, scaling, dragging.Aforesaid operations information can be with
Including action type and operating position information.
As an example, action type can be rotation type, scaling type, dragging type.Operating position information can be used
Center, the center scaled, the position dragged of rotation etc. is determined in auxiliary.
Step 507, according to operation information, shown functional image is adjusted.
In the present embodiment, above-mentioned electronic equipment can adjust shown functional image according to aforesaid operations information.
As an example, the functional image in the present embodiment can be SVG forms, image has interactive function.User can
With the operation zoomed in and out to image.
It should be noted that the functional image that adjustment is shown, can be on the basis of the functional image presented originally,
Original function image is adjusted, obtains new functional image, new functional image is then presented, to realize shown by adjustment
Functional image;It can also be using image generation information, generate new functional image, to realize the shown functional arrangement of adjustment
Picture.
Step 508, user-specific information input by user is received.
In the present embodiment, above-mentioned electronic equipment can receive user-specific information input by user.
In the present embodiment, user-specific information includes at least one of following:Specified scaling multiple specified is determined
Adopted domain, specified codomain, specified independent variable numerical value and specified dependent variable numerical value.
As an example, refer to Fig. 5 B, specified domain, specified codomain, specified independent variable numerical value and
Specified dependent variable numerical value can input in preset input control.It should be noted that function in Fig. 5 B and
Image, only as an example, not necessarily meeting mathematical expression custom and accurate mathematical image.
Step 509, according to the user-specific information received, image to be displayed corresponding with user-specific information is determined
And/or numerical value to be shown.
In the present embodiment, above-mentioned electronic equipment can determine to specify with user according to the user-specific information received
The corresponding image to be displayed of information and/or numerical value to be shown.
It should be noted that if user's designates the information as specified scaling multiple, specified domain, meaning
Fixed codomain, it is determined that image to be displayed corresponding with user-specific information.If user designate the information as it is specified from
Variable value and specified dependent variable numerical value, it is determined that numerical value to be shown corresponding with user-specific information.If user's
Designate the information as specified independent variable numerical value, it is determined that dependent variable numerical value corresponding with the independent variable numerical value specified by user.
If user's designates the information as specified dependent variable numerical value, it is determined that corresponding with the dependent variable value specified by user from change
Numerical quantity.
Step 510, image to be displayed determined by display and/or numerical value to be shown.
In the present embodiment, above-mentioned electronic equipment can show identified image to be displayed with above-mentioned electronic equipment
And/or numerical value to be shown.
From figure 5 it can be seen that compared with the corresponding embodiments of Fig. 2, the image based on artificial intelligence in the present embodiment
The flow 500 of generation method highlights the step of user operates functional image.The scheme of the present embodiment description can as a result,
To realize that user operates functional image, so as to the operation according to user, the desired and function image of presentation user
Relevant content.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, this application provides one kind to be based on artificial intelligence
One embodiment of the video generation device of energy, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, device tool
Body can be applied in various electronic equipments.
As shown in fig. 6, the above-mentioned video generation device 600 based on artificial intelligence of the present embodiment includes:First receives list
Member 601, transmitting element 602, second receive 603 and generation unit 604.Wherein, the first receiving unit is configured to receive user
The search information of input, wherein, above-mentioned search is used to indicate the search need for the functional image for treating drafting function with information;
Transmitting element is configured to above-mentioned search being sent to server with information, wherein, above-mentioned server parses above-mentioned search letter
Breath obtain it is above-mentioned treat drafting function, determine and return to the above-mentioned image generation information for treating drafting function;Second receiving unit, matches somebody with somebody
It puts to receive above-mentioned image generation information;Generation unit is configured to, using above-mentioned image generation information, generate above-mentioned
Functional image.
In the present embodiment, the first receiving unit 601, transmitting element 602, second receive the tool of 603 and generation unit 604
Body processing and its caused technique effect can respectively with reference to figure 2 correspondence embodiment in step 201, step 202, step 203 with
And the related description of step 204, details are not described herein.
In some optional realization methods of the present embodiment, above-mentioned server be search engine server, above-mentioned search
Engine server obtain with it is above-mentioned treats the relevant search result of drafting function, generate and return to webpage and above-mentioned image generation believe
Breath, above-mentioned webpage include mentioned above searching results and are used to indicate position indication information of the above-mentioned functional image in above-mentioned webpage.
In some optional realization methods of the present embodiment, above-mentioned second receiving unit is configured to:Receive above-mentioned net
Page and above-mentioned image generation information.
In some optional realization methods of the present embodiment, above device further includes:Display unit (not shown), configuration
Above-mentioned webpage is presented for rendering, wherein, the webpage for rendering presentation is included in position indicated by above-mentioned position indication information
Functional image.
It is above-mentioned after above-mentioned drafting generates above-mentioned functional image in some optional realization methods of the present embodiment
Device further includes:First display unit (not shown) is configured to show above-mentioned functional image.
In some optional realization methods of the present embodiment, above-mentioned image generation information treats drafting function including above-mentioned
And domain;And above-mentioned generation unit, it is configured to:Treat drafting function and above-mentioned domain according to above-mentioned, determine with
The value of the corresponding dependent variable of independent variable in above-mentioned domain;Based on above-mentioned domain and the value of identified dependent variable, draw
Above-mentioned functional image.
In some optional realization methods of the present embodiment, above-mentioned image generation further includes above-mentioned letter to be drawn with information
Several extreme point information, above-mentioned extreme point information are that above-mentioned server is determined by following steps:Drafting function is treated to above-mentioned
Derivation and/or local derviation is sought, obtain asking for result;It is asked for according to above-mentioned as a result, determining above-mentioned the first extreme point for treating drafting function
Information.
In some optional realization methods of the present embodiment, above-mentioned generation unit is configured to:According to it is identified because
The value of variable determines the above-mentioned secondary extremal point information for treating drafting function;According to above-mentioned domain and identified dependent variable
Value and above-mentioned first extreme point information and/or above-mentioned secondary extremal point information, draw above-mentioned functional image.
In some optional realization methods of the present embodiment, after the above-mentioned functional image of above-mentioned display, above device
It further includes:3rd receiving unit (not shown) is configured to receive operation of the user for the operation of shown functional image
Information, wherein, aforesaid operations are following at least one:Rotation, scaling and dragging, aforesaid operations information include action type and behaviour
Make location information;Adjustment unit (not shown) is configured to according to aforesaid operations information, adjust shown functional image.
In some optional realization methods of the present embodiment, above device further includes:4th receiving unit (not shown),
It is configured to receive user-specific information input by user, wherein, user-specific information includes at least one of following:Specified
Scale multiple, specified domain, specified codomain, specified independent variable numerical value and specified dependent variable numerical value;
Determination unit (not shown) is configured to, according to the user-specific information received, determine corresponding with above-mentioned user-specific information
Image to be displayed and/or numerical value to be shown;Second display unit (not shown) is configured to figure to be shown determined by display
Picture and/or numerical value to be shown.
It should be noted that the realization of each unit is thin in the video generation device provided in this embodiment based on artificial intelligence
Section and technique effect may be referred to the explanation of other embodiments in the application, and details are not described herein.
Below with reference to Fig. 7, it illustrates suitable for being used for realizing the computer system 700 of the terminal device of the embodiment of the present application
Structure diagram.Terminal device shown in Fig. 7 is only an example, to the function of the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in
Program in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage part 708 and
Perform various appropriate actions and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data.
CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always
Line 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage part 708 including hard disk etc.;
And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because
The network of spy's net performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 710, as needed in order to read from it
Computer program be mounted into as needed storage part 708.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product, including being carried on computer-readable medium
On computer program, which includes for the program code of the method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 709 and/or from detachable media
711 are mounted.When the computer program is performed by central processing unit (CPU) 701, perform what is limited in the present processes
Above-mentioned function.
It should be noted that the above-mentioned computer-readable medium of the application can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
It is limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor or arbitrary above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this application, computer readable storage medium can any include or store journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this
In application, computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal,
Wherein carry computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but it is unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium beyond storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.It is included on computer-readable medium
Program code can be transmitted with any appropriate medium, be included but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation
The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use
In the executable instruction of logic function as defined in realization.It should also be noted that it is marked at some as in the realization replaced in box
The function of note can also be occurred with being different from the order marked in attached drawing.For example, two boxes succeedingly represented are actually
It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note
Meaning, the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be set in the processor, for example, can be described as:A kind of processor bag
Include the first receiving unit, transmitting element, the second reception and generation unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction in itself to the unit is not formed, for example, the first receiving unit is also described as " receiving search input by user to use
The unit of information ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be
Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are performed by the device so that should
Device:Search information input by user is received, wherein, above-mentioned search is used to indicate the functional arrangement for treating drafting function with information
The search need of picture;Above-mentioned search is sent to server with information, wherein, above-mentioned server parses above-mentioned search and is obtained with information
Drafting function is treated to above-mentioned, determines and returns to the above-mentioned image generation information for treating drafting function;Above-mentioned image generation is received to use
Information;Using above-mentioned image generation information, above-mentioned functional image is generated.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
The other technical solutions for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical solution that the technical characteristic of energy is replaced mutually and formed.
Claims (13)
1. a kind of image generating method based on artificial intelligence, including:
Search information input by user is received, wherein, described search is used to indicate the functional arrangement for treating drafting function with information
The search need of picture;
Described search is sent to server with information, wherein, the server parsing described search obtains described treat with information
Drafting function determines and returns to the image generation information for treating drafting function;
Receive described image generation information;
Using described image generation information, the functional image is generated.
2. according to the method described in claim 1, wherein, the server is search engine server, described search engine takes
Business device is obtained treats the relevant search result of drafting function with described, generates and returns to webpage and described image generation information, institute
Stating webpage includes described search result and is used to indicate position indication information of the functional image in the webpage.
3. according to the method described in claim 2, wherein, the reception described image generation information, including:
Receive the webpage and described image generation information.
4. according to the method described in claim 3, wherein, the method further includes:
It renders and the webpage is presented, wherein, the webpage for rendering presentation is included in position indicated by the position indication information
Functional image.
5. according to the method described in claim 1, wherein, after the drafting generates the functional image, the method is also
Including:
Show the functional image.
6. according to the method any one of claim 1-5, wherein, described image generation information is waited to draw including described
Function and domain;And
It is described to utilize described image generation information, the functional image is generated, including:
Drafting function and the domain are treated according to described, determine dependent variable corresponding with the independent variable in the domain
Value;
Based on the domain and the value of identified dependent variable, the functional image is drawn.
7. according to the method described in claim 6, wherein, described image generation further includes the pole for treating drafting function with information
Value point information, the extreme point information is that the server is determined by following steps:
It treats drafting function derivation to described and/or seeks local derviation, obtain asking for result;
It is asked for according to described as a result, treating the first extreme point information of drafting function described in definite.
8. according to the method described in claim 7, wherein, the utilization described image generation information generates the functional arrangement
Picture, including:
According to the value of identified dependent variable, the secondary extremal point information for treating drafting function is determined;
According to the value and the first extreme point information of the domain and identified dependent variable and/or the secondary extremal
Point information, draws the functional image.
9. according to the method described in claim 8, wherein, after the display functional image, the method further includes:
Operation information of the user for the operation of shown functional image is received, wherein, the operation is following at least one:
Rotation, scaling and dragging, the operation information include action type and operating position information;
According to the operation information, shown functional image is adjusted.
10. according to the method described in claim 8, wherein, after the display functional image, the method is also wrapped
It includes:
User-specific information input by user is received, wherein, user-specific information includes at least one of following:Specified scaling
Multiple, specified domain, specified codomain, specified independent variable numerical value and specified dependent variable numerical value;
According to the user-specific information received, determine image to be displayed corresponding with the user-specific information and/or wait to show
Registration value;
Image to be displayed determined by display and/or numerical value to be shown.
11. a kind of video generation device based on artificial intelligence, including:
First receiving unit is configured to receive search information input by user, wherein, described search is used to indicate with information
Treat the search need of the functional image of drafting function;
Transmitting element is configured to described search being sent to server with information, wherein, the server parses described search
Drafting function is treated described in information obtains, and determines and returns to the image generation information for treating drafting function;
Second receiving unit is configured to receive described image generation information;
Generation unit is configured to, using described image generation information, generate the functional image.
12. a kind of electronic equipment, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors
Realize the method as described in any in claim 1-10.
13. a kind of computer readable storage medium, is stored thereon with computer program, wherein, when which is executed by processor
Realize the method as described in any in claim 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711317507.XA CN108062372A (en) | 2017-12-12 | 2017-12-12 | image generating method and device based on artificial intelligence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711317507.XA CN108062372A (en) | 2017-12-12 | 2017-12-12 | image generating method and device based on artificial intelligence |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108062372A true CN108062372A (en) | 2018-05-22 |
Family
ID=62138285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711317507.XA Pending CN108062372A (en) | 2017-12-12 | 2017-12-12 | image generating method and device based on artificial intelligence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108062372A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113253960A (en) * | 2021-05-25 | 2021-08-13 | 武汉悦学帮网络技术有限公司 | Formula graph generation method and device, electronic equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4794554A (en) * | 1985-05-31 | 1988-12-27 | Casio Computer Co., Ltd. | Electronic calculator having a graph display function |
CN1122477A (en) * | 1993-11-26 | 1996-05-15 | 卡西欧计算机公司 | Graph display apparatus |
CN101777194A (en) * | 2009-01-21 | 2010-07-14 | 施昊 | Network editor capable of inputting functional images and network information inputting and editing system |
CN102393818A (en) * | 2011-07-21 | 2012-03-28 | 福州锐达数码科技有限公司 | Digital function graph drawing method |
US8749553B1 (en) * | 2011-10-07 | 2014-06-10 | Google Inc. | Systems and methods for accurately plotting mathematical functions |
US20140365947A1 (en) * | 2013-06-11 | 2014-12-11 | Casio Computer Co., Ltd. | Electronic apparatus, graph display method and computer readable medium |
CN105389170A (en) * | 2015-11-20 | 2016-03-09 | 中国农业大学 | Drawing method and system |
-
2017
- 2017-12-12 CN CN201711317507.XA patent/CN108062372A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4794554A (en) * | 1985-05-31 | 1988-12-27 | Casio Computer Co., Ltd. | Electronic calculator having a graph display function |
CN1122477A (en) * | 1993-11-26 | 1996-05-15 | 卡西欧计算机公司 | Graph display apparatus |
CN101777194A (en) * | 2009-01-21 | 2010-07-14 | 施昊 | Network editor capable of inputting functional images and network information inputting and editing system |
CN102393818A (en) * | 2011-07-21 | 2012-03-28 | 福州锐达数码科技有限公司 | Digital function graph drawing method |
US8749553B1 (en) * | 2011-10-07 | 2014-06-10 | Google Inc. | Systems and methods for accurately plotting mathematical functions |
US20140365947A1 (en) * | 2013-06-11 | 2014-12-11 | Casio Computer Co., Ltd. | Electronic apparatus, graph display method and computer readable medium |
CN105389170A (en) * | 2015-11-20 | 2016-03-09 | 中国农业大学 | Drawing method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113253960A (en) * | 2021-05-25 | 2021-08-13 | 武汉悦学帮网络技术有限公司 | Formula graph generation method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108022586B (en) | Method and apparatus for controlling the page | |
CN109460513A (en) | Method and apparatus for generating clicking rate prediction model | |
CN108595628A (en) | Method and apparatus for pushed information | |
CN108989882A (en) | Method and apparatus for exporting the snatch of music in video | |
CN108228906B (en) | Method and apparatus for generating information | |
CN108121800A (en) | Information generating method and device based on artificial intelligence | |
CN107844371A (en) | Task processing method, system and electronic equipment | |
CN109993150A (en) | The method and apparatus at age for identification | |
CN106896937A (en) | Method and apparatus for being input into information | |
CN110020329A (en) | For generating the methods, devices and systems of webpage | |
CN108429816A (en) | Method and apparatus for generating information | |
CN109857388A (en) | Code generating method, device, server and computer-readable medium | |
CN106919711A (en) | The method and apparatus of the markup information based on artificial intelligence | |
CN110213614A (en) | The method and apparatus of key frame are extracted from video file | |
CN109918530A (en) | Method and apparatus for pushing image | |
CN109359194A (en) | Method and apparatus for predictive information classification | |
CN109299477A (en) | Method and apparatus for generating text header | |
CN110362304A (en) | The method and apparatus of web displaying | |
CN109558323A (en) | For debugging system, the method and apparatus of the page | |
CN110502699A (en) | Method and apparatus for obtaining information | |
CN109635223A (en) | Page display method and device | |
CN108959087A (en) | test method and device | |
CN109543068A (en) | Method and apparatus for generating the comment information of video | |
CN108573054A (en) | Method and apparatus for pushed information | |
CN109190123A (en) | Method and apparatus for output information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180522 |
|
RJ01 | Rejection of invention patent application after publication |