CN112581632B - House source data processing method and device - Google Patents

House source data processing method and device Download PDF

Info

Publication number
CN112581632B
CN112581632B CN202011522721.0A CN202011522721A CN112581632B CN 112581632 B CN112581632 B CN 112581632B CN 202011522721 A CN202011522721 A CN 202011522721A CN 112581632 B CN112581632 B CN 112581632B
Authority
CN
China
Prior art keywords
target
target object
house
information
dimensional
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.)
Active
Application number
CN202011522721.0A
Other languages
Chinese (zh)
Other versions
CN112581632A (en
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.)
Beijing Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin Information 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 Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN202011522721.0A priority Critical patent/CN112581632B/en
Publication of CN112581632A publication Critical patent/CN112581632A/en
Application granted granted Critical
Publication of CN112581632B publication Critical patent/CN112581632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a method and a device for processing house source data, which can effectively avoid distortion of a house source image and effectively display the house source information by acquiring the house source data of a target house source, wherein the target house source can comprise at least one target object, the house source data can comprise coordinate information of the target object in a preset coordinate system and a house source image of the target object, then generating positioning information of the target object in the coordinate system according to the coordinate information, then rendering a three-dimensional house space corresponding to the target house source according to the position information of the at least one target object and the house source image, and outputting the three-dimensional house space, and in the process of browsing the house source by a user, positioning the target object, particularly a door body object, a window body object, a wall body object and the like, and rendering the image after positioning, the browsing effect of the user is ensured.

Description

