Intelligent parking visualization method and system based on live-action twinning
By generating a 3D scene of the parking lot and updating it in real time, it solves the problems of insufficient real-time monitoring and incomplete display in traditional smart parking systems, provides multi-view display and heat maps, optimizes parking resource allocation, and improves management efficiency and user experience. .
Patent Information
- Application Number
- CN202410839430.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
Smart Images

Figure CN118629221A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart parking technology, and in particular to a smart parking visualization method and system based on real-scene twinning. Background Art
[0002] A smart parking lot refers to a parking lot that installs geomagnetic sensors, connects to smart terminals entering the parking lot, establishes an integrated parking lot backend management system, realizes intelligent services such as automatic parking navigation and online payment of parking fees, and comprehensively lays out a fully automated parking management system.
[0003] In modern urban management, unmanned and intelligent management has become an irreversible trend. In order to improve the management efficiency and user experience of parking lots, smart parking systems have gradually become the focus of research and development. Although traditional smart parking systems can achieve basic parking space detection and management, they still have many deficiencies in terms of precise positioning, real-time monitoring, comprehensive display and data visualization. In particular, the monitoring of parking lots in traditional parking management lacks real-time performance and incomplete display, which affects the smart management of parking lots. Summary of the invention
[0004] Without solving the above-mentioned deficiencies of the prior art, the present invention provides a smart parking visualization method based on real-scene twinning, the method comprising the following steps:
[0005] Obtaining architectural drawings of the parking lot, and generating a 2D structured map of the parking lot based on the architectural drawings;
[0006] Marking the building entities on the 2D structured map, and after the marking is completed, setting the height of the parking lot wall to achieve the creation of a 3D scene of the parking lot;
[0007] Generate camera installation data based on parking lot scene information;
[0008] Based on the installation data, the camera is installed in the actual scene, and the installed camera is associated with the camera point in the parking lot 3D scene, and the transformation relationship from the actual scene to the parking lot 3D scene is obtained through the camera pixel point and the parking lot 3D scene world point;
[0009] The video stream of the parking lot is acquired in real time through the camera, and the scene texture in the parking lot 3D scene is updated in real time based on the installation data of the camera and the transformation relationship.
[0010] The present invention is implemented through the following technical solutions: The purpose of this solution is to provide a more complete smart parking visualization method, which aims to solve the problems of insufficient real-time monitoring and incomplete display of parking lots in traditional parking management. This solution first obtains architectural drawings (CAD drawings) about the parking lot, generates a 2D structured map of the parking lot according to the architectural drawings, and then marks the building entities (such as the ground, walls, columns, etc.) on the 2D structured map. After the marking is completed, the wall height is set to create a 3D scene of the parking lot. After the 3D scene is created, the camera installation data is determined according to the scene information of the parking lot, and the camera is installed. When the camera is installed, the camera is associated with the camera point in the 3D scene, and the transformation relationship from the actual scene to the parking lot 3D scene is obtained through the camera pixel point and the parking lot 3D scene world point. The camera point in the 3D scene is consistent with the phase installation position in the actual scene, thereby generating a parking lot 3D scene containing the camera point.
[0011] The camera then acquires video stream data in real time, and based on the camera’s initial installation position and transformation relationship, updates the scene texture in the parking lot 3D scene in real time, thereby simulating and emulating the real environment in a 3D environment, providing a multi-perspective, multi-level display effect.
[0012] As an optional technical solution, based on the scene information of the parking lot, the camera installation data is generated including:
[0013] The camera installation data is generated according to the lane information, the parking space distribution information and the camera's field of view information, and the camera installation data includes an installation position and an installation angle.
[0014] As an optional technical solution, the method further includes providing 2D presentation of the parking lot scene:
[0015] Multiple video frames are acquired through the camera and all video frames are projected onto a global plane.
[0016] As an optional technical solution, the method further includes:
[0017] The global plane has translation and scaling functions for the projected video frame.
[0018] As an optional technical solution, the method further includes providing a panoramic spherical presentation for the parking lot scene:
[0019] Based on the image stitching technology and the spherical coordinate projection technology, a panoramic preview scene is provided for the multi-eye single camera in the parking lot 3D scene.
[0020] As an optional technical solution, the method further includes:
[0021] Obtaining preset parameters of the installed camera, and based on the preset parameters and the installation data, measuring the vehicle detected within the camera's field of view to obtain a relative position relationship between the vehicle and the camera;
[0022] Based on the installation position of the camera in the parking lot 3D scene and the transformation relationship, the three-dimensional coordinates of the vehicle in the parking lot 3D scene are obtained, and based on the three-dimensional coordinates, the position information of the vehicle in the parking lot 3D scene is obtained;
[0023] Based on the position information of the vehicle parking space frame and the road in the parking lot 3D scene and the calculated historical position information of the vehicle, a heat map of the vehicle parking space frame and the road within a preset time period is generated;
[0024] Based on the heat map, parking resources are allocated to vehicles that are about to enter the parking lot.
[0025] In order to solve the deficiencies of the prior art, the present invention also provides a smart parking visualization system based on real-scene twinning, the system comprising:
[0026] A 2D construction unit, used to obtain architectural drawings of the parking lot, and generate a 2D structured map of the parking lot based on the architectural drawings;
[0027] A 3D construction unit is used to mark the building entities on the 2D structured map. After the marking is completed, the height of the parking lot wall is set to achieve the creation of a 3D scene of the parking lot;
[0028] A camera unit, used for generating camera installation data based on scene information of the parking lot;
[0029] A transformation unit, configured to complete the installation of the camera in the actual scene based on the installation data, and associate the installed camera with the camera point in the parking lot 3D scene, and obtain a transformation relationship from the actual scene to the parking lot 3D scene through the camera pixel point and the parking lot 3D scene world point;
[0030] The 3D rendering unit is used to obtain a video stream of the parking lot in real time through a camera, and based on the installation data of the camera and the transformation relationship, update the scene texture in the parking lot 3D scene in real time.
[0031] One or more technical solutions provided by the present invention have at least the following technical effects or advantages:
[0032] The present invention generates a 3D parking lot scene according to the architectural drawings of the parking lot, which reduces the resource consumption of using professional surveying instruments to obtain scene information. The process is simpler and more direct. At the same time, the texture of the 3D scene is updated in real time through the video data of the parking lot camera, which solves the problems of insufficient real-time performance and incomplete display of parking lot monitoring in traditional parking management.
[0033] The present invention provides three presentation modes for parking lot scenes: 2D presentation, 3D presentation and panoramic spherical presentation, solving the problem of limited panoramic viewing angle in traditional parking monitoring systems.
[0034] The present invention provides data support for parking demand analysis and optimization of parking resource allocation by generating a heat map of vehicle parking spaces and road information. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of the present invention, and do not constitute a limitation on the embodiments of the present invention;
[0036] Figure 1 It is a flow chart of a smart parking visualization method based on real-scene twin in the present invention;
[0037] Figure 2 is a scene schematic diagram of a parking lot in the present invention;
[0038] Figure 3 This is a schematic diagram of a panoramic spherical presentation of a parking lot scene in the present invention;
[0039] Figure 4 is the vehicle parking space thermal map of the present invention;
[0040] Figure 5 It is the parking lot road thermal map of the present invention;
[0041] Figure 6 It is a schematic diagram of the composition of a smart parking visualization system based on real-scene twin in the present invention. DETAILED DESCRIPTION
[0042] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those within the scope of this description. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0044] Embodiment 1
[0045] Please refer to Figure 1 and Figure 2 , Figure 1 This is a flow chart of a smart parking visualization method based on real-scene twinning in the present invention. Figure 2 is a scene schematic diagram of a parking lot in the present invention, and the method comprises the following steps:
[0046] Obtaining architectural drawings of the parking lot, and generating a 2D structured map of the parking lot based on the architectural drawings;
[0047] Marking the building entities on the 2D structured map, and after the marking is completed, setting the height of the parking lot wall to achieve the creation of a 3D scene of the parking lot;
[0048] Generate camera installation data based on parking lot scene information;
[0049] Based on the installation data, the camera is installed in the actual scene, and the installed camera is associated with the camera point in the parking lot 3D scene, and the transformation relationship from the actual scene to the parking lot 3D scene is obtained through the camera pixel point and the parking lot 3D scene world point;
[0050] The video stream of the parking lot is acquired in real time through the camera, and the scene texture in the parking lot 3D scene is updated in real time based on the installation data of the camera and the transformation relationship.
[0051] The specific embodiments of the present invention are as follows: first, a 2D structured map is generated based on the CAD drawing of the parking lot, and the ground, walls, columns and other building entities are manually or automatically annotated on the 2D structured map. After the annotation is completed, the 3D scene of the parking lot is created by setting the wall height.
[0052] After the creation of the parking lot 3D scene is completed, the camera installation data is generated according to the parking lot scene information, including: generating the camera installation position and installation angle according to the lane information, parking space distribution information and camera field of view information. Then, according to the generated installation data, the camera is installed to ensure that the camera field of view can cover all parking spaces in the parking lot, and the installed camera is associated with the camera point in the parking lot 3D scene, so as to generate the parking lot 3D scene including the camera point.
[0053] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the panoramic sphere presentation of the parking lot scene in the present invention. The smart parking visualization of this embodiment has three presentation forms: 3D presentation, 2D presentation and panoramic sphere presentation, specifically:
[0054] 3D rendering: Use the camera to obtain video streams in real time, and update the scene texture in the 3D scene in real time through the transformation relationship between the camera pixels and the world store in the 3D scene, so as to simulate and emulate the real environment in the 3D virtual space, providing multi-perspective and multi-level display effects.
[0055] 2D presentation: Project multiple video frames onto a global plane, providing a concise single-view view, and allowing users to easily view global and local details through overall pan and zoom functions.
[0056] Panoramic spherical presentation: By clicking on the camera that needs to be viewed in the parking lot 3D scene, the camera's perspective can be adjusted. Image stitching and spherical coordinate projection technology are used to provide a 360° panoramic preview scene without perspective for the multi-view single camera in the scene. Users can view the details in the multi-view single camera panorama through functions such as perspective control and cropping output, and allow users to seamlessly switch between multiple camera perspectives.
[0057] Furthermore, the method also provides a method for generating a heat map, which specifically includes:
[0058] Obtaining preset parameters of the installed camera, and based on the preset parameters and the installation data, measuring the vehicle detected within the camera's field of view to obtain a relative position relationship between the vehicle and the camera;
[0059] Based on the installation position of the camera in the parking lot 3D scene and the transformation relationship, the three-dimensional coordinates of the vehicle in the parking lot 3D scene are obtained, and based on the three-dimensional coordinates, the position information of the vehicle in the parking lot 3D scene is obtained;
[0060] Based on the position information of the vehicle parking space frame and the road in the parking lot 3D scene and the calculated historical position information of the vehicle, a heat map of the vehicle parking space frame and the road within a preset time period is generated;
[0061] Based on the heat map, parking resources are allocated to vehicles that are about to enter the parking lot.
[0062] Please refer to Figure 4 and Figure 5 , Figure 4 is the vehicle parking space thermal map of the present invention, Figure 5It is the parking lot road heat map in the present invention. This embodiment measures the vehicles detected in the camera field of view by installing the preset parameters (including internal and external parameters) and installation data of the camera, obtains the position relationship between the vehicle and the camera, and then obtains the three-dimensional coordinates of the vehicle in the 3D scene according to the position of the camera in the parking lot 3D scene. Combining the position information of the vehicle parking space frame and the road in the parking lot 3D scene with the calculated historical position information of the vehicle, the heat map of the vehicle parking space frame and the road in the preset time period (such as the past 12 hours) can be obtained. The heat map provides data support for parking demand analysis and optimization of parking resource allocation. For example, according to the parking lot road heat map, the parking path can be planned, and the parking difficulty of each parking space can be judged by using the vehicle parking space heat map, so as to provide the optimal parking path and parking space for subsequent vehicles entering the parking lot.
[0063] Embodiment 2
[0064] Please refer to Figure 6 , Figure 6 This is a schematic diagram of a smart parking visualization system based on real-scene twinning in the present invention, which includes:
[0065] A 2D construction unit, used to obtain architectural drawings of the parking lot, and generate a 2D structured map of the parking lot based on the architectural drawings;
[0066] A 3D construction unit is used to mark the building entities on the 2D structured map. After the marking is completed, the height of the parking lot wall is set to achieve the creation of a 3D scene of the parking lot;
[0067] A camera unit, used for generating camera installation data based on scene information of the parking lot;
[0068] A transformation unit, configured to complete the installation of the camera in the actual scene based on the installation data, and associate the installed camera with the camera point in the parking lot 3D scene, and obtain a transformation relationship from the actual scene to the parking lot 3D scene through the camera pixel point and the parking lot 3D scene world point;
[0069] The 3D rendering unit is used to obtain a video stream of the parking lot in real time through a camera, and based on the installation data of the camera and the transformation relationship, update the scene texture in the parking lot 3D scene in real time.
[0070] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0071] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A smart parking visualization method based on real-scene twin, characterized in that: The method comprises the following steps: Obtaining architectural drawings of the parking lot, and generating a 2D structured map of the parking lot based on the architectural drawings; Marking the building entities on the 2D structured map, and after the marking is completed, setting the height of the parking lot wall to achieve the creation of a 3D scene of the parking lot; Generate camera installation data based on parking lot scene information; Based on the installation data, the camera is installed in the actual scene, and the installed camera is associated with the camera point in the parking lot 3D scene, and the transformation relationship from the actual scene to the parking lot 3D scene is obtained through the camera pixel point and the parking lot 3D scene world point; The video stream of the parking lot is acquired in real time through the camera, and the scene texture in the parking lot 3D scene is updated in real time based on the installation data of the camera and the transformation relationship.
2. According to claim 1, a smart parking visualization method based on real-scene twinning is characterized in that: Based on the scene information of the parking lot, the camera installation data generated includes: The camera installation data is generated according to the lane information, the parking space distribution information and the camera's field of view information, and the camera installation data includes an installation position and an installation angle.
3. The method for visualizing smart parking based on real-scene twinning according to claim 1 is characterized in that: The method also includes providing a 2D rendering of the parking lot scene: Multiple video frames are acquired through the camera and all video frames are projected onto a global plane.
4. The method for visualizing smart parking based on real-scene twinning according to claim 3 is characterized in that: The method further comprises: The global plane has translation and scaling functions for the projected video frame.
5. The method for visualizing smart parking based on real-scene twinning according to claim 1 is characterized in that: The method also includes providing a panoramic spherical presentation of the parking lot scene: Based on the image stitching technology and the spherical coordinate projection technology, a panoramic preview scene is provided for the multi-eye single camera in the parking lot 3D scene.
6. The method for visualizing smart parking based on real-scene twinning according to claim 1 is characterized in that: The method further comprises: Obtaining preset parameters of the installed camera, and based on the preset parameters and the installation data, measuring the vehicle detected within the camera's field of view to obtain a relative position relationship between the vehicle and the camera; Based on the installation position of the camera in the parking lot 3D scene and the transformation relationship, the three-dimensional coordinates of the vehicle in the parking lot 3D scene are obtained, and based on the three-dimensional coordinates, the position information of the vehicle in the parking lot 3D scene is obtained; Based on the position information of the vehicle parking space frame and the road in the parking lot 3D scene and the calculated historical position information of the vehicle, a heat map of the vehicle parking space frame and the road within a preset time period is generated; Based on the heat map, parking resources are allocated to vehicles that are about to enter the parking lot.
7. A smart parking visualization system based on real-scene twins, characterized in that: The system comprises: A 2D construction unit, used to obtain architectural drawings of the parking lot, and generate a 2D structured map of the parking lot based on the architectural drawings; A 3D construction unit is used to mark the building entities on the 2D structured map. After the marking is completed, the height of the parking lot wall is set to achieve the creation of a 3D scene of the parking lot; A camera unit, used for generating camera installation data based on scene information of the parking lot; A transformation unit, configured to complete the installation of the camera in the actual scene based on the installation data, and associate the installed camera with the camera point in the parking lot 3D scene, and obtain a transformation relationship from the actual scene to the parking lot 3D scene through the camera pixel point and the parking lot 3D scene world point; The 3D rendering unit is used to obtain a video stream of the parking lot in real time through a camera, and based on the installation data of the camera and the transformation relationship, update the scene texture in the parking lot 3D scene in real time.
