Floor map generation method and device, storage medium and electronic device

By automating the processing of floor plan data and anomaly detection, the problems of frequent manual intervention and time-consuming floor plan generation were solved, and efficient and automated floor plan generation was achieved.

CN115344933BActive Publication Date: 2025-10-03BEIJING SOUFUN SCI & TECH DEV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211070295.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-02
Publication Date
2025-10-03
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

Existing floor map generation methods require a lot of manual intervention, are time-consuming and inefficient, and cannot efficiently generate floor maps in batches.

Method used

By automatically processing floor plan data, floor plan splicing information is generated, and floor plans are automatically spliced ​​based on preset rules and anomaly detection strategies, reducing manual intervention.

Benefits of technology

The automation of floor map generation is realized, which saves human resources, shortens generation time and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344933B_ABST
    Figure CN115344933B_ABST
Patent Text Reader

Abstract

The present invention provides a floor map generation method and device, storage medium, and electronic device. The method includes: determining multiple building units corresponding to a target floor and multiple floor plans corresponding to each building unit; determining floor plan data corresponding to each floor plan; determining floor plan splicing information corresponding to each floor plan based on the floor plan data corresponding to each floor plan; for each building unit, generating a unit map based on each floor plan corresponding to the building unit and its corresponding floor plan data; determining unit splicing information corresponding to each unit map; splicing each unit map according to a preset unit splicing rule and each unit splicing information to obtain a spliced ​​map; performing anomaly detection on the spliced ​​map; if the spliced ​​map passes the anomaly detection, generating a floor map corresponding to the spliced ​​map as the floor map of the target floor. Application of the method of the present invention can realize the automatic generation of floor maps, reduce manual intervention, and improve efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a floor map generation method and device, a storage medium and an electronic device. Background Art

[0002] In real estate and related fields, floor plans are often used as part of real estate information. Floor plans are images that depict the distribution of all apartment types on a specific floor of a building and are a key resource for providing real estate information services.

[0003] Currently, when drawing a floor plan, designers usually refer to the outer contours of the apartment, set the apartment positions based on experience, and generate a floor plan according to the manually set apartment positions.

[0004] In real-world production scenarios, however, buildings often involve numerous floors, often requiring batch generation of floor plans. Existing floor plan generation methods require manual intervention to determine the location of each floor plan, consuming significant human resources and taking a long time, resulting in low floor plan generation efficiency. Summary of the Invention

[0005] In view of this, an embodiment of the present invention provides a floor plan generation method to solve the problem that manual intervention is required to splice the apartment types on the floor plan, which consumes a lot of human resources, is time-consuming and inefficient.

[0006] The embodiment of the present invention further provides a floor map generating device to ensure the practical implementation and application of the above method.

[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0008] A floor map generation method, comprising:

[0009] When a floor map of a target floor needs to be generated, determining a plurality of building units corresponding to the target floor, and determining a plurality of floor plans corresponding to each of the building units;

[0010] Determining floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan;

[0011] Determining the apartment splicing information corresponding to each apartment plan based on the apartment plan data corresponding to each apartment plan; each apartment splicing information includes position data of building component elements on the outer contour of the corresponding apartment plan and the splicing angle of the apartment plan;

[0012] For each of the building units, generating a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and the floor plan data corresponding to each floor plan corresponding to the building unit;

[0013] Determining unit splicing information corresponding to each unit diagram; each unit splicing information includes position data of building component elements on the outer contour of the corresponding unit diagram and a splicing angle of the unit diagram;

[0014] According to a preset unit splicing rule and each unit splicing information, each unit graph is spliced ​​to obtain a spliced ​​graph;

[0015] Performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy;

[0016] If the spliced ​​image passes the anomaly detection, a floor map corresponding to the spliced ​​image is generated, and the floor map corresponding to the spliced ​​image is used as the floor map of the target floor.

[0017] Optionally, in the above method, determining the floor plan data corresponding to each floor plan includes:

[0018] Extracting initial image data corresponding to each of the floor plans; the initial image data corresponding to each of the floor plans includes initial vector data corresponding to each building component element in the floor plan;

[0019] For each initial vector data in each of the initial image data, performing data preprocessing on the initial vector data according to a preset data preprocessing strategy, and using the processing result as the vector data of the building component element corresponding to the initial vector data;

[0020] For each of the floor plans, the vector data of each building component element in the floor plan is combined into floor plan data corresponding to the floor plan.

[0021] Optionally, the above method generates a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and floor plan data corresponding to each floor plan corresponding to the building unit, including:

[0022] Each floor plan corresponding to the building unit is used as the target floor plan;

[0023] According to the preset apartment splicing rules and the apartment plan data corresponding to each target apartment plan, each target apartment plan is spliced ​​together to obtain an initial unit plan; the initial unit plan includes each target apartment plan that has been spliced ​​together;

[0024] Detect whether there is a target floor plan with splicing abnormalities in the initial unit map;

[0025] If there is no target floor plan with splicing abnormality in the initial unit map, the initial unit map is used as the unit map corresponding to the building unit.

[0026] The above method may optionally further include:

[0027] If there is a target floor plan with a splicing abnormality in the initial unit map, floor plan splicing abnormality information is determined based on the target floor plan with a splicing abnormality in the initial unit map, and the floor plan splicing abnormality information is fed back to the user.

[0028] In the above method, optionally, performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy includes:

[0029] Detecting whether the spliced ​​image meets the preset non-overlapping condition of the floor plan;

[0030] If the spliced ​​image meets the non-overlapping condition of the floor plan, detecting whether the spliced ​​image meets the preset integrity condition;

[0031] If the spliced ​​image meets the integrity condition, then detecting whether the spliced ​​image meets a preset outer contour qualification condition;

[0032] If the spliced ​​image meets the outer contour qualification condition, it is determined that the spliced ​​image passes the anomaly detection.

[0033] Optionally, in the above method, generating a floor map corresponding to the spliced ​​map includes:

[0034] Determine the outer contour corresponding to the spliced ​​image according to a preset convex hull algorithm;

[0035] According to the outer contour corresponding to the mosaic image, vector data synthesis processing is performed on the mosaic image to obtain a synthetic image, and the synthetic image is used as the floor image corresponding to the mosaic image.

[0036] The above method may optionally further include:

[0037] Generate a splicing log corresponding to the floor map of the target floor, and feed back the splicing log to the user.

[0038] A floor map generating device, comprising:

[0039] A first determining unit is configured to, when it is necessary to generate a floor map of a target floor, determine a plurality of building units corresponding to the target floor, and determine a plurality of floor plans corresponding to each of the building units;

[0040] A second determining unit is configured to determine floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan;

[0041] A third determining unit is configured to determine, based on the floor plan data corresponding to each floor plan, floor plan splicing information corresponding to each floor plan; each floor plan splicing information includes position data of building component elements on the outer contour of the corresponding floor plan and a splicing angle of the floor plan;

[0042] A first generating unit is configured to generate, for each of the building units, a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and floor plan data corresponding to each floor plan corresponding to the building unit;

[0043] a fourth determining unit, configured to determine unit splicing information corresponding to each of the unit drawings; each of the unit splicing information includes position data of building component elements on the outer contour of the corresponding unit drawing and a splicing angle of the unit drawing;

[0044] A splicing unit, configured to splice each of the unit graphs according to a preset unit splicing rule and each of the unit splicing information to obtain a spliced ​​graph;

[0045] a detection unit, configured to perform anomaly detection on the spliced ​​image according to a preset anomaly detection strategy;

[0046] The second generating unit is configured to generate a floor map corresponding to the spliced ​​image if the spliced ​​image passes the anomaly detection, and use the floor map corresponding to the spliced ​​image as the floor map of the target floor.

[0047] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned floor map generation method.

[0048] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to cause one or more processors to execute the above-mentioned floor map generation method.

[0049] A floor plan generation method provided based on the above embodiment of the present invention includes: when it is necessary to generate a floor plan of a target floor, determining multiple building units corresponding to the target floor, and determining multiple floor plans corresponding to each building unit; determining floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan; determining floor plan splicing information corresponding to each floor plan based on the floor plan data corresponding to each floor plan; each floor plan splicing information includes position data of building component elements on the outer contour of the corresponding floor plan and the splicing angle of the floor plan; for each building unit, based on the Each floor plan corresponding to a building unit and the floor plan data corresponding to each floor plan corresponding to the building unit are used to generate a unit plan corresponding to the building unit; unit splicing information corresponding to each unit plan is determined; each unit splicing information includes the position data of the building component elements on the outer contour of the corresponding unit plan and the splicing angle of the unit plan; the unit plans are spliced ​​according to a preset unit splicing rule and each unit splicing information to obtain a spliced ​​plan; the spliced ​​plan is detected for anomalies according to a preset anomaly detection strategy; if the spliced ​​plan passes the anomaly detection, a floor plan corresponding to the spliced ​​plan is generated, and the floor plan corresponding to the spliced ​​plan is used as the floor plan of the target floor. The method provided in the embodiment of the present invention can be used to process the floor plan data of each floor plan to be spliced, obtain the floor plan splicing information of each floor plan, and realize automated floor plan splicing based on the floor plan splicing information, ultimately generating a floor plan. This can reduce manual intervention in the floor plan generation process, save human resources, shorten the time required to generate the floor plan, and improve work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0051] Figure 1 A flow chart of a method for generating a floor map provided by an embodiment of the present invention;

[0052] Figure 2 Another method flow chart of a floor map generation method provided by an embodiment of the present invention;

[0053] Figure 3 A schematic structural diagram of a floor map generating device provided by an embodiment of the present invention;

[0054] Figure 4 Another structural diagram of a floor map generating device provided by an embodiment of the present invention;

[0055] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0057] In this application, the terms "comprises," "comprising," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0058] The embodiment of the present invention provides a floor map generation method, which can be applied to a floor map management platform. The execution subject can be a server of the platform. The method flow chart of the method is as follows: Figure 1 Shown, including:

[0059] S101: When a floor map of a target floor needs to be generated, determining a plurality of building units corresponding to the target floor, and determining a plurality of floor plans corresponding to each of the building units;

[0060] In the method provided by the embodiment of the present invention, relevant information of the building for which floor plans need to be generated can be pre-configured in the platform, including the number of units in the building, the floor plans of each unit in the building, and relevant data of the floor plans, etc.

[0061] In the method provided by the embodiment of the present invention, the user can specify the building and floor for which a floor map needs to be generated at the front end, and send a floor map generation instruction to the server by clicking a control to generate a floor map for the specified target floor. The user can also uniformly instruct to generate batch floor maps for a certain building or multiple buildings. The user can specify the buildings for which floor maps need to be generated at the front end, and send a batch floor map generation instruction to the server by clicking a control. When the server receives the instruction, it can use each floor corresponding to the building specified by the user as the target floor and process each target floor. When the server needs to generate a floor map for the target floor, it can obtain the building units corresponding to the target floor and the floor plans corresponding to each building unit from pre-configured information. The building unit is the unit (i.e., corridor) of the building, and the floor plans corresponding to each building unit are the floor plans of the various apartment types distributed on the floor of the unit in the building.

[0062] S102: Determine floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan;

[0063] In the method provided by the embodiment of the present invention, vector data is extracted from each floor plan to obtain floor plan data corresponding to each floor plan. The floor plan data includes vector data of each building component element, which mainly refers to elements such as doors, windows, and walls. The data format of the overall data can be seen in the following example:

[0064] {

[0065] Building: #10,

[0066] Floor: 7,

[0067] unit:{

[0068] Unit 1: [household 1 data, household 2 data, ...],

[0069] Unit 2: [household 1 data, household 2 data, ...], ...

[0071] }

[0072] }.

[0073] The data content of a single floor plan data can be as follows:

[0074] floorplan / corners: coordinate information of all locations;

[0075] floorplan / walls: All walls, including exterior and interior walls on the floor plan. Walls are represented by two location points.

[0076] Items: Door and window information, including door and window type, center point coordinates, length, and location on the wall.

[0077] In the method provided by the embodiment of the present invention, if an exception occurs when extracting vector data, the floor plan ID of the abnormal floor plan can be thrown out to facilitate the user to handle the exception.

[0078] S103: Determining the apartment splicing information corresponding to each apartment plan based on the apartment plan data corresponding to each apartment plan; each apartment splicing information includes position data of building component elements on the outer contour of the corresponding apartment plan and the splicing angle of the apartment plan;

[0079] In the method provided by an embodiment of the present invention, floor plan splicing information corresponding to each floor plan can be determined based on the floor plan data corresponding to each floor plan and a preset processing strategy, including the position data and splicing angles of building component elements on the floor plan's outer contour. The position data of the building component elements primarily includes the coordinates, orientation, and direction of the elements. The splicing angle refers to the position on the floor plan where other floor plans can be spliced.

[0080] Specifically, the outer contour of the floor plan can be calculated based on the basic vector data, and the data preprocessing of the "doors, windows, and walls" contained in the outer contour can be performed separately. The specific processing method can be as follows:

[0081] Doors, windows, walls: corresponding angles (0-360), set to 0 when facing upwards, 90 when facing right, 180 when facing downwards, and 270 when facing left. In clockwise direction, the angle is between 0-360.

[0082] Doors and windows: Direction: estimate the direction of doors and windows (up, down, left, right) based on the angle above; Position: estimate the direction of doors and windows (up, center, down), left, center, right) based on the position of the center point of the door and window relative to the floor plan;

[0083] Calculate the corresponding joinable angle of the floor plan: The joinable angle indicates that the floor plan can be joined with other floor plans at this angle, which is generally a subset of {0,90,180,270}. When there are long sloping exterior walls, other special angles are considered. The calculation needs to comprehensively consider all the exterior walls and doors and windows corresponding to the angle. Simply put, it means that another wall can be joined in this direction.

[0084] S104: For each of the building units, generating a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and floor plan data corresponding to each floor plan corresponding to the building unit;

[0085] In the method provided by the embodiment of the present invention, the floor plans corresponding to each building unit can be spliced ​​together according to the preset floor plan splicing rules and floor plan data to generate a unit plan corresponding to each building unit. During the splicing process, the floor plans can be scaled, translated, rotated, or mirrored according to the splicing situation.

[0086] S105: Determine unit splicing information corresponding to each unit diagram; each unit splicing information includes position data of building component elements on the outer contour of the corresponding unit diagram and a splicing angle of the unit diagram;

[0087] In the method provided by the embodiment of the present invention, each unit diagram generated also has its corresponding unit diagram data. The unit splicing information corresponding to each unit diagram can be determined based on the unit diagram data corresponding to each unit diagram. The specific data content is similar to the apartment splicing information corresponding to the apartment diagram, mainly the position data of the building component elements on the outer contour of the unit diagram and the splicing angle of the unit diagram.

[0088] S106: splicing the unit graphs according to a preset unit splicing rule and the unit splicing information to obtain a spliced ​​graph;

[0089] In the method provided by the embodiment of the present invention, based on the coordinates, orientation, position and other position data of the building component elements contained in the splicing information of each unit and the information such as the splicing angle of the unit diagram, according to the preset unit splicing rules, the two unit diagrams with the best splicing can be selected, the splicing direction can be confirmed, and then the splicing can be performed. The remaining units are then optimized and additional splicing is performed in turn, and finally a splicing diagram formed by the splicing of each unit is obtained. The splicing process includes logical operations such as scaling, translation, rotation or mirroring of the unit diagram, and the "splicing angle" information corresponding to each unit diagram is updated synchronously. In the process of splicing the unit diagrams, if there are units that cannot be reasonably matched, that is, no splicing direction that meets the conditions can be found, the splicing is performed in the default logical horizontal order, and the corresponding unit information is recorded for abnormal marking.

[0090] S107: performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy;

[0091] In the method provided by an embodiment of the present invention, multiple rules for detecting splicing anomalies can be pre-set as an anomaly detection strategy. Each rule in the pre-set anomaly detection strategy is used to perform anomaly detection on the spliced ​​image obtained by splicing the individual unit images. This is to determine whether there are any splicing anomalies in the spliced ​​image. For example, the splicing in the default logical horizontal order mentioned in the previous step is a splicing anomaly. If there are no splicing anomalies in the spliced ​​image, the spliced ​​image is determined to have passed the anomaly detection. If there are splicing anomalies in the spliced ​​image, the spliced ​​image is determined to have failed the anomaly detection.

[0092] S108: If the spliced ​​image passes the anomaly detection, a floor map corresponding to the spliced ​​image is generated, and the floor map corresponding to the spliced ​​image is used as the floor map of the target floor.

[0093] In the method provided by the embodiments of the present invention, if the mosaic passes anomaly detection, a final floor map is generated based on the mosaic and used as the floor map of the target floor. If the mosaic fails anomaly detection, the anomaly information is recorded and fed back to the user for manual review. If the user confirms that the mosaic is correct, the final floor map is generated. The user can also edit and modify the mosaic through the front-end. If the user does so, the final floor map is generated based on the user-modified mosaic.

[0094] It should be noted that the specific data content and data format mentioned in the embodiments of the present invention are only for better illustrating the specific embodiments provided by the methods provided in the embodiments of the present invention. In the specific implementation process, the specific data content and data format can be determined according to actual needs and will not affect the functions implemented by the methods provided in the embodiments of the present invention.

[0095] Based on the method provided by the embodiment of the present invention, when it is necessary to generate a floor map of a target floor, multiple building units corresponding to the target floor are determined, and multiple floor plans corresponding to each of the building units are determined; floor plan data corresponding to each floor plan is determined; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan; based on the floor plan data corresponding to each floor plan, the floor plan splicing information corresponding to each floor plan is determined; each floor plan splicing information includes position data of building component elements on the outer contour of the corresponding floor plan and the splicing angle of the floor plan; for each building unit, based on the floor plan data corresponding to the building unit, the floor plan splicing information corresponding to each floor plan is determined; The unit diagram corresponding to each floor plan and each floor plan corresponding to the building unit is generated; the unit splicing information corresponding to each unit diagram is determined; each unit splicing information includes the position data of the building component elements on the outer contour of the corresponding unit diagram and the splicing angle of the unit diagram; the unit diagrams are spliced ​​according to the preset unit splicing rules and the respective unit splicing information to obtain a spliced ​​diagram; the spliced ​​diagram is detected for anomalies according to the preset anomaly detection strategy; if the spliced ​​diagram passes the anomaly detection, a floor diagram corresponding to the spliced ​​diagram is generated, and the floor diagram corresponding to the spliced ​​diagram is used as the floor diagram of the target floor. The method provided by the embodiment of the present invention can be used to extract vector data from each floor plan to be spliced, obtain the floor plan data of each floor plan, further process the floor plan splicing information, and realize automated floor plan splicing based on the floor plan splicing information to finally generate a floor plan. This can reduce manual intervention in the floor plan generation process, save human resources, shorten the time spent on generating floor plans, and improve work efficiency.

[0096] exist Figure 1 On the basis of the method shown in FIG. 1 , in the method provided by the embodiment of the present invention, the process of determining the floor plan data corresponding to each floor plan mentioned in step S102 includes:

[0097] Extracting initial image data corresponding to each of the floor plans; the initial image data corresponding to each of the floor plans includes initial vector data corresponding to each building component element in the floor plan;

[0098] In the method provided by the embodiment of the present invention, vector data can be extracted from each floor plan to obtain initial image data corresponding to each floor plan, including initial vector data of each building component element in the image, mainly the position coordinates of relevant points.

[0099] For each initial vector data in each of the initial image data, performing data preprocessing on the initial vector data according to a preset data preprocessing strategy, and using the processing result as the vector data of the building component element corresponding to the initial vector data;

[0100] In the method provided by the embodiments of the present invention, a data preprocessing strategy can be pre-set. This strategy is primarily used to unify attributes such as the coordinate system and scale of the vector data. According to the pre-set data preprocessing strategy, each initial vector data item in each initial image data item is preprocessed to unify the coordinate system, scale, and other attributes of the vector data item. The preprocessed initial vector data item is then used as the vector data for the corresponding building component element.

[0101] For each of the floor plans, the vector data of each building component element in the floor plan is combined into floor plan data corresponding to the floor plan.

[0102] In the method provided by the embodiment of the present invention, the vector data of each building component element in each floor plan is combined into floor plan data corresponding to the floor plan.

[0103] exist Figure 1 Based on the method shown in FIG, the embodiment of the present invention provides another method for generating a floor map, referring to FIG. Figure 2 As shown in the flowchart, in the method provided by the embodiment of the present invention, the process of generating the unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and the floor plan data corresponding to each floor plan corresponding to the building unit mentioned in step S104 includes:

[0104] S201: taking each floor plan corresponding to the building unit as a target floor plan;

[0105] In the method provided by the embodiment of the present invention, for the current building unit, each corresponding floor plan is regarded as a target floor plan.

[0106] S202: splicing the target floor plans according to a preset floor plan splicing rule and the floor plan data corresponding to each target floor plan to obtain an initial unit plan; the initial unit plan includes the spliced ​​target floor plans;

[0107] In the method provided by the embodiment of the present invention, house type splicing rules can be set according to the splicing requirements of the house type drawings. The basic principle can be "doors are close, windows are mutually exclusive, and walls are spliced ​​together". It can be understood that it is preferred that the "doors" on the outer contours of the two spliced ​​house types are close. If there are windows or doors on a wall, the wall is mutually exclusive with other walls, that is, contact splicing cannot be performed, while two pure walls can be contact spliced. According to the house type splicing rules, based on the house type data of each target house type drawing, the optimal two house types can be calculated in each target house type drawing for splicing. The remaining house types are selected according to the same principle and appended to the spliced ​​figure. The splicing process includes logical operations such as scaling, translating, rotating or mirroring the house type drawings, and synchronously updating the "splicing angle" information corresponding to the house type data of each house type drawing. At the same time, the "direction, orientation, and splicing angle" information corresponding to the spliced ​​unit diagram is generated or updated. After splicing the target house types, the initial unit diagram can be obtained.

[0108] S203: Detecting whether there is a target floor plan with splicing abnormalities in the initial unit map;

[0109] In the method provided by an embodiment of the present invention, if there is a floor plan that cannot be spliced ​​with other floor plans during the splicing process of the floor plans, then according to the default logic, they are spliced ​​in horizontal order and the ID of the floor plan is recorded, which is equivalent to marking the floor plan as a floor plan with splicing abnormalities.

[0110] After obtaining the initial unit diagrams corresponding to the target floor plans, it is possible to detect whether there are target floor plans with splicing anomalies in the initial unit diagrams, that is, whether there are floor plans that cannot be spliced ​​with other floor plans.

[0111] S204: If the target floor plan with splicing abnormality does not exist in the initial unit map, the initial unit map is used as the unit map corresponding to the building unit.