House source data processing method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a room source data processing method and a room source data processing apparatus.
Background
With the development of network technology and the change of user requirements, online house-watching is more and more favored by users. In the online house-watching process, the terminal acquires the panoramic image corresponding to the house source and displays the panoramic image to the user, so that the user can roam in the house source, and the immersive house-watching experience is brought to the user. However, in the "roaming" process of the user, if some target objects (for example, a door body, a wall body, a window body, and the like) in the corresponding house appear in the view angle of the user, the missing of the pixels of the door body easily appears when the texture image is projected, so that the door body is distorted in the process of displaying the house source at the terminal, and further, the house source information cannot be effectively displayed, and the browsing experience of the user is easily influenced.
Disclosure of Invention
The embodiment of the invention provides a house source data processing method, and aims to solve or partially solve the problems that in the prior art, in the house source display process, image distortion easily occurs, house source information cannot be effectively displayed, and browsing of a user is influenced.
Correspondingly, the embodiment of the invention also provides a room source data processing device, which is used for ensuring the realization and the application of the method.
In order to solve the above problem, an embodiment of the present invention discloses a method for processing house source data, including:
acquiring room source data of a target room source, wherein the target room source comprises at least one target object, the room source data at least comprises coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established for the target room source;
generating positioning information of the target object in the three-dimensional coordinate system according to the coordinate information, wherein the positioning Sydney type is calibration information of the target object relative to the target room source in the three-dimensional coordinate system;
and rendering a three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image, and outputting the three-dimensional house space.
Optionally, the coordinate information includes a plurality of vertex coordinates of the target object in the three-dimensional coordinate system, and the generating, according to the coordinate information, positioning information of the target object in the three-dimensional coordinate system includes:
calculating the size information and the rotation angle of the target object by adopting vertex coordinates corresponding to a plurality of vertexes of the target object;
generating an initial plane for the target object using the dimensional information;
rotating the initial plane through the rotation angle to obtain a target plane;
and taking the target vertex coordinates corresponding to each vertex in the target plane as the positioning information of the target object in the three-dimensional coordinate system.
Optionally, the vertex coordinates include an abscissa and an ordinate, and the calculating the size information and the rotation angle of the target object by using the plurality of vertex coordinates of the target object includes:
generating length size information and width size information of the target object through the abscissa and the ordinate of the plurality of vertexes of the target object;
and calculating the rotation angle of the target object according to the abscissa and the ordinate of the plurality of vertexes of the target object, the length dimension information and the width dimension information.
Optionally, the generating an initial plane for the target object using the size information includes:
and establishing an initial plane parallel to a preset terminal graphic user interface by adopting the length dimension information and the width dimension information.
Optionally, the room source data at least further includes a location relationship between different target objects and a room source layout, rendering a three-dimensional room space corresponding to the target room source according to the positioning information of at least one of the target objects and the room source image, and outputting the three-dimensional room space, including:
identifying the house type graph of the house source to obtain a house type plane graph matched with the target house source;
processing the house type plane graph through the position relation and the positioning information of at least one target object to generate an initial three-dimensional house space matched with the target house source;
and adding the room source image of the target object to the initial three-dimensional room space, and outputting the three-dimensional room space.
Optionally, the target object includes at least one of a door object, a wall object, and a window object of the target room source.
The embodiment of the invention also discloses a house source data processing device, which comprises:
the system comprises a room source data acquisition module, a room source data acquisition module and a room source data acquisition module, wherein the room source data acquisition module is used for acquiring room source data of a target room source, the target room source comprises at least one target object, the room source data at least comprises coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established aiming at the target room source;
the positioning information generating module is used for generating positioning information of the target object in the three-dimensional coordinate system according to the coordinate information, wherein the positioning information is calibration information of the target object in the three-dimensional coordinate system relative to the target room source;
and the three-dimensional house space output module is used for rendering a three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image, and outputting the three-dimensional house space.
Optionally, the coordinate information includes a plurality of vertex coordinates of the target object in the three-dimensional coordinate system, and the positioning information generating module includes:
the information calculation sub-module is used for calculating the size information and the rotation angle of the target object by adopting vertex coordinates corresponding to a plurality of vertexes of the target object;
an initial plane generation submodule, configured to generate an initial plane for the target object by using the size information;
the plane rotation submodule is used for rotating the initial plane through the rotation angle to obtain a target plane;
and the positioning information generation submodule is used for taking the target vertex coordinates corresponding to each vertex in the target plane as the positioning information of the target object in the three-dimensional coordinate system.
Optionally, the vertex coordinates include an abscissa and an ordinate, and the information calculation sub-module is specifically configured to:
generating length size information and width size information of the target object through the abscissa and the ordinate of the plurality of vertexes of the target object;
and calculating the rotation angle of the target object according to the abscissa and the ordinate of the plurality of vertexes of the target object, the length dimension information and the width dimension information.
Optionally, the initial plane generation submodule is specifically configured to:
and establishing an initial plane parallel to a preset terminal graphic user interface by adopting the length dimension information and the width dimension information.
Optionally, the house source data at least further includes a position relationship between different target objects and a house source layout, and the three-dimensional house space output module includes:
the house type plan obtaining submodule is used for identifying the house type plan of the house source and obtaining a house type plan matched with the target house source;
the initial three-dimensional house space generation submodule is used for processing the house type plane graph through the position relation and the positioning information of at least one target object to generate an initial three-dimensional house space matched with the target house source;
and the target three-dimensional house space output submodule is used for adding the house source image of the target object to the initial three-dimensional house space and outputting the three-dimensional house space.
Optionally, the target object includes at least one of a door object, a wall object, and a window object of the target room source.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the method as described above.
Embodiments of the present invention also disclose a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method as described above.
The embodiment of the invention has the following advantages:
in the embodiment of the present invention, by acquiring the room source data of the target room source, where the target room source may include at least one target object, the room source data may include coordinate information of the target object in a three-dimensional coordinate system and a room source image of the target object, and then generating positioning information of the target object in the coordinate system according to the coordinate information, then rendering a three-dimensional house space corresponding to the target house source according to the position information of at least one target object and the house source image, and outputting the three-dimensional house space, in the process of browsing house resources by a user, the positions of target objects, particularly door objects, window objects, wall objects and other objects are calibrated in a three-dimensional coordinate system, and image rendering is carried out after calibration, so that the house source image is effectively prevented from being distorted, house source information is effectively displayed, and the browsing effect of a user is ensured.
Drawings
FIG. 1 is a flow chart illustrating the steps of one embodiment of a method for processing room source data according to the present invention;
FIG. 2 is a diagram illustrating a vertex of a target object in an embodiment of the invention;
FIG. 3 is a schematic illustration of an initial plane in an embodiment of the invention;
FIG. 4 is a schematic illustration of a planar rotation in an embodiment of the invention;
fig. 5 is a block diagram of an embodiment of a processing apparatus for house source data according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
As an example, online house-watching is more and more preferred by users as network technology develops and user requirements change. The house source provider can upload the live-action picture of the house source in a panoramic shooting mode and the like, so that the user can browse the detailed scene of the house source on the internet. However, in the process of browsing the house source by the user, especially when the user switches the real-scene space, distortion of the picture, such as cracking, breaking, etc., easily occurs, so that the house source information cannot be effectively displayed, the browsing experience of the user is seriously affected, and the user is not facilitated to perceive the house source information.
Therefore, one of the core invention points of the embodiment of the present invention is that, by acquiring the room source data of the target room source, the target objects in the target room source, such as the door body object, the window body object, the wall body object, and the like, are positioned according to the room source data, and then the corresponding three-dimensional room space is generated by rendering according to the positioned target objects and the room source images of the target objects, and the three-dimensional room space is displayed to the user under the condition of ensuring the integrity of the room source information, so that not only can the room source information be effectively displayed, but also a strong immersion feeling can be brought to the user through the three-dimensional scene, and the perception of the user to the real scene space of the room source is improved.
Specifically, referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for processing house source data according to the present invention is shown, which may specifically include the following steps:
step 101, acquiring room source data of a target room source, wherein the target room source comprises at least one target object, the room source data at least comprises coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established for the target room source;
in the embodiment of the present invention, the target source may include at least one target object, and the target object may include a gate object, a window object, a wall object, and the like, where the gate object may be a corresponding entity gate in the target source, the window object may be a corresponding entity window in the target source, and the wall object may be a corresponding entity wall in the target source, and then a three-dimensional space may be formed by different target objects. The house source data may include a house source household type graph of the target house source, a position relationship between different target objects, a house source image corresponding to the target object, and coordinate information of the target object in a preset coordinate system.
Optionally, any vertex in a plane graph corresponding to the house type graph of the source selected from the target house source may be used as an origin (for example, if the target house source is a square rectangular house source, any vertex may be selected as the origin, if the target house source is an irregular house source, a vertex close to the entrance door may be selected as the origin, and the like), a three-dimensional space coordinate system for the target house source is established, and then coordinate information of the target object in the three-dimensional space coordinate system is acquired. In addition, the room source image may be an image acquired by the terminal in the physical space of the target room source, for example, an image of four walls of a living room, an image of a door of the living room, an image of a window of the living room, and the like acquired by the terminal after the terminal acquires the living room in the room source, which is not limited in this invention.
The house source house type graph may be a graph describing the use function, the corresponding position and the size of each independent space in the target house source, for example, the house source house type graph may include information of corresponding positions, areas and the like of a living room, a dining room, a bedroom, a balcony, a kitchen, a balcony and the like of the target house source; the position relationship among different target objects can comprise the position relationship among walls in a target house source, the position relationship among the walls and a window body, the position relationship among the walls and the door body and the like; the house source image can be an image acquired by the terminal from a target house source real scene space and can be used as an image texture to render a three-dimensional house space; the coordinate information of the target object may be position coordinates of the target object in a corresponding spatial coordinate system, or the like.
In a specific implementation, in the process of browsing a house source by a user, a terminal can acquire house source data of a target house source so as to generate a corresponding three-dimensional house space according to the house source data and display the house source; in the process that the user switches the space, the room source data of the target space is acquired, and the target space is rendered, so that the user can browse the real-scene information of the space, for example, the user switches from a living room to a bedroom, and the like.
In an example, the terminal may obtain a two-dimensional user-type diagram input by the user, then perform AI (Artificial Intelligence) to perform image Recognition on the two-dimensional user-type diagram, perform OCR (Optical Character Recognition) to recognize characters in the two-dimensional user-type diagram, and perform room division algorithm to divide areas in the two-dimensional user-type diagram, so as to obtain different functional spaces of the target room object, and then recognize the obtained room source data according to the AI.
For example, the two-dimensional house type graph may include VR (Virtual Reality) panoramic data, hand-drawn house type graph data, a two-dimensional planar house type graph, and the like, the terminal may obtain a door, a window, a wall, and the like of the target house object through image recognition, recognize names, areas, scales, and the like of different functional spaces of the target house object through OCR, partition the guest-dining room through a room-dividing algorithm, for example, partition the guest-dining room, obtain a living room, a dining room, an entrance, a corridor, and the like, so that the three-dimensional house space may be rendered through the obtained house source data.
102, generating positioning information of the target object in the coordinate system according to the coordinate information, wherein the positioning information is calibration information of the target object in the three-dimensional coordinate system relative to the target room source;
the positioning information can be calibration information of the target object relative to the target room source in a three-dimensional coordinate system, for example, the positioning information can be calibration coordinates of the target object in a corresponding coordinate system after coordinate correction, and the target object is positioned through the coordinates, so that the defect of door body pixels during texture image projection in the rendering process can be effectively avoided, the room source image corresponding to the target object is subjected to fault and fracture, and the completeness of room source information display is ensured.
In an optional embodiment of the present invention, the terminal may calculate size information and a rotation angle of the target object by using vertex coordinates corresponding to a plurality of vertices of the target object, then generate an initial plane for the target object by using the size information, rotate the initial plane by using the rotation angle to obtain the target plane, and then use target vertex coordinates corresponding to each vertex in the target plane as positioning information of the target object in the target room source.
For example, for a door body object, four vertexes of the door body object can respectively correspond to different vertex coordinates, including (x)1,y1)、(x2,y2)、(z1,y1) And (z)2,y2) And the like, so that the vertex coordinates corresponding to each target object can be extracted from the house source data of the target house source, and the size information and the rotation angle of the target object can be calculated. Specifically, the size information may be length size information and width size information of the target object, the rotation angle may be a relative offset angle of the target object in the live-action space, and the door object in the rendered three-dimensional house space may be more fit to the live-action of the target house source through the rotation angle, so that the live-action of the target space is effectively restoredThe situation is.
In an example, referring to fig. 2, a schematic diagram of vertices of a target object in an embodiment of the present invention is shown, the target object may include four vertices A, B, C and D in space, after coordinates of the vertices are obtained, a length dimension and a width dimension of the target object may be calculated by an abscissa and an ordinate of different vertices, and then an initial plane parallel to a terminal graphical user interface is established. Referring to fig. 3, which shows a schematic diagram of an initial plane in an embodiment of the present invention, after length and width information of a portal object is obtained, an initial plane may be drawn and placed at the center positions of four vertices, where the initial plane is parallel to a graphical user interface of a terminal and needs to rotate by a certain angle to fit a real-scene condition of a target house source, for example, an euclidean distance between AB and AC may be calculated through coordinate operation to obtain length information and width information of the portal object, and then an initial plane is established based on the length and width and placed at the centers of the four vertices to obtain the initial plane. In the established three-dimensional space coordinate system, the rotation angle of the target object is calculated through the abscissa and ordinate of all vertexes of the same target object, as well as the length information and the width information, for example, referring to fig. 4, which shows a schematic diagram of plane rotation in an embodiment of the present invention, first, a front view of a plane is shown, second, a top view of the plane is shown, an angle 1 is a final rotation angle, values corresponding to x and y are obtained, the abscissa and the length and width dimensions are calculated through a trigonometric function, an angle 1 can be obtained, an angle 2 can be obtained through a similar triangle, and further, an angle corresponding to the angle 1 or the angle 2 can be used as the rotation angle of the target object, so that the initial plane is rotated through the rotation angle, and each vertex coordinate of the target plane corresponding to the rotated target object is used as positioning information, so that the target object is positioned through the positioning information, under the premise of ensuring that the house source image is more attached to the live-action space, the conditions of image distortion such as faults and cracks are avoided, and the integrity of the house source information is effectively ensured.
Step 103, rendering a three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image, and outputting the three-dimensional house space.
In the embodiment of the present invention, the target source may include different target objects, and after the positioning information of the target object is obtained, the three-dimensional house space corresponding to the target source may be rendered according to the positioning information of at least one target object and the source image, and the three-dimensional house space may be output in the graphical user interface of the terminal, so that in the process of browsing the source by the user, the position where the target object is located is corrected to ensure the validity of the source information display.
In a specific implementation, the terminal may first identify a house-type graph of the house source in the house source data, and obtain a house-type plane graph matched with the target house source, where the house-type plane graph may include information such as a use function, a corresponding position, and a size of each independent space in the target house source, and a position relationship of the target object. Optionally, different target objects may be marked in the house type plan, for example, a wall object, a door object, and a window object are respectively marked with an entrance door as a starting point, including a wall body (i), a wall body (ii), a door body (i), a door body (ii), a window body (i), a window body (ii), and the like, so that classification and position relationship determination of the target objects are realized, and matching efficiency of the target objects can be improved by marking when a three-dimensional house space is subsequently rendered.
After the house type plane graph is obtained, the house type plane graph can be processed through the position relation of the target object and the positioning information of the target object, so that an initial three-dimensional house space matched with the target house source is generated, then the house source image of the target object is added to the target three-dimensional house space, and the three-dimensional house space is output, so that the target object, particularly a door body object, a window body object, a wall body object and the like, is positioned, image rendering is performed after positioning, the house source image can be effectively prevented from being distorted, house source information is effectively displayed, and the browsing effect of a user is guaranteed.
In an example, a space coordinate system can be established, the identified house type plane graph is placed in the space coordinate system, then the target object is added in the house type plane graph through the corrected positioning information of the target object and the position relation between the target objects to obtain an initial three-dimensional house model, so that a two-dimensional plane graph is converted into a preliminary three-dimensional house model, then a house source image of the object is added into the initial three-dimensional house model to generate a final target three-dimensional house model, and in the process that a user browses house sources, the target object, particularly a door body object, a window body object, a wall body object and the like are positioned, and image rendering is performed after positioning, so that the house source image can be effectively prevented from being distorted, house source information can be effectively displayed, and the browsing effect of the user is guaranteed. Optionally, in the process of switching the function space by the user, the rendering of the function space may be implemented in the manner described above, which is not described herein again.
In the embodiment of the present invention, by acquiring the room source data of the target room source, where the target room source may include at least one target object, the room source data may include coordinate information of the target object in a three-dimensional coordinate system and a room source image of the target object, and then generating positioning information of the target object in the coordinate system according to the coordinate information, then, according to the position information of at least one target object and the house source image, rendering a three-dimensional house space corresponding to the target house source and outputting the three-dimensional house space, in the process of browsing house resources by a user, the positions of target objects, particularly door objects, window objects, wall objects and other objects are calibrated in a three-dimensional coordinate system, and image rendering is carried out after calibration, so that the room source image is effectively prevented from being distorted, the room source information is effectively displayed, and the browsing effect of a user is ensured.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a structure of an embodiment of a room source data processing apparatus according to the present invention is shown, which may specifically include the following modules:
a room source data obtaining module 501, configured to obtain room source data of a target room source, where the target room source includes at least one target object, the room source data at least includes coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established for the target room source;
a positioning information generating module 502, configured to generate, according to the coordinate information, positioning information of the target object in the three-dimensional coordinate system, where the positioning information is calibration information of the target object in the three-dimensional coordinate system relative to the target room source;
and a three-dimensional room space output module 503, configured to render a three-dimensional room space corresponding to the target room source according to the positioning information of the at least one target object and the room source image, and output the three-dimensional room space.
In an optional embodiment of the present invention, the coordinate information includes a plurality of vertex coordinates of the target object in the three-dimensional coordinate system, and the positioning information generating module 502 includes:
the information calculation submodule is used for calculating the size information and the rotation angle of the target object by adopting vertex coordinates corresponding to a plurality of vertexes of the target object;
an initial plane generation submodule, configured to generate an initial plane for the target object by using the size information;
the plane rotation submodule is used for rotating the initial plane through the rotation angle to obtain a target plane;
and the positioning information generation sub-module is used for taking the target vertex coordinates corresponding to each vertex in the target plane as the positioning information of the target object in the three-dimensional coordinate system.
In an optional embodiment of the present invention, the vertex coordinates include an abscissa and an ordinate, and the information calculating sub-module is specifically configured to:
generating length size information and width size information of the target object through the abscissa and the ordinate of the plurality of vertexes of the target object;
and calculating the rotation angle of the target object according to the abscissa and the ordinate of the plurality of vertexes of the target object, the length dimension information and the width dimension information.
In an optional embodiment of the present invention, the initial plane generation submodule is specifically configured to:
and establishing an initial plane parallel to a preset terminal graphic user interface by adopting the length dimension information and the width dimension information.
In an optional embodiment of the present invention, the room source data at least further includes a position relationship between different target objects and a room source layout, and the three-dimensional room space output module 503 includes:
the house type plan obtaining submodule is used for identifying the house type plan of the house source and obtaining a house type plan matched with the target house source;
the initial three-dimensional house space generation submodule is used for processing the house type plane graph through the position relation and the positioning information of at least one target object to generate an initial three-dimensional house space matched with the target house source;
and the target three-dimensional house space output submodule is used for adding the house source image of the target object to the initial three-dimensional house space and outputting the three-dimensional house space.
In an optional embodiment of the present invention, the target object comprises at least one of a door object, a wall object and a window object of the target room source.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform methods as described in embodiments of the invention.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon instructions, which, when executed by one or more processors, cause the processors to perform a method according to embodiments of the present invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The house source data processing method and the house source data processing device provided by the invention are described in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for processing house source data is characterized by comprising the following steps:
acquiring room source data of a target room source, wherein the target room source comprises at least one target object, the room source data at least comprises coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established for the target room source;
generating positioning information of the target object in the three-dimensional coordinate system according to the coordinate information, wherein the positioning information is calibration information of the target object in the three-dimensional coordinate system relative to the target room source;
rendering a three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image, and outputting the three-dimensional house space;
wherein the coordinate information includes a plurality of vertex coordinates of the target object in the three-dimensional coordinate system, and the generating, according to the coordinate information, the positioning information of the target object in the three-dimensional coordinate system includes:
calculating the size information and the rotation angle of the target object by adopting vertex coordinates corresponding to a plurality of vertexes of the target object;
generating an initial plane for the target object using the dimensional information;
rotating the initial plane through the rotation angle to obtain a target plane;
and taking the target vertex coordinates corresponding to each vertex in the target plane as the positioning information of the target object in the three-dimensional coordinate system.
2. The method of claim 1, wherein the vertex coordinates include an abscissa and an ordinate, and the calculating the size information and the rotation angle of the target object using the plurality of vertex coordinates of the target object comprises:
generating length size information and width size information of the target object through the abscissa and the ordinate of the plurality of vertexes of the target object;
and calculating the rotation angle of the target object according to the abscissa and the ordinate of the plurality of vertexes of the target object, the length dimension information and the width dimension information.
3. The method of claim 2, wherein said employing the dimensional information to generate an initial plane for the target object comprises:
and establishing an initial plane parallel to a preset terminal graphic user interface by adopting the length dimension information and the width dimension information.
4. The method according to any one of claims 1 to 3, wherein the house source data at least further comprises a position relationship between different target objects and a house source layout, and the rendering of the three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image and the outputting of the three-dimensional house space comprises:
identifying the house type graph of the house source to obtain a house type plane graph matched with the target house source;
carrying out object positioning processing on the house type plane graph through the position relation and positioning information of at least one target object to generate an initial three-dimensional house space matched with the target house source;
and adding the room source image of the target object to the initial three-dimensional room space, and outputting the three-dimensional room space.
5. The method of any one of claims 1 to 3, wherein the target object comprises at least one of a portal object, a wall object, and a window object of the target source.
6. A room source data processing apparatus, comprising:
the system comprises a room source data acquisition module, a room source data acquisition module and a room source data acquisition module, wherein the room source data acquisition module is used for acquiring room source data of a target room source, the target room source comprises at least one target object, the room source data at least comprises coordinate information of the target object in a preset coordinate system and a room source image of the target object, and the coordinate system is a three-dimensional coordinate system established aiming at the target room source;
the positioning information generating module is used for generating positioning information of the target object in the three-dimensional coordinate system according to the coordinate information, wherein the positioning information is calibration information of the target object in the three-dimensional coordinate system relative to the target room source;
the three-dimensional house space output module is used for rendering a three-dimensional house space corresponding to the target house source according to the positioning information of at least one target object and the house source image and outputting the three-dimensional house space;
wherein the coordinate information includes a plurality of vertex coordinates of the target object in the three-dimensional coordinate system, and the positioning information generating module includes:
the information calculation submodule is used for calculating the size information and the rotation angle of the target object by adopting vertex coordinates corresponding to a plurality of vertexes of the target object;
an initial plane generation submodule, configured to generate an initial plane for the target object by using the size information;
the plane rotation submodule is used for rotating the initial plane through the rotation angle to obtain a target plane;
and the positioning information generation submodule is used for taking the target vertex coordinates corresponding to each vertex in the target plane as the positioning information of the target object in the three-dimensional coordinate system.
7. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-5.
8. A computer-machine-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method of any one of claims 1-5.
CN202011522721.0A 2020-12-21 2020-12-21 House source data processing method and device Active CN112581632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522721.0A CN112581632B (en) 2020-12-21 2020-12-21 House source data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522721.0A CN112581632B (en) 2020-12-21 2020-12-21 House source data processing method and device

