Parking space addressing method and device, camera control method and device, computer equipment and readable storage medium
By numbering and automatically sorting the pole management groups, globally unique parking space identifiers are generated, solving the problem of insufficient intelligence in existing parking space addressing technologies and realizing an efficient and accurate parking space addressing method.
Patent Information
- Application Number
- CN202511905302.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-04-03
AI Technical Summary
Existing parking space addressing methods are prone to duplicate or missing numbers when deployed on a large scale in cities, and cannot adapt to dynamically changing parking space deployment scenarios, resulting in poor intelligence.
By numbering the pole management groups in the target parking area, a globally unique parking space identifier is generated. The sorting sequence number is determined using the position information of the multi-functional pole and the pixel coordinates of the camera, and a mapping relationship is established to achieve automatic sorting and updating.
It improves the uniqueness, accuracy, and consistency of parking space identifiers, adapts to large-scale, dynamically changing parking space deployment scenarios, reduces maintenance costs, and improves deployment efficiency.
Smart Images

Figure CN121789500A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent transportation technology, and in particular to a parking space addressing method, a camera control method, an apparatus, a computer device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] In modern smart city roadside parking management systems, each parking space needs a unique and stable identifier (i.e., parking space ID) to facilitate parking status detection, vehicle identification, billing, and subsequent data management.
[0003] In related technologies, parking space addressing methods often involve manually numbering the spaces sequentially based on road names and house numbers. This is particularly problematic in large-scale city-level deployments, where errors such as duplicate or missing numbers are common. When the layout of roads or parking spaces changes, the numbering of the entire road segment or even the entire area needs to be replanned and modified, resulting in extremely high maintenance costs and making it unsuitable for large-scale, dynamically changing parking space deployment scenarios.
[0004] Therefore, the parking space addressing methods in related technologies suffer from poor intelligence. Summary of the Invention
[0005] Therefore, it is necessary to provide a parking space addressing method, camera control method, device, computer equipment, computer-readable storage medium, and computer program product that can improve the intelligence of parking space addressing methods in response to the above-mentioned technical problems.
[0006] Firstly, this application provides a parking space addressing method, including:
[0007] Each pole management group in the target parking area is numbered to obtain a group number corresponding to each pole management group; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device;
[0008] Based on the position information of each multifunctional pole in each pole management group, determine the sorting number corresponding to each multifunctional pole in each pole management group;
[0009] For any multi-functional pole, the sorting number of each parking space associated with the multi-functional pole is determined based on the pixel coordinates of the parking space label boxes associated with the multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on the multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera;
[0010] Based on the sorting number of each parking space in the target parking area, the sorting number of the associated multi-functional pole, and the group number, a parking space identifier is generated for each parking space.
[0011] In one embodiment, determining the sorting sequence number corresponding to each multi-functional pole in each of the pole management groups based on the position information of each multi-functional pole in each of the pole management groups includes:
[0012] For any pole management group, based on the preset first sorting rule and the position information of each multifunctional pole in the pole management group, the arrangement order of each multifunctional pole in the pole management group is determined.
[0013] Based on the arrangement order of each multifunctional pole in any pole management group, assign a corresponding sorting number to each multifunctional pole in any pole management group.
[0014] In one embodiment, the location information includes longitude coordinates and latitude coordinates; the step of determining the arrangement order of each multifunctional pole in any pole management group based on the location information corresponding to each multifunctional pole in any pole management group according to a preset first sorting rule includes:
[0015] Based on the road direction of the target road where any pole management group is located in the target parking area, determine the coordinates to be matched in the longitude coordinates and the latitude coordinates;
[0016] Sort the coordinates of each multifunctional pole in any pole management group in ascending order to obtain the arrangement order of each multifunctional pole in any pole management group.
[0017] In one embodiment, before the step of determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space label box associated with any multi-functional pole, the method further includes:
[0018] Determine the target point position of each of the parking space marking frames; the target point position includes the pixel coordinates of the target point of the parking space marking frame in the image coordinate system corresponding to the wide-angle camera on any of the multi-functional poles; the target point includes the geometric center point or any vertex of the parking space marking frame;
[0019] The target point position of each parking space label box is used as the corresponding pixel coordinate;
[0020] The step of determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space label box associated with any multi-functional pole includes:
[0021] According to the preset second sorting rule, the pixel coordinates of each parking space label box are sorted to determine the sorting sequence number of the parking space corresponding to each parking space label box.
[0022] Secondly, this application provides a camera control method, including:
[0023] Acquire event information reported by wide-angle cameras in the target parking area; the event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a parking space status change event; the target parking area includes multiple multi-functional poles; the cameras deployed on each of the multi-functional poles include wide-angle cameras and PTZ cameras;
[0024] Based on the mapping relationship and the target parking space identifier, the target preset position information of the target PTZ camera associated with the target parking space is determined; the encoding method of the mapping relationship and the target parking space identifier is obtained according to the parking space addressing method described above.
[0025] The target PTZ camera is controlled to capture images of the target parking space according to the preset target position information, thereby obtaining an image of the parking space corresponding to the target parking space.
[0026] In one embodiment, determining the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier includes:
[0027] Based on the first part of the target parking space identifier, the target multi-functional pole associated with the target parking space is determined; the first part includes a group number and a sorting number corresponding to the multi-functional pole.
[0028] The PTZ camera on the target multi-functional pole is used as the target PTZ camera;
[0029] Based on the mapping relationship and the second part of the target parking space identifier, a preset position information matching the target parking space is determined from the preset position information corresponding to the target PTZ camera, and is used as the target preset position information; the preset position information corresponding to the target PTZ camera includes the preset position information corresponding to each parking space monitored by the target PTZ camera; the second part includes the sorting number corresponding to the parking space.
[0030] Thirdly, this application also provides a parking space addressing device, comprising:
[0031] The management group numbering module is used to number each pole management group in the target parking area to obtain the group number corresponding to each pole management group; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device;
[0032] The pole numbering module is used to determine the sorting number corresponding to each multifunctional pole in each pole management group based on the position information of each multifunctional pole in each pole management group.
[0033] The position numbering module is used to determine the sorting number of each parking space associated with any multi-functional pole based on the pixel coordinates of the parking space label boxes associated with the multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on the multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera.
[0034] The generation module is used to generate a parking space identifier corresponding to each parking space based on the sorting number corresponding to each parking space in the target parking area, the sorting number corresponding to each associated multi-functional pole, and the group number to which each parking space belongs.
[0035] Fourthly, this application also provides a camera control device, including:
[0036] The acquisition module is used to acquire event information reported by the wide-angle camera in the target parking area; the event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a parking space status change event; the target parking area includes multiple multi-functional poles; the cameras deployed on each of the multi-functional poles include wide-angle cameras and PTZ cameras;
[0037] The determining module is used to determine the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier; the encoding method of the mapping relationship and the target parking space identifier is obtained according to the parking space addressing method described above;
[0038] The control module is used to control the target PTZ camera to capture images of the target parking space according to the target preset position information, thereby obtaining the parking space image corresponding to the target parking space.
[0039] Fifthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, implements the steps of the method described above.
[0040] Sixthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.
[0041] In a seventh aspect, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the above-described method.
[0042] The aforementioned parking space addressing method, device, computer equipment, computer-readable storage medium, and computer program product obtain group numbers corresponding to each pole management group by numbering each pole management group in the target parking area; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device; the group number corresponding to each pole management group is associated with the device identifier corresponding to the associated edge device; based on the position information of each multi-functional pole in each pole management group, the sorting sequence number corresponding to each multi-functional pole in each pole management group is determined; for any multi-functional pole, based on the pixel coordinates of each parking space label box associated with any multi-functional pole, the sorting sequence number corresponding to each parking space associated with any multi-functional pole is determined; a parking space is a parking space that can be monitored by the wide-angle camera on any multi-functional pole; a parking space label box is a label box corresponding to the parking space on the calibration interface; the sorting sequence number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera; based on the sorting sequence number corresponding to each parking space in the target parking area, the sorting sequence number corresponding to each associated multi-functional pole, and the group number to which it belongs, a parking space identifier corresponding to each parking space is generated.
[0043] Thus, by using the same set of parking space coding rules, the pole management groups are automatically divided based on the physical affiliation between the edge device and its connected camera (and the multi-functional pole it is located on), ensuring the uniqueness and stability of the groups and realizing management grouping based on physical connections. Using the location information of the multi-functional poles, the poles within each group are sorted to determine the sorting sequence number for each pole in each management group, avoiding the arbitrariness of manual sorting. Within the field of view of the wide-angle camera associated with the multi-functional pole, the parking spaces are automatically sorted by the pixel coordinates of the parking space marking frames corresponding to the parking spaces monitored by the calibrated wide-angle camera, thereby determining the order of the parking spaces under each multi-functional pole. Furthermore, the parking spaces in the target parking area can be sorted according to their respective positions. Each parking space is assigned a corresponding sorting number, a sorting number associated with its associated multi-functional pole, and a group number. This generates a parking space identifier for each parking space. By combining the sorted numbers from each level, a globally unique, structured parking space identifier strongly correlated with the physical deployment is automatically generated. This three-level hierarchical addressing structure of "management group-lamp pole-parking space" ensures that the parking space identifier itself contains the hierarchical relationship of the physical deployment (i.e., the parking space identifier is a data structure containing rich physical information such as "ownership, location, and order"). It is no longer a meaningless string, which facilitates the development of upper-level applications, ensures the uniqueness, accuracy, and consistency of parking space identifiers during large-scale deployment, and improves deployment efficiency. Furthermore, by establishing a mapping relationship between the sequence number corresponding to the parking space and the preset position information of the associated PTZ camera, when it is necessary to control the PTZ camera to capture a parking space, there is no need for complex queries. The target PTZ camera can be directly parsed from the parking space identifier, and the sequence number corresponding to the parking space can be directly mapped to the preset position information of the target PTZ camera. This achieves fast, accurate, and fully automatic linkage control from "parking space" to "capture action". When adding or removing parking spaces, it is only necessary to re-perform the parking space labeling and sorting operation on the affected multi-functional poles to automatically update the identifiers and preset position mappings of the relevant parking spaces. There is no need to re-plan the entire road segment, adapting to large-scale and dynamically changing parking space deployment scenarios and effectively improving the intelligence of the parking space addressing method. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating a parking space addressing method in one embodiment;
[0046] Figure 2 This is a flowchart illustrating a camera control method in one embodiment;
[0047] Figure 3 This is a schematic diagram of a target parking area in one embodiment;
[0048] Figure 4 This is a flowchart illustrating a parking space addressing method and a camera control method in another embodiment;
[0049] Figure 5 This is a structural block diagram of a parking space addressing device in one embodiment;
[0050] Figure 6 This is a structural block diagram of a camera control device in one embodiment;
[0051] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0053] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0054] In one embodiment, such as Figure 1 As shown, a parking space addressing method is provided. This method can be applied to computer devices. It is understood that the computer device can be a terminal, a server, or a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, a parking management system (hereinafter referred to as "the system") is used as an example for illustration. The method includes the following steps:
[0055] Step S110: Number each pole management group in the target parking area to obtain the group number corresponding to each pole management group.
[0056] The target parking area is an area that contains parking spaces and requires parking space addressing.
[0057] Each pole management group includes at least two multi-functional poles.
[0058] Among them, the multi-functional pole (also known as the multi-functional smart pole, intelligent pole, or smart pole) is an urban information infrastructure that integrates various intelligent devices using a light pole as a carrier. It can mount equipment such as satellite communication, 5G micro base stations, smart lighting, video surveillance, environmental monitoring, and charging piles, and has functions such as data transmission, emergency assistance, and information interaction. It collects real-time data through sensors and uploads it to a cloud management platform to realize applications in smart transportation, security, environmental protection, and other scenarios.
[0059] In this system, all cameras on the multi-functional poles within the same pole management group are connected to the same edge device.
[0060] The camera on the multi-functional pole in this application may include a wide-angle camera and a PTZ camera.
[0061] Wide-angle cameras refer to cameras with a large field of view (FOV) for monitoring large-scale scenes and detecting parking space occupancy.
[0062] Among them, a PTZ camera refers to a camera that integrates a pan-tilt head (which can rotate horizontally and vertically) and a zoom lens (which can zoom in and out), and is used to take high-precision, close-up shots of specific targets.
[0063] In this application, the edge device may refer to an edge-aware computing appliance (also known as an edge-aware computing appliance). An edge-aware computing appliance is an intelligent device deployed at the network edge (such as on a street lamp pole) that integrates data acquisition, AI analysis, device control and communication functions and can complete most computing tasks locally.
[0064] In this context, the group number corresponding to each pole management group is associated with the device identifier corresponding to the edge device.
[0065] The device identifier corresponding to the edge device can be a unique identifier for the edge device, such as a MAC address (Media Access Control Address) or a serial number.
[0066] In practice, after automatically dividing the pole management groups in the target parking area according to the physical relationship between the edge device and the camera it is connected to (and the multi-functional pole it is located on), the system can number each pole management group in the target parking area to obtain the group number corresponding to each pole management group.
[0067] In some embodiments, during system deployment, an edge computing all-in-one machine connects via wired or wireless means to all cameras on a group (e.g., 7, the exact number depending on actual needs) of multi-functional poles within a specific range. This application defines a "pole management group" as a set of multi-functional poles connected to the same edge computing all-in-one machine. The system can automatically assign a unique group number (e.g., G01, G02, ...) to each pole management group based on the device identifier of the edge computing all-in-one machine (such as MAC address or serial number). Thus, by automatically dividing pole management groups according to the physical affiliation between the edge computing all-in-one machine and the cameras (and their respective multi-functional poles), the uniqueness and stability of the grouping are ensured.
[0068] Step S120: Based on the position information of each multi-functional pole in each pole management group, determine the sorting number corresponding to each multi-functional pole in each pole management group.
[0069] The location information includes, but is not limited to, the geospatial location information of the multi-functional pole and the physical topology location information of the multi-functional pole on the power supply or communication link.
[0070] In practice, the system can determine the sorting number of each multi-functional pole in each pole management group based on the position information of each multi-functional pole in each group. Specifically, within each pole management group, the system can sort the multi-functional poles in the group according to the position information of each multi-functional pole in the group and through a preset first sorting rule, thereby obtaining the sorting number of each multi-functional pole in the group.
[0071] Furthermore, during installation, the location information of each multi-functional pole is entered into the system along with its physical ID (such as asset number). For a specific pole management group (e.g., G01), the system retrieves the location information of all multi-functional poles within that group. By executing a deterministic sorting algorithm and following the sorting rules defined by the algorithm, a stable and unchanging arrangement order of the multi-functional poles within the group can be obtained. The system then assigns sorting numbers (e.g., P01, P02, ..., P07) to the multi-functional poles within the group according to this arrangement order.
[0072] Step S130: For any multi-functional pole, determine the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of the parking space label boxes associated with any multi-functional pole.
[0073] In its implementation, for any given multi-functional pole, the system can determine the sequence number of each parking space associated with that multi-functional pole based on the pixel coordinates of the parking space label boxes associated with that pole. Here, a parking space refers to a parking space that can be monitored by the wide-angle camera on the multi-functional pole. The parking space label box refers to the label box corresponding to the parking space on the calibration interface.
[0074] In some embodiments, the user can select a specific multi-functional pole (such as G01-P04) in the calibration software. The software interface (calibration interface) of the calibration software will display the real-time video feed from the wide-angle camera on the multi-functional pole. The user can sequentially select all parking spaces clearly monitored by the wide-angle camera on the real-time video feed, forming multiple polygonal or rectangular frames as parking space marker frames. For each parking space marker frame, the calibration software can automatically calculate its pixel coordinates (x, y) in the image coordinate system.
[0075] Thus, within the field of view of the wide-angle camera associated with the multi-functional pole, parking spaces are marked out through human-computer interaction (such as selecting in the background software), and parking space marking boxes are obtained. These parking space marking boxes are sorted according to the pixel coordinates in the image coordinate system of the wide-angle camera, thereby determining the unique order of the parking spaces under each multi-functional pole and obtaining the corresponding sorting number of the parking space (e.g., S01, S02, S03, ...).
[0076] The sequence number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera.
[0077] The preset function is a feature of PTZ cameras that allows for the pre-setting and storage of pan / tilt angles and zoom parameters for multiple key positions. By calling the preset number, the PTZ camera can quickly return to its preset state. In practical applications, the PTZ camera can be aimed at each parking space it is responsible for and save each optimal capture angle (target shooting angle) as a "preset" (e.g., Preset 1, Preset 2, ...).
[0078] For example, a mapping relationship can be established between the sequence number (e.g., S02) corresponding to each parking space and the preset position information stored by the associated PTZ camera.
[0079] Step S140: Generate parking space identifiers for each parking space based on the sorting sequence number of each parking space in the target parking area, the sorting sequence number of each associated multi-functional pole, and the group number to which each parking space belongs.
[0080] In practice, the system can generate a parking space identifier (parking space ID) for each parking space based on the sorting number of each parking space in the target parking area, the sorting number of the multi-functional pole associated with each parking space, and the group number to which each parking space belongs.
[0081] In practical applications, the sequence number corresponding to the multi-functional pole can be named the pole number, and the sequence number corresponding to the parking space can be named the space number.
[0082] For example, the parking space identifier format is: [Group Number]-[Pole Number]-[Location Number]. For example, G01-P04-S02 precisely represents "the second parking space under the fourth multi-functional pole in the first pole management group".
[0083] In this way, by combining the serial numbers obtained after automatic sorting of the above levels, a globally unique, structured parking space identifier that is strongly related to the physical deployment is automatically generated. This three-level hierarchical addressing structure of "management group-light pole-parking space" makes the parking space identifier no longer a meaningless string, but a data structure containing rich physical information such as "ownership, location, and order", which provides convenience for upper-level application development.
[0084] In other embodiments, the format of parking space identifiers is not fixed; for example, parking space identifiers can use different delimiters, such as G01_P04_S02. In still other embodiments, the format of parking space identifiers can use fixed-length or variable-length encoding without delimiters, distinguishing different levels by position or specific markers. In some embodiments, the hierarchical order of parking space identifiers can also be adjusted, for example, [pole number]-[position number]-[group number], as long as its structured and parsable characteristics remain unchanged.
[0085] In the above parking space addressing method, the group number corresponding to each pole management group is obtained by numbering each pole management group in the target parking area; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device; the sorting sequence number corresponding to each multi-functional pole in each pole management group is determined according to the position information of each multi-functional pole in each pole management group; for any multi-functional pole, the sorting sequence number corresponding to each parking space associated with any multi-functional pole is determined according to the pixel coordinates of the parking space label boxes associated with any multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on any multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting sequence number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera; the parking space identifier corresponding to each parking space is generated according to the sorting sequence number corresponding to each parking space in the target parking area, the sorting sequence number corresponding to each associated multi-functional pole, and the group number to which it belongs.
[0086] Thus, by using the same set of parking space coding rules, the pole management groups are automatically divided based on the physical affiliation between the edge device and its connected camera (and the multi-functional pole it is located on), ensuring the uniqueness and stability of the groups and realizing management grouping based on physical connections. Using the location information of the multi-functional poles, the poles within each group are sorted to determine the sorting sequence number for each pole in each management group, avoiding the arbitrariness of manual sorting. Within the field of view of the wide-angle camera associated with the multi-functional pole, the parking spaces are automatically sorted by the pixel coordinates of the parking space marking frames corresponding to the parking spaces monitored by the calibrated wide-angle camera, thereby determining the order of the parking spaces under each multi-functional pole. Furthermore, the parking spaces in the target parking area can be sorted according to their respective positions. Each parking space is assigned a corresponding sorting number, a sorting number associated with its associated multi-functional pole, and a group number. This generates a parking space identifier for each parking space. By combining the sorted numbers from each level, a globally unique, structured parking space identifier strongly correlated with the physical deployment is automatically generated. This three-level hierarchical addressing structure of "management group-lamp pole-parking space" ensures that the parking space identifier itself contains the hierarchical relationship of the physical deployment (i.e., the parking space identifier is a data structure containing rich physical information such as "ownership, location, and order"). It is no longer a meaningless string, which facilitates the development of upper-level applications, ensures the uniqueness, accuracy, and consistency of parking space identifiers during large-scale deployment, and improves deployment efficiency. Furthermore, by establishing a mapping relationship between the sequence number corresponding to the parking space and the preset position information of the associated PTZ camera, when it is necessary to control the PTZ camera to capture a parking space, there is no need for complex queries. The target PTZ camera can be directly parsed from the parking space identifier, and the sequence number corresponding to the parking space can be directly mapped to the preset position information of the target PTZ camera. This achieves fast, accurate, and fully automatic linkage control from "parking space" to "capture action". When adding or removing parking spaces, it is only necessary to re-perform the parking space labeling and sorting operation on the affected multi-functional poles to automatically update the identifiers and preset position mappings of the relevant parking spaces. There is no need to re-plan the entire road segment, adapting to large-scale and dynamically changing parking space deployment scenarios and effectively improving the intelligence of the parking space addressing method.
[0087] In some embodiments, determining the sorting sequence number corresponding to each multifunctional pole in each pole management group based on the position information of each multifunctional pole in each pole management group includes: for any pole management group, determining the arrangement order of each multifunctional pole in any pole management group based on the position information of each multifunctional pole in any pole management group according to a preset first sorting rule; and assigning a corresponding sorting sequence number to each multifunctional pole in any pole management group according to the arrangement order of each multifunctional pole in any pole management group.
[0088] In practice, when the system determines the sorting sequence number of each multifunctional pole in each pole management group based on the position information of each multifunctional pole in each pole management group, for any pole management group, the system can determine the arrangement order of each multifunctional pole in any pole management group based on the position information of each multifunctional pole in any pole management group according to the preset first sorting rule; thus, the system can assign a corresponding sorting sequence number to each multifunctional pole in any pole management group according to the arrangement order of each multifunctional pole in any pole management group.
[0089] In some embodiments, the location information includes longitude coordinates and latitude coordinates; according to a preset first sorting rule, based on the location information corresponding to each multifunctional pole in any pole management group, the arrangement order of each multifunctional pole in any pole management group is determined, including: determining the coordinates to be matched in longitude coordinates and latitude coordinates according to the road direction of the target road where the pole management group is located in the target parking area; sorting the coordinates to be matched corresponding to each multifunctional pole in any pole management group in ascending order to obtain the arrangement order of each multifunctional pole in any pole management group.
[0090] Taking location information, including geospatial location information, as an example, geospatial location information refers to the spatial orientation attributes of the multi-functional pole in the actual geographical environment, including but not limited to GPS (Global Positioning System) latitude and longitude coordinates, distance and / or orientation relative to geographical reference objects (such as roads, buildings, and baselines).
[0091] In practice, for any given pole management group, the system can determine the coordinates to be matched in longitude and latitude based on the road direction of the target road within the target parking area. Specifically, the road direction can be used as the primary sorting axis. If the target road runs east-west, the longitude coordinates are the coordinates to be matched. If the target road runs north-south, the latitude coordinates are the coordinates to be matched.
[0092] In this way, the system can sort the coordinates of each multi-functional pole in the pole management group in ascending order, thus obtaining the arrangement order of the multi-functional poles in the pole management group. For example, if the target road runs east-west, the longitude coordinates of each multi-functional pole in the pole management group are sorted in ascending order; if the target road runs north-south, the latitude coordinates of each multi-functional pole in the pole management group are sorted in ascending order.
[0093] Furthermore, if the primary axis coordinates (coordinates on the primary sorting axis), i.e., the coordinates to be matched, of the multi-functional poles are the same, then they are sorted according to the secondary axis coordinates. That is, in the east-west orientation, if at least two multi-functional poles have the same longitude coordinates, then the multi-functional poles with the same longitude coordinates are sorted according to their corresponding latitude coordinates; in the north-south orientation, if at least two multi-functional poles have the same latitude coordinates, then the multi-functional poles with the same latitude coordinates are sorted according to their corresponding longitude coordinates.
[0094] Thus, through the above sorting, the multi-functional rods within the group obtain a stable and unchanging arrangement. The system assigns sorting numbers to the multi-functional rods according to this arrangement (e.g., P01, P02, ..., P07).
[0095] Thus, this embodiment utilizes the GPS latitude and longitude coordinates collected during the installation of the multi-functional poles, and sorts them globally and deterministically according to the sorting rules specified by the set sorting algorithm (for example, sorting by longitude coordinates first, and then by latitude coordinates), eliminating the arbitrariness of manual sorting.
[0096] In other embodiments, road orientation may be disregarded, and the poles within a group may be uniformly sorted unidirectionally by longitude or latitude coordinates. In still other embodiments, geospatial location information may include the distance and / or orientation of the multi-functional poles relative to geographic reference objects (such as roads, buildings, or baselines). Users can define a geographic reference baseline in the target parking area on a geographic map. This geographic reference baseline can be a straight line or curve drawn along the centerline of a road or a preset path. The system can calculate the distance of each multi-functional pole's latitude and longitude coordinates projected onto the geographic reference baseline. This distance may include vertical distance or distance along the line. The multi-functional poles within the group are then sorted according to the order of their projected distances to the geographic reference baseline.
[0097] In some application embodiments, the location information may include the physical topology location information of the multi-function poles on the power supply or communication link, so that the multi-function poles in the group can be sorted based on the physical topology order on the power supply or communication link.
[0098] In this way, by determining the arrangement order of the multifunctional rods within a group through multiple sorting rules, the multifunctional rods within the group can be sorted flexibly.
[0099] In some embodiments, before the step of determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space marking frame associated with any multi-functional pole, the method further includes: determining the target point position of each parking space marking frame; the target point position includes the pixel coordinates of the target point of the parking space marking frame in the image coordinate system corresponding to the wide-angle camera on any multi-functional pole; the target point includes the geometric center point or any vertex of the parking space marking frame; using the target point position of each parking space marking frame as the corresponding pixel coordinates; determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space marking frame associated with any multi-functional pole includes: sorting the pixel coordinates of each parking space marking frame according to a preset second sorting rule to determine the sorting number of the parking space corresponding to each parking space marking frame.
[0100] In specific implementation, before determining the sorting number of each parking space associated with any multi-functional pole based on the pixel coordinates of the parking space marking frames associated with each multi-functional pole, the system can first determine the target point of each parking space marking frame associated with any multi-functional pole. This target point includes the geometric center point or any vertex of the parking space marking frame. The pixel coordinates of the target point in the image coordinate system corresponding to the wide-angle camera on that multi-functional pole are then determined as the pixel coordinates of that parking space marking frame. Thus, during the process of determining the sorting number of each parking space associated with any multi-functional pole based on its pixel coordinates, the system can sort the pixel coordinates of each parking space marking frame according to a preset second sorting rule to determine the sorting number of the parking space corresponding to each marking frame.
[0101] For example, taking the pixel coordinates (x, y) of the parking space label frame as the pixel coordinates of the geometric center point, the pixel coordinates of each parking space label frame associated with any multi-functional pole are sorted according to the preset second sorting rule. For instance, they are uniformly sorted from smallest to largest according to the horizontal coordinate (x value) of the pixel coordinates (x, y) of the geometric center point, which is suitable for parking spaces arranged horizontally in the real-time video image of the wide-angle camera. In this way, the parking spaces from left to right in the real-time video image of the wide-angle camera have a definite arrangement order. The system assigns sorting numbers to the parking spaces according to this arrangement order (e.g., S01, S02, S03, ...). Correspondingly, the parking space identifier format is: [group number]-[pole number]-[space number]. G01-P04-S02 precisely represents "the second parking space from left to right under the fourth multi-functional pole in the first pole management group".
[0102] In some other embodiments, parking spaces can also be uniformly sorted in ascending order according to the vertical coordinate (y-value) of the pixel coordinates (x, y) of the geometric center point, which is suitable for parking spaces arranged vertically in the real-time video frame of the wide-angle camera. In this way, the parking spaces from the top to the bottom of the real-time video frame of the wide-angle camera have a definite arrangement order. Accordingly, the parking space identifier format is: [group number]-[pole number]-[position number], and G01-P04-S02 precisely represents "the second parking space from top to bottom under the fourth multi-functional pole in the first pole management group".
[0103] It is understood that in some embodiments, the pixel coordinates (x, y) of any vertex of the parking space label box can also be used as the pixel coordinates of the parking space label box. For example, taking the pixel coordinates of the top left vertex of the parking space label box as an example, they are uniformly sorted from smallest to largest according to the horizontal coordinate (x value) or vertical coordinate (y value) of the pixel coordinates (x, y) of the top left vertex.
[0104] In some other embodiments, the pixel coordinates of two-dimensional target points can be mapped to one-dimensional values using a space-filling curve (such as a Hilbert curve) before sorting to handle more complex parking layouts.
[0105] The technical solution of this embodiment marks parking spaces within the field of view of a wide-angle camera associated with a multi-functional pole through human-computer interaction (such as selecting a box in the background software), and obtains parking space marking frames. These parking space marking frames are sorted according to the pixel coordinates of these parking space marking frames in the image coordinate system of the wide-angle camera (such as the X coordinate of the geometric center point of the parking space marking frame), thereby determining the unique order of parking spaces under each multi-functional pole.
[0106] The ultimate goal of parking space addressing is to achieve efficient and precise scheduling of PTZ cameras. In some embodiments, such as Figure 2 As shown, a camera control method is provided, which can be applied to a system or edge device. The method includes the following steps:
[0107] Step S210: Obtain event information reported by the wide-angle camera in the target parking area.
[0108] The event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a change in parking space status.
[0109] The target parking area includes multiple multi-functional poles.
[0110] The cameras deployed on each multi-functional pole include wide-angle cameras and PTZ cameras.
[0111] Among them, parking space status change events refer to events in which the status of a parking space changes, such as a vehicle entering or leaving the parking space.
[0112] In practice, when any wide-angle camera in the target parking area detects a change in the status of a parking space (e.g., G01-P04-S02) within its monitoring range (such as a vehicle entering or leaving), it determines that a parking space status change event has occurred. The parking space with the parking space status change event is designated as the target parking space. The wide-angle camera will use the parking space identifier corresponding to the target parking space as the target parking space identifier and report the target parking space identifier and event type as event information to the edge computing all-in-one machine of the pole management group.
[0113] Step S220: Determine the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier.
[0114] Among them, the PTZ camera responsible for monitoring the target parking space in the target parking area is the target PTZ camera associated with the target parking space.
[0115] The mapping relationship and the encoding method of the target parking space identifier are obtained according to the parking space addressing method described above.
[0116] In practical implementation, after receiving event information, the edge computing all-in-one machine can parse the target parking space identifier. Specifically, it can determine the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier. The target preset position information refers to the preset position information corresponding to the target parking space among the preset position information set by the target PTZ camera for each parking space it is responsible for monitoring. During system initialization or calibration, the sequence number (e.g., S02) corresponding to each parking space is bound to a preset position (Preset) information of its corresponding PTZ camera.
[0117] Step S230: Control the target PTZ camera to take pictures of the target parking space according to the target preset position information, and obtain the parking space image corresponding to the target parking space.
[0118] In this way, the target PTZ camera can be controlled to capture images of the target parking space according to the preset target location information, thereby obtaining an image of the parking space. Specifically, the edge computing all-in-one machine can send a shooting command to the target PTZ camera to retrieve the preset target location information, instructing the camera to capture images of the target parking space. After receiving the shooting command, the target PTZ camera automatically and quickly rotates and adjusts its focus to align with the target parking space, captures a high-definition image, and transmits it back to the edge computing all-in-one machine for license plate recognition.
[0119] The aforementioned camera control method acquires event information reported by a wide-angle camera in the target parking area. This event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a change in parking space status. The target parking area includes multiple multi-functional poles. Cameras deployed on each multi-functional pole include wide-angle cameras and PTZ cameras. Based on the mapping relationship and the target parking space identifier, the target preset position information of the PTZ camera associated with the target parking space is determined. The encoding method for the mapping relationship and the target parking space identifier is obtained according to any of the aforementioned parking space addressing methods. The method controls the target PTZ camera to capture images of the target parking space according to the target preset position information, thereby obtaining the parking space image corresponding to the target parking space.
[0120] Thus, when it is necessary to control the PTZ camera to capture a target parking space where a parking space status change event has occurred, the system does not need complex queries. It can directly parse the target PTZ camera from the target parking space identifier corresponding to the target parking space, and determine the target preset position information saved by the target PTZ camera for the target parking space through the mapping relationship. This realizes fast, accurate and fully automatic linkage control from "parking space" to "capture action".
[0121] In some embodiments, determining the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier includes: determining the target multi-functional pole associated with the target parking space based on a first part of the target parking space identifier; the first part includes a group number and a sequence number corresponding to the multi-functional pole; using the PTZ camera on the target multi-functional pole as the target PTZ camera; and determining the preset position information matching the target parking space from each preset position information corresponding to the target PTZ camera based on the mapping relationship and the second part of the target parking space identifier, using it as the target preset position information; each preset position information corresponding to the target PTZ camera includes the preset position information corresponding to each parking space monitored by the target PTZ camera; the second part includes the sequence number corresponding to the parking space.
[0122] In the specific implementation, during the process of determining the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier, the target multi-functional pole associated with the target parking space can be determined based on the first part of the target parking space identifier. The first part includes the group number and the sequence number corresponding to the multi-functional pole. By parsing the first part, the multi-functional pole associated with the target parking space can be identified as the target multi-functional pole. Accordingly, the PTZ camera on the target multi-functional pole is identified as the target PTZ camera associated with the target parking space.
[0123] Furthermore, based on the mapping relationship and the second part of the target parking space identifier, the preset position information matching the target parking space can be determined from the preset position information corresponding to the target PTZ camera, and used as the target preset position information. The second part includes the sorting number corresponding to the parking space. Correspondingly, the second part of the target parking space identifier includes the sorting number corresponding to the target parking space. The preset position information corresponding to the target PTZ camera includes the preset position information corresponding to each parking space monitored by the target PTZ camera.
[0124] For example, the target parking space identifier is in the format: [Group Number]-[Pole Number]-[Location Number], and the target parking space identifier is G01-P04-S02. After receiving the event information, the edge computing all-in-one machine parses the target parking space identifier G01-P04-S02. By parsing the first part of the target parking space identifier, "G01-P04", the system immediately determines that the target PTZ camera to be scheduled is the PTZ camera installed on the "4th multi-functional pole in the 1st group". By parsing the first part of the target parking space identifier, "S02", the system determines that the target to be captured, i.e., the target parking space, is the "2nd parking space" under that multi-functional pole.
[0125] During system initialization or calibration, the sequence number (e.g., S02) for each parking space is bound to a preset position information of its associated PTZ camera. This preset position information stores the pan, tilt, and zoom parameters required for the PTZ camera to rotate to the optimal angle for capturing the parking space. Therefore, the system directly retrieves the preset position number (e.g., Preset_2) corresponding to S02 from a mapping table containing mapping relationships, using it as the target preset position information.
[0126] The edge computing all-in-one machine sends a shooting command to the target PTZ camera on the P04 multi-function pole in the first group, invoking Preset_2. After receiving the shooting command, the target PTZ camera automatically and quickly rotates and adjusts its focus to align with parking space G01-P04-S02, captures a high-definition image of the parking space, and transmits it back to the edge computing all-in-one machine for license plate recognition.
[0127] The technical solution of this embodiment determines the target multi-functional pole associated with the target parking space based on the first part of the target parking space identifier; the first part includes the group number and the sequence number corresponding to the multi-functional pole; the PTZ camera on the target multi-functional pole is used as the target PTZ camera; based on the mapping relationship and the second part of the target parking space identifier, the preset position information matching the target parking space is determined from the preset position information corresponding to the target PTZ camera, and used as the target preset position information; the preset position information corresponding to the target PTZ camera includes the preset position information corresponding to each parking space monitored by the target PTZ camera; the second part includes the sequence number corresponding to the parking space.
[0128] In this way, the target PTZ camera to be called can be directly parsed from the group number of the target parking space identifier and the sorting number corresponding to the multi-functional pole. By mapping the relationship and the sorting number corresponding to the parking space of the target parking space identifier, the target preset position information of the target PTZ camera for the target parking space can be accurately determined. This enables the quick and accurate calculation of which preset position of which PTZ camera should perform the capture by only using the parking space identifier, effectively improving the linkage efficiency and accuracy.
[0129] In some other embodiments, such as Figure 3 The diagram illustrates a target parking area. Each control group within this area comprises seven multi-functional poles, each equipped with a wide-angle camera and a PTZ camera. Based on field testing, taking the parking space at the center of the wide-angle camera's field of view as the origin, each PTZ camera can manage and monitor approximately six parking spaces (as a configuration option). For example, the parking spaces monitored by pole 4 in group 1 have identifiers from 0010303 to 0010503; those monitored by pole 5 in group 1 have identifiers from 0010403 to 0010603; and those monitored by pole 6 in group 1 have identifiers from 0010503 to 0010703.
[0130] For example, after a vehicle leaves parking space 0010501, based on the above information, this parking space falls within the management area of poles 4 and 5 in Group 1. For the PTZ camera on pole 5, the direction of this parking space is negative, and the camera on pole 5 will capture an image of the preceding parking space (one size smaller than 0010501 is 0010406), provided that there is a car in that parking space and the license plate has not been accurately captured. For the PTZ camera on pole 4, the direction of this parking space is positive, and the camera on pole 4 will capture an image of the following parking space (one size larger than 0010501 is 0010502), with the same prerequisites.
[0131] When vehicle 0010501 enters the parking space, based on the above information, this parking space falls within the management area of poles 4 and 5 of Group 1. The PTZ camera on pole 5, facing negative, captures an image of the parking space in front, identifying the rear license plate. The PTZ camera on pole 4, facing positive, identifies the front license plate. Further descriptions are made regarding incomplete license plate stitching and historical collision records, thus achieving license plate recognition.
[0132] In another embodiment, such as Figure 4 The diagram illustrates a parking space addressing method and a camera control method, including the following steps:
[0133] Step S402: Number each pole management group in the target parking area to obtain the group number corresponding to each pole management group.
[0134] Step S404: Determine the coordinates to be matched in longitude and latitude coordinates based on the road direction of the target road where any pole management group is located in the target parking area.
[0135] Step S406: Sort the coordinates to be matched for each multi-functional pole in any pole management group in ascending order to obtain the arrangement order of each multi-functional pole in any pole management group.
[0136] Step S408: Assign a corresponding sorting number to each multifunctional pole in any pole management group according to the arrangement order of each multifunctional pole in any pole management group.
[0137] Step S410: For any multi-functional pole, determine the target point position of each parking space label box associated with that multi-functional pole.
[0138] Step S412: Use the target point position of each parking space marking box as the corresponding pixel coordinate.
[0139] Step S414: Sort the pixel coordinates of each parking space label box to determine the sorting sequence number of the parking space corresponding to each parking space label box.
[0140] Step S416: Generate parking space identifiers for each parking space based on the sorting number of each parking space in the target parking area, the sorting number of each associated multi-functional pole, and the group number to which each parking space belongs.
[0141] Step S418: Obtain event information reported by the wide-angle camera in the target parking area.
[0142] Step S420: Determine the target multi-functional pole associated with the target parking space based on the first part of the target parking space identifier.
[0143] Step S422: Use the PTZ camera on the target multi-function stick as the target PTZ camera.
[0144] Step S424: Based on the mapping relationship and the second part of the target parking space identifier, determine the preset position information that matches the target parking space from the preset position information corresponding to the target PTZ camera, and use it as the target preset position information.
[0145] Step S426: Control the target PTZ camera to take pictures of the target parking space according to the target preset position information, and obtain the parking space image corresponding to the target parking space.
[0146] It should be noted that the specific limitations of the above steps can be found in the specific limitations of a parking space addressing method and a camera control method described above.
[0147] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0148] Based on the same inventive concept, this application also provides a parking space addressing device for implementing the parking space addressing method described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more parking space addressing device embodiments provided below can be found in the limitations of the parking space addressing method above, and will not be repeated here.
[0149] In one exemplary embodiment, such as Figure 5 As shown, a parking space addressing device is provided, including: a management group numbering module 510, a pole numbering module 520, a space numbering module 530, and a generation module 540, wherein:
[0150] The management group numbering module 510 is used to number each pole management group in the target parking area to obtain the group number corresponding to each pole management group; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device.
[0151] The pole numbering module 520 is used to determine the sorting number corresponding to each multifunctional pole of each pole management group based on the position information of each multifunctional pole of each pole management group.
[0152] The position numbering module 530 is used to determine the sorting number of each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space label box associated with the multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on the multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera.
[0153] The generation module 540 is used to generate a parking space identifier corresponding to each parking space based on the sorting number corresponding to each parking space in the target parking area, the sorting number corresponding to each associated multi-functional pole, and the group number to which each parking space belongs.
[0154] In one embodiment, the pole numbering module 520 is specifically used to determine the arrangement order of each multifunctional pole in any pole management group according to a preset first sorting rule and based on the position information of each multifunctional pole in the pole management group; and to assign a corresponding sorting number to each multifunctional pole in the pole management group according to the arrangement order of each multifunctional pole in the pole management group.
[0155] In one embodiment, the location information includes longitude coordinates and latitude coordinates; the pole numbering module 520 is specifically used to determine the coordinates to be matched in the longitude coordinates and the latitude coordinates according to the road direction of the target road in the target parking area where any pole management group is located; and to sort the coordinates to be matched corresponding to each multifunctional pole in any pole management group in ascending order to obtain the arrangement order of each multifunctional pole in any pole management group.
[0156] In one embodiment, the position numbering module 530 is further configured to determine the target point position of each of the parking space marking frames; the target point position includes the pixel coordinates of the target point of the parking space marking frame in the image coordinate system corresponding to the wide-angle camera on any multi-functional pole; the target point includes the geometric center point or any vertex of the parking space marking frame; the target point position of each of the parking space marking frames is used as the corresponding pixel coordinates; the position numbering module 530 is specifically configured to sort the pixel coordinates of each of the parking space marking frames according to a preset second sorting rule, and determine the sorting sequence number of the parking space corresponding to each of the parking space marking frames.
[0157] Each module in the aforementioned parking space addressing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0158] Based on the same inventive concept, this application also provides a camera control device for implementing the camera control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more camera control device embodiments provided below can be found in the limitations of the camera control method described above, and will not be repeated here.
[0159] In one exemplary embodiment, such as Figure 6 As shown, a camera control device is provided, including: an acquisition module 610, a determination module 620, and a control module 630, wherein:
[0160] The acquisition module 610 is used to acquire event information reported by the wide-angle camera in the target parking area; the event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a parking space status change event; the target parking area includes multiple multi-functional poles; the cameras deployed on each of the multi-functional poles include wide-angle cameras and PTZ cameras.
[0161] The determining module 620 is used to determine the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier; the mapping relationship and the target parking space identifier are encoded according to the parking space addressing method described above.
[0162] The control module 630 is used to control the target PTZ camera to capture images of the target parking space according to the target preset position information, so as to obtain the parking space image corresponding to the target parking space.
[0163] In one embodiment, the determining module 620 is specifically configured to determine a target multi-functional pole associated with the target parking space based on a first part of the target parking space identifier; the first part includes a group number and a sorting number corresponding to the multi-functional pole; the PTZ camera on the target multi-functional pole is designated as the target PTZ camera; based on the mapping relationship and a second part of the target parking space identifier, preset position information matching the target parking space is determined from the preset position information corresponding to the target PTZ camera, and designated as the target preset position information; the preset position information corresponding to the target PTZ camera includes preset position information corresponding to each parking space monitored by the target PTZ camera; the second part includes the sorting number corresponding to the parking space.
[0164] Each module in the aforementioned camera control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0165] In one exemplary embodiment, a computer device is provided, which may be a parking management system, and its internal structure diagram may be as follows. Figure 7 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a parking space addressing method and / or a camera control method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0166] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0167] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0168] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0169] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0172] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0173] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A parking space addressing method, characterized in that, The method includes: Each pole management group in the target parking area is numbered to obtain a group number corresponding to each pole management group; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device; Based on the position information of each multifunctional pole in each pole management group, determine the sorting number corresponding to each multifunctional pole in each pole management group; For any multi-functional pole, the sorting number of each parking space associated with the multi-functional pole is determined based on the pixel coordinates of the parking space label boxes associated with the multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on the multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera; Based on the sorting number of each parking space in the target parking area, the sorting number of the associated multi-functional pole, and the group number, a parking space identifier is generated for each parking space.
2. The method according to claim 1, characterized in that, The step of determining the sequence number corresponding to each multi-functional pole in each pole management group based on the position information of each multi-functional pole in each pole management group includes: For any pole management group, based on the preset first sorting rule and the position information of each multifunctional pole in the pole management group, the arrangement order of each multifunctional pole in the pole management group is determined. Based on the arrangement order of each multifunctional pole in any pole management group, assign a corresponding sorting number to each multifunctional pole in any pole management group.
3. The method according to claim 2, characterized in that, The location information includes longitude coordinates and latitude coordinates; the step of determining the arrangement order of each multifunctional pole in any pole management group based on the location information corresponding to each multifunctional pole in any pole management group according to a preset first sorting rule includes: Based on the road direction of the target road where any pole management group is located in the target parking area, determine the coordinates to be matched in the longitude coordinates and the latitude coordinates; Sort the coordinates of each multifunctional pole in any pole management group in ascending order to obtain the arrangement order of each multifunctional pole in any pole management group.
4. The method according to claim 1, characterized in that, Before the step of determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space label box associated with any multi-functional pole, the method further includes: Determine the target point position of each of the parking space marking frames; the target point position includes the pixel coordinates of the target point of the parking space marking frame in the image coordinate system corresponding to the wide-angle camera on any of the multi-functional poles; the target point includes the geometric center point or any vertex of the parking space marking frame; The target point position of each parking space label box is used as the corresponding pixel coordinate; The step of determining the sorting number corresponding to each parking space associated with any multi-functional pole based on the pixel coordinates of each parking space label box associated with any multi-functional pole includes: According to the preset second sorting rule, the pixel coordinates of each parking space label box are sorted to determine the sorting sequence number of the parking space corresponding to each parking space label box.
5. A camera control method, characterized in that, The method includes: Acquire event information reported by wide-angle cameras in the target parking area; the event information includes the target parking space identifier corresponding to the target parking space where the wide-angle camera detected a parking space status change event; the target parking area includes multiple multi-functional poles; the cameras deployed on each of the multi-functional poles include wide-angle cameras and PTZ cameras; Based on the mapping relationship and the target parking space identifier, the target preset position information of the target PTZ camera associated with the target parking space is determined; the encoding method of the mapping relationship and the target parking space identifier is obtained by the parking space addressing method according to any one of claims 1 to 4; The target PTZ camera is controlled to capture images of the target parking space according to the preset target position information, thereby obtaining the parking space image corresponding to the target parking space.
6. The method according to claim 5, characterized in that, The step of determining the target preset position information of the target PTZ camera associated with the target parking space based on the mapping relationship and the target parking space identifier includes: Based on the first part of the target parking space identifier, the target multi-functional pole associated with the target parking space is determined; the first part includes a group number and a sorting number corresponding to the multi-functional pole. The PTZ camera on the target multi-functional pole is used as the target PTZ camera; Based on the mapping relationship and the second part of the target parking space identifier, a preset position information matching the target parking space is determined from the preset position information corresponding to the target PTZ camera, and is used as the target preset position information; the preset position information corresponding to the target PTZ camera includes the preset position information corresponding to each parking space monitored by the target PTZ camera; the second part includes the sorting number corresponding to the parking space.
7. A parking space addressing device, characterized in that, The device includes: The management group numbering module is used to number each pole management group in the target parking area to obtain the group number corresponding to each pole management group; each pole management group includes at least two multi-functional poles; all cameras on the multi-functional poles in the same pole management group are connected to the same edge device; The pole numbering module is used to determine the sorting number corresponding to each multifunctional pole in each pole management group based on the position information of each multifunctional pole in each pole management group. The position numbering module is used to determine the sorting number of each parking space associated with any multi-functional pole based on the pixel coordinates of the parking space label boxes associated with the multi-functional pole; the parking space is the parking space that can be monitored by the wide-angle camera on the multi-functional pole; the parking space label box is the label box corresponding to the parking space on the calibration interface; the sorting number corresponding to the parking space is used to establish a mapping relationship with the preset position information of the associated PTZ camera. The generation module is used to generate a parking space identifier corresponding to each parking space based on the sorting number corresponding to each parking space in the target parking area, the sorting number corresponding to each associated multi-functional pole, and the group number to which each parking space belongs.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
