CN110378841A - Display processing method and device - Google Patents

Display processing method and device Download PDF

Info

Publication number
CN110378841A
CN110378841A CN201910669393.8A CN201910669393A CN110378841A CN 110378841 A CN110378841 A CN 110378841A CN 201910669393 A CN201910669393 A CN 201910669393A CN 110378841 A CN110378841 A CN 110378841A
Authority
CN
China
Prior art keywords
vertex
space
analyzed
space multistory
multistory
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
Application number
CN201910669393.8A
Other languages
Chinese (zh)
Inventor
王群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910669393.8A priority Critical patent/CN110378841A/en
Publication of CN110378841A publication Critical patent/CN110378841A/en
Pending legal-status Critical Current

Links

Classifications

    • G06T3/08

Abstract

The embodiment of the present invention provides a kind of display processing method and device, after electronic equipment gets the planar graph to be analyzed on two-dimensional surface for describing space multistory figure, according to the flat image to be analyzed, determine the spatial position on each vertex of space multistory figure, and the line relationship on different vertex, and then according to the spatial position on each vertex and line relationship rendering space solid figure.During being somebody's turn to do, by drawing out the space multistory figure in three-dimensional space based on the several picture in two-dimensional surface, realize the purpose space multistory figure for being difficult to present and analyze on two-dimensional surface being presented in three-dimensional space.

Description