Publications (2)

Publication Number Publication Date
CN112581632A CN112581632A (en) 2021-03-30
CN112581632B true CN112581632B (en) 2022-05-17

Family

ID=75136525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522721.0A Active CN112581632B (en) 2020-12-21 2020-12-21 House source data processing method and device

Country Status (1)

Country Link
CN (1) CN112581632B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115147628B (en) * 2022-09-06 2022-12-02 深圳市明源云科技有限公司 House image data processing method and device, terminal equipment and medium
CN115760269B (en) * 2022-10-26 2024-01-09 北京城市网邻信息技术有限公司 House type feature generation method and device, electronic equipment and storage medium
CN115713616B (en) * 2022-11-18 2023-10-31 北京城市网邻信息技术有限公司 House source space model generation method and device, terminal equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862179A (en) * 2019-04-12 2020-10-30 北京城市网邻信息技术有限公司 Three-dimensional object modeling method and apparatus, image processing device, and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022290A (en) * 2017-11-27 2018-05-11 石化盈科信息技术有限责任公司 Gate factory switch methods of exhibiting and system in a kind of three-dimensional digital platform
CN111182350B (en) * 2019-12-31 2022-07-26 广州方硅信息技术有限公司 Image processing method, device, terminal equipment and storage medium
CN111340943B (en) * 2020-02-26 2023-01-03 北京市商汤科技开发有限公司 Image processing method, device, equipment and storage medium
CN111815759B (en) * 2020-06-18 2021-04-02 广州建通测绘地理信息技术股份有限公司 Measurable live-action picture generation method and device, and computer equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111862179A (en) * 2019-04-12 2020-10-30 北京城市网邻信息技术有限公司 Three-dimensional object modeling method and apparatus, image processing device, and medium

Also Published As

Publication number Publication date
CN112581632A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN112581632B (en) House source data processing method and device
CN107993216B (en) Image fusion method and equipment, storage medium and terminal thereof
CN110378947B (en) 3D model reconstruction method and device and electronic equipment
CN111724481A (en) Method, device, equipment and storage medium for three-dimensional reconstruction of two-dimensional image
US8854392B2 (en) Circular scratch shader
CN111583381B (en) Game resource map rendering method and device and electronic equipment
CN116109684B (en) Online video monitoring two-dimensional and three-dimensional data mapping method and device for variable electric field station
CN113436338A (en) Three-dimensional reconstruction method and device for fire scene, server and readable storage medium
CN111340960B (en) Image modeling method and device, storage medium and electronic equipment
CN112734896A (en) Environment shielding rendering method and device, storage medium and electronic equipment
CN110363837B (en) Method and device for processing texture image in game, electronic equipment and storage medium
CN111508058A (en) Method and device for three-dimensional reconstruction of image, storage medium and electronic equipment
Sandnes Sketching 3D immersed experiences rapidly by hand through 2D cross sections
CN111311720B (en) Texture image processing method and device
CN107203961B (en) Expression migration method and electronic equipment
CN110378948B (en) 3D model reconstruction method and device and electronic equipment
CN116385622B (en) Cloud image processing method, cloud image processing device, computer and readable storage medium
CN111612838A (en) Image acquisition method and device and electronic equipment
CN116778015A (en) Model edge tracing method and device, electronic equipment and storage medium
CN113486941B (en) Live image training sample generation method, model training method and electronic equipment
CN115018968A (en) Image rendering method and device, storage medium and electronic equipment
CN110390717B (en) 3D model reconstruction method and device and electronic equipment
CN110363860B (en) 3D model reconstruction method and device and electronic equipment
CN113436332A (en) Digital display method and device for fire-fighting plan, server and readable storage medium
CN113810626A (en) Video fusion method, device and equipment based on three-dimensional map and 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
GR01 Patent grant
GR01 Patent grant