Image processing method, apparatus, and computer-readable storage medium
The image processing method improves virtual roaming technology by using neural networks for door detection and structure analysis in panoramic images, enhancing the accuracy and efficiency of door information display and floor plan generation.
Patent Information
- Application Number
- JP2024035397
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-03-07
AI Technical Summary
Existing virtual roaming technologies provide limited and inaccurate information about door locations and structures in panoramic images, necessitating on-site inspections and reducing efficiency in applications like online real estate and digital interior design.
An image processing method that includes door detection and structure detection in panoramic images using deep learning neural networks to identify door information, generate panoramic and planar signs indicating door outlines, types, and opening methods, and create accurate two-dimensional floor plans.
Enhances the accuracy and efficiency of image processing by providing richer information about door locations and structures, enabling more precise virtual navigation and floor plan generation.
Smart Images

Figure 2024127872000001
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of image processing, in particular to an image processing method, apparatus and computer readable storage medium for processing a panoramic image. More specifically, the image processing method of the present invention relates to a method for identifying matching door candidates among a plurality of rooms in a panoramic image and displaying door signs, and a method for generating samples for training a deep learning based neural network. [Background technology]
[0002] Virtual roaming is an important part of Virtual Reality (VR) technology, and it spans many industries, including architecture, travel, gaming, aerospace, and medicine. The combination of virtual scene construction and virtual roaming technologies allows users to autonomously roam in three-dimensional scenes, such as buildings, cities, or game scenes, and intuitively feel the scene. In recent years, businesses such as online real estate and digital interior design have grown significantly, and virtual roaming technology has been widely used in related fields. This technology enables virtual navigation of buildings and rooms, and can also generate corresponding floor plans so that customers can easily view the entire building or specific interior spaces online.
[0003] However, the information provided to customers using existing virtual roaming is still limited and in some cases can be inaccurate, often requiring customers to conduct site surveys, which also negatively impacts floor plan generation.
[0004] Therefore, there is a need for improved image processing methods and apparatus for processing panoramic images. Summary of the Invention [Problem to be solved by the invention]
[0005] In view of the above circumstances, the present invention provides the following image processing method, apparatus, and computer-readable storage medium in order to solve or ameliorate at least the above problems in the prior art. [Means for solving the problem]
[0006] One aspect of the present invention provides an image processing method including: acquiring a panoramic image of a room; performing door detection on the panoramic image to identify first information about at least one door in the room; and displaying, based on the first information, a panoramic sign in the panoramic image for the at least one door, the sign indicating at least a door contour, a door type, and an opening method for each door.
[0007] According to an embodiment of the present invention, the method further includes identifying second information regarding structural aspects of the room by performing structural detection on the panoramic image; generating a two-dimensional floor plan of the room based on the second information; and displaying, for at least one door, a planar sign indicating at least a two-dimensional door representation, a door type, and an opening method in the two-dimensional floor plan based on the first information and the second information.
[0008] According to an embodiment of the present invention, generating the two-dimensional floor plan includes generating a three-dimensional representation of the room in a three-dimensional spatial coordinate system based on the second information; and transforming the three-dimensional representation into a two-dimensional planar coordinate system to generate the two-dimensional floor plan of the room.
[0009] According to an embodiment of the present invention, displaying a planar sign for at least one door in the two-dimensional plan view includes: for each door, based on the first information and the second information, projecting the two-dimensional door representation perpendicularly onto an edge corresponding to a corresponding structural surface in the two-dimensional plan view of the room to generate an alternative two-dimensional representation; and displaying the alternative two-dimensional representation as a two-dimensional door representation in the two-dimensional plan view for each door.
[0010] According to an embodiment of the present invention, the method further includes: for at least one door in the panoramic image, before displaying a panoramic sign or a planar sign for each door, determining a distance between each representative point of the at least one door and a corresponding structural surface based on the first information and the second information; and removing a door whose distance does not meet a threshold range from the at least one door. According to an embodiment of the present invention, the panoramic or planar sign of each of the at least one door further indicates the types of rooms on either side of said door.
[0011] According to an embodiment of the present invention, door detection and structure detection are performed using deep learning based neural networks.
[0012] Another aspect of the present invention provides a method for training a neural network for the above-mentioned image processing method, the method comprising: performing a spatial transformation on a panoramic image to generate a plurality of sample panoramic images having different angles from the panoramic image; and training the neural network using the plurality of sample panoramic images.
[0013] Yet another aspect of the present invention provides an image processing method including: acquiring a plurality of panoramic images of a predetermined room in a building; performing door detection for each of the plurality of panoramic images to identify first information of at least one door in the predetermined room; performing structural detection for each of the plurality of panoramic images to identify second information of a structural aspect of the predetermined room; generating a plurality of room floor plans associated with rooms in the building based on the first information and the second information, the room floor plans including indications indicating at least one of a door indication, a door type, a way of opening, and room types on both sides of the door, for each of the at least one door in the predetermined room; and performing matching for a plurality of inter-room doors based on each of the plurality of room floor plans to determine matching door candidates.
[0014] According to an embodiment of the present invention, the method further includes stitching the room plans together based on the matching door candidates to generate an architectural floor plan of the building.
[0015] Yet another aspect of the present invention provides an image processing device including: an acquisition means for acquiring a panoramic image of a room; a detection means for performing door detection on the panoramic image to determine first information related to at least one door in the room; and a display means for displaying, in the panoramic image based on the first information, a panoramic sign indicating at least the door outline, the door type and how to open the door, for each door.
[0016] Yet another aspect of the present invention provides an image processing device comprising a processor and a memory in which computer program instructions are stored, the computer program being executed by the processor to realize the steps of acquiring a panoramic image of a room; performing door detection on the panoramic image to identify first information about at least one door in the room; and displaying, based on the first information, a panoramic sign indicating at least a door contour, a door type, and an opening method for each of the at least one door in the panoramic image.
[0017] Yet another aspect of the present invention provides a computer-readable storage medium having a computer program stored therein, the storage medium implementing the steps of acquiring a panoramic image of a room; performing door detection on the panoramic image to identify first information about at least one door in the room; and displaying, based on the first information, a panoramic sign indicating at least a door contour, a door type, and an opening method for each of the at least one door in the panoramic image. Effect of the Invention
[0018] The image processing method, image processing device and computer-readable storage medium of the present invention can provide richer and more accurate information to a user by identifying each door in a room in a panoramic image based on the information identified by performing door detection. The method of the present invention also provides information and identifies door candidates for generating a floor plan, so that the floor plan of the entire building can be generated more accurately and the efficiency and accuracy of the image processing are significantly improved. Furthermore, the present invention provides a method for training a neural network for performing the above method, so that the accuracy of the image processing method can be further improved. [Brief description of the drawings]
[0019] The above and other objects, features, and advantages of the present invention will become more apparent by the following detailed description of the embodiments of the present invention with reference to the accompanying drawings. These drawings are used for a better understanding of the embodiments of the present invention, and are used to explain the present invention together with the embodiments as a part of the specification, but are not intended to limit the present invention. In the drawings, the same reference numerals indicate the same parts or steps. [Figure 1] FIG. 1 is a flowchart showing an example of an image processing method according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram illustrating a panoramic image associated with a room according to an embodiment of the present invention. [Diagram 3] FIG. 3 is a diagram illustrating displaying a panoramic sign on a panoramic image according to an embodiment of the present invention. [Figure 4] FIG. 4 is a flowchart showing another example of an image processing method according to an embodiment of the present invention. [Diagram 5] FIG. 5 is a diagram illustrating displaying a planar sign on a two-dimensional plan view according to an embodiment of the present invention. [Figure 6] FIG. 6 is a diagram showing a door that is erroneously detected in a panoramic image according to an embodiment of the present invention. [Figure 7] FIG. 7 is a diagram illustrating the generation of a number of sample panoramic images according to an embodiment of the present invention. [Figure 8] FIG. 8 is a flowchart showing another example of an image processing method according to an embodiment of the present invention. [Figure 9] FIG. 9 is a diagram illustrating a top view stitched together based on matching gate candidates according to an embodiment of the present invention. [Figure 10] FIG. 10 is a block diagram showing an example of an image processing apparatus according to an embodiment of the present invention. [Figure 11] FIG. 11 is a block diagram showing another example of an image processing apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of an image processing method, an image processing device, and a computer-readable recording medium according to the present invention will be described with reference to the accompanying drawings.
[0021] All other embodiments that a person skilled in the art can easily conceive based on the embodiments described in the present invention are included in the scope of protection of the present invention. In addition, the embodiments described in the present invention are only some of the exemplary embodiments of the present invention, and are not all of them. These embodiments are merely illustrative and do not limit the scope of the present invention. In addition, for the sake of simplicity and clarity, detailed descriptions of functions and structures well known in the art will be omitted, and redundant descriptions of steps and components will be omitted.
[0022] First, a basic flow of an image processing method according to an embodiment of the present invention will be described in detail with reference to Fig. 1. As shown in Fig. 1, the image processing method includes a step S101 of acquiring a panoramic image associated with a room.
[0023] According to an embodiment of the present invention, in this step, the panoramic image can be obtained from an external source such as a server or an internal source such as a local storage via a wired or wireless manner, or can be captured by an image capture device such as a camera to obtain the panoramic image, but is not limited thereto. Note that the "panoramic image" in the present invention refers to an image captured by a device such as a panoramic camera or a wide-angle camera, or an image having a wide viewing angle range (e.g., a viewing angle range of 120 degrees or more) by synthesis, and is distinguished from a normal image captured by a standard lens or a perspective image captured by a perspective mapping method. In addition, the panoramic image obtained in this step can be a grayscale or color original image, or an image obtained by performing various image pre-processing such as cutting, enlarging / reducing, calibrating, or transforming the original image, but is not limited thereto.
[0024] In addition, in the embodiment of the present invention, a panoramic image of a room refers to a panoramic image showing a scene in the room, for example, a panoramic image that can display a scene of the room in a 360-degree angle of view range taken in the room (for example, at the center of the room).
[0025] For convenience of explanation, a residential house and its rooms are described as an example in the embodiment, but the term "room" used in the present invention has a broader meaning, and is not limited to referring to the space inside a house, but includes the indoor space or enclosed area of any building and place (e.g., an office building or a department store) according to a specific application.
[0026] After acquiring the panoramic image of the room, the process proceeds to step S102, where door detection is performed on the panoramic image to identify first information about at least one door in the room.
[0027] According to an embodiment of the present invention, door detection is performed on the panoramic image acquired in this step. Specifically, the panoramic image of the room includes multiple doors. For example, FIG. 2 shows a floor plan of the panoramic image of the room according to an embodiment of the present invention. As shown in FIG. 2, six doors are shown in the current room. Each door has its own position, size (e.g., width, height, thickness, etc.), door type (e.g., hinged door, sliding door, accordion door, or door), and opening method (e.g., left / right to in / out rotation to open, push left / right, fold up / down / left / right, or more simply, open left / right or open in / out, etc.). Also, each side of the door leads to a room of a certain type (e.g., the room inside the door is the living room, and the room outside the door is the kitchen). In an embodiment of the present invention, the image processing method based on door detection is performed on the panoramic image, and the above information or at least an information set including the above information on the doors of each room in the panoramic image is identified. It should be noted that the above description is merely illustrative and not limiting. In another embodiment of the present invention, the door type may include other types such as the open state of the door (e.g., closed, slightly open, half open, almost fully open and open, etc.), or the material of the door (e.g., wood or glass, etc.), or the purpose (e.g., fire protection or thermal insulation, etc.) In the present invention, the above various information about the doors in the room is referred to as first information.
[0028] For example, in the embodiment of the present invention, door detection may include detecting corner coordinates (e.g., coordinates of corner points located at the corners of the door frame) for each door, thereby determining the position and dimensions of the door; and considering that the doors are in different states when opened and closed, even if the door features are the same, they will show certain differences according to the door states, and the differences are usually closely related to the door type and are specific to the door type. Therefore, door detection may include identifying feature elements related to the shape, position, dimensions, etc. of the room door or specific parts for each room door, thereby determining the type of the room door, the opening method, and the switch state; and further, extracting and identifying the scene images inside and outside the door, thereby determining the type of rooms connected to each side of the door of each room. In addition, according to the embodiment of the present invention, the door image is identified and classified by a classification type based on a neural network, thereby determining information such as the opening state and opening direction of the door. In practical applications, any known or future door detection method may be applied according to a specific scene to determine the first information, and is not limited here.
[0029] For convenience, the embodiment uses a door as an example to describe the "gate", but the "gate" described in the present invention is not limited to the door of a room, but has a broader meaning, and includes a window, a cabinet door, a gate, etc. of a room, as well as any room element that meets a predetermined size and shape according to actual application.
[0030] After identifying the first information associated with the door in the room, the method proceeds to step S103, where a panoramic sign is displayed on the door in the panoramic image based on the identified first information. The displayed panoramic sign indicates at least the door outline, the door type, and the opening method of the door.
[0031] According to an embodiment of the present invention, in this step, a panoramic sign indicating a door contour, a door type, and an opening method is displayed for each door in the panoramic image based on the first information about the doors. For example, as described above, door detection can be performed on the panoramic image to identify the location and dimensions of the door. Also, for example, corners of the door frame / door panel can be detected to extract the contour of an area corresponding to the door in the panoramic image, such as the contour of the door frame, the contour of the door panel, or a combination or at least a part thereof (i.e., the contour of the door).
[0032] In addition, according to the embodiment of the present invention, considering that the wide-angle lens causes distortion in the panoramic image, and the degree of distortion is more severe in the peripheral areas of the image (e.g., the polar regions near the ceiling and floor in the panoramic image), the distortion of the panoramic image can be incorporated into the display of the door contour, rather than simply identifying the area where the door is located based on the corner coordinates. In other words, by introducing the distortion factor of the panoramic image, the door contour line can be curved in the direction of the distortion according to the degree of distortion of the panoramic image. For example, as shown in FIG. 2, the door contour is displayed as a curved polygon in the panoramic image, so that the contour line (i.e., the side of the curved polygon) indicating the door fits the deformed door in the panoramic image. This method allows the user to see the shape and area of each door more accurately from the panoramic image, and does not cause overlapping display of information.
[0033] In addition, according to the embodiment of the present invention, in order to fit more information on the panoramic sign, the corresponding door type can be displayed using different colored outlines. Also, the opening method can be displayed along a line extending perpendicularly to the bottom edge of the door or the bottom edge of the door frame from a corner point on the door axis toward the door opening direction (inward or outward). Furthermore, the room types on both sides of the door can be displayed using different symbols with the door as a boundary. Incidentally, the display of the information on the panoramic sign is displayed by symbols or characters in the area adjacent to the door (for example, within the area where the door is located or along the door frame). The above description is merely exemplary and not limiting. In another embodiment, a part of the above information may be displayed, or information on more doors may be displayed. Also, the opening method of the door may be displayed by color and the door type may be displayed by characters, or a combination of both.
[0034] For example, as shown in FIG. 2, the leftmost door in the panoramic image is taken as an example, and the panoramic sign includes a door outline 201 shown with a specific line type, for example, a dashed line indicates that the door is a hinged door. Also, the door type is indicated with a different color. Also, the opening direction of the door is indicated with a line 202 extending inward. Furthermore, as an option, the door is used as a boundary line, and vertical lines (e.g., line segment 203 in FIG. 2) with different gradations / colors on both sides of the door indicate the room types on both sides of the door. For example, in this example, a dark line inside the door indicates that the room type inside the door is a living room, and a light line outside the door indicates that the room type outside the door is a kitchen. Also, a specific room type may be indicated with different line types. Note that in the example of FIG. 2, a character (e.g., text frame 204 in FIG. 2) is displayed near the door outline to display the state of the door or other information, thereby indicating to the user a more specific door opening method together with the opening direction of the door indicated by the line 202.
[0035] According to the above method, the panoramic sign displayed on the panoramic image displays various types of door-related information together, thereby providing the user with richer and more intuitive information.
[0036] 3(a) and 3(b) are diagrams showing panoramic signs in a panoramic image according to an embodiment of the present invention, showing a plurality of examples of panoramic signs. As shown in FIG. 3(a), the door outlines of the panoramic sign indicate the positions of the window on the left side of the panoramic image and the two doors on the right side in the room, the door outlines of the corresponding windows and doors are shown as curved polygons, and the color of the door outlines indicates that the door types of the corresponding windows and doors are window or hinged doors, respectively. In addition, the lines 301 and 302 of the panoramic sign indicate that the door opens to the right inside. As an option, the lines 303 and 304 of the panoramic sign indicate the room types on both sides of the two doors. Since these two doors are in the same room, the rooms inside the doors are of the same type. Note that in the embodiment of the present invention, when the door type indicated by the panoramic sign is a door type such as a window or a cabinet door that does not connect to a room on the outside, the display of the room types on both sides (or at least one side) of the door may be omitted.
[0037] Also, in some scenes, the door may be completely closed or slightly open, so the door open / close type may not be determined by identifying the door's characteristic elements (e.g., hinges or rails). In this case, as described above, the door type may be displayed by another type including the door type. For example, as shown in FIG. 3(b), the panoramic sign sequentially displays the door types of each door from left to right, respectively: sliding door, closed door, slightly open door, and closed door. In this example, the predicted location of the door when it is closed is also provided to the user by showing the expected location of the door when it is completely closed with a dotted line.
[0038] The above embodiment has described the process of displaying a panoramic sign for a door in a panoramic image with reference to Figures 1 to 3. According to the above embodiment, it is possible to intuitively provide a user with abundant and accurate information in a panoramic image.
[0039] In addition, in order to provide the user with more information about the room so that the user can switch between the panoramic image and a plan view (e.g., an overhead plan view or a floor plan) and compare them, the image processing method according to the preferred embodiment of the present invention further includes a process of displaying a planar sign for the door in the two-dimensional plan view. The basic flow of this process will be described in detail with reference to FIG. 4.
[0040] As shown in FIG. 4, the image processing method includes, in step S401, a process of performing structural detection on a panoramic image to identify second information related to a structural aspect of a room.
[0041] In this step, the embodiment of the present invention performs structure detection on the panoramic image acquired in step S101. Specifically, the three-dimensional space of a room is usually formed by each structural surface of the room (including, for example, a wall, a ground, and a ceiling). The spatial features include the spatial position coordinates of the walls, ground, and ceiling constituting the room; the geometric relationship between walls, the ground, and the ceiling, which are perpendicular or parallel, and the edge positions of the boundaries. In order to generate a two-dimensional floor plan of the room, the structural detection is performed to identify these pieces of information. In the present invention, the above various pieces of information on the structural surfaces of the room are called second information. In practical applications, the second information is identified using any known or future structural detection method according to a specific scene, but the present invention is not limited thereto.
[0042] For ease of explanation, in the embodiments of the present invention, "walls, ground, and ceiling" are described as examples of structural surfaces, however, the term "structural surface" has a broader meaning and can refer to any other plane or wall in a room that has divisible characteristics.
[0043] After identifying the first information regarding the doors in the room, the process proceeds to step S402, where a two-dimensional floor plan of the room is generated based on the identified second information.
[0044] In an embodiment of the present invention, generating a two-dimensional plan view of a room includes generating a three-dimensional representation of the room in a three-dimensional spatial coordinate system based on second information about structural surfaces of the room, and converting the three-dimensional representation into a two-dimensional plane coordinate system. Thus, the two-dimensional plan view of the room is generated. Specifically, (a) to (d) of FIG. 5 are diagrams showing two-dimensional plan views of a room generated in an embodiment of the present invention. After identifying the second information about structural surfaces of the room, a three-dimensional representation of the room is constructed by performing three-dimensional reconstruction, for example, using a Horizon Net deep neural network model, to obtain the boundary lines at the side edges of each structural surface in the room, as shown in (a) of FIG. 5. Further, a plan view of the room is obtained by projecting the obtained three-dimensional representation of the room into a two-dimensional plane coordinate system parallel to the ground. As shown in (b) of FIG. 5, the two-dimensional plan view is a plan view showing the geometric shape and dimensions of the room corresponding to the panoramic image from an overhead view.
[0045] After generating the two-dimensional floor plan of the room, proceed to step S403. In that step, display plan signs for each door in the room in the generated two-dimensional floor plan based on the first information identified by the door detection and the second information identified by the structure detection, where the plan signs indicate at least the two-dimensional door representation, the door type, and the opening method.
[0046] Specifically, based on the first information about the doors in the room identified in step S102, a two-dimensional door representation of each door is identified at a corresponding position in the two-dimensional plan view of the room. For example, the three-dimensional representation of the door detected in the panoramic image is transformed into the two-dimensional coordinate system of the plan view of the room by a method similar to that in the above steps, and the two-dimensional door representation of the door is displayed in the generated two-dimensional plan view. This allows the door to show its position and size in the two-dimensional plan view. In addition, based on the identified first information, information such as the door type, opening method, and room types on both sides of the door of each door can be further displayed. As described above, the corresponding door may be displayed using a planar sign in a manner similar or corresponding to the panoramic sign. As shown in (c) of FIG. 5, a planar sign of each door is further displayed in the two-dimensional plan view. The planar sign may show the two-dimensional door representation, door type, opening method, and optionally the room types on both sides of the door of each door. This allows a floor plan of the room to be generated and provided to the user, and by repeatedly using the information identified in the door detection process to display various information about the door on the generated 2D floor plan, it makes it easier for the user to switch between and contrast the panorama and the 2D floor plan, and provides a more complete display of information about the room.
[0047] In addition, as shown in Fig. 5(c), the 2D door display on the 2D floor plan may not fit the edge of the room due to errors in corner coordinates or coordinate conversion, which may result in inaccurate information about the position and opening method of the door.
[0048] In a preferred embodiment of the present invention, displaying a planar sign on a two-dimensional floor plan of a room to optimize the two-dimensional door display of the door includes: projecting the two-dimensional door display of each door perpendicularly onto a side corresponding to a corresponding structural surface in the two-dimensional floor plan of the room based on the identified first information and second information to generate an alternative two-dimensional display. Specifically, the coordinate values of the corner points of the door and the shape of the room (i.e., the display of the wall surface) in a two-dimensional coordinate system are determined based on the first information and the second information. Thus, the two-dimensional door display is projected onto the side corresponding to the corresponding wall surface by calculating the planar coordinates, and the alternative two-dimensional display generated by the projection is superimposed on the display of the wall surface of the room, as shown in (d) of FIG. 5. Based on this, the generated alternative two-dimensional display is displayed on the two-dimensional floor plan as a two-dimensional door display of each door in the room, thereby correcting the position and opening manner of the door. In this embodiment, the "corresponding structural surface" in the two-dimensional floor plan refers to the wall surface on which the door is actually located. For example, a structural surface corresponding to each door is specified by setting rules such as the angle between the door (door frame) and the wall surface and / or the distance between the door and the wall surface.
[0049] In addition, in an embodiment of the present invention, in order to ensure that the dimensions of the door are not affected by the projection process, the width of the door is determined based on the first information, and the alternative 2D representation generated after the projection process is adjusted based on the determined width of the door. For example, the distance between the corner points of the door in the horizontal direction is calculated, and the actual width of the door is determined based on the distortion of the panoramic image or the depth information of the image, or the distance from the corner points of the door to the camera is calculated, and the actual width of the door is determined based on the trigonometric relationship. In this way, the 2D plan view is optimized and the dimensions of the door in the 2D plan view are avoided from being adversely affected by the projection process.
[0050] Also, there are cases where a door is erroneously detected. Fig. 6 shows a door that is erroneously detected in an embodiment of the present invention. As shown in Fig. 6, erroneous panorama signs 601 and 602 are displayed in the left and right edge regions of a panoramic image. Since the door described in the present invention does not exist in these regions, the door has been erroneously detected.
[0051] The image processing method according to the embodiment of the present invention further includes, before displaying a panoramic sign or a planar sign for each door in the panoramic image, specifying a distance from a representative point of each door in the room to a corresponding structural surface based on the first information and the second information, and removing a door (i.e., a misdetected door) whose specified distance is greater than a threshold value from the detected doors, for at least one door, in the panoramic image, so as to remove a misdetected door from the panoramic image and to avoid generating and displaying a misdetected panoramic sign. Specifically, as described above, the coordinates of each pixel related to the door and the coordinates of the corresponding structural surface of the door are specified from the first information and the second information. The distance from the representative point of each door to the corresponding structural surface is calculated based on the coordinate values. Preferably, the distance to the corresponding structural surface is calculated using the center point of the door as the representative point. Then, the calculated distance is compared with a preset threshold to determine whether the door is a misdetected door. If the specified distance is greater than the threshold value or falls outside the threshold range, it is determined that the door is a misdetected door, and the misdetected door is removed. This avoids displaying a sign on the misdetected door. In another embodiment, the distance from the representative point of the door to the ground or ceiling adjacent to the door can be calculated. In this case, the center point of the upper or lower side of the door frame is used as the representative point to calculate the distance to the ground or ceiling adjacent to the door, and the door whose distance does not match the threshold range is removed. In addition, suitable thresholds or range areas for different scenes can be set according to actual applications, which further improves the accuracy of image processing and information display, and improves processing efficiency.
[0052] Additionally, door detection and structure detection, or portions thereof, according to embodiments of the present invention may be performed using a deep learning based neural network. For example, as described above, a neural network based classifier may be used to identify information such as the door opening state and opening direction. The present invention also provides a method for training a neural network for performing the image processing methods described herein. Specifically, the method includes constructing a neural network by generating samples for training the neural network using the following method:
[0053] Specifically, in order to perform the various methods described in the present invention, the method of training a deep learning-based neural network generates a plurality of sample panoramic images with different viewpoints by performing a spatial transformation on a panoramic image (e.g., the panoramic image acquired in step S101). By performing a spatial transformation on the original panoramic image, the camera movement can be simulated (i.e., the camera shooting at different positions and different angles can be simulated). As a result, the generated sample target panoramic image has a different viewpoint from the original panoramic image. In this way, the training sample collection is expanded, for example, samples can be trained with the expanded image features to perform multi-view comparison learning. This provides additional information to the deep learning-based neural network, enabling the machine learning model to achieve better results in subsequent processing (or downstream tasks).
[0054] Specifically, in an embodiment of the present invention, the spatial transformation of the panoramic image includes transforming pixels in the original panoramic image into another spatial coordinate system through a predetermined mapping method, thereby obtaining an image composed of pixels in another coordinate system transformed from the pixels of the original panoramic image. For example, the original panoramic image is projected onto the surface of a three-dimensional solid shape and transformed into a three-dimensional surface image through a three-dimensional surface mapping transformation, so that the three-dimensional surface image can be translated, rotated, or a combination thereof in subsequent processing, and a predetermined region in the panoramic image can be rotated. Such a three-dimensional solid shape can be a sphere, a cube, or other solid shape formed in a three-dimensional space. Correspondingly, the three-dimensional surface mapping transformation can include a spherical mapping transformation, a cube mapping transformation, or any mapping transformation that maps a two-dimensional panoramic image onto a three-dimensional solid shape surface, etc.
[0055] In addition, in the embodiment of the present invention, the spatial transformation parameters are set to adjust the transformation for the panoramic image. For example, for an image with large distortion, the amount of translation / rotation transformation of the three-dimensional sphere may be appropriately increased to transform areas with large distortion in the original panoramic image (e.g., bipolar areas near the ceiling or floor in the panoramic image) to areas with small distortion (e.g., areas near the equator in the panoramic image), or vice versa. This generates a panoramic image with different distortion in the same area compared to the original panoramic image. This allows the results of subsequent image processing to match.
[0056] FIG. 7 is a diagram illustrating the generation of a plurality of sample panoramic images according to an embodiment of the present invention. As shown in FIG. 7, various spatial transformations are performed on the panoramic images to simulate panoramic images taken at different viewpoints due to the movement of the camera. In other words, the generated sample panoramic images have different viewpoints from the original panoramic images, and the screens corresponding to the same area have different degrees of distortion. This can provide rich image information, so that an improved model for implementing the method according to the present invention can be built by training a neural network based on deep learning with the generated sample panoramic images, and better detection, identification, and other image processing can be realized.
[0057] An embodiment in which a door-related sign is displayed in a panoramic image has been described above with reference to FIGS.
[0058] According to the above embodiments, the doors in the room can be labeled with more information in the panoramic image, and a floor plan including the labels can be generated using the various determined information. This improves the accuracy of the information and at the same time improves the efficiency of image processing. In addition, the training samples of the neural network used in image processing can be expanded by simulating the camera movement. This improves the model of improved door detection and structure detection, and further improves the accuracy of the determined information.
[0059] Another example of a flow for executing the image processing method according to the embodiment of the present invention will be described below with reference to FIGS.
[0060] First, as shown in FIG. 8, the image processing method includes, in step S801, acquiring multiple panoramic images of a given room in a building.
[0061] In this step, the embodiment of the present invention acquires multiple panoramic images in a manner similar to that used in step S101. In addition, in the embodiment of the present invention, the panoramic image of a specific room in a building refers to a panoramic image of a certain room in a building, for example, panoramic images are taken for all or some of the rooms in a building to acquire multiple panoramic images of the specific room in the building.
[0062] After acquiring the panoramic image, proceed to step S802. In step S802, perform door detection on each of the plurality of panoramic images to identify first information related to at least one door in a predetermined room; in step S803, perform structure detection on each of the plurality of panoramic images to identify second information related to the structure aspects of the predetermined room.
[0063] In the embodiment of the present invention, in the above two steps, door detection and structure detection are performed for each panoramic image to identify first information about at least one door in a specified room and second information about the structural aspects of the specified room. In addition, in steps S802 and S803, the first information and the second information are identified by applying a method similar to the door detection and structure detection method described in the above steps, and may be executed in the order shown in Fig. 8, or may be executed simultaneously, or S803 may be executed first and then S802.
[0064] After the first information and the second information are identified, proceed to step S804. Generate a room plan associated with a plurality of rooms in the building based on the identified first information and second information, the room plan including, for each door in a given room, an indication indicating at least one of a door designation, a door type, an opening manner, and a room type on either side of the door.
[0065] In the embodiment of the present invention, in the above steps, multiple room plans are generated in a manner similar to that described in FIG. 4. A sign is displayed on the room plan. The "room plan" here refers to a two-dimensional plan view of one room in a building. In addition, a "sign" is displayed in a manner similar to the above-mentioned method of displaying the planar sign to show at least one of information related to the door (e.g., door display, door type, opening method, and types of rooms on both sides of the door, etc.).
[0066] After generating the multiple room plans and displaying the signs, proceed to step S805. Based on the signs of each room plan, matching is performed on the doors between the multiple rooms to determine matching door candidates.
[0067] In the embodiment of the present invention, in this step, matching is performed for the doors of multiple rooms based on the information corresponding to the door signs in the rooms. Specifically, first, doors between rooms of the same type are identified based on the types of rooms on both sides of the door. For example, as shown in FIG. 9(a), in the floor plan of the living room, line 901 indicates that there is a living room and a kitchen on both sides of one door. Also, in the floor plan of the kitchen, line 902 indicates that there is a living room and a kitchen on both sides of one door. Therefore, it is determined that the door between these two rooms is the same, and the door is determined as a matching door candidate, as shown by the dashed line in FIG. 9(a). In this way, by initially identifying the same door between multiple rooms as a matching door candidate, it provides the user with information useful for understanding the overall structure of a building having multiple rooms, and is also useful for subsequent processes such as identifying the relationship between rooms and generating an architectural floor plan.
[0068] In addition, according to the embodiment of the present invention, it is possible to determine whether the doors between rooms match based on the size, position, type, opening manner, or a combination of these, thereby further improving the accuracy of matching. For example, if two bedrooms are adjacent to the same living room, it is possible to determine matching door candidates based on the opening manner and position of the doors, taking into consideration that the rooms adjacent to both sides of the doors of the two bedrooms are the same room type.
[0069] Furthermore, according to an embodiment of the present invention, in step S806, the image processing method includes stitching together the room plans based on the matching door candidates to generate an architectural floor plan of the building.
[0070] In the present invention, since the matching door candidates are the points that actually connect the rooms, multiple rooms are connected by doors to form the overall structure of the building. Therefore, after the matching door candidates between the rooms are determined by the above method, the connection relationship between the rooms can be specified. In the embodiment of the present invention, in this step, floor plans of rooms having the same matching door candidates are connected to generate an architectural floor plan of the entire building. For example, as shown in (b) of FIG. 9, the determined matching door candidates are used as the connection points of the two corresponding rooms, and the floor plans of the two rooms are connected to form a floor plan that combines the kitchen and living room. In this way, the floor plans of the entire room are generated by connecting all the floor plans of the multiple rooms.
[0071] Thus far, according to the image processing method of the embodiment of the present invention, the steps can identify door candidates for a building with multiple rooms to provide information and generate a floor plan, thus generating the floor plan of the entire building in a more accurate manner, and improving the efficiency and accuracy of image processing.
[0072] Next, an example of an image processing device according to the present invention will be described with reference to FIG.
[0073] Fig. 10 is a block diagram showing a configuration of an image processing device 1000 according to an embodiment of the present invention. As shown in Fig. 10, the image processing device 1000 includes an acquisition unit 1010, a detection unit 1020, and a display unit 1030. The illustrated structure is merely exemplary and is not limiting. In addition to these units, the image processing device 1000 may also include other components, but these are not related to the embodiment of the present invention and therefore will not be illustrated or described.
[0074] The details of the following operations executed by the image processing device 1000 according to the embodiment of the present invention are almost the same as those described with reference to Figures 1 to 9, so for the sake of brevity, the same parts will not be described. Below, each unit or part of the image processing device 1000 will be described one by one.
[0075] The acquisition unit 1010 acquires an original panoramic image. The specific process performed by the acquisition unit 1010 corresponds to the content of step S101 described with reference to FIG.
[0076] Specifically, in an embodiment of the present invention, the acquisition means 1010 may be an image capture device, such as a mobile phone, a camera, a video camera, or an image capture means included in such a device, and may also be a device for acquiring images captured from the image capture device or means. The acquisition means 1010 may be physically separate from other modules in the image processing device 1100, and transmits the captured images to other modules in the image processing device 1100 via wired or wireless communication. Alternatively, the acquisition means 1010 may be integrated with other modules of the image processing device 1100 or installed in the same system. Other modules or components of the image processing device 1100 receive the captured images from the acquisition means 1010 via an internal bus.
[0077] The detection unit 1020 performs door detection on the panoramic image and identifies first information related to at least one door in the room. The specific process performed by the detection unit 1020 corresponds to the content of step S102 shown in Fig. 1. In addition, the detection unit 1020 according to the embodiment of the present invention performs structure detection on the panoramic image. Here, the door detection and structure detection are performed using a neural network based on deep learning.
[0078] The display means 1030 displays a panoramic sign for each door in the panoramic image based on the first information. The panoramic sign indicates at least one of the door contour, the door type, and the opening method, and may optionally indicate the types of rooms on both sides of the door. The display means 1030 according to the embodiment of the present invention also generates a two-dimensional plan view of the room and displays a plan view sign for each door on the generated two-dimensional plan view. Furthermore, the display means 1030 according to the embodiment of the present invention removes erroneously detected doors and optimizes the two-dimensional door display for the doors.
[0079] Next, with reference to FIG. 11, another example of the image processing device of the present invention will be described.
[0080] Fig. 11 is a block diagram showing a configuration of an image processing device 1100 according to an embodiment of the present invention. As shown in Fig. 11, the image processing device 1100 includes a processor 1110 and a memory 1120. The image processing device 1100 may be a computer or a server. The illustrated configuration is merely an example and is not limited to the present invention. The image processing device 1100 may include other components in addition to these means, but these components are not related to the embodiment of the present invention and therefore will not be illustrated or described.
[0081] Note that the detailed operations performed by the image processing device 1100 according to the embodiment of the present invention are almost the same as those described with reference to Figures 1 to 9, and for the sake of brevity, detailed descriptions will be omitted. In the following, each module and component in the image processing device 1100 will be described.
[0082] The processor 1110 may be a central processing unit (CPU) or other type of processing unit having data processing and / or instruction execution capabilities, and may execute computer program instructions stored in the memory 1120 to achieve certain functions. Execution of the computer program instructions by the processor 1110 achieves the steps of: acquiring a panoramic image of a room; performing door detection on the panoramic image to identify first information about at least one door in the room; and displaying, based on the first information, a panoramic indicator in the panoramic image for the at least one door, indicating at least a door outline, a door type, and an opening method for each door.
[0083] The memory 1120 includes one or more computer program products. The computer program products are included in various computer readable storage media, such as, for example, volatile memory and / or non-volatile memory. One or more computer program instructions are stored in the computer readable storage media, and the processor 1110 executes the program instructions to realize the functions of the image processing device according to the embodiment of the present invention and / or other desired functions and / or to realize the image processing method according to the embodiment of the present invention. The computer readable storage media can also store various application programs and various data.
[0084] Next, a computer-readable storage medium according to an embodiment of the present invention will be described.
[0085] The present invention also provides a computer-readable storage medium having stored therein computer program instructions, the computer program instructions being executed by a processor to realize the steps of: acquiring a panoramic image of a room; performing door detection on the panoramic image to identify first information about at least one door in the room; and displaying, based on the first information, a panoramic sign indicating at least a door contour, a door type, and an opening method for each of the at least one door in the panoramic image.
[0086] The steps executed by the processor in the embodiment of the present invention correspond to the contents of each of the above-mentioned embodiments described with reference to Figures 1 to 9. Note that each member and module in the image processing device described above may be realized by hardware or software, or may be realized by a combination of hardware and software.
[0087] The above embodiments are merely illustrative and not limiting. In addition, a person skilled in the art may achieve the effects of the present invention by combining or merging some steps and devices from the above-described embodiments based on the present invention. Such combined and combined embodiments are also included in the present invention and will not be described one by one here. In addition, the advantages, merits, effects, etc. mentioned in the present invention are merely illustrative and not limiting, and should not be considered as being included in the embodiments of the present invention. The details of the present invention described above are merely illustrative and are for the purpose of aiding understanding and are not limiting. In addition, these details do not limit the application of the present invention.
[0088] Block diagrams of modules, devices, equipment, and systems mentioned in the present invention are merely illustrative examples. There is no requirement or implied to apply the connections, arrangements, and configurations shown in the block diagrams. Those skilled in the art may connect, arrange, and configure these modules, devices, equipment, and systems in any manner. In addition, terms such as "include," "includes," and "having" are inclusive terms meaning "including but not limited to" and may be interchangeable. In addition, the terms "or" and "and" used herein mean "and / or" and may be interchangeable, unless the context clearly indicates otherwise. In addition, the term "such as" used herein means "such as but not limited to" and may be interchangeable.
[0089] The flow diagrams of the present invention and the above method description are merely illustrative examples and are not intended to require or imply that the steps of each embodiment must be performed in the order shown. The steps shown in the above embodiments may be performed in any order. Furthermore, terms such as "then," "and," and "next" are not intended to limit the order of the steps, but are used to guide an understanding of the present invention. Furthermore, any reference to a singular element using, for example, the articles "a," "an," "the," "said," or "the" is not to be construed as limiting the element to the singular.
[0090] It should be noted that the steps and devices described in each embodiment in the specification are not limited to be performed in a specific embodiment. New embodiments can be conceived by combining parts of the steps or devices related to each embodiment based on the spirit of the present invention, and these new embodiments are also included within the scope of the present invention. In addition, the methods and functions according to the present invention include one or more operations for implementing the methods. Methods and / or operations can be interchanged without departing from the scope of the claims. In other words, unless otherwise specified, the order and / or use of operations can be modified without departing from the scope of the claims.
[0091] Each operation of the methods described above may be performed by any suitable means having the corresponding functionality, which may include various hardware and / or software components and / or modules, including, but not limited to, circuits, application specific integrated circuits (ASICs), or processors. Each of the illustrative logic blocks, modules, and circuits may be implemented or performed using general purpose processors, digital signal processors (DSPs), ASICs, field programmable gate arrays (FPGAs) or other programmable logic devices (PLDs), discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but alternatively, the processor may be any commercially available processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing equipment, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.
[0092] The steps of a method or algorithm according to the present invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may be stored in any form of tangible storage medium. Examples of storage media that may be used include random access memory (RAM), read only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, hard disks, removable disks, CD-ROMs, etc. The storage medium may be coupled to the processor such that the processor can read information from and write information to the storage medium. Alternatively, the storage medium and the processor may be integrated. A software module may be either a single instruction or multiple instructions, and may be distributed over several different code segments, among different programs, and across multiple storage media.
[0093] Thus, a computer program product can perform the operations described herein. For example, such a computer program product is a computer-readable tangible medium having instructions tangibly stored (and / or encoded) thereon. The instructions are executed by one or more processors to perform the operations described above. The computer program product may be included in a package. The software or instructions are transmitted over a transmission medium. For example, the software is transmitted from a website, a server, or other remote source using a transmission medium such as coaxial cable, fiber optic cable, twisted wire, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, microwave, and the like.
[0094] The modules and / or other suitable means for performing the above-described methods and techniques may be downloaded and / or otherwise obtained by the user terminal and / or base station as appropriate. For example, such equipment may be connected to a server to provide for the transmission of the means for performing the above-described methods. Alternatively, the above-described methods may be provided via storage means (e.g. physical storage media such as RAM, ROM, CD or floppy) and the user terminal and / or base station may obtain the above-described methods when coupled to or providing the storage means to the equipment. Furthermore, any other suitable technology may be used to provide the above-described methods and techniques to the equipment.
[0095] Other examples and implementations are within the scope and spirit of the present invention and the claims. For example, due to the nature of software, the functions described above may be implemented by software executed by a processor, hardware, firmware, hardwire, or any combination thereof. Features implementing the functions may be located in various physical locations. This includes functions distributed such that portions of the functions are implemented in different physical locations. As used herein and in the claims, the word "or" used in a list preceding "at least one" refers to a disjunctive list, e.g., the list "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, "exemplary" does not imply that the described example is preferred or preferable over other examples.
[0096] Various changes, substitutions and alterations to the techniques described above may be made without departing from the limitations of the claims. Furthermore, the scope of the claims is not limited to the specific processes, machines, manufacture, combinations of events, means, methods and acts described above. Any processes, machines, manufacture, combinations of events, means, methods and acts now known or later developed that perform substantially the same functions or achieve substantially the same results as those described herein may be utilized. Thus, the scope of the claims includes any processes, machines, manufacture, combinations of events, means, methods or acts that fall within their scope.
[0097] The above description is provided to enable one skilled in the art to use or practice the invention, and various modifications to the description will be apparent to those skilled in the art, and the generic principles defined herein may be applied elsewhere without departing from the scope of the invention.
[0098] Thus, the present invention is not limited to the above description, but is to be accorded the widest scope consistent with the concept and novel features of the invention.
[0099] The above description has been presented for purposes of illustration and description, but not of limitation. Modifications, additions, permutations and subcombinations of the embodiments described above will occur to those skilled in the art.
Claims
1. 1. A computer-implemented image processing method, comprising: Obtain a panoramic image of the room; performing door detection on the panoramic image to identify first information regarding at least one door in the room; and displaying a panoramic sign indicating at least a door outline, a door type, and an opening method for each of the at least one doors in the panoramic image based on the first information; An image processing method comprising:
2. performing structural detection on the panoramic image to identify second information related to structural aspects of the room; generating a two-dimensional floor plan of the room based on the second information; and displaying, for each of the at least one doors, at least a two-dimensional door representation, a planar sign indicating a door type and an opening method in the two-dimensional plan view based on the first information and the second information; The image processing method of claim 1 , further comprising:
3. generating a two-dimensional floor plan of the room, generating a three-dimensional representation of the room in a three-dimensional spatial coordinate system based on the second information; and transforming said three-dimensional representation into a two-dimensional planar coordinate system to generate a two-dimensional floor plan of said room; 3. The image processing method according to claim 2, further comprising:
4. Displaying a planar sign for each of the at least one doors in the two-dimensional plan view includes: projecting, for each of the doors, a two-dimensional door representation perpendicularly onto a side corresponding to a corresponding structural surface in the two-dimensional floor plan of the room to generate an alternative two-dimensional representation based on the first information and the second information; and displaying the alternative two-dimensional representations as two-dimensional door representations on the two-dimensional plan view for each of the doors; 4. The image processing method according to claim 3, further comprising:
5. before displaying a panoramic sign or a planar sign for each of the at least one doors in the panoramic image, determining a distance from each representative point of the at least one door to a corresponding structural surface based on the first information and the second information; and removing from said at least one door any door for which said distance does not meet a threshold range; The image processing method according to claim 2 , further comprising:
6. the panoramic or planar sign of each of said at least one door further indicates the types of rooms on either side of said door; The image processing method according to claim 1 .
7. The door detection and the structure detection are performed using a neural network based on deep learning. The image processing method according to claim 2 .
8. A neural network training method for use in training a deep learning based neural network according to claim 7, comprising: performing a spatial transformation on the panoramic image to generate a plurality of sample panoramic images having different viewpoints from the panoramic image; and training the neural network using the plurality of sample panoramic images; A method for training a neural network comprising:
9. acquiring multiple panoramic images of a given room in a building; performing door detection for each of the plurality of panoramic images to identify first information related to at least one door in the predetermined room; performing structural detection for each of the plurality of panoramic images to identify second information related to a structural aspect of the predetermined room; generating a plurality of room plans for rooms in the building based on the first information and the second information, the room plans including indicators indicating at least one of a door designation, a door type, an opening direction, and room types on either side of the door for the at least one door in a given room; and performing matching for doors between the plurality of rooms based on each of the plurality of room floor plans, and determining matching door candidates; An image processing method comprising:
10. stitching the room plans together based on the matching door candidates to generate an architectural plan of the building; The image processing method according to claim 9 , further comprising:
11. an acquisition means for acquiring a panoramic image relating to a room; detection means for performing door detection on the panoramic image to identify first information regarding at least one door in the room; and a display means for displaying, in the panoramic image based on the first information, a panoramic sign indicating at least a door outline, a door type, and an opening method for each of the at least one doors; 2. An image processing device comprising:
12. A processor and a memory in which a computer program is stored, The computer program is executed by the processor, Obtain a panoramic image of the room; performing door detection on the panoramic image to identify first information regarding at least one door in the room; and displaying a panoramic sign indicating at least a door outline, a door type, and an opening method for each of the at least one doors in the panoramic image based on the first information; An image processing device in which the steps are realized.
13. 1. A computer-readable storage medium, comprising: A computer program is stored, and when the computer program is executed, Obtain a panoramic image of the room; performing door detection on the panoramic image to identify first information regarding at least one door in the room; and displaying a panoramic sign indicating at least a door outline, a door type, and an opening method for each of the at least one doors in the panoramic image based on the first information; The storage medium on which the steps are realized.
14. A program for causing a computer to execute the image processing method according to any one of claims 1 to 7, the neural network training method according to claim 8, or the image processing method according to claim 9 or 10.
Citation Information
Patent Citations
Information processing device, information processing method, and program
JP2018081548A
Image matching method and device, and computer-readable storage medium
JP2022022190A
Method for wall line determination, method, apparatus, and device for spatial modeling
US20210127060A1