[0112] In the method provided by the embodiment of the present invention, if there is no target floor plan with splicing abnormalities in the initial unit map, the initial unit map is used as the unit map corresponding to the current building unit.

[0113] On the basis of the method provided in the above embodiment, the method provided in the embodiment of the present invention further includes:

[0114] If there is a target floor plan with a splicing abnormality in the initial unit map, floor plan splicing abnormality information is determined based on the target floor plan with a splicing abnormality in the initial unit map, and the floor plan splicing abnormality information is fed back to the user.

[0115] In the method provided by the embodiment of the present invention, if it is determined in step S203 that there is a target floor plan with splicing abnormalities in the initial unit diagram, the floor plan ID of the target floor plan with splicing abnormalities in the initial unit diagram is used as the abnormal floor plan ID to determine the abnormal floor plan splicing information. The abnormal floor plan splicing information may include the abnormal floor plan ID and its corresponding splicing data. The abnormal floor plan splicing information is fed back to the user through the front end so that the user can manually review the target floor plan with splicing abnormalities in the initial unit diagram. If the user confirms that it is correct, the initial unit diagram will still be used as the unit diagram corresponding to the building unit. The user can also modify and edit the initial unit diagram through the front end. If the user modifies and edits the initial unit diagram, the initial unit diagram modified by the user will be used as the unit diagram of the corresponding building unit.

[0116] Further, in Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of performing anomaly detection on the spliced ​​image according to the preset anomaly detection strategy mentioned in step S107 includes:

[0117] Detecting whether the spliced ​​image meets the preset non-overlapping condition of the floor plan;

[0118] In the method provided by an embodiment of the present invention, the floor plan must meet the non-overlapping condition for floor plans, that is, there must be no overlap between the individual unit plans or floor plans within the floor plan. After the individual unit plans are spliced ​​together to form a mosaic, image detection can be performed on the mosaic to detect whether the individual unit plans / floor plans within the mosaic overlap. If there is no overlap, the mosaic is determined to meet the non-overlapping condition for floor plans. If there is overlap, the mosaic does not meet the non-overlapping condition for floor plans. If the mosaic does not meet the non-overlapping condition for floor plans, it is determined that the mosaic has failed anomaly detection.

[0119] If the spliced ​​image meets the non-overlapping condition of the floor plan, detecting whether the spliced ​​image meets the preset integrity condition;

[0120] In the method provided by the embodiments of the present invention, the floor plan must meet the completeness condition, that is, the floor plan must be completely connected, with each floor plan or unit plan interconnected and data coherent. When the floor plan meets the condition of no overlap, the floor plan can be checked for incomplete splicing, that is, the floor plan is divided into multiple, disconnected pieces, and there is obvious data separation. If the splicing in the floor plan is complete, the floor plan is determined to meet the completeness condition. If the floor plan is incomplete, the floor plan is determined to not meet the completeness condition. If the floor plan does not meet the completeness condition, the floor plan is determined to have failed the anomaly detection.

[0121] If the spliced ​​image meets the integrity condition, then detecting whether the spliced ​​image meets a preset outer contour qualification condition;

[0122] In the method provided by the embodiment of the present invention, the floor map must meet the outer contour qualification condition, that is, the outer contour of the floor map should match the outer contour of the actual building. The building corresponding to the target floor can be a tower or other special-shaped building. The approximate outer contour of the building can be obtained in advance based on the map, and the actual building outer contour can be pre-configured in the platform. When the mosaic image meets the integrity condition, the corresponding building outer contour can be obtained, and the floor outer contour in the mosaic image can be determined. It can be the outer contour composed of the circumscribed quadrilaterals of each floor plan. The building outer contour can be compared with the floor outer contour in the mosaic image. If the two match, the mosaic image is considered to meet the outer contour qualification condition. If the two do not match, the mosaic image is considered to not meet the outer contour qualification condition. If the outer contour is too complex, the building can be split into multiple parts and processed separately.

[0123] If the spliced ​​image meets the outer contour qualification condition, it is determined that the spliced ​​image passes the anomaly detection.

[0124] If the spliced ​​image does not meet the outer contour qualification condition, it is determined that the spliced ​​image fails the abnormality detection.

[0125] It should be noted that the specific anomaly detection content mentioned in the method provided in the embodiment of the present invention is only for the purpose of better illustrating a specific embodiment of the method provided in the present invention. In the specific implementation process, the specific method adopted for anomaly detection can be determined according to the needs, which does not affect the function of the method provided in the embodiment of the present invention.

[0126] On the other hand, it should be noted that in the method provided in the embodiment of the present invention, the judgment of each preset condition in the anomaly detection process has a sequence. In the specific implementation process, the judgment of each condition can be processed in parallel. When the spliced ​​image meets all conditions at the same time, it is considered to have passed the anomaly detection. When the spliced ​​image does not meet one or more of the conditions, it is considered that the spliced ​​image has failed the anomaly detection.

[0127] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, generating the floor map corresponding to the spliced ​​map includes:

[0128] Determine the outer contour corresponding to the spliced ​​image according to a preset convex hull algorithm;

[0129] According to the outer contour corresponding to the mosaic image, vector data synthesis processing is performed on the mosaic image to obtain a synthetic image, and the synthetic image is used as the floor image corresponding to the mosaic image.

[0130] In the method provided by the embodiment of the present invention, a convex hull algorithm for calculating the outer contour can be pre-set, and the specific algorithm principle can adopt the existing convex hull algorithm. After the mosaic image passes the anomaly detection, the convex hull algorithm can be used to calculate the overall outer contour of the mosaic image, and then based on the vector data of each floor plan or unit diagram in the mosaic image, vector data synthesis is performed to finally obtain a synthesized image, which is used as the floor map corresponding to the mosaic image. Furthermore, in the method provided by the embodiment of the present invention, the overall offset of the vector data can be pre-calculated to adjust the distance between the coordinates and the origin. In the process of generating the floor map, the coordinates of each point in the vector data can be adjusted by the overall offset. Specifically, the overall offset can be calculated in the following way:

[0131] Calculate the minimum values ​​corresponding to the x and y axes in the floor plan vector data, i.e. (min_x, min_y);

[0132] Calculate the average of (min_x, min_y) corresponding to all floor plan vector data, i.e. (avg_min_x, avg_min_y);

[0133] The overall offset is the larger value between the average calculated in the previous step and 0, that is, (max(avg_min_x,0), max(avg_min_y,0)).

[0134] Further, in Figure 1 On the basis of the method shown, the method provided in the embodiment of the present invention further includes:

[0135] Generate a splicing log corresponding to the floor map of the target floor, and feed back the splicing log to the user.

[0136] In the method provided by the embodiment of the present invention, a splicing log can be recorded during the generation of the floor map of the target floor, and the splicing log can be fed back to the user in real time. The splicing log content can include the processing time point, summary data of the splicing process, etc.

[0137] In order to better illustrate the method provided by the embodiment of the present invention, combined with actual application scenarios, Figure 1 Based on the method shown, an embodiment of the present invention provides another method for generating a floor map.

[0138] In the application scenarios of the methods provided in the embodiments of the present invention, the following requirements generally need to be met:

[0139] Provide floor plans, which are actual or similar floor plan data for the same building and floor, and are provided by unit;

[0140] Floor plan data can be vectorized, and the splicing algorithm operates based on vector data;

[0141] When splicing towers or special-shaped buildings, the method is different from that of slab buildings, and the outer outline of the building needs to be provided.

[0142] The floor map generation process provided by the embodiment of the present invention mainly includes:

[0143] Data collation: obtain the floor plan data to be spliced, and obtain the corresponding floor plan vector data by unit;

[0144] Data preprocessing: unify the coordinate system and scale of the vector data, and calculate the overall offset of the data, which is used to adjust the coordinate position of the vector data when generating the final floor plan;

[0145] Unit diagram splicing: Pre-processing of multiple apartment data within a unit, calculating information data such as "coordinates, orientations, directions, associable angles (i.e., the associable angles in the previous embodiment)" corresponding to elements such as doors, windows, and walls, and calculating the optimal two apartment diagrams for splicing according to basic principles such as "doors are close, windows are mutually exclusive, and walls are spliced ​​together". The remaining apartment diagrams are selected and appended according to the same principles. The splicing process includes logical operations such as scaling, translation, rotation, or mirroring of the apartment diagrams, and synchronously updates the "associable angle" information corresponding to each apartment diagram data. At the same time, the "direction, orientation, associable angle" information corresponding to the spliced ​​unit diagrams is generated or updated. Vector data anomaly detection is embedded in the unit splicing process to locate the key points of abnormal information. When there are data anomalies or splicing anomalies, real-time feedback is provided to assist manual problem confirmation.

[0146] Floor map stitching: After multiple sets of unit data are traversed and stitched together, new unit map data is generated. Based on the corresponding "coordinates, orientation, direction, and associable angle" information in the unit map data, the two units with the best stitching are selected, the stitching direction is confirmed, and then the stitching is performed. The remaining units are then optimized and stitched together. The stitching process includes logical operations such as scaling, translation, rotation, or mirroring of the unit map, and the "associable angle" information corresponding to each unit is synchronously updated. Anomaly detection is embedded when stitching between units, and when the floor map has an irregular shape, it is convenient for manual detection and problem location.

[0147] Floor map vector data synthesis: After the floor map is spliced, shape detection is performed, splicing logs are recorded, and real-time feedback is provided. Finally, a convex hull algorithm is used to calculate the overall outer contour of the floor map, synthesize the floor map vector data, and obtain the final floor map.

[0148] Based on the method provided in the embodiment of the present invention, it is possible to achieve:

[0149] The floor plan is modularized and grouped into modules based on building units.

[0150] Unify the coordinate system and scale of floor plan vector data and redefine the vector data coordinates;

[0151] Extract feature vectors and simplify calculation and matching logic, mainly for elements such as doors, windows, and walls, introducing conceptual information such as coordinates, orientation, direction, and associated angles;

[0152] The consistency of data correction mainly involves the consistency of functional logic operations such as order adjustment, scaling, position translation, angle rotation or mirror flipping of apartment types or modules when splicing within or between modules;

[0153] Abnormal data feedback locates the key points of the problem to assist manual detection;

[0154] The convex hull algorithm is used to generate the closed outer contour of the floor map and automatically generate the floor map.

[0155] and Figure 1 Corresponding to the floor map generation method shown in FIG, the embodiment of the present invention further provides a floor map generation device for Figure 1 The specific implementation of the method shown in is shown in the structural diagram. Figure 3 Shown, including:

[0156] The first determining unit 301 is configured to determine, when a floor map of a target floor needs to be generated, a plurality of building units corresponding to the target floor, and a plurality of floor plans corresponding to each of the building units;

[0157] The second determining unit 302 is configured to determine floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan;

[0158] The third determining unit 303 is configured to determine the apartment splicing information corresponding to each apartment plan based on the apartment plan data corresponding to each apartment plan; each apartment splicing information includes position data of building components on the outer contour of the corresponding apartment plan and a splicing angle of the apartment plan;

[0159] The first generating unit 304 is configured to generate, for each of the building units, a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and floor plan data corresponding to each floor plan corresponding to the building unit;

[0160] The fourth determining unit 305 is configured to determine unit splicing information corresponding to each unit diagram; each unit splicing information includes position data of building component elements on the outer contour of the corresponding unit diagram and a splicing angle of the unit diagram;

[0161] A splicing unit 306 is configured to splice each of the unit graphs according to a preset unit splicing rule and each of the unit splicing information to obtain a spliced ​​graph;

[0162] A detection unit 307 is configured to perform anomaly detection on the spliced ​​image according to a preset anomaly detection strategy;

[0163] The second generating unit 308 is configured to generate a floor map corresponding to the spliced ​​image if the spliced ​​image passes the anomaly detection, and use the floor map corresponding to the spliced ​​image as the floor map of the target floor.

[0164] The device provided by the embodiments of the present invention can process the floor plan data of each floor plan to be spliced, obtain floor plan splicing information for each floor plan, and automatically splice the floor plans based on the splicing information to ultimately generate a floor plan. This reduces manual intervention in the floor plan generation process, saves human resources, shortens the time required to generate floor plans, and improves work efficiency.

[0165] On the basis of the apparatus provided in the above embodiment, in the apparatus provided in the embodiment of the present invention, the second determining unit 302 includes:

[0166] An extraction subunit is used to extract the initial image data corresponding to each of the floor plans; the initial image data corresponding to each of the floor plans includes initial vector data corresponding to each building component element in the floor plan;

[0167] a preprocessing subunit, configured to perform data preprocessing on each initial vector data in each of the initial image data according to a preset data preprocessing strategy, and use the processing result as the vector data of the building component element corresponding to the initial vector data;

[0168] The combining subunit is used to combine the vector data of each building component element in each floor plan into floor plan data corresponding to the floor plan.

[0169] The embodiment of the present invention provides another floor map generating device, the structural diagram of which is shown as follows: Figure 4 As shown, in Figure 3 On the basis of the device shown in FIG. 1 , in the device provided by the embodiment of the present invention, the first generating unit 304 includes:

[0170] The splicing subunit 309 is configured to take each floor plan corresponding to the building unit as a target floor plan; splice each target floor plan according to a preset floor plan splicing rule and the floor plan data corresponding to each target floor plan to obtain an initial unit plan; the initial unit plan includes each target floor plan that has been spliced;

[0171] The first detection subunit 310 is configured to detect whether there is a target floor plan with splicing abnormalities in the initial unit map;

[0172] The first determining subunit 311 is configured to use the initial unit diagram as the unit diagram corresponding to the building unit if there is no target floor plan diagram with splicing abnormalities in the initial unit diagram.

[0173] On the basis of the apparatus provided in the above embodiment, the apparatus provided in the embodiment of the present invention further includes:

[0174] The second determining subunit is configured to determine abnormal house splicing information based on the target house splicing exception in the initial unit diagram if there is a target house splicing exception in the initial unit diagram, and to feed back the abnormal house splicing information to the user.

[0175] On the basis of the apparatus provided in the above embodiment, in the apparatus provided in the embodiment of the present invention, the detection unit 307 includes:

[0176] A second detection subunit is used to detect whether the spliced ​​image meets the preset non-overlapping condition of the floor plan;

[0177] a third detection subunit, configured to detect whether the spliced ​​image meets a preset integrity condition if the spliced ​​image meets the non-overlapping condition of the floor plan;

[0178] a fourth detection subunit, configured to detect whether the spliced ​​image meets a preset outer contour qualification condition if the spliced ​​image meets the integrity condition;

[0179] The third determining subunit is configured to determine that the spliced ​​image passes the anomaly detection if the spliced ​​image meets the outer contour qualification condition.

[0180] On the basis of the apparatus provided in the above embodiment, in the apparatus provided in the embodiment of the present invention, the second generating unit 308 includes:

[0181] a fourth determining subunit, configured to determine an outer contour corresponding to the spliced ​​image based on a preset convex hull algorithm;

[0182] The synthesis subunit is used to perform vector data synthesis processing on the mosaic image according to the outer contour corresponding to the mosaic image to obtain a synthesized image, and use the synthesized image as the floor image corresponding to the mosaic image.

[0183] On the basis of the apparatus provided in the above embodiment, the apparatus provided in the embodiment of the present invention further includes:

[0184] The log recording unit is used to generate a splicing log corresponding to the floor map of the target floor and feed back the splicing log to the user.

[0185] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned floor map generation method.

[0186] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 5 As shown, the system specifically includes a memory 401 and one or more instructions 402, wherein the one or more instructions 402 are stored in the memory 401 and are configured to be executed by one or more processors 403 to perform the following operations:

[0187] When a floor map of a target floor needs to be generated, determining a plurality of building units corresponding to the target floor, and determining a plurality of floor plans corresponding to each of the building units;

[0188] Determining floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan;

[0189] Determining the apartment splicing information corresponding to each apartment plan based on the apartment plan data corresponding to each apartment plan; each apartment splicing information includes position data of building component elements on the outer contour of the corresponding apartment plan and the splicing angle of the apartment plan;

[0190] For each of the building units, generating a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and the floor plan data corresponding to each floor plan corresponding to the building unit;

[0191] Determining unit splicing information corresponding to each unit diagram; each unit splicing information includes position data of building component elements on the outer contour of the corresponding unit diagram and a splicing angle of the unit diagram;

[0192] According to a preset unit splicing rule and each unit splicing information, each unit graph is spliced ​​to obtain a spliced ​​graph;

[0193] Performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy;

[0194] If the spliced ​​image passes the anomaly detection, a floor map corresponding to the spliced ​​image is generated, and the floor map corresponding to the spliced ​​image is used as the floor map of the target floor.

[0195] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.

[0196] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0197] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A floor map generation method, characterized in that: include: When a floor map of a target floor needs to be generated, determining a plurality of building units corresponding to the target floor, and determining a plurality of floor plans corresponding to each of the building units; Determining floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan; The building component elements include at least doors, windows and walls; Determining, based on the floor plan data corresponding to each floor plan, floor plan splicing information corresponding to each floor plan; each floor plan splicing information includes position data of building component elements on the outer contour of the corresponding floor plan and a splicing angle of the floor plan; the position data of the building component elements mainly includes the coordinates, orientation, and direction of the elements; the splicing angle refers to a position on the floor plan used for splicing other floor plans; For each of the building units, generating a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and the floor plan data corresponding to each floor plan corresponding to the building unit; Determining unit splicing information corresponding to each unit diagram; each unit splicing information includes position data of building component elements on the outer contour of the corresponding unit diagram and a splicing angle of the unit diagram; According to a preset unit splicing rule and each unit splicing information, each unit graph is spliced ​​to obtain a spliced ​​graph; Performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy; If the spliced ​​image passes the anomaly detection, a floor map corresponding to the spliced ​​image is generated, and the floor map corresponding to the spliced ​​image is used as the floor map of the target floor; Generating a floor map corresponding to the spliced ​​image includes: determining an outer contour corresponding to the spliced ​​image based on a preset convex hull algorithm; According to the outer contour corresponding to the mosaic image, vector data synthesis processing is performed on the mosaic image to obtain a synthetic image, and the synthetic image is used as the floor image corresponding to the mosaic image.

2. The method according to claim 1, characterized in that The determining of the floor plan data corresponding to each floor plan includes: Extracting initial image data corresponding to each of the floor plans; the initial image data corresponding to each of the floor plans includes initial vector data corresponding to each building component element in the floor plan; For each initial vector data in each of the initial image data, performing data preprocessing on the initial vector data according to a preset data preprocessing strategy, and using the processing result as the vector data of the building component element corresponding to the initial vector data; For each of the floor plans, the vector data of each building component element in the floor plan is combined into floor plan data corresponding to the floor plan.

3. The method according to claim 1, characterized in that The generating of the unit diagram corresponding to the building unit according to each floor plan corresponding to the building unit and the floor plan data corresponding to each floor plan corresponding to the building unit includes: Each floor plan corresponding to the building unit is used as the target floor plan; According to the preset apartment splicing rules and the apartment plan data corresponding to each target apartment plan, each target apartment plan is spliced ​​together to obtain an initial unit plan; the initial unit plan includes each target apartment plan that has been spliced ​​together; Detect whether there is a target floor plan with splicing abnormalities in the initial unit map; If there is no target floor plan with splicing abnormality in the initial unit map, the initial unit map is used as the unit map corresponding to the building unit.

4. The method according to claim 3, characterized in that Also includes: If there is a target floor plan with a splicing abnormality in the initial unit map, floor plan splicing abnormality information is determined based on the target floor plan with a splicing abnormality in the initial unit map, and the floor plan splicing abnormality information is fed back to the user.

5. The method according to claim 1, wherein The performing anomaly detection on the spliced ​​image according to a preset anomaly detection strategy includes: Detecting whether the spliced ​​image meets the preset non-overlapping condition of the floor plan; If the spliced ​​image meets the non-overlapping condition of the floor plan, detecting whether the spliced ​​image meets the preset integrity condition; If the spliced ​​image meets the integrity condition, then detecting whether the spliced ​​image meets a preset outer contour qualification condition; If the spliced ​​image meets the outer contour qualification condition, it is determined that the spliced ​​image passes the anomaly detection.

6. The method according to claim 1, characterized in that Also includes: Generate a splicing log corresponding to the floor map of the target floor, and feed back the splicing log to the user.

7. A floor map generating device, characterized in that: include: A first determining unit is configured to, when it is necessary to generate a floor map of a target floor, determine a plurality of building units corresponding to the target floor, and determine a plurality of floor plans corresponding to each of the building units; A second determining unit is configured to determine floor plan data corresponding to each floor plan; the floor plan data corresponding to each floor plan includes vector data of each building component element in the floor plan; The building component elements include at least doors, windows and walls; A third determining unit is configured to determine, based on the floor plan data corresponding to each floor plan, floor plan splicing information corresponding to each floor plan; each floor plan splicing information includes position data of building component elements on the outer contour of the corresponding floor plan and a splicing angle of the floor plan; the position data of the building component elements mainly includes the coordinates, orientation, and direction of the elements; the splicing angle refers to a position on the floor plan used for splicing other floor plans; A first generating unit is configured to generate, for each of the building units, a unit diagram corresponding to the building unit based on each floor plan corresponding to the building unit and floor plan data corresponding to each floor plan corresponding to the building unit; a fourth determining unit, configured to determine unit splicing information corresponding to each of the unit drawings; each of the unit splicing information includes position data of building component elements on the outer contour of the corresponding unit drawing and a splicing angle of the unit drawing; A splicing unit, configured to splice each of the unit graphs according to a preset unit splicing rule and each of the unit splicing information to obtain a spliced ​​graph; a detection unit, configured to perform anomaly detection on the spliced ​​image according to a preset anomaly detection strategy; a second generating unit, configured to generate a floor map corresponding to the spliced ​​image if the spliced ​​image passes the anomaly detection, and use the floor map corresponding to the spliced ​​image as the floor map of the target floor; The second generating unit includes: a fourth determining subunit and a synthesizing subunit; The fourth determining subunit is configured to determine an outer contour corresponding to the spliced ​​image based on a preset convex hull algorithm; The synthesis subunit is used to perform vector data synthesis processing on the mosaic image according to the outer contour corresponding to the mosaic image to obtain a synthesized image, and use the synthesized image as the floor image corresponding to the mosaic image.

8. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the floor map generation method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: The device comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to execute the floor map generating method according to any one of claims 1 to 6 by one or more processors.

Citation Information

Patent Citations

  • Preprocess method for engineering drawing vectorization recognition system

    CN101114341A

  • Building inclination model layered household display method fusing vector house type graph

    CN112700531A