CN113989468A - Panoramic roaming generation method and device and computer equipment - Google Patents

Panoramic roaming generation method and device and computer equipment Download PDF

Info

Publication number
CN113989468A
CN113989468A CN202111272535.0A CN202111272535A CN113989468A CN 113989468 A CN113989468 A CN 113989468A CN 202111272535 A CN202111272535 A CN 202111272535A CN 113989468 A CN113989468 A CN 113989468A
Authority
CN
China
Prior art keywords
room
panoramic
house
panorama
type data
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
CN202111272535.0A
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.)
Foshan Oushennuo Yunshang Technology Co ltd
Original Assignee
Foshan Oushennuo Yunshang 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 Foshan Oushennuo Yunshang Technology Co ltd filed Critical Foshan Oushennuo Yunshang Technology Co ltd
Priority to CN202111272535.0A priority Critical patent/CN113989468A/en
Publication of CN113989468A publication Critical patent/CN113989468A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images
    • 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
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Graphics (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Health & Medical Sciences (AREA)
  • Remote Sensing (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 application discloses a panoramic roaming generation method and device and computer equipment. The method is applied to a server and comprises the following steps: acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house; obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data; acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room; generating a panorama for each room and a panorama link for each panorama based on the images; and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene. The panoramic roaming generation method provided by the embodiment of the application can realize the functions of automatically generating the panoramic roaming and improving the panoramic roaming generation efficiency.

Description

Panoramic roaming generation method and device and computer equipment
Technical Field
The application relates to the technical field of virtual reality, in particular to a panoramic roaming generation method and device and computer equipment.
Background
The existing method for generating the panoramic roaming needs manual operation on pictures or data, and the generation efficiency is low. Therefore, how to automatically generate the panoramic roaming so as to improve the generation efficiency is a technical problem which needs to be solved urgently.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for generating a panoramic roaming, and a computer device, so as to solve the problem of how to automatically generate the panoramic roaming.
In a first aspect, an embodiment of the present application provides a method for generating a panoramic roaming, which is applied to a server, and includes:
acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house;
obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data;
acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room;
generating a panorama for each room and a panorama link for each panorama based on the images;
and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
In an optional embodiment, the generating a hot spot between all rooms according to the center coordinate of each room, the house type data, and the panorama corresponding to each room includes:
acquiring an ith central coordinate corresponding to an ith room and a jth central coordinate corresponding to a jth room, wherein i is not equal to j, i and j are both less than or equal to N, and N is the total number of rooms of the house;
calculating an ith included angle and a jth included angle based on the ith central coordinate and the jth central coordinate, wherein the ith included angle is an included angle formed by a central line and a transverse axis of a three-dimensional coordinate system, the jth included angle is an included angle formed by the central line and a longitudinal axis of the three-dimensional coordinate system, and the central line is a connecting line of the ith central coordinate and the jth central coordinate;
determining the positions of hot spots corresponding to the ith room and the jth room and the pointing direction of the hot spots according to the ith central coordinate, the jth central coordinate, the house type data, the ith included angle and the jth included angle, wherein the pointing direction is the pointing direction of a central line;
and repeating the steps until hot spots among all rooms in the whole house are generated.
In an alternative embodiment, the location of the hot spot corresponding to the ith room and the jth room is the intersection of the edge of the ith room and the jth room and the center line.
In an optional embodiment, after generating the panorama of each room and the panorama link of each panorama based on the image, the method further includes:
determining a preview path of the house based on a preset rule and the three-dimensional scene graph;
and generating a panoramic preview scene of the house and a panoramic preview link corresponding to the panoramic preview scene according to the preview path and the panoramic image of each room.
In an alternative embodiment, the preset rules include the area and/or preset direction of each room.
In an optional embodiment, the obtaining a three-dimensional scene graph of each room based on the house type data includes:
importing the house type data into a fantasy engine to obtain a three-dimensional model;
and rendering the three-dimensional model by utilizing a ray tracing technology to obtain a three-dimensional scene graph.
In an optional embodiment, the generating a panorama for each room and a panorama link for each panorama based on the image comprises:
and generating a panoramic image interface by using the cloud, synthesizing the images of each room, and generating a panoramic image of each room and a panoramic link of each panoramic image.
In a second aspect, an embodiment of the present application provides an apparatus for generating panoramic roaming, which is applied to a server, and includes:
the house type data acquisition module is used for acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house;
the three-dimensional scene graph obtaining module is used for obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data;
the panoramic link generation module is used for acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room;
a panorama generation module for generating a panorama for each room and a panorama link for each panorama based on the image;
and the panoramic roaming scene generation module is used for generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room so as to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
In a third aspect, a computer device is provided, where the computer device includes a memory and a processor, the memory stores a computer program, and the computer program, when executed by the processor, implements the method for generating panoramic roaming according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method for generating panoramic roaming according to the first aspect.
The embodiment of the application provides a panoramic roaming generation method, a panoramic roaming generation device and computer equipment. The method is applied to a server and comprises the following steps: acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house; obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data; acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room; generating a panorama for each room and a panorama link for each panorama based on the images; and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene. The panoramic view of each room and the panoramic view corresponding to each room are directly generated through a plurality of images at different preset angles collected at the central coordinate without software cutting, so that the generation efficiency of panoramic roaming is improved; generating hot spots among all rooms through the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene, and realizing the functions of automatically generating the panoramic roaming and improving the generation efficiency of the panoramic roaming without manually adding the hot spots.
Drawings
In order to more clearly explain the technical solutions of the present application, the drawings needed to be used in the embodiments are briefly introduced below, and it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of protection of the present application. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic block diagram illustrating a flowchart of steps of a method for generating panoramic roaming according to an embodiment of the present application;
FIG. 2 is a schematic block diagram illustrating a three-dimensional structure of a living room provided by an embodiment of the present application;
FIG. 3 is a diagram illustrating a preview path provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating another preview path provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an ith angle and a jth angle provided by embodiments of the present application;
FIG. 6 is a schematic diagram illustrating a hotspot location provided by an embodiment of the present application;
fig. 7 is a block diagram illustrating a schematic structure of a panoramic roaming generation apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
Example 1
Referring to fig. 1, fig. 1 is a schematic block diagram illustrating a flow of steps of a method for generating panoramic roaming according to an embodiment of the present application.
As shown in fig. 1, a method for generating panoramic roaming provided in an embodiment of the present application may be applied to a server, and includes S110 to S150.
S110: house type data of a house is obtained, wherein the house type data comprises vertex coordinates of each room in the house.
In this embodiment, the terminal transmits the house type data including the vertex coordinates of each room in the house to the server after receiving the house type data input by the user. It will be appreciated that the house comprises at least two rooms.
S120: and obtaining a three-dimensional scene graph of each room and the center coordinate of each room based on the house type data.
In this embodiment, according to the house type data acquired in S110, a three-dimensional scene graph of each room and a center coordinate of each room may be obtained, where the three-dimensional scene graph of each room may include decorations in each room, such as furniture and wallpaper.
Further, the obtaining a three-dimensional scene graph of each room based on the house type data includes:
importing the house type data into a fantasy engine to obtain a three-dimensional model;
and rendering the three-dimensional model by utilizing a ray tracing technology to obtain a three-dimensional scene graph.
Specifically, the server imports the house type data into UE4(Unreal Engine 4) software to obtain a three-dimensional model. And rendering the three-dimensional model by the server by utilizing a ray tracing technology in UE4 software to obtain a three-dimensional scene graph. It can be understood that the three-dimensional model is rendered by using the ray tracing technology of the UE4, the rendered picture effect is improved, and the functions of real-time rendering and second rendering are realized.
Illustratively, referring to fig. 2 together, fig. 2 shows a schematic block diagram of a three-dimensional structure of a living room provided by an embodiment of the present application. Eight A, B, C, D, E, F, G, H points in fig. 2 are the vertices of the living room, and the eight vertices in the living room are assumed to have coordinates of (2, 3, 3), (2, 11, 3), (10, 3, 3), (10, 11, 3), (2, 3, 0), (2, 11, 0), (10, 3, 0), and (10, 11, 0), respectively. The abscissa of the center point of the living room is (10+2)/2 is 6, and the ordinate of the center point of the living room is (11+3)/2 is 7, that is, the center point coordinate of the living room is (6, 7).
S130: and acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room.
In the present embodiment, the server sets a virtual camera at the center coordinates of each room. And acquiring 6 images with different preset angles at the central coordinates based on the three-dimensional scene graph of each room. The preset angles are 6 different angles of the virtual camera in the up-down direction, the left-right direction, the front direction and the back direction.
S140: generating a panorama for each room and a panorama link for each panorama based on the images.
In this embodiment, the server generates a panorama interface by using a cloud, synthesizes images of each room, and generates a panorama of each room and a panorama link of each panorama.
It can be understood that the method and the device adopt the steps of shooting the upper, lower, left, right, front and rear 6 images with different angles of the virtual camera in each room, reduce the configuration requirements on the display card and further save the hardware cost; compared with the scheme that a panoramic image is generated in a single space firstly, then the panoramic image is divided and then the panoramic image link is made, the panoramic image of each room and the panoramic link of each panoramic image are directly generated by UE4 software without cutting by krpano software or other software, and the generation efficiency of panoramic roaming is improved.
Further, in order to facilitate automatic panoramic roaming of a user, after generating a panoramic view of each room and a panoramic link of each panoramic view based on the image, the method further includes:
determining a preview path of the house based on a preset rule and the three-dimensional scene graph;
and generating a panoramic preview scene of the house and a panoramic preview link corresponding to the panoramic preview scene according to the preview path and the panoramic image of each room.
In particular, the preset rules include an area and/or a preset direction of each room. And obtaining a corresponding plan based on the three-dimensional scene graph, and then determining a preview path of the house based on a preset rule and the plan. Referring to fig. 3, fig. 3 is a schematic diagram illustrating a preview path according to an embodiment of the present disclosure. In fig. 3, the area of the living room 161 > the area of the bedroom 162 > the area of the study 163 > the area of the kitchen 164 > the area of the bathroom 165, then the preview path for the house is determined to be living room 161- > bedroom 162- > study 163- > kitchen 164- > bathroom 165. Referring to fig. 4, fig. 4 is a schematic diagram illustrating another preview path according to an embodiment of the present disclosure. The preview path can also be generated in a clockwise direction with the bedroom 162 as the initial scene, such as bedroom 162- > living room 161- > bathroom 165- > kitchen 164- > study 163 in fig. 4.
It can be understood that, if there are at least two rooms with the same area size, the preview path of the house can be determined according to the preset direction and the panoramic image of each room. Still referring to fig. 4, the current scenario is living room 161, and assuming that the areas of the bathroom 165 and the kitchen 164 are the same and the preset direction is clockwise, the preview path of the house is determined to be living room 161- > bathroom 165- > kitchen 164.
Further, after the panoramic preview scene of the house and the panoramic preview link corresponding to the panoramic preview scene are generated according to the preview path and the panoramic image of each room, if the server receives a preview instruction, the panoramic image of each room is automatically played according to the preview path.
S150: and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
In this embodiment, the hot spots between the rooms include the locations of the hot spots and the directions of the hot spots.
In an optional embodiment, the generating a hot spot between all rooms according to the center coordinate of each room, the house type data, and the panorama corresponding to each room includes:
acquiring an ith central coordinate corresponding to an ith room and a jth central coordinate corresponding to a jth room, wherein i is not equal to j, i and j are both less than or equal to N, and N is the total number of rooms of the house;
calculating an ith included angle and a jth included angle based on the ith central coordinate and the jth central coordinate, wherein the ith included angle is an included angle formed by a central line and a transverse axis of a three-dimensional coordinate system, the jth included angle is an included angle formed by the central line and a longitudinal axis of the three-dimensional coordinate system, and the central line is a connecting line of the ith central coordinate and the jth central coordinate;
determining the positions of hot spots corresponding to the ith room and the jth room and the pointing direction of the hot spots according to the ith central coordinate, the jth central coordinate, the house type data, the ith included angle and the jth included angle, wherein the pointing direction is the pointing direction of a central line;
and repeating the steps until hot spots among all rooms in the whole house are generated.
Specifically, referring to fig. 5, fig. 5 shows a schematic diagram of the ith included angle and the jth included angle provided in the embodiment of the present application. Point M in fig. 5 represents the center point of the toilet 165; point N represents the center point of the kitchen 164; line segment MN represents a centerline; i represents the ith included angle, namely the included angle formed by the central line MN and the x axis of the three-dimensional coordinate system; j represents the jth included angle, namely the included angle formed by the central line MN and the y axis of the three-dimensional coordinate system. It should be noted that fig. 5 is only an example of a three-dimensional coordinate system, but not limited to this, and the three-dimensional coordinate system may be constructed according to practical situations.
Further, the step of calculating the ith included angle and the jth included angle based on the ith central coordinate and the jth central coordinate may be implemented by a software program, or may be implemented by other methods. And determining the direction of the hot spot according to the ith angle and the jth angle. Still referring to fig. 5, when the ith included angle and the jth included angle are i and j shown in fig. 5, respectively, assuming that the ith included angle is a ° and the jth included angle is b °, it is determined that the direction of the hot spot points from N to M. When the ith angle is (180-a) ° and the jth angle is (180-b) ° the direction of the hot spot is determined to point from M to N (not shown), where 0 ≦ a <90 °, 0 ≦ b <90 °, and a + b ≦ 90 °.
It is understood that the locations of the hotspots corresponding to the ith room and the jth room may be any point on the centerline MN. A hot spot can be arranged between two adjacent rooms, and a hot spot can also be arranged between two nonadjacent rooms.
Preferably, the position of the hot spot corresponding to the ith room and the jth room is the intersection of the edge of the ith room and the jth room and the center line. Referring to fig. 6, fig. 6 is a schematic diagram illustrating a location of a hot spot according to an embodiment of the present disclosure. Taking the room in which the current scene is located as the kitchen 164 as an example, a hot spot 170 is arranged at the intersection of the center line and the edge of the kitchen 164 and the living room 161, and a hot spot 171 is arranged at the intersection of the center line and the edge of the kitchen 164 and the toilet 165.
In this embodiment, after the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene are obtained, the user can perform a preset operation on a hotspot between the initial scene and the target scene in the panoramic roaming scene in the initial scene according to the direction of the hotspot in the panoramic roaming scene, so as to realize a function of jumping from the initial scene to the target scene. For example, if the current scene of the user is the living room 161, the initial scene includes the hot spot from the living room to all rooms in the house and the corresponding hot spot direction, and when the user clicks the hot spot from the living room 161 to the study 163, the server receives the switching instruction, and switches the current scene of the user from the living room 161 to the study 163.
The method for generating the panoramic roaming, provided by the embodiment of the application, is applied to a server and comprises the following steps: acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house; obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data; acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room; generating a panorama for each room and a panorama link for each panorama based on the images; and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene. The panoramic view of each room and the panoramic view corresponding to each room are directly generated through a plurality of images at different preset angles collected at the central coordinate without software cutting, so that the generation efficiency of panoramic roaming is improved; generating hot spots among all rooms through the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene, and realizing the functions of automatically generating the panoramic roaming and improving the generation efficiency of the panoramic roaming without manually adding the hot spots.
Example 2
Referring to fig. 7, fig. 7 is a block diagram schematically illustrating a structure of a panoramic roaming generation apparatus according to an embodiment of the present application. The panoramic roaming generation apparatus 200 includes a house type data acquisition module 210, a three-dimensional scene graph obtaining module 220, a panoramic link generation module 230, a panoramic graph generation module 240, and a panoramic roaming scene generation module 250.
The house type data obtaining module 210 obtains house type data of a house, where the house type data includes vertex coordinates of each room in the house;
the three-dimensional scene graph obtaining module 220 obtains a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data;
the panoramic link generation module 230 is configured to collect a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room;
the panorama generating module 240 is configured to generate a panorama of each room and a panorama link of each panorama based on the image;
the panoramic roaming scene generation module 250 is configured to generate hotspots among all the rooms according to the center coordinate of each room, the house type data, and the panoramic image corresponding to each room, so as to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
Optionally, the panoramic roaming scene generation module 250 includes:
the obtaining submodule is used for obtaining the ith central coordinate corresponding to the ith room and the jth central coordinate corresponding to the jth room, i is not equal to j, i and j are both less than or equal to N, and N is the total number of rooms of the house;
the calculation submodule is used for calculating an ith included angle and a jth included angle based on the ith central coordinate and the jth central coordinate, wherein the ith included angle is an included angle formed by a central line and a transverse axis of a three-dimensional coordinate system, the jth included angle is an included angle formed by the central line and a longitudinal axis of the three-dimensional coordinate system, and the central line is a connecting line of the ith central coordinate and the jth central coordinate;
the determining submodule is used for determining the positions of hot spots corresponding to the ith room and the jth room and the pointing direction of the hot spots according to the ith central coordinate, the jth central coordinate, the house type data, the ith included angle and the jth included angle, wherein the pointing direction is the pointing direction of a central line;
and the generation submodule is used for repeating the steps until hot spots among all rooms in the whole house are generated.
Optionally, the position of the hot spot corresponding to the ith room and the jth room is an intersection of an edge of the ith room and the jth room and the center line.
Optionally, the apparatus 200 for generating panoramic roaming further includes:
the preview path determining module is used for determining a preview path of the house based on a preset rule and the three-dimensional scene graph;
and the panoramic preview scene generation module is used for generating the panoramic preview scene of the house and the panoramic preview link corresponding to the panoramic preview scene according to the preview path and the panoramic image of each room.
Optionally, the preset rules include an area and/or a preset direction of each room.
Optionally, the three-dimensional scene graph obtaining module 220 further includes:
the three-dimensional model obtaining submodule is used for importing the house type data into a fantasy engine to obtain a three-dimensional model;
and the three-dimensional scene graph obtaining submodule is used for rendering the three-dimensional model by utilizing a ray tracing technology to obtain a three-dimensional scene graph.
Optionally, a cloud-based panorama interface is used to generate images of each room, and the panorama of each room and the panorama link of each panorama are generated.
The above device is used for executing the method provided in embodiment 1, and the implementation principle and technical effect are similar, which are not described herein again.
The embodiment of the application also discloses a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for generating the panoramic roaming according to the embodiment 1 is realized.
The embodiment of the application also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for generating the panoramic roaming according to embodiment 1 is implemented.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A method for generating panoramic roaming, which is applied to a server, comprises the following steps:
acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house;
obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data;
acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room;
generating a panorama for each room and a panorama link for each panorama based on the images;
and generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
2. The method of claim 1, wherein generating the hot spots between all the rooms according to the center coordinates of each room, the house type data and the corresponding panorama of each room comprises:
acquiring an ith central coordinate corresponding to an ith room and a jth central coordinate corresponding to a jth room, wherein i is not equal to j, i and j are both less than or equal to N, and N is the total number of rooms of the house;
calculating an ith included angle and a jth included angle based on the ith central coordinate and the jth central coordinate, wherein the ith included angle is an included angle formed by a central line and a transverse axis of a three-dimensional coordinate system, the jth included angle is an included angle formed by the central line and a longitudinal axis of the three-dimensional coordinate system, and the central line is a connecting line of the ith central coordinate and the jth central coordinate;
determining the positions of hot spots corresponding to the ith room and the jth room and the pointing direction of the hot spots according to the ith central coordinate, the jth central coordinate, the house type data, the ith included angle and the jth included angle, wherein the pointing direction is the pointing direction of a central line;
and repeating the steps until hot spots among all rooms in the whole house are generated.
3. The method of claim 2, wherein the locations of the hot spots corresponding to the ith room and the jth room are intersections of edges of the ith room and the jth room with the center line.
4. The method of claim 1, wherein the generating the panorama for each room and the panorama link for each panorama based on the image further comprises:
determining a preview path of the house based on a preset rule and the three-dimensional scene graph;
and generating a panoramic preview scene of the house and a panoramic preview link corresponding to the panoramic preview scene according to the preview path and the panoramic image of each room.
5. The method according to claim 4, wherein the preset rules comprise an area and/or a preset direction of each room.
6. The method of claim 1, wherein the deriving a three-dimensional scene graph for each room based on the house type data comprises:
importing the house type data into a fantasy engine to obtain a three-dimensional model;
and rendering the three-dimensional model by utilizing a ray tracing technology to obtain a three-dimensional scene graph.
7. The method of claim 1, wherein generating the panorama for each room and the panorama link for each panorama based on the image comprises:
and generating a panoramic image interface by using the cloud, synthesizing the images of each room, and generating a panoramic image of each room and a panoramic link of each panoramic image.
8. A panoramic roaming generation device is applied to a server and comprises:
the house type data acquisition module is used for acquiring house type data of a house, wherein the house type data comprises vertex coordinates of each room in the house;
the three-dimensional scene graph obtaining module is used for obtaining a three-dimensional scene graph of each room and a center coordinate of each room based on the house type data;
the panoramic link generation module is used for acquiring a plurality of images at different preset angles at the central coordinate based on the three-dimensional scene graph of each room;
a panorama generation module for generating a panorama for each room and a panorama link for each panorama based on the image;
and the panoramic roaming scene generation module is used for generating hot spots among all the rooms according to the center coordinates of each room, the house type data and the panoramic image corresponding to each room so as to obtain the panoramic roaming scene of the house and the panoramic roaming link corresponding to the panoramic roaming scene.
9. A computer device, characterized in that the computer device comprises a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the method of generating panoramic roaming of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of generating panoramic roaming of any one of claims 1 to 7.
CN202111272535.0A 2021-10-29 2021-10-29 Panoramic roaming generation method and device and computer equipment Pending CN113989468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111272535.0A CN113989468A (en) 2021-10-29 2021-10-29 Panoramic roaming generation method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111272535.0A CN113989468A (en) 2021-10-29 2021-10-29 Panoramic roaming generation method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN113989468A true CN113989468A (en) 2022-01-28

Family

ID=79744396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111272535.0A Pending CN113989468A (en) 2021-10-29 2021-10-29 Panoramic roaming generation method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN113989468A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693895A (en) * 2022-03-24 2022-07-01 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium
CN114945090A (en) * 2022-04-12 2022-08-26 阿里巴巴达摩院(杭州)科技有限公司 Video generation method and device, computer readable storage medium and computer equipment
CN115358692A (en) * 2022-06-27 2022-11-18 五八畅生活(北京)信息技术有限公司 Interactive method and device for online training, electronic equipment and storage medium
CN115880464A (en) * 2022-11-25 2023-03-31 如你所视(北京)科技有限公司 Method for generating online house-watching video data, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915374A (en) * 2015-04-27 2015-09-16 厦门理工学院 Tourist attraction 360-degree panoramic construction system and method
CN108830692A (en) * 2018-06-20 2018-11-16 厦门市超游网络科技股份有限公司 Long-range panorama sees room method, apparatus, user terminal, server and storage medium
CN109525674A (en) * 2018-11-27 2019-03-26 上海简家信息技术有限公司 A kind of system and method making house panorama sketch
CN109960850A (en) * 2019-02-20 2019-07-02 江苏艾佳家居用品有限公司 A kind of method and system calculating indoor panorama sketch collection point and roof lamps and lanterns layout
CN110869888A (en) * 2017-09-29 2020-03-06 Eyexpo 科技有限公司 Cloud-based system and method for creating virtual navigation
CN113393572A (en) * 2021-06-17 2021-09-14 北京千丁互联科技有限公司 Point cloud data generation method and device, mobile terminal and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104915374A (en) * 2015-04-27 2015-09-16 厦门理工学院 Tourist attraction 360-degree panoramic construction system and method
CN110869888A (en) * 2017-09-29 2020-03-06 Eyexpo 科技有限公司 Cloud-based system and method for creating virtual navigation
CN108830692A (en) * 2018-06-20 2018-11-16 厦门市超游网络科技股份有限公司 Long-range panorama sees room method, apparatus, user terminal, server and storage medium
CN109525674A (en) * 2018-11-27 2019-03-26 上海简家信息技术有限公司 A kind of system and method making house panorama sketch
CN109960850A (en) * 2019-02-20 2019-07-02 江苏艾佳家居用品有限公司 A kind of method and system calculating indoor panorama sketch collection point and roof lamps and lanterns layout
CN113393572A (en) * 2021-06-17 2021-09-14 北京千丁互联科技有限公司 Point cloud data generation method and device, mobile terminal and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114693895A (en) * 2022-03-24 2022-07-01 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium
CN114693895B (en) * 2022-03-24 2023-03-03 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium
CN114945090A (en) * 2022-04-12 2022-08-26 阿里巴巴达摩院(杭州)科技有限公司 Video generation method and device, computer readable storage medium and computer equipment
CN115358692A (en) * 2022-06-27 2022-11-18 五八畅生活(北京)信息技术有限公司 Interactive method and device for online training, electronic equipment and storage medium
CN115880464A (en) * 2022-11-25 2023-03-31 如你所视(北京)科技有限公司 Method for generating online house-watching video data, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113989468A (en) Panoramic roaming generation method and device and computer equipment
CN109547766B (en) Panoramic image generation method and device
EP3534336B1 (en) Panoramic image generating method and apparatus
CN106548516B (en) Three-dimensional roaming method and device
CN106157354B (en) A kind of three-dimensional scenic switching method and system
JP7261904B2 (en) IMAGE PROCESSING METHOD AND DEVICE, DEVICE, AND STORAGE MEDIUM
CN103157281B (en) Display method and display equipment of two-dimension game scene
CN113610981A (en) Face model generation method, interaction method and related device
KR20140100656A (en) Point video offer device using omnidirectional imaging and 3-dimensional data and method
JP2008530676A (en) Storing information for access using acquired images
CN109640070A (en) A kind of stereo display method, device, equipment and storage medium
JP6768123B2 (en) Augmented reality methods and equipment
CN108043027B (en) Storage medium, electronic device, game screen display method and device
CN113112581A (en) Texture map generation method, device and equipment for three-dimensional model and storage medium
JP2019128641A (en) Image processing device, image processing method and program
CN109255809A (en) A kind of light field image depth estimation method and device
CN108846900B (en) Method and system for improving spatial sense of user in room source virtual three-dimensional space diagram
CN111669564A (en) Image reconstruction method, system, device and computer readable storage medium
CN111273878A (en) Video playing method and device based on CAVE space and storage medium
CN104935866B (en) Realize method, synthesis device and the system of video conference
CN112973121B (en) Reflection effect generation method and device, storage medium and computer equipment
KR20190061783A (en) Method and program for generating virtual reality contents
KR20140010708A (en) Apparatus and method for generating texture for three dimensional mesh model of target object
CN110349504A (en) A kind of museum guiding system based on AR
KR102105510B1 (en) Server, method and user device for providing time slice video

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