Display processing method and device
Technical field
The present embodiments relate to intelligent search technique field more particularly to a kind of display processing methods and device.
Background technique
Currently, with the continuous development of technology, take pictures search topic mode of learning it is more more and more universal, occur on the market very much For solving the application software of operation problem.It takes pictures and searches during topic, search answering for topic for taking pictures on electronic equipment firstly, opening With software to start application software;Then, the camera function for starting application software takes pictures examination question to obtain examination question image; Finally, examination question image is uploaded to server, by the examination question in server identification examination question image, and matching answer is retrieved Parsing, and answer parsing is sent to electronic equipment.
In fact, in order to encourage user's initiative thinking, Active Learning, only when that can not put the axe in the helve by thinking, Consider that use is taken pictures and searches topic.For solid geometry examination question, since user is difficult the solid described according to two-dimensional surface, in brain In establish three-dimensional space solid figure.At this point, if searching topic using taking pictures, even if user obtains answer parsing, it is also difficult to really reason Solve examination question.
Therefore, how by examination question, based on the solid of two-dimensional surface description, the space diagram in three-dimensional space is generated Shape is considered as industry problem anxious to be resolved to be intuitively presented to the user.
Summary of the invention
The embodiment of the present invention provides a kind of display processing method and device, by being drawn based on the several picture in two-dimensional surface The space multistory figure in three-dimensional space is produced, realizes and the solid geometry image that is difficult to present on two-dimensional surface and analyze is presented Purpose in three dimensions.
In a first aspect, the embodiment of the present invention provides a kind of display processing method, comprising:
Planar graph to be analyzed is obtained, the planar graph to be analyzed is for describing space multistory figure;
The planar graph to be analyzed is converted into space multistory figure;
Show the space multistory figure.
It is described that the flat image to be analyzed is converted into space multistory figure in a kind of feasible design, comprising:
According to the planar graph to be analyzed, the spatial position on each vertex of the space multistory figure is determined;
It determines in each vertex, the line relationship between different vertex;
According to the spatial position on each vertex and the line relationship, the space multistory figure is drawn.
In a kind of feasible design, the spatial position according to each vertex and the line relationship draw institute State space multistory figure, comprising:
The association text extracted from the flat image to be analyzed, the association text are vertical for describing the space Volume graphic;
According to the association text, the first geometrical rule is generated, first geometrical rule, which is used to indicate, constitutes the sky Between solid figure difference element relationship, the element includes point, line or face;
According to the spatial position and the line relationship on first geometrical rule and each vertex, described in drafting Space multistory figure.
It is described according to the planar graph to be analyzed in a kind of feasible design, determine each of the space multistory figure The spatial position on a vertex, comprising:
According to the space coordinates in the planar graph to be analyzed, each vertex of the space multistory figure is determined Space coordinate;
According to the space coordinate on each vertex of the space multistory figure, each top of the space multistory figure is determined Space of points position.
It is described according to the planar graph to be analyzed in a kind of feasible design, determine each of the space multistory figure The spatial position on a vertex, comprising:
According to the relative position of the middle element of the planar graph to be analyzed, space coordinates are determined, the element includes Point, line or face;
According to the space coordinates, the spatial position on each vertex of the space multistory figure is determined.
It is described according to the space coordinates in a kind of feasible design, determine each top of the space multistory figure The spatial position of point, comprising:
Scale is drawn to each reference axis in the space coordinates;
Determine distance of each vertex relative to each reference axis in the space coordinates in each vertex, thus Obtain the spatial position of corresponding vertex in the space multistory figure.
In a kind of feasible design, the spatial position according to each vertex and the line relationship draw institute After stating space multistory figure, further includes:
The second geometrical rule of user's input is received, second geometrical rule is the customized rule of the user;
According to second geometrical rule, the space multistory figure is converted, the transformation includes scaling, moves At least one of dynamic, rotation.
In a kind of feasible design, the spatial position according to each vertex and the line relationship draw institute After stating space multistory figure, further includes:
Operation of the user to the space multistory figure is identified, according to space multistory figure described in the operational transformation, institute Stating operation includes the vertex of the mobile space multistory figure, any a line of the scaling space multistory figure, rotation institute State the vertex or side of space multistory figure, the mobile space multistory figure.
It is described to obtain planar graph to be analyzed in a kind of feasible design, comprising:
The shooting instruction for receiving user's input, handles the shooting instruction to shoot the planar graph to be analyzed;Alternatively, The uploading instructions for receiving user's input, handle the uploading instructions to obtain the planar graph to be analyzed.
In a kind of feasible design, each vertex includes the first vertex and the second vertex, and the determination is described each In vertex, after the line relationship between different vertex, further includes: identify between first vertex and second vertex The type of line relationship, the type include solid line line relationship or dotted line line relationship;Store first vertex and described The type of line relationship between second vertex.
Second aspect, the embodiment of the present invention provide a kind of display processing unit, comprising:
Module is obtained, for obtaining planar graph to be analyzed, the planar graph to be analyzed is for describing space diagram Shape;
Processing module, for the planar graph to be analyzed to be converted into space multistory figure;
Display module, for showing the space multistory figure.
In a kind of feasible design, the processing module, for determining the space according to the planar graph to be analyzed The spatial position on each vertex of solid figure, determines in each vertex, the line relationship between different vertex, according to institute State each vertex spatial position and the line relationship, draw the space multistory figure.
In a kind of feasible design, the processing module, according to each vertex spatial position and the line Relationship, when drawing the space multistory figure, association text for being extracted from the flat image to be analyzed, the pass Connection text is for describing the space multistory figure;According to the association text, the first geometrical rule, first geometry are generated Rule is used to indicate the relationship for constituting the space multistory figure difference element, and the element includes point, line or face;According to institute State the first geometrical rule and each vertex spatial position and the line relationship, draw the space multistory figure.
In a kind of feasible design, the processing module determines that the space is vertical according to the planar graph to be analyzed When the spatial position on each vertex of volume graphic, for determining institute according to the space coordinates in the planar graph to be analyzed State the space coordinate on each vertex of space multistory figure;According to the space coordinate on each vertex of the space multistory figure, Determine each vertex spatial position of the space multistory figure.
In a kind of feasible design, the processing module determines that the space is vertical according to the planar graph to be analyzed When the spatial position on each vertex of volume graphic, for the relative position according to the middle element of the planar graph to be analyzed, really Determine space coordinates, the element includes point, line or face;According to the space coordinates, the space multistory figure is determined The spatial position on each vertex.
In a kind of feasible design, the processing module determines the space diagram according to the space coordinates When the spatial position on each vertex of shape, described in determining to each reference axis drafting scale in the space coordinates Distance of each vertex relative to each reference axis in the space coordinates in each vertex, to obtain the space multistory The spatial position of corresponding vertex in figure.
In a kind of feasible design, described device further include:
Receiving module, for drawing in spatial position of the processing module according to each vertex and the line relationship After making the space multistory figure, the second geometrical rule of user's input is received, second geometrical rule is the user Customized rule;
The processing module is also used to convert the space multistory figure, institute according to second geometrical rule Stating transformation includes at least one of scaling, mobile, rotation.
In a kind of feasible design, the processing module, according to each vertex spatial position and the line Relationship after drawing the space multistory figure, is also used to identify operation of the user to the space multistory figure, according to described Space multistory figure described in operational transformation, the operation include the vertex of the mobile space multistory figure, the scaling space Any a line of solid figure, the vertex or side for rotating the space multistory figure, the mobile space multistory figure.
In a kind of feasible design, the acquisition module handles the shooting for receiving the shooting instruction of user's input Instruction is to shoot the planar graph to be analyzed;Alternatively, receiving the uploading instructions of user's input, the uploading instructions are handled to obtain Take the planar graph to be analyzed.
In a kind of feasible design, described device further include: memory module, each vertex include the first vertex and the Two vertex, the processing module after the line relationship in determining each vertex between different vertex, are also used to identify The type of line relationship between first vertex and second vertex, the type include solid line line relationship or dotted line Line relationship;
The memory module is also used to store the class of the line relationship between first vertex and second vertex Type.
The third aspect, the embodiment of the present invention provide a kind of display processing unit, including processor, memory and are stored in institute The computer program that can be run on memory and on a processor is stated, the processor realizes as above first when executing described program Method described in the various feasible implementations of aspect or first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, instruction are stored in the storage medium, when its When being run on electronic equipment, so that electronic equipment executes the various feasible implementation institutes of first aspect or first aspect as above The method stated.
5th aspect, the embodiment of the present invention provide a kind of computer program product, and the computer program product is in electronics When being run in equipment, so that electronic equipment executes described in the various feasible implementations of first aspect or first aspect as above Method.
Display processing method and device provided in an embodiment of the present invention are got on two-dimensional surface for describing space multistory After the planar graph to be analyzed of figure, according to the flat image to be analyzed, the sky on each vertex of space multistory figure is determined Between position, and the line relationship on different vertex, and then vertical according to the spatial position on each vertex and line relationship rendering space Volume graphic.It is real by drawing out the space multistory figure in three-dimensional space based on the several picture in two-dimensional surface during being somebody's turn to do Purpose in three dimensions now is presented into the solid geometry image that is difficult to present on two-dimensional surface and analyze.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the running environment schematic diagram of display processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of display processing method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another display processing method provided in an embodiment of the present invention;
Fig. 4 be in a kind of display processing method provided in an embodiment of the present invention planar graph to be analyzed be associated with showing for text It is intended to;
Fig. 5 is a kind of structural schematic diagram of display processing unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another display processing unit provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another display processing unit provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In general, solid geometry is all the space multistory figure described in three-dimensional space using two-dimensional image.So And in fact, the space imagining ability of many users is not strong, therefore be difficult to understand the space multistory described by two dimensional image Figure.In this way, which geometry examination question biggish for difficulty, can rapidly find even if much taking pictures and searching the tools such as topic by this The answer of topic is simultaneously shown to user, but as user's several picture according to described in two-dimensional surface, in brain The presentation effect of space multistory figure is established, even if so that user obtains answer parsing, it is also difficult to get a real idea of entity.
In view of this, the embodiment of the present invention provides a kind of display processing method and device, by based in two-dimensional surface Several picture draws out the space multistory figure in three-dimensional space, and realizing will be difficult to present on two-dimensional surface and analyze three-dimensional several Purpose in three dimensions is presented in what image.
Fig. 1 is the running environment schematic diagram of display processing method provided in an embodiment of the present invention.Fig. 1 is please referred to, electronics is set Standby establish with server is connected to the network, and after electronic equipment obtains planar graph to be analyzed, is based on the Plane Graph Drawing to be analyzed Space multistory figure, and be analysed to the corresponding examination question of planar graph and be sent to server, so that server retrieval is matching Answer parsing, and by answer parsing be sent to electronic equipment;Alternatively, server can also obtain planar graph to be analyzed, base In Plane Graph Drawing space multistory figure to be analyzed, and retrieved according to the corresponding examination question of planar graph to be analyzed matching Answer parsing, and answer parsing is sent to electronic equipment.
In the following, on the basis of above-mentioned Fig. 1, by taking electronic equipment generates space multistory figure as an example, to the embodiment of the present invention The display processing method is described in detail.Illustratively, reference can be made to Fig. 2.
Fig. 2 is a kind of flow chart of display processing method provided in an embodiment of the present invention, and the present embodiment is from electronic equipment Angle to how generating what space multistory figure was described in detail, the present embodiment includes:
101, planar graph to be analyzed is obtained, the planar graph to be analyzed is for describing space multistory figure.
Illustratively, it an application program (application, the APP) APP be installed on electronic equipment can be electronics and set The included APP of standby operating system, is also possible to the third-party APP of user's downloading.User when answering solid geometry examination question, For the examination of the presentation effect of space multistory figure according to the planar graph presented in two-dimensional surface, can not be established in brain Topic then obtains planar graph to be analyzed by the APP.For example, user clicks the shooting button of APP to inputting shooting instruction, Electronic equipment receives the shooting instruction, takes pictures to examination question, to take planar graph to be analyzed.For another example, user with When electronic equipment browses examination question, for the several picture according to described in two-dimensional surface, space multistory is established in brain The examination question of the presentation effect of figure then carries out the operation such as long-pressing, duplication to the examination question to save the several picture in examination question To local, planar graph to be analyzed is obtained.Later, user click APP preview button, find planar graph to be analyzed and on It passes, is loaded on APP with being analysed to planar graph.
102, the planar graph to be analyzed is converted into space multistory figure.
Electronic equipment is after getting planar graph to be analyzed, according to the position of point, line, surface etc. in planar graph to be analyzed Relationship, or the association text etc. of examination question is combined, it is analysed to flat image and is converted to space multistory figure.
103, the space multistory figure is shown.
In this step, electronic equipment shows three-dimensional space multistory figure on the screen, so that user is very intuitive, clear The clear presentation effect for seeing space multistory figure.
Display processing method provided in an embodiment of the present invention, electronic equipment get vertical for describing space on two-dimensional surface After the planar graph to be analyzed of volume graphic, which is converted into space multistory figure and is shown.During being somebody's turn to do, By drawing out the space multistory figure in three-dimensional space based on the several picture in two-dimensional surface, realize by two-dimensional surface very Hardly possible is presented and purpose in three dimensions is presented in the spatial image of analysis.
Fig. 3 is the flow chart of another display processing method provided in an embodiment of the present invention, and the present embodiment is set from electronics To how generating what space multistory figure was described in detail, the present embodiment includes: standby angle
201, planar graph to be analyzed is obtained, the planar graph to be analyzed is for describing space multistory figure.
For details, reference can be made to the descriptions of above-mentioned steps 101, and details are not described herein again.
202, according to the planar graph to be analyzed, the spatial position on each vertex of the space multistory figure is determined.
Illustratively, since planar graph to be analyzed is substantially on two-dimensional surface for describing the figure of space multistory figure Picture, and when rendering space solid figure, it is thus necessary to determine that the spatial position on each vertex of space multistory figure, therefore, this step In, need to determine the spatial position on each vertex of corresponding space multistory figure according to planar graph to be analyzed.
203, it determines in each vertex, the line relationship between different vertex.
Illustratively, it after each vertex of space multistory figure is determined, when rendering space solid figure, needs really Line relationship and line between fixed each vertex are therefore dotted line or solid line etc. in this step, need to be known according to image Other technology etc. identifies line relationship between different vertex etc..
204, according to the spatial position on each vertex and the line relationship, the space multistory figure is drawn.
Illustratively, the different vertex in the spatial position, each vertex on each vertex for determining space multistory figure Line relationship etc. after, so that it may line is carried out to each vertex in painting canvas, to draw out space multistory figure.For example, In webpage (web) technology, need to utilize in canvas painting canvas by the coordinate information of set-point and link information etc. Draw application programming interfaces (application in the space in web graph shape library (web graphics library, Web GL) Program interface, API), to draw 3D solid geometry image in webpage.Wherein, Web GL is a kind of 3D drawing Agreement, including Web GL1.0 and Web GL2.0, wherein Web GL1.0 is based on OpenGL ES 2.0, provides 3D figure API using HTML5 painting canvas (canvas) and allows to utilize DOM Document Object Model interface;Web GL2.0 is based on OpenGL ES 3.0, it is the extension to Web GL1.0, introduces new API, can use part JavaScript and realize automated storage pipe Reason.
205, the space multistory figure is shown.
206, operation of the identification user to the space multistory figure, according to space diagram described in the operational transformation Shape.
Wherein, the operation includes a times on the vertex of the mobile space multistory figure, the scaling space multistory figure The vertex or side of meaning a line, the rotation space multistory figure, the mobile space multistory figure.For example, user presses certain A vertex simultaneously drags, and deforms to trigger space multistory figure.Assuming that space multistory figure is according to first before not operating Geometrical rule is shown, under first geometrical rule, space multistory figure is a square, then in interactive process, user can be with Vertex A is pressed and pulls, so that square is transformed to diamond shape etc..Wherein, the first geometrical rule, which is used to indicate, constitutes the space The relationship of solid figure difference element, the element include point, line or face.
In addition, in interactive process, in addition to user is on the screen of the electronic device by the modes operating space such as pressing, pulling Solid figure can also be inputted customized so that space multistory figure occurs outside shape conversion by the screen of electronic equipment Geometrical rule, hereinafter referred to as the second geometrical rule.After electronic equipment receives the second geometrical rule of user's input, according to institute The second geometrical rule is stated, the space multistory figure is converted, wherein is converted in including scaling, movement, rotating at least One.
For example, user can input the second geometrical rule by modes such as hand-written, voices in the electronic device, so that electronics Equipment recalculates the coordinate on each vertex of space multistory figure according to the second geometrical rule, thus to space multistory figure The operation such as amplify, reduce, rotate or deform.Assuming that space multistory figure is aobvious according to the first geometrical rule before not operating Show, space multistory figure includes orthogonal two sides, respectively AB and BC, and under the first geometrical rule, AB=BC is then interacted In the process, user can input second geometrical rule such as AB=2BC, so that space multistory figure changes.
It should be noted that above-mentioned amplification, diminution and rotation etc. to space multistory figure, it can also be by using web The API of GL is triggered.Wherein,
Display processing method provided in an embodiment of the present invention is got on two-dimensional surface for describing space multistory figure After planar graph to be analyzed, according to the flat image to be analyzed, the spatial position on each vertex of space multistory figure is determined, And the line relationship on different vertex, and then according to the spatial position on each vertex and line relationship rendering space solid figure. During being somebody's turn to do, by drawing out the space multistory figure in three-dimensional space based on the several picture in two-dimensional surface, realize two The space multistory figure for being difficult to present and analyze on dimensional plane is presented on the purpose in three-dimensional space.
In general, a solid geometry examination question, other than there is a planar graph to be analyzed on two-dimensional surface, Also there is corresponding association text, the association text is for describing the space multistory figure.Illustratively, reference can be made to Fig. 4, Fig. 4 It is planar graph to be analyzed and the schematic diagram for being associated with text in a kind of display processing method provided in an embodiment of the present invention.
Referring to figure 4., planar graph to be analyzed is one for characterizing the figure of cube, space multistory on two-dimensional surface Figure, i.e. the 8 of cube vertex are respectively A, B, C, D, A1, B1, C1, D1, and AB=BC, BC=CD, CD=DA, AD ⊥ CD.It is expression text in dotted line frame.
When rendering space solid figure, other than the spatial position for considering each vertex and line relationship, it is also necessary to consider It is associated with text.At this point, spatial position and the line relationship of the electronic equipment according to each vertex, it is vertical to draw the space When volume graphic, the association text of the planar graph to be analyzed is obtained, the association text is for describing the space diagram The association text conversion is text by shape, according to the text, generates the first geometrical rule, first geometrical rule is used The relationship of the space multistory figure difference element is constituted in instruction, the element includes point, line or face;According to described first Geometrical rule determines the spatial position on each vertex of the space multistory figure.
For example, when obtaining planar graph to be analyzed by shooting style, several picture is taken with being associated with text and be all presented on It after in scape frame, then takes pictures, to obtain dividing from the original image comprising several picture and the original image for being associated with text Indescribably take out several picture be associated with text, piece image is individually created for several picture part, thus obtain it is above-mentioned to Analyze image;For be associated with word segment, then by optical character identification (optical character recognition, OCR it is text that) technology etc., which will be associated with text conversion, then utilizes geometrical rule library by text representation at the first geometrical rule.Most Eventually, it when rendering space solid figure, based on first geometrical rule, the spatial position on each vertex and line relationship, draws empty Between solid figure.
In general, there are two types of situations for the image tool on two-dimensional surface for describing space multistory figure, one is two dimensions Establishing in plane has coordinate system, at this point, electronic equipment determines the space on each vertex of space multistory figure according to the coordinate system Position;Another situation is that space coordinates are not established on two-dimensional surface, at this point, electronic equipment is according to planar graph to be analyzed Characteristics of image, such as the relative position on each vertex determines the spatial position on each vertex of space multistory figure.In the following, The position on each vertex for how determining space multistory figure is described in detail.
Firstly, establishing on two-dimensional surface has coordinate system.
In the case of this kind, electronic equipment determines each of the space multistory figure according to the planar graph to be analyzed When the spatial position on vertex, according to the space coordinates in the planar graph to be analyzed, the space multistory figure is determined The space coordinate on each vertex determine that the space is vertical according to the space coordinate on each vertex of the space multistory figure Each vertex spatial position of volume graphic.
Illustratively, for have coordinate system planar graph to be analyzed, when user by take pictures or other modes obtain After the planar graph to be analyzed, known using OCR technique according to the coordinate information that vertex each in planar graph to be analyzed marks It Chu not the coordinate position of each vertex in space, i.e. spatial position.Later, electronic equipment will according to space coordinates and The space multistory figure described on two-dimensional surface is reduced into three-dimensional by the information such as each vertex, solid line, dotted line on two-dimensional surface Space multistory figure in space, and user can pass through the interaction sides such as rotation, amplification, diminution, or mobile each vertex Formula is changed again is presented effect.
In the present embodiment, realization reverts to the planar graph to be analyzed for being used to describe space multistory figure on two-dimensional surface The purpose of three-dimensional space.
Secondly, not setting up coordinate system on two-dimensional surface.
In the case of this kind, electronic equipment determines each of the space multistory figure according to the planar graph to be analyzed When the spatial position on vertex, according to the relative position of the middle element of the planar graph to be analyzed, space coordinates are determined, it is described Element includes point, line or face;According to the space coordinates, the space bit on each vertex of the space multistory figure is determined It sets.
Illustratively, for the planar graph to be analyzed not with coordinate system, when user is by taking pictures or other modes obtain After the planar graph to be analyzed, space coordinates are identified according to the relative position etc. on each vertex, later, are based on space coordinate System, determines the locational space on each vertex.For example, drawing scale to each reference axis in the space coordinates;Determine institute Distance of each vertex relative to each reference axis in the space coordinates in each vertex is stated, so that it is vertical to obtain the space The spatial position of corresponding vertex in volume graphic.
It is above-mentioned to be based on space coordinates, when determining the locational space on each vertex, by each reference axis of space coordinates Equidistant scale subdivision is carried out, determines distance of the vertex relative to reference axis, so that it may obtain the vertex in the reference axis Scale, and then the scale of three reference axis is combined, so that it may obtain the spatial position on the vertex.For example, vertex A { x1, y1, z1 }, wherein x1, y1, z1 are respectively the length relative to the unit scales value in equidistant scale segmentation process.
In the present embodiment, realization reverts to the planar graph to be analyzed for being used to describe space multistory figure on two-dimensional surface The purpose of three-dimensional space.
In above-described embodiment, electronic equipment is determined in each vertex, after the line relationship between different vertex, needle There is the first vertex and the second vertex of line relationship to any two in those vertex, electronic equipment identifies first vertex And the type of the second line relationship between vertex, wherein type includes solid line line relationship or dotted line line relationship, later, Store the type of the line relationship between first vertex and second vertex.
Illustratively, electronic equipment determines in each vertex, after the line relationship between different vertex, according to figure As identification technology can come out the vertex recognition that connect with dotted line of vertex for realizing connection, then will identify obtained result into Row storage, such as { A, B, solid line }, { A, C, dotted line }, wherein A, B, C are respectively the vertex of space multistory figure, and vertex A, top It is solid line connection between point B, is dotted line connection between vertex A and vertex C.
In above-described embodiment, after drawing out space multistory figure, which can also be according to the defeated of user Enter to be converted.That is, the space multistory figure is a space multistory figure that can be interacted.In the following, to interactive process It is described in detail.
In a kind of feasible implementation, electronic equipment is closed according to the spatial position on each vertex and the line System after drawing the space multistory figure, also receives the second geometrical rule of user's input, second geometrical rule is institute The customized rule of user is stated, according to second geometrical rule, the space multistory figure is converted.
For example, user can input the second geometrical rule by modes such as hand-written, voices in the electronic device, so that electronics Equipment recalculates the coordinate on each vertex of space multistory figure according to the second geometrical rule, thus to space multistory figure The operation such as amplify, reduce, rotate or deform.Continue to continue to use the example in above-mentioned Fig. 3, under the first geometrical rule, AB=BC, Then in interactive process, user can input AB=2BC etc., so that space multistory figure changes.
Fig. 5 is a kind of structural schematic diagram of display processing unit provided in an embodiment of the present invention, which can It is realized in a manner of through software and/or hardware.As shown in figure 4, the display processing unit 100 includes:
Module 11 is obtained, for obtaining planar graph to be analyzed, the planar graph to be analyzed is for describing space multistory Figure;
Processing module 12, for the planar graph to be analyzed to be converted into space multistory figure;
Display module 13, for showing the space multistory figure.
In a kind of feasible design, the processing module 12, for determining the sky according to the planar graph to be analyzed Between solid figure each vertex spatial position, determine in each vertex, the line relationship between different vertex, according to The spatial position on each vertex and the line relationship, draw the space multistory figure.
In a kind of feasible design, the processing module 12, according to each vertex spatial position and the company Line relationship, when drawing the space multistory figure, association text for extracting from the flat image to be analyzed is described Association text is for describing the space multistory figure;According to the association text, the first geometrical rule is generated, described more than the first What rule is used to indicate the relationship for constituting the space multistory figure difference element, and the element includes point, line or face;According to First geometrical rule is closed according to the spatial position and the line on first geometrical rule and each vertex System, draws the space multistory figure.
In a kind of feasible design, the processing module 12 determines the space according to the planar graph to be analyzed When the spatial position on each vertex of solid figure, for determining according to the space coordinates in the planar graph to be analyzed The space coordinate on each vertex of the space multistory figure is sat according to the space on each vertex of the space multistory figure Mark, determines each vertex spatial position of the space multistory figure.
In a kind of feasible design, the processing module 12 determines the space according to the planar graph to be analyzed When the spatial position on each vertex of solid figure, for the relative position according to the middle element of the planar graph to be analyzed, Determine space coordinates, the element includes that point, line or face according to the space coordinates determine the space multistory figure Each vertex spatial position.
In a kind of feasible design, the processing module 12 determines the space multistory according to the space coordinates When the spatial position on each vertex of figure, for drawing scale to each reference axis in the space coordinates, institute is determined Distance of each vertex relative to each reference axis in the space coordinates in each vertex is stated, so that it is vertical to obtain the space The spatial position of corresponding vertex in volume graphic.
Fig. 6 is the structural schematic diagram of another display processing unit provided in an embodiment of the present invention, the display processing unit On the basis of above-mentioned Fig. 5, further, further includes:
Receiving module 14, for being closed in the processing module 12 according to the spatial position on each vertex and the line System after drawing the space multistory figure, receives the second geometrical rule of user's input, second geometrical rule is described The customized rule of user;
The processing module 12 is also used to convert the space multistory figure according to second geometrical rule, The transformation includes at least one of scaling, mobile, rotation.
In a kind of feasible design, the processing module 12, according to each vertex spatial position and the company Line relationship after drawing the space multistory figure, is also used to identify operation of the user to the space multistory figure, according to institute Space multistory figure described in operational transformation is stated, the operation includes the vertex of the mobile space multistory figure, the scaling sky Between any a line of solid figure, the rotation space multistory figure, the mobile space multistory figure vertex or side.
In a kind of feasible design, the acquisition module 11 handles the bat for receiving the shooting instruction of user's input Instruction is taken the photograph to shoot the planar graph to be analyzed;Alternatively, receive user input uploading instructions, handle the uploading instructions with Obtain the planar graph to be analyzed.
In a kind of feasible design, then Fig. 6 is please referred to, above-mentioned device further include: memory module 15, each vertex Including the first vertex and the second vertex, the processing module 12, the line in determining each vertex between different vertex After relationship, it is also used to identify the type of the line relationship between first vertex and second vertex, the type packet Include solid line line relationship or dotted line line relationship;
The memory module 15 is also used to store the class of the line relationship between first vertex and second vertex Type.
Fig. 7 is the structural schematic diagram of another display processing unit provided in an embodiment of the present invention.As shown in fig. 7, this is aobvious Show that processing unit 200 includes:
At least one processor 21 and memory 22;
The memory 22 stores computer executed instructions;
At least one described processor 21 executes the computer executed instructions that the memory 22 stores so that it is described at least One processor 21 executes display processing method as described above.
The specific implementation process of processor 21 can be found in above method embodiment, and it is similar that the realization principle and technical effect are similar, Details are not described herein again for the present embodiment.
Optionally, which further includes communication component 23.Wherein, processor 21, memory 22 and logical Letter component 23 can be connected by bus 24.
The embodiment of the present invention also provides a kind of storage medium, and computer executed instructions, institute are stored in the storage medium It states when computer executed instructions are executed by processor for realizing display processing method as described above.
The embodiment of the present invention also provides a kind of computer program product, when the computer program product is transported on the server When row, so that server executes such as above-mentioned display processing method.
In the above-described embodiment, it should be understood that described device and method, it can be real by another way It is existing.For example, apparatus embodiments described above are merely indicative, for example, the division of the module, only one kind are patrolled Function division is collected, there may be another division manner in actual implementation, such as multiple modules may be combined or can be integrated into Another system, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling or Direct-coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of device or module can be electricity Property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that at a display Reason device (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute sheet Invent the part steps of each embodiment the method.
It should be understood that above-mentioned processor can be central processing unit (central processing unit, CPU), may be used also To be other general processors, digital signal processor (digital signal processor, DSP), specific integrated circuit (application specific integrated circuit, ASIC) etc..General processor can be microprocessor or The processor is also possible to any conventional processor etc..It can be embodied directly in conjunction with the step of invention disclosed method hard Part processor executes completion, or in processor hardware and software module combination execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (industry standard architecture, ISA) bus, outer Portion's apparatus interconnection (peripheral component, PCI) bus or extended industry-standard architecture (extended Industry standard architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in attached drawing of the present invention does not limit only a bus or a type of bus.
Above-mentioned storage medium can be by any kind of volatibility or non-volatile memory device or their combination It realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
A kind of illustrative storage medium is coupled to processor, believes to enable a processor to read from the storage medium Breath, and information can be written to the storage medium.Certainly, storage medium is also possible to the component part of processor.It processor and deposits Storage media can be located in specific integrated circuit (application specific integrated circuits, ASIC). Certainly, pocessor and storage media can also be used as discrete assembly and be present in terminal or server.
In embodiments of the present invention, "at least one" refers to one or more, and " multiple " refer to two or more. "and/or" describes the incidence relation of affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: single Solely there are A, A and B are existed simultaneously, the case where individualism B, wherein A, B can be odd number or plural number.The general table of character "/" Show that forward-backward correlation object is a kind of relationship of "or";In formula, character "/" indicates that forward-backward correlation object is a kind of " being divided by " Relationship.At least one of " following (a) " or its similar expression, refer to these in any combination, including individual event (a) or Any combination of complex item (a).For example, at least one (a) in a, b or c, can indicate: a, b, c, a-b, a-c, b-c, Or a-b-c, wherein a, b, c can be individually, be also possible to multiple.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (13)

1. a kind of display processing method characterized by comprising
Planar graph to be analyzed is obtained, the planar graph to be analyzed is for describing space multistory figure;
The planar graph to be analyzed is converted into space multistory figure;
Show the space multistory figure.
2. the flat image to be analyzed be converted to space standing the method according to claim 1, wherein described Volume graphic, comprising:
According to the planar graph to be analyzed, the spatial position on each vertex of the space multistory figure is determined;
It determines in each vertex, the line relationship between different vertex;
According to the spatial position on each vertex and the line relationship, the space multistory figure is drawn.
3. according to the method described in claim 2, it is characterized in that, the spatial position according to each vertex and described Line relationship draws the space multistory figure, comprising:
The association text extracted from the flat image to be analyzed, the association text is for describing the space diagram Shape;
According to the association text, the first geometrical rule is generated, it is vertical that first geometrical rule is used to indicate the composition space The relationship of volume graphic difference element, the element include point, line or face;
According to the spatial position and the line relationship on first geometrical rule and each vertex, the space is drawn Solid figure.
4. according to the method in claim 2 or 3, which is characterized in that it is described according to the planar graph to be analyzed, determine institute State the spatial position on each vertex of space multistory figure, comprising:
According to the space coordinates in the planar graph to be analyzed, the space on each vertex of the space multistory figure is determined Coordinate;
According to the space coordinate on each vertex of the space multistory figure, determine that each vertex of the space multistory figure is empty Between position.
5. according to the method in claim 2 or 3, which is characterized in that it is described according to the planar graph to be analyzed, determine institute State the spatial position on each vertex of space multistory figure, comprising:
According to the relative position of the middle element of the planar graph to be analyzed, space coordinates are determined, the element includes point, line Or face;
According to the space coordinates, the spatial position on each vertex of the space multistory figure is determined.
6. according to the method described in claim 5, determining the space it is characterized in that, described according to the space coordinates The spatial position on each vertex of solid figure, comprising:
Scale is drawn to each reference axis in the space coordinates;
Distance of each vertex relative to each reference axis in the space coordinates in each vertex is determined, to obtain The spatial position of corresponding vertex in the space multistory figure.
7. according to the described in any item methods of claim 2~6, which is characterized in that the space according to each vertex Position and the line relationship, after drawing the space multistory figure, further includes:
The second geometrical rule of user's input is received, second geometrical rule is the customized rule of the user;
According to second geometrical rule, the space multistory figure is converted, the transformation includes scaling, mobile, rotation At least one of turn.
8. according to the described in any item methods of claim 2~6, which is characterized in that the space according to each vertex Position and the line relationship, after drawing the space multistory figure, further includes:
Operation of the user to the space multistory figure is identified, according to space multistory figure described in the operational transformation, the behaviour Make to include the vertex of the mobile space multistory figure, any a line of the scaling space multistory figure, the rotation sky Between solid figure, the mobile space multistory figure vertex or side.
9. described in any item methods according to claim 1~8, which is characterized in that described to obtain planar graph to be analyzed, packet It includes:
The shooting instruction for receiving user's input, handles the shooting instruction to shoot the planar graph to be analyzed;
Alternatively,
The uploading instructions for receiving user's input, handle the uploading instructions to obtain the planar graph to be analyzed.
10. according to the described in any item methods of claim 2~6, which is characterized in that each vertex include the first vertex and Second vertex, in determination each vertex, after the line relationship between different vertex, further includes:
Identify that the type of the line relationship between first vertex and second vertex, the type include that solid line line closes System or dotted line line relationship;
Store the type of the line relationship between first vertex and second vertex.
11. a kind of display processing unit characterized by comprising
Module is obtained, for obtaining planar graph to be analyzed, the planar graph to be analyzed is for describing space multistory figure;
Processing module, for the planar graph to be analyzed to be converted into space multistory figure;
Display module, for showing the space multistory figure.
12. a kind of electronic equipment, including processor, memory and it is stored on the memory and can runs on a processor Computer program, which is characterized in that the processor is realized when executing described program such as any one of the claims 1-10 institute The method stated.
13. a kind of storage medium, which is characterized in that instruction is stored in the storage medium, when it runs on an electronic device When, so that electronic equipment executes such as the described in any item methods of claim 1-10.
CN201910669393.8A 2019-07-24 2019-07-24 Display processing method and device Pending CN110378841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910669393.8A CN110378841A (en) 2019-07-24 2019-07-24 Display processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910669393.8A CN110378841A (en) 2019-07-24 2019-07-24 Display processing method and device

Publications (1)

Publication Number Publication Date
CN110378841A true CN110378841A (en) 2019-10-25

Family

ID=68255302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910669393.8A Pending CN110378841A (en) 2019-07-24 2019-07-24 Display processing method and device

Country Status (1)

Country Link
CN (1) CN110378841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689523A (en) * 2021-08-26 2021-11-23 联想(北京)有限公司 Graph drawing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809940A (en) * 2015-05-14 2015-07-29 广东小天才科技有限公司 Geometrical stereoscopic graph projection device and projection method
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104809940A (en) * 2015-05-14 2015-07-29 广东小天才科技有限公司 Geometrical stereoscopic graph projection device and projection method
CN107248192A (en) * 2017-06-27 2017-10-13 广州视源电子科技股份有限公司 Solid figure method for drafting, device, equipment and storage medium
CN109785434A (en) * 2017-11-14 2019-05-21 上海谦问万答吧云计算科技有限公司 A kind of method, apparatus and storage medium of drawing three-dimensional solid figure

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689523A (en) * 2021-08-26 2021-11-23 联想(北京)有限公司 Graph drawing method and electronic equipment

Similar Documents

Publication Publication Date Title
Manovich How to compare one million images?
US20180225032A1 (en) Generating interactive content items based on content displayed on a computing device
US20100245563A1 (en) System and method for facilitating the use of whiteboards
US20150339273A1 (en) Visualizing font similarities for browsing and navigation
CN110476187B (en) Sewing machine type polygon drawing method
CN111752557A (en) Display method and device
US10599324B2 (en) Hand gesture API using finite state machine and gesture language discrete values
US20210072880A1 (en) Method and electronic device for generating at least one data item from screenshot
US11681409B2 (en) Systems and methods for augmented or mixed reality writing
US11604963B2 (en) Feedback adversarial learning
JP2023172893A (en) Control method, control device, and recording medium for interactive three-dimensional representation of target object
WO2022237117A1 (en) Touch control method and system for interactive electronic whiteboard, and readable medium
CN110378841A (en) Display processing method and device
CN113313066A (en) Image recognition method, image recognition device, storage medium and terminal
US10430458B2 (en) Automated data extraction from a chart from user screen selections
US20230290072A1 (en) System and method of object detection and interactive 3d models
Li et al. 3D sketching for 3D object retrieval
US20150181288A1 (en) Video sales and marketing system
US20220156486A1 (en) Semantic Segmentation for Stroke Classification in Inking Application
WO2016101768A1 (en) Terminal and touch operation-based search method and device
US10372297B2 (en) Image control method and device
CN111385489B (en) Method, device and equipment for manufacturing short video cover and storage medium
CN111506185A (en) Method and device for operating document, electronic equipment and storage medium
KR102207514B1 (en) Sketch retrieval system with filtering function, user equipment, service equipment, service method and computer readable medium having computer program recorded therefor
CN114120087B (en) Intelligent recommendation method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination