Parking management method and system
By setting up visual positioning signs and image collection devices in the parking area, combined with the sign recognition model, the problem of poor positioning accuracy of non-motorized vehicles caused by GPS signal drift is solved, and accurate parking management and resource optimization are achieved.
Patent Information
- Application Number
- CN202210519670.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-13
AI Technical Summary
In areas with complex environments such as dense buildings, GPS signals drift, resulting in poor positioning accuracy for non-motorized vehicles, which may lead to incorrect locking or failure to lock the vehicle.
By pre-setting visual positioning signs in the designated parking area, using image acquisition devices to collect images of the environment around the vehicle, using a sign recognition model to determine whether the vehicle is located in the designated parking area, and managing it based on the parking direction and posture requirements of the vehicle.
It avoids poor positioning accuracy caused by GPS signal drift, ensures accurate locking and parking management of non-motor vehicles, reduces the impact of vehicle parking direction and posture on the city's appearance, and reduces the waste of parking space resources.
Smart Images

Figure CN115019498B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of parking management, and in particular to a parking management method and system. Background Art
[0002] With the development of the "sharing economy" and the rise of industries such as express delivery and food delivery, the problem of random parking of non-motorized vehicles such as bicycles and electric vehicles has attracted more and more attention. In order to maintain the appearance of the city, a reliable means is needed to regulate the parking of non-motorized vehicles.
[0003] In the prior art, the parking management of non-motorized vehicles is usually carried out in combination with GPS (Global Positioning System). For example, for shared bicycles, after receiving the user's lock command, the GPS signal of the shared bicycle can be obtained first, and the GPS signal can be used to determine whether the shared bicycle is located in the designated parking area. If it is located in the designated parking area, the shared bicycle is locked according to the lock command, so as to achieve the purpose of managing the standardized parking of shared bicycles.
[0004] However, in the above-mentioned method of managing parking for non-motor vehicles by combining GPS, due to the drift of GPS signals and poor positioning accuracy in complex environments such as densely populated buildings, problems such as incorrect locking or locking failure of non-motor vehicles may occur. Summary of the invention
[0005] The present application provides a parking management method and system, which can avoid the problems of poor positioning accuracy, incorrect locking or locking failure of non-motor vehicles due to drift of GPS signals in complex environment areas. The technical solution is as follows:
[0006] In a first aspect, a parking management method is provided, the method comprising:
[0007] If a locking instruction of the vehicle is received, acquiring an image of the environment around the vehicle acquired by an image acquisition device configured for the vehicle;
[0008] The environment image is used as an input of a sign recognition model, and structural information of a visual positioning sign in the environment image is determined by the sign recognition model, wherein the visual positioning sign is set in a designated parking area, and the structural information is used to indicate a sign feature of the visual positioning sign;
[0009] determining whether the vehicle is located in the designated parking area according to the structured information;
[0010] If it is determined that the vehicle is located in the designated parking area, the vehicle is locked according to the locking instruction.
[0011] As an example, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, and a detection box in the environment image and a confidence level of the detection box;
[0012] The determining whether the vehicle is located in the designated parking area according to the structured information includes:
[0013] Determine whether the vehicle is located in the designated parking area according to the identification category of each positioning identification in the at least one positioning identification and the confidence of the detection frame
[0014] As an example, determining whether the vehicle is located in the designated parking area according to the identification category of each positioning identification in the at least one positioning identification and the confidence of the detection frame includes:
[0015] Determine a weight corresponding to each positioning identifier according to the identifier category of each positioning identifier in the at least one positioning identifier;
[0016] According to the confidence of the detection frame of each positioning mark in the at least one positioning mark and the weight corresponding to each positioning mark, the confidence of the detection frame of the at least one positioning mark is weighted summed to obtain the confidence that the vehicle is located in the designated parking area:
[0017] If the confidence that the vehicle is located in the designated parking area is greater than a confidence threshold, determining that the vehicle is located in the designated parking area;
[0018] If the confidence level that the vehicle is located in the designated parking area is less than or equal to the confidence threshold, it is determined that the vehicle is not located in the designated parking area.
[0019] As an example, before locking the vehicle according to the locking instruction, the method further includes:
[0020] determining, according to the structured information, whether the parking direction of the vehicle meets the direction requirement, and whether the parking posture of the vehicle meets the posture requirement;
[0021] If it is determined that the vehicle is located in the designated parking area, the parking direction meets the direction requirement, and the parking posture meets the posture requirement, then the step of locking the vehicle according to the locking instruction is executed.
[0022] As an example, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, and a pixel position, a detection box, and a confidence level of the detection box in the environment image;
[0023] The determining, according to the structured information, whether the parking direction of the vehicle meets the direction requirement and whether the parking posture of the vehicle meets the posture requirement includes:
[0024] Determining whether the parking direction of the vehicle meets the direction requirement according to the identification category of each positioning identification in the at least one positioning identification and the pixel position in the environment image;
[0025] Determine whether the parking posture of the vehicle meets the posture requirement according to the detection frame of each positioning mark in the environment image and the confidence of the detection frame.
[0026] As an example, determining whether the parking direction of the vehicle meets the direction requirement according to the identification category of each positioning identification in the at least one positioning identification and the pixel position in the environment image includes:
[0027] Determine a positional relationship between the at least one positioning marker according to the identification category of each positioning marker in the at least one positioning marker and the pixel position in the environment image;
[0028] If the position relationship meets the first preset condition, determining that the parking direction of the vehicle meets the direction requirement;
[0029] If the position relationship does not meet the first preset condition, it is determined that the parking direction of the vehicle does not meet the direction requirement.
[0030] As an example, determining whether the parking posture of the vehicle meets the posture requirement according to the detection frame of each positioning mark in the environment image and the confidence of the detection frame includes:
[0031] Determine, from the at least one positioning identifier, a positioning identifier with the greatest confidence in the detection frame as a target positioning identifier;
[0032] Determining the parking posture of the vehicle according to the width and height of the detection frame of the target positioning mark;
[0033] If the parking posture meets the second preset condition, determining that the parking posture of the vehicle meets the posture requirement;
[0034] If the parking posture does not meet the second preset condition, it is determined that the parking posture of the vehicle does not meet the posture requirement.
[0035] As an example, the identifier recognition model includes an identifier detection module and an identifier classification module, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, as well as a pixel position, a detection box, and a confidence level of the detection box in the environment image;
[0036] The step of using the environment image as an input of a marker recognition model and determining structured information of a visual positioning marker in the environment image by using the marker recognition model includes:
[0037] Using the environment image as input of the marker detection module, performing feature extraction on the environment image through the marker detection module to obtain a pixel position, a detection frame, and a confidence level of the detection frame of each positioning mark in the at least one positioning mark;
[0038] The pixel position, detection frame and confidence of each positioning marker in the at least one positioning marker are used as inputs of the marker classification module, and the marker attributes of each positioning marker are determined by the marker classification module. According to the marker attributes of each positioning marker, the marker category of each positioning marker is determined, and the marker attributes include one or more of color, shape, width, height and texture.
[0039] As an example, before taking the environment image as an input of a marker recognition model and determining the structured information of the visual positioning marker in the environment image by the marker recognition model, the method further includes:
[0040] Acquire a sample environment image around a sample vehicle;
[0041] Annotating the sample environment image to obtain sample structured information of the visual positioning identifier in the sample environment image, wherein the sample structured information is used to indicate a sample identifier feature of each positioning identifier in at least one positioning identifier;
[0042] The marker recognition model to be trained is trained according to the sample environment image and the sample structured information to obtain the marker recognition model, and the marker recognition model is used to recognize the structured information of the visual positioning marker in any environment image.
[0043] As an example, the training of the identification recognition model to be trained according to the sample environment image and the sample structured information to obtain the identification recognition model includes:
[0044] Inputting the sample environment image into the to-be-trained mark recognition model, and determining predicted structural information of the visual positioning mark in the sample environment image through the to-be-trained mark recognition model;
[0045] Determining a recognition error of the to-be-trained identification model according to the sample structured information and the predicted structured information;
[0046] According to the recognition error, the model parameters of the to-be-trained identification recognition model are adjusted, and the to-be-trained identification recognition model after the model parameters are adjusted is used as the identification recognition model.
[0047] In a second aspect, a parking management system is provided, the parking management system comprising an image acquisition device and a main control unit, the image acquisition device being fixedly connected to a vehicle;
[0048] The image acquisition device is used to acquire an image of the environment around the vehicle;
[0049] The main control unit is configured to obtain an image of the environment around the vehicle captured by an image capture device configured for the vehicle if a locking instruction of the vehicle is received;
[0050] The main control unit is further used to use the environment image as an input of a mark recognition model, and determine structured information of a visual positioning mark in the environment image through the mark recognition model, wherein the visual positioning mark is set in a designated parking area, and the structured information is used to indicate a mark feature of the visual positioning mark;
[0051] The main control unit is further used to determine whether the vehicle is located in the designated parking area according to the structured information;
[0052] The main control unit is further configured to lock the vehicle according to the locking instruction if it is determined that the vehicle is located in the designated parking area.
[0053] As an example, the acquisition angle of the image acquisition device is within a preset angle range, and the preset angle range is used to control the environmental image acquired by the image acquisition device to include the ground environment in front of the vehicle.
[0054] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0055] In an embodiment of the present application, if a vehicle locking instruction is received, an environmental image of the vehicle's surroundings captured by an image acquisition device configured for the vehicle is obtained, and then the environmental image is used as an input to a marker recognition model, and the structured information of the visual positioning marker in the environmental image is determined by the marker recognition model, and then it is determined whether the vehicle is located in a designated parking area based on the structured information. If it is determined that the vehicle is located in the designated parking area, the vehicle is locked according to the locking instruction. Among them, the structured information is used to indicate the identification features of the visual positioning marker. In this way, by pre-setting a visual positioning marker in a designated parking area, and determining whether the vehicle is located in the designated parking area based on the visual positioning marker in the acquired environmental image of the vehicle, it is possible to avoid problems such as poor positioning accuracy caused by drift of GPS signals in complex environmental areas, and incorrect locking or failure of non-motor vehicles. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0057] Figure 1 is a system schematic diagram of a parking management system provided by an embodiment of the present application;
[0058] Figure 2 is a flow chart of a parking management method provided by an embodiment of the present application;
[0059] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0061] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0062] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first described.
[0063] Since non-motorized vehicles such as bicycles and electric vehicles can be unlocked or locked anytime and anywhere, solving the "last mile" problem, they have become one of the important tools in people's travel life. However, the emergence of non-motorized vehicles has also brought many inconveniences to urban management and has had a great impact on the city's appearance. For example, users park non-motorized vehicles at will, push them down, etc., which not only increases the workload of maintenance personnel, but also brings great pressure to urban management. In order to maintain the city's appearance and reduce the burden of urban management, a reliable means is needed to regulate the parking of non-motorized vehicles.
[0064] The existing technology usually combines GPS (Global Positioning System) technology to manage the parking of non-motorized vehicles to solve the problem of random parking of non-motorized vehicles. For example, for shared bicycles, the existing technology usually manages the parking of shared bicycles based on the GPS signal on the vehicle, and determines whether the vehicle enters the designated parking area through the GPS signal. If it is determined that the vehicle enters the designated parking area, the shared bicycle is locked according to the lock instruction.
[0065] However, in the above-mentioned method of parking management for non-motorized vehicles in combination with GPS, due to the drift of GPS signals and poor positioning accuracy in complex environments such as densely populated buildings, it may cause problems such as incorrect locking or failure of non-motorized vehicles. For example, due to poor GPS positioning accuracy, a shared bicycle is incorrectly determined to be located in a designated parking area, resulting in incorrect locking of the bicycle.
[0066] Based on this, the embodiment of the present application proposes a parking management method, which pre-sets a visual positioning mark in a designated area, and determines whether the vehicle is located in the designated parking area according to the visual positioning mark in the environmental image around the vehicle, thereby avoiding the problems of poor positioning accuracy due to drift of GPS signals in complex environmental areas, incorrect locking of non-motor vehicles or failure to lock the vehicle, etc. In addition, according to the visual positioning mark in the environmental image, it is also possible to determine whether the parking direction and parking posture of the vehicle meet the specifications, thereby further managing the parking of non-motor vehicles, reducing the impact of the parking direction and parking posture of the vehicle on the city's appearance, and reducing the waste of parking space resources.
[0067] A parking management system provided in an embodiment of the present application is explained in detail below.
[0068] Please refer to Figure 1 , Figure 1 Schematic diagram of a parking management system provided by an embodiment of the present application. Figure 1 As shown, the parking management system includes an image acquisition device 101 and a main control unit 102. The parking management method proposed in the embodiment of the present application can be applied to Figure 1 Parking management system in.
[0069] The vehicle may be a bicycle, an electric vehicle or other non-motorized vehicle, and the vehicle can be unlocked or locked anytime and anywhere. Figure 1 As shown, the vehicle is a bicycle. It should be noted that Figure 1 The vehicle in the figure is only used as an example and is not intended to be limiting of the vehicle.
[0070] The image acquisition device 101 is fixedly connected to the vehicle and is used to acquire environmental images around the vehicle.
[0071] The form of the environmental image can be a photo. In addition, the image acquisition module 101 can also capture the environment around the vehicle in the form of a video, that is, the image acquisition module 101 can also capture the environment video around the vehicle, which is not limited in the embodiment of the present application.
[0072] The image acquisition device 101 may be a camera with a shooting function or a camera with a monitoring function. The image acquisition device 101 has an acquisition angle and an acquisition range (area).
[0073] For example, the included angle between the image acquisition device 101 and the vertical direction of the vehicle body is the acquisition angle, and the acquisition angle of the image acquisition device 101 is within a preset angle range. The preset angle range is used to control the environmental image acquired by the image acquisition device 101 to include the ground environment in front of the vehicle.
[0074] As an example, the image acquisition device 101 may be directly fixedly connected to the vehicle, or connected to the vehicle via a connector, for example, may be fixedly connected to the vehicle by welding.
[0075] As an example, the image acquisition device 101 does not rotate along with the rotation of the front of the vehicle, and the posture of the image acquisition device 101 remains consistent with the posture of the body of the vehicle.
[0076] The main control unit 102 is used to obtain the environment image around the vehicle captured by the image acquisition device 101 configured for the vehicle if a locking instruction of the vehicle is received.
[0077] The main control unit 102 is also used to use the environmental image as an input of the identification recognition model, and determine the structured information of the visual positioning identification in the environmental image through the identification recognition model. The visual positioning identification is set in the designated parking area, and the structured information is used to indicate the identification features of the visual positioning identification.
[0078] The main control unit 102 is further configured to determine whether the vehicle is located in a designated parking area according to the structured information.
[0079] The main control unit 102 is further configured to lock the vehicle according to a locking instruction if it is determined that the vehicle is located in a designated parking area.
[0080] The main control unit 102 may be a device with processing capabilities, for example, the main control unit 102 may be a computer device or a processor with processing capabilities.
[0081] As an example, the main control unit 102 can be directly fixedly connected to the vehicle, or connected to the vehicle through a connector. In this case, the main control unit 102 can be a processor with processing capabilities. Alternatively, the main control unit 102 is not connected to the vehicle, and the main control unit 102 can remotely obtain the environmental image around the vehicle captured by the image acquisition module 101, and determine whether the vehicle is located in the designated parking area based on the environmental image. In this case, the main control unit 102 can be a computer device, and the computer device can be a terminal or a server, etc.
[0082] For example, Figure 1 As shown, the main control unit 102 is fixedly connected to the vehicle via a connecting piece.
[0083] The main control unit 102 and the image acquisition module 101 may be connected in a wired manner or a wireless manner. For example, the main control unit 102 is connected to the vehicle, and the main control unit 102 may be connected to the image acquisition module 101 in a wired manner.
[0084] In addition, a visual positioning mark can be set in advance in the designated parking area, that is, a visual positioning mark can be set in a special area or a special position in the designated parking area. The visual positioning mark can be pasted in the designated parking area or printed on the ground of the designated parking area. The embodiment of the present application does not limit the setting form of the visual positioning mark.
[0085] Visual positioning marks are graphics for visual positioning. Visual positioning marks are easy to identify and expand. For example, Figure 1 As shown, the visual positioning mark can be printed on the ground at the edge of the designated parking area, and the visual positioning mark includes a first positioning mark 1031 and a second positioning mark 1032. The first positioning mark 1031 and the second positioning mark 1032 are both rectangular printed marks, but the first positioning mark 1031 and the second positioning mark 1032 have different widths and heights, and the first positioning mark 1031 and the second positioning mark 1032 have different texture features.
[0086] In addition, the first positioning mark 1031 and the second positioning mark 1032 may also have different colors. For example, the first positioning mark 1031 is yellow, and the second positioning mark 1032 is white.
[0087] Since the visual positioning mark is located in the designated parking area, if the vehicle is located in the designated parking area, or if the vehicle is located in the vicinity of the designated parking area, the environment image captured by the image acquisition device 101 may include the visual positioning mark, and the main control unit 102 can determine whether the vehicle is located in the designated parking area based on the visual positioning mark in the environment image around the vehicle, for example, determine whether the vehicle is located in the designated parking area based on the structured information of the visual positioning mark. In this way, the poor positioning accuracy caused by the drift of the GPS signal in complex environment areas, the incorrect locking or failure of non-motor vehicles to lock the vehicle, and other problems can be avoided.
[0088] In addition, if Figure 1 As shown, the parking management system may further include at least one of a locking device 104 , a communication device 105 , and an alarm device 106 .
[0089] The locking device 104 is used to unlock or lock the vehicle.
[0090] As an example, the locking device 104 may include a locking module. The locking module is used to lock the vehicle according to a locking instruction, or unlock the vehicle according to an unlocking instruction. For example, the locking module may be a mechanical device for mechanically unlocking or mechanically locking the vehicle.
[0091] As an example, the locking device 104 may further include a detection module. The detection module is used to detect the user's locking operation, and if a locking operation is detected, a locking request is sent to the main control unit 102. The main control unit 102 receives the locking request sent by the detection module, generates a locking instruction according to the locking request, and sends the locking instruction to the locking module.
[0092] The locking device 104 may be fixed on the vehicle, and the main control unit 102 and the locking device 104 may be connected via a wired or wireless connection.
[0093] As an example, the locking device 104 may be directly fixedly connected to the vehicle, or connected to the vehicle via a connecting member, for example, may be fixedly connected to the vehicle by welding.
[0094] The communication device 105 is used to communicate with systems or devices outside the parking management system.
[0095] For example, the communication device 105 may receive a locking instruction sent from outside the system. If the communication device 105 receives a locking instruction sent from outside the system, it sends the locking instruction to the main control unit 102. The main control unit 102 receives the locking instruction and sends the locking instruction to the locking device 104. Thereafter, the locking device 104 locks the vehicle according to the locking instruction.
[0096] The communication device 105 can be fixed on the vehicle, the main control unit 102 and the communication device 105 can be connected by wire or wirelessly, and the communication device 105 and devices outside the parking management system can be connected by wire or wirelessly.
[0097] As an example, the communication device 105 may be directly fixedly connected to the vehicle, or connected to the vehicle via a connector, for example, may be fixedly connected to the vehicle by welding.
[0098] The alarm device 106 is used to send out alarm information.
[0099] For example, the alarm device 106 may be a speaker, and the alarm device 106 sends out alarm information through the speaker.
[0100] Next, the parking management method provided in the embodiment of the present application is described.
[0101] Please refer to Figure 2 , Figure 2 is a flow chart of a parking management method provided in an embodiment of the present application, which can be applied to Figure 1 In the parking management system shown in FIG. 1 , the parking management system may include an image acquisition device and a main control unit, and the image acquisition device is fixedly connected to the vehicle. Figure 2 As shown, the method comprises the following steps:
[0102] Step 201: If the main control unit receives a locking instruction from the vehicle, it sends an image acquisition instruction to an image acquisition device configured for the vehicle.
[0103] The locking instruction is used to instruct the main control unit to lock the vehicle, and the acquiring image instruction is used to instruct the image acquisition device to acquire an environmental image around the vehicle.
[0104] The locking instruction may be triggered by a user through a locking operation, or may be automatically triggered by the main control unit.
[0105] As an example, Figure 1 As shown, the parking management system further includes a communication device. If the communication device receives a locking instruction sent from outside the system, the communication device sends the locking instruction to the main control unit. Afterwards, the main control unit receives the locking instruction sent by the communication device.
[0106] Among them, the locking instruction sent from outside the system is triggered by the user through a locking operation. For example, the communication device communicates with a mobile phone outside the parking management system. When the user needs to lock the vehicle, the user can perform the locking operation through the mobile phone. If the mobile phone detects the locking operation, it sends a locking instruction to the communication device. The communication device receives the locking instruction sent by the mobile phone and sends the locking instruction to the main control unit. That is, when the user needs to lock the vehicle, the main control unit obtains the locking instruction.
[0107] Among them, the locking operation can be performed by the user, and the operation type of the locking operation can be a click operation, a press operation, a language operation or a gesture operation, etc., which is not limited in the embodiment of the present application.
[0108] The main control unit and the communication device may be connected via a wired or wireless connection, and the communication device and devices other than the parking management system may be connected via a wired or wireless connection.
[0109] As an example, Figure 1 As shown, the parking management system also includes a locking device. If the locking device detects a locking operation performed by a user, it sends a locking request to the main control unit. The main control unit receives the locking request sent by the locking device and generates a locking instruction according to the locking request. The locking instruction can be automatically triggered by the main control unit according to the locking request.
[0110] For example, the locking device may include a detection module, and when the user needs to lock the vehicle, the user can perform a locking operation through the detection module. Afterwards, if the detection module detects the locking operation performed by the user, it sends a locking request to the main control unit. The main control unit receives the locking request sent by the locking device and generates a locking instruction according to the locking request. That is, when the user needs to lock the vehicle, the main control unit obtains the locking instruction.
[0111] For example, the detection module is a lock button, and the user can perform a lock operation by pressing the lock button. The lock button can detect the lock operation and send a lock request to the main control unit.
[0112] The main control unit and the locking device may be connected in a wired manner or a wireless manner, and the locking device may send a locking request to the main control unit in a wired manner or a wireless manner.
[0113] The main control unit and the image acquisition device may be connected in a wired manner or a wireless manner, and the main control unit may send an image acquisition instruction to the image acquisition device in a wired manner or a wireless manner.
[0114] Step 202: The image acquisition device receives an image acquisition instruction sent by the main control unit and acquires an image of the environment around the vehicle.
[0115] The image acquisition device acquires the environment around the vehicle when the user needs to lock the vehicle. For example, when the user needs to lock the vehicle, the main control unit obtains the locking instruction and sends an acquisition image instruction to the image acquisition device. If the image acquisition device receives the acquisition image instruction, it acquires the environment image around the vehicle.
[0116] The image acquisition device is fixedly connected to the vehicle, and has an acquisition angle and a field of view (field of view area). The acquisition angle is within a preset angle range, and the preset angle range is used to control the environmental image acquired by the image acquisition device to include the ground environment in front of the vehicle. For example, the image acquisition device acquires the environmental image within the field of view according to the acquisition angle.
[0117] As an example, the connection position of the image acquisition device to the vehicle affects the acquisition angle. For example, if the image acquisition device is connected to the vehicle closer to the ground, the acquisition angle is larger, and if the image acquisition device is connected to the vehicle farther from the ground, the acquisition angle is smaller, so as to ensure that the image acquisition device captures the ground environment in front of the vehicle.
[0118] In addition, a visual positioning mark may be pre-set in the designated parking area. The visual positioning mark may be affixed to the designated parking area or printed on the ground of the designated parking area. The embodiment of the present application does not limit the visual positioning mark.
[0119] Since the visual positioning mark is located in the designated parking area, if the vehicle is located in the designated parking area, or if the vehicle is located in the vicinity of the designated parking area, the environmental image captured by the image acquisition device may include the visual positioning mark.
[0120] Step 203: The image acquisition device sends the environment image to the main control unit.
[0121] The image acquisition device may send the environment image to the main control unit via a wired or wireless method.
[0122] Step 204: the main control unit receives the environment image sent by the image acquisition device.
[0123] Since the visual positioning mark is located in the designated parking area, and if the vehicle is located in the designated parking area, or if the vehicle is located in the vicinity of the designated parking area, the environmental image captured by the image acquisition device may include the visual positioning mark, so the main control unit can determine whether the vehicle is located in the designated parking area based on the visual positioning mark in the environmental image around the vehicle, for example, determine whether the vehicle is located in the designated parking area based on the structured information of the visual positioning mark. In this way, it is possible to avoid combining GPS to determine whether the vehicle is located in the designated parking area, that is, avoid combining GPS to manage parking for non-motor vehicles, thereby avoiding problems such as poor positioning accuracy caused by drift of GPS signals in complex environmental areas, incorrect locking of non-motor vehicles or failure to lock the vehicle, etc.
[0124] In addition, if the main control unit receives a locking instruction of the vehicle, obtaining the environment image around the vehicle captured by the image capture device configured for the vehicle can be achieved by the above steps 201 to 204, or by other methods.
[0125] For example, the environment image acquired after the main control unit receives the locking command of the vehicle can be called the target environment image. The image acquisition device can acquire the environment image around the vehicle at a preset time period after the vehicle is unlocked, and send the environment image to the main control unit. The main control unit receives the environment image sent by the image acquisition device and stores the environment image. If the main control unit receives the locking command, the environment image sent by the image acquisition device for the first time after receiving the locking command is used as the target environment image.
[0126] Step 205: The main control unit uses the environment image as input of the marker recognition model, and determines the structured information of the visual positioning marker in the environment image through the marker recognition model.
[0127] The visual positioning mark is set in the designated parking area, and the structured information is used to indicate the marking features of the visual positioning mark. The mark recognition model is used to recognize the structured information of the visual positioning mark in any environment image.
[0128] Since visual positioning markers are set in advance in the designated parking area, if the vehicle is located in the designated parking area, or if the vehicle is located in the vicinity of the designated parking area, the environmental image captured by the image acquisition device may include the visual positioning marker, that is, the environmental image acquired by the main control unit may include the visual positioning marker.
[0129] The visual positioning mark is set in the designated parking area, which means setting the visual positioning mark in a special area or special position in the designated parking area. For example, the visual positioning mark is set around the edges of the parking area. The visual positioning mark can be pasted in the designated parking area or printed on the ground in the designated parking area. The embodiment of the present application does not limit the visual positioning mark.
[0130] The visual positioning identifier may include at least one positioning identifier, each of which has an identifier category. The structured information includes the identifier category of each of the at least one positioning identifier, and a detection box in the environment image and the confidence of the detection box.
[0131] For example, the visual positioning mark is printed on the ground at the edge of the designated parking area, and the visual positioning mark includes a first positioning mark and a second positioning mark. The first positioning mark is a yellow rectangular printed mark with a first width and a first height, and the second positioning mark is a white rectangular printed mark with a second width and a second height.
[0132] The identification category is used to uniquely identify the positioning identifier. For example, the identification category may be the color of the positioning identifier. For example, the identification category of the first positioning identifier is yellow, and the identification category of the second positioning identifier is white.
[0133] The detection box refers to the circumscribed rectangle of the positioning mark in the environment image, and the confidence of the detection box refers to the probability that the detection box is the detection box of the positioning mark. For example, the confidence of the detection box of the first positioning mark in the environment image refers to the probability that the detection box is the detection box of the first positioning mark.
[0134] In addition, the structured information may also include a pixel position of each positioning marker of at least one positioning marker in the environment image.
[0135] For example, the pixel position of the first positioning marker in the environmental image may refer to multiple pixel positions of the first positioning marker in the environmental image determined by the main control unit through the marker recognition model, or to the central pixel position of the first positioning marker in the environmental image, or to the four vertex pixel positions of the detection box of the first positioning marker in the environmental image.
[0136] In addition, each positioning mark in the at least one positioning mark has a marking attribute, and the marking attribute may include one or more of color, shape, width, height and texture. For example, the main control unit may determine the marking category according to the marking attribute of the positioning mark.
[0137] As an example, the visual positioning mark is printed on the ground of the designated parking area, and the visual positioning mark includes a first positioning mark and a second positioning mark, the identification attributes of the first positioning mark include yellow, rectangle, first width and first height, the identification attributes of the second positioning mark include white, rectangle, second width and second height, the first width is equal to the second width, and the first height is less than the second height. The main control unit can identify the identification attributes of each positioning mark in at least one positioning mark in the environmental image, and determine the identification category of each positioning mark in at least one positioning mark in the environmental image according to the identification attributes.
[0138] As an example, at least one positioning mark has a certain positional relationship. For example, the positional relationship between at least one positioning mark meets the first preset condition, the visual positioning mark includes a first positioning mark and a second positioning mark, and the first preset condition is that the printing position area of the first positioning mark is closer to the boundary of the designated parking area, that is, the first preset condition is that the pixel position of the first positioning mark in the environmental image is smaller than the pixel position of the second positioning mark. Among them, the coordinate origin of the pixel coordinate system corresponding to the environmental image is located in the upper left corner of the environmental image.
[0139] The identification model may include an identification detection module and an identification classification module, the visual positioning identification includes at least one positioning identification, and the structured information includes the identification category of each positioning identification in the at least one positioning identification, as well as the pixel position, detection frame and confidence of the detection frame in the environment image. The main control unit uses the environment image as the input of the identification model, and determines the structured information of the visual positioning identification in the environment image through the identification model through the following steps:
[0140] In step 2051, the main control unit uses the environment image as input of the identification detection module, and extracts features of the environment image through the identification detection module to obtain the pixel position, detection frame and confidence of each positioning mark in at least one positioning mark.
[0141] Among them, the identification detection module is used to detect the identification features of the visual positioning identification in any environmental image, such as detecting the pixel position, detection frame and confidence of each positioning identification in at least one positioning identification in any environmental image.
[0142] Among them, the identification detection module can extract features of the environmental image through corner detection, spot detection, color histogram, gray level co-occurrence matrix or shape invariant moment method, for example, extract color features, texture features, shape features or local features of the environmental image.
[0143] Among them, after the identification detection module extracts features from the environment image, it can calculate the similarity between the features, and determine the pixel position, detection frame and confidence of each positioning mark in at least one positioning mark in the environment image based on the similarity.
[0144] In step 2052, the main control unit uses the pixel position, detection frame and confidence of each positioning marker in at least one positioning marker as input to the marker classification module, determines the identification attributes of each positioning marker through the marker classification module, and determines the identification category of each positioning marker based on the identification attributes of each positioning marker.
[0145] The logo attributes include one or more of color, shape, width, height and texture.
[0146] The identification classification module is used to determine the identification category of any positioning identification in the environment image. For example, the identification classification module first determines the attribute of any positioning identification in the environment image, and determines the identification category according to the identification attribute.
[0147] As an example, the identification recognition model can be obtained by training in advance through sample environment images. The model training process of the identification recognition model is described below. For example, the model training process of the identification recognition model can include the following steps:
[0148] Step 1) The main control unit obtains a sample environment image around the sample vehicle.
[0149] The sample vehicle is a non-motorized vehicle, the sample vehicle is equipped with a sample image acquisition device, and the main control unit obtains the sample environment image acquired by the sample image acquisition device equipped with the sample vehicle.
[0150] Among them, the main control unit can obtain multiple sample environment images of each sample vehicle among multiple sample vehicles.
[0151] Among them, visual positioning marks are also pre-set in the designated parking area of the sample vehicle. In this way, if the sample vehicle is located in the designated parking area, or if the sample vehicle is located in the vicinity of the designated parking area, the sample environment image obtained by the main control unit may include the visual positioning mark.
[0152] Step 2) The main control unit labels the sample environment image to obtain sample structured information of the visual positioning mark in the sample environment image.
[0153] The sample structured information is used to indicate the sample identification feature of each positioning identifier in at least one positioning identifier.
[0154] For example, the sample structured information may include the sample identification category of each positioning identifier in at least one positioning identifier, as well as the sample pixel position, the sample detection frame and the sample confidence of the sample detection frame in the sample environment image.
[0155] For example, each of the multiple sample images is manually labeled to annotate the sample structured information in each sample environment image.
[0156] As an example, the identification attribute of each positioning identifier in the at least one positioning identifier may also be marked.
[0157] Step 3) The main control unit trains the identification recognition model to be trained according to the sample environment image and the sample structured information to obtain the identification recognition model.
[0158] Among them, the logo recognition model is used to recognize the structured information of the visual positioning logo in any environmental image.
[0159] For example, the main control unit can input the sample environment image into the logo recognition model to be trained, and determine the predicted structured information of the visual positioning logo in the sample environment image through the logo recognition model to be trained. Then, the recognition error of the logo recognition model to be trained is determined by the manually annotated sample structured information and the predicted structured information. After that, the model parameters of the logo recognition model to be trained are adjusted according to the recognition error, and the logo recognition model to be trained after the model parameters are adjusted is used as the logo recognition model.
[0160] As an example, a recognition error loss function of sample structured information and predicted structured information can be constructed, and model parameters of the identification model to be trained can be adjusted according to the recognition error loss function. For example, the model parameters can be optimized using a gradient descent algorithm for the recognition error loss function.
[0161] As an example, the identification model to be trained can be a multi-task network based on a neural network, such as a multi-task network based on FCOS (Fully Convolutional One-Stage Object Detection). The multi-task network based on FCOS may include a Backbone module, a Neck module, and a Head module. The Backbone module performs multiple convolutional pooling operations. The Backbone module is a feature extraction layer, the input is a sample environment image, and the output is a plurality of different feature layers. The Neck module is a feature fusion layer, the input is a plurality of different feature layers, and the output is a feature layer fused with different depths. The Head module is the output layer of the identification model to be trained. The input of the Head module is a feature layer fused with different depths, and the output of the Head module is a plurality of output heads. Among them, the plurality of output heads indicate structured information.
[0162] For example, the structured information includes the identification category of each positioning identifier in at least one positioning identifier, as well as the pixel position, detection box and confidence of the detection box in the environment image. The output of the Head module includes a first output head Head, a second output head Head and a third output head Head. The first output head Head indicates the identification category, the second output head Head indicates the pixel position, and the third output head Head indicates the detection box and the confidence of the detection box.
[0163] It should be noted that the above-mentioned identification model to be trained is only an example and is not intended to be a limitation of the identification model to be trained. The identification model to be trained may also be other neural network models, and the present embodiment of the application does not limit the identification model to be trained and the identification model.
[0164] As an example, if the main control unit determines that the number of model parameter adjustments is equal to the preset number, or if it determines that the recognition error is less than or equal to the error threshold, it stops adjusting the model parameters and uses the identification recognition model to be trained with the model parameters adjusted for the last time as the identification recognition model.
[0165] Wherein, steps 1) to 3) of the model training process of the above-mentioned identification recognition model can be performed by a computer device, and the computer device can be a terminal or a server. The main control unit can store the trained identification recognition model, so as to determine the structured information of the visual positioning identification in the environment image through the identification recognition model.
[0166] Step 206: The main control unit determines whether the vehicle is located in the designated parking area according to the structured information.
[0167] Among them, since the visual positioning mark is located in the designated parking area, if the vehicle is located in the designated parking area, or if the vehicle is located in the vicinity of the designated parking area, the environmental image captured by the image acquisition device may include the visual positioning mark, and the main control unit can determine whether the vehicle is located in the designated parking area based on the visual positioning mark in the environmental image around the vehicle, for example, determine whether the vehicle is located in the designated parking area based on the structured information of the visual positioning mark. In this way, it is possible to avoid combining GPS to determine whether the vehicle is located in the designated parking area, that is, avoid combining GPS to manage parking for non-motor vehicles, thereby avoiding problems such as poor positioning accuracy caused by drift of GPS signals in complex environmental areas, and incorrect locking or failure of non-motor vehicles.
[0168] Among them, the visual positioning identifier includes at least one positioning identifier, the structured information includes the identification category of each positioning identifier in the at least one positioning identifier, and the detection box and the confidence of the detection box in the environmental image. The main control unit can determine whether the vehicle is located in the designated parking area based on the identification category of each positioning identifier in the at least one positioning identifier and the confidence of the detection box.
[0169] For example, the main control unit may first determine the weight corresponding to each positioning identifier according to the identifier category of each positioning identifier in at least one positioning identifier. Then, according to the confidence of the detection frame of each positioning identifier in at least one positioning identifier and the weight corresponding to each positioning identifier, the confidence of the detection frame of at least one positioning identifier is weighted and summed to obtain the confidence that the vehicle is located in the designated parking area. Afterwards, if the confidence that the vehicle is located in the designated parking area is greater than the confidence threshold, it is determined that the vehicle is located in the designated parking area; if the confidence that the vehicle is located in the designated parking area is less than or equal to the confidence threshold, it is determined that the vehicle is not located in the designated parking area.
[0170] As an example, the visual positioning mark includes a first positioning mark and a second positioning mark, and the weight corresponding to the first positioning mark is preset to be 40%, and the weight corresponding to the second positioning mark is preset to be 60%. The main control unit performs weighted summation to obtain the confidence that the vehicle is located in the designated parking area, which means determining the product of the confidence of the detection frame of the first positioning mark and the weight corresponding to the first positioning mark, and determining the product of the confidence of the detection frame of the second positioning mark and the weight corresponding to the second positioning mark. The two products are summed to obtain the confidence that the vehicle is located in the designated parking area.
[0171] In this way, the main control unit can determine whether the vehicle is located in the designated parking area based on the visual positioning marks in the environmental image acquired around the vehicle, avoiding problems such as poor positioning accuracy due to drift of GPS signals in complex environmental areas, and incorrect locking or failure of non-motor vehicles to lock the vehicle.
[0172] Since the parking direction and parking posture of the vehicle will also affect the appearance of the city and cause waste of parking spaces, the main control unit can also determine whether the parking direction of the vehicle meets the direction requirements and / or determine whether the parking posture of the vehicle meets the posture requirements based on the visual positioning identification in the environmental image acquired around the vehicle after determining that the vehicle is located in the designated parking area.
[0173] For example, the main control unit can determine whether the parking direction of the vehicle meets the direction requirement and whether the parking posture of the vehicle meets the posture requirement based on the structured information of the visual positioning mark in the environment image. The method for the main control unit to determine whether the parking direction of the vehicle meets the direction requirement and whether the parking posture of the vehicle meets the posture requirement based on the structured information can be referred to in the following step 204, which will not be described in detail here.
[0174] Step 207: If the main control unit determines that the vehicle is located in the designated parking area, the main control unit locks the vehicle according to the locking instruction.
[0175] As an example, the main control unit can lock or unlock the vehicle by modifying the state of the vehicle. For example, the state of the vehicle may include a locked state and an unlocked state. The main control unit can modify the state of the vehicle from an unlocked state to a locked state according to the locking instruction, thereby locking the vehicle.
[0176] As an example, the main control unit can lock the vehicle through a locking device. Figure 1 As shown, the parking management system also includes a locking device. If the main control unit determines that the vehicle is located in the designated parking area, it sends a locking instruction to the locking device. The locking device receives the locking instruction sent by the main control unit and locks the vehicle according to the locking instruction.
[0177] For example, the locking device further includes a locking module, which may be a mechanical device. If the locking module receives a locking instruction, it mechanically locks the vehicle.
[0178] As an example, if the main control unit determines that the vehicle is not located in the designated parking area, it issues a first alarm message, and the first alarm message is used to prompt the user to adjust the parking position of the vehicle.
[0179] For example, Figure 1 As shown, the parking management system also includes an alarm module, the main control unit can send a first alarm instruction to the alarm module, the alarm module receives the first alarm instruction sent by the main control unit, and sends a first alarm message according to the first alarm instruction. The first alarm instruction is used to instruct the alarm module to send the first alarm message.
[0180] In addition, before locking the vehicle according to the locking instruction, the main control unit can also determine whether at least one of the parking direction and parking posture of the vehicle meets the requirements. If it is determined that the vehicle is located in the designated parking area and at least one of the direction requirement and the posture requirement meets the requirements, the vehicle is locked according to the locking instruction. In this way, after determining that the vehicle is located in the designated parking area, the vehicle is locked after determining that the parking method of the vehicle meets the direction requirement and / or the parking posture of the vehicle meets the posture requirement, so as to further manage the parking of non-motor vehicles, reduce the impact of the parking direction or parking posture of the vehicle on the appearance of the city, and reduce the waste of parking space resources.
[0181] For example, the main control unit can determine whether the parking direction of the vehicle meets the direction requirement based on the structured information, and can also determine whether the parking posture of the vehicle meets the posture requirement based on the structured information. If the main control unit determines that the vehicle is located in the designated parking area, the parking direction meets the direction requirement, and the parking posture meets the posture requirement, the step of locking the vehicle according to the locking instruction is executed.
[0182] As an example, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, a pixel position in the environment image, a detection frame, and a confidence level of the detection frame. The main control unit can determine whether the parking direction of the vehicle meets the direction requirement based on the identifier category of each positioning identifier in the at least one positioning identifier and the pixel position in the environment image.
[0183] The parking direction includes a forward parking direction and a reverse parking direction. The parking direction meeting the direction requirement means that the vehicle is parked in the forward parking direction.
[0184] Wherein, at least one positioning mark has a certain positional relationship, and the main control unit can determine the positional relationship between the at least one positioning mark according to the structured information. If the positional relationship meets the first preset condition, it is determined that the parking direction of the vehicle meets the direction requirement. If the positional relationship does not meet the first preset condition, it is determined that the parking direction of the vehicle does not meet the direction requirement.
[0185] For example, the main control unit determines the positional relationship between at least one positioning marker according to the marker category of each positioning marker in the at least one positioning marker and the pixel position in the environment image.
[0186] As an example, the visual positioning mark includes a first positioning mark and a second positioning mark, and the positional relationship between the first positioning mark and the second positioning mark is that the printed position area of the first positioning mark is closer to the boundary of the designated parking area. The pixel position refers to the central pixel position of each positioning mark in the environmental image of at least one positioning mark, and the coordinate origin of the pixel coordinate system corresponding to the environmental image is located in the upper left corner of the image. In this way, if the main control unit determines that the pixel position of the first positioning mark in the environmental image is smaller than the pixel position of the second positioning mark, that is, the first positioning mark is closer to the boundary of the environmental image, then the parking direction of the vehicle is determined to be the forward parking direction, and the parking direction of the vehicle meets the direction requirements.
[0187] As an example, the main control unit may also determine the positional relationship between at least one positioning identifier according to the identification attribute of each positioning identifier in at least one positioning identifier. For example, the main control unit determines the identification attribute of each positioning identifier in at least one positioning identifier through an identification recognition model, then determines the identification category according to the identification attribute, and then determines the positional relationship between at least one positioning identifier according to the identification category.
[0188] As an example, if the main control unit determines that the parking direction of the vehicle does not meet the direction requirement, a second alarm message may be issued, where the second alarm message is used to prompt the user to adjust the parking direction of the vehicle.
[0189] For example, Figure 1 As shown, the parking management system also includes an alarm module, the main control unit can send a second alarm instruction to the alarm module, the alarm module receives the second alarm instruction sent by the main control unit, and sends a second alarm message according to the second alarm instruction. The second alarm instruction is used to instruct the alarm module to send the second alarm message.
[0190] As an example, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, as well as a pixel position, a detection frame, and a confidence level of the detection frame in the environment image. The main control unit can determine whether the parking posture of the vehicle meets the posture requirement based on the detection frame of each positioning identifier in the at least one positioning identifier in the environment image and the confidence level of the detection frame.
[0191] Since the image acquisition device does not rotate with the rotation of the front of the vehicle, the posture of the image acquisition device remains consistent with the posture of the vehicle body. Therefore, the width and height of the detection box corresponding to each positioning mark in at least one positioning mark in the environmental image captured by the image acquisition device can determine the parking posture of the vehicle.
[0192] The parking posture of the vehicle refers to the angle at which the vehicle body deviates from the preset direction. The preset direction refers to the direction set to standardize the parking of the vehicle. For example, the visual positioning mark includes a first positioning mark and a second positioning mark, and the first positioning mark and the second positioning mark are both rectangular. The preset direction may refer to a direction perpendicular to the first positioning mark and the second positioning mark.
[0193] Wherein, the main control unit can determine the parking posture of the vehicle according to the structured information. If the parking posture meets the second preset condition, it is determined that the parking posture of the vehicle meets the posture requirement. If the parking posture does not meet the second preset condition, it is determined that the parking posture of the vehicle does not meet the posture requirement.
[0194] The second preset condition refers to the angle threshold at which the vehicle can deviate from the preset direction. For example, the second preset condition may be 30 degrees, that is, if the parking posture of the vehicle is less than 30 degrees, it is determined that the parking posture of the vehicle meets the posture requirement.
[0195] For example, the main control unit determines a positioning marker with the highest confidence level in the detection frame from at least one positioning marker as the target positioning marker, and determines the parking posture of the vehicle according to the width and height of the detection frame of the target positioning marker.
[0196] As an example, the parking posture of the vehicle can be determined by the following formula (1):
[0197]
[0198] Among them, θ is the parking posture of the vehicle, h is the height of the detection frame of the target positioning mark, and w is the width of the detection frame of the target positioning mark.
[0199] As an example, the visual positioning mark includes a first positioning mark and a second positioning mark, and the first positioning mark and the second positioning mark are both rectangular. The main control unit can also determine the parking posture of the vehicle according to the slope of the first positioning mark or the second positioning mark in the environment image.
[0200] As an example, if the main control unit determines that the parking posture of the vehicle does not meet the posture requirement, a third alarm message may be issued, and the third alarm message is used to prompt the user to adjust the parking posture of the vehicle.
[0201] For example, Figure 1 As shown, the parking management system further includes an alarm module, the main control unit can send a third alarm instruction to the alarm module, the alarm module receives the third alarm instruction sent by the main control unit, and sends a third alarm message according to the third alarm instruction. The third alarm instruction is used to instruct the alarm module to send the third alarm message.
[0202] It should be noted that after determining that the vehicle is located in the designated parking area and that the vehicle's parking method meets the direction requirements and the vehicle's parking posture meets the posture requirements, the vehicle can be locked, which can further manage the parking of non-motor vehicles, reduce the impact of the vehicle's parking direction and parking posture on the city's appearance, and reduce the waste of parking space resources.
[0203] In addition, the above steps 205 to 207 can also be performed by a computer device outside the parking management system, and the computer device can be a terminal or a server, and the identification model is stored in the computer device. For example, after the main control unit receives the environment image in step 204, it sends the environment image to the computer device outside the system, and the computer device executes the above steps 205 to 207 according to the received environment image.
[0204] If the computer device executes the above step 207 to determine that the vehicle is located in the designated area, locking the vehicle according to the locking instruction may be achieved by the following steps:
[0205] Step 1) If the computer device determines that the vehicle is located in the designated area, it generates a locking instruction and sends the locking instruction to the main control unit of the parking management system.
[0206] The computer device and the main control unit can communicate via a communication device. For example, the vehicle management system at least includes a main control unit and a communication device. The computer device can be connected to the communication device wirelessly or by wire, and the communication device can be connected to the main control unit wirelessly or by wire.
[0207] The computer device may send a locking instruction to the communication device, and the communication device receives the locking instruction sent by the computer device and sends the locking instruction to the main control unit.
[0208] The locking instruction includes a vehicle identification, which is used to instruct a communication device of a corresponding vehicle to receive the locking instruction.
[0209] Step 2) The main control unit receives the locking instruction sent by the computer device and locks the vehicle according to the locking instruction.
[0210] In this way, the amount of calculation of the main control unit in the parking management system can be reduced, thereby improving the efficiency of parking management.
[0211] In an embodiment of the present application, if a vehicle locking instruction is received, an environmental image of the vehicle's surroundings captured by an image acquisition device configured for the vehicle is obtained, and then the environmental image is used as an input to a marker recognition model, and the structured information of the visual positioning marker in the environmental image is determined by the marker recognition model, and then it is determined whether the vehicle is located in a designated parking area based on the structured information. If it is determined that the vehicle is located in the designated parking area, the vehicle is locked according to the locking instruction. Among them, the structured information is used to indicate the identification features of the visual positioning marker. In this way, by pre-setting a visual positioning marker in the designated parking area, determining whether the vehicle is located in the designated parking area based on the visual positioning marker in the acquired environmental image of the vehicle, it is possible to avoid combining GPS to determine whether the vehicle is located in the designated parking area, that is, avoid combining GPS to perform parking management on non-motor vehicles, thereby avoiding problems such as poor positioning accuracy due to drift of GPS signals in complex environmental areas, and incorrect locking or failure of non-motor vehicles.
[0212] In addition, based on the visual positioning identification in the environmental image, it is also possible to determine whether the parking direction and parking posture of the vehicle meet the specifications, thereby further managing the parking of non-motor vehicles, reducing the impact of the vehicle's parking direction and parking posture on the city's appearance, and reducing the waste of parking space resources.
[0213] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 3 As shown, the computer device includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps in the parking management method in the above embodiment are implemented.
[0214] The computer device may be the above Figure 1 Embodiment and above Figure 2 The main control unit in the embodiment. In a specific implementation, the computer device may be a terminal or a server, etc. The embodiment of the present application does not limit the type of computer device. Those skilled in the art can understand that Figure 3 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.
[0215] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0216] In some embodiments, the memory 302 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 302 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 302 may also include both an internal storage unit of the computer device and an external storage device. The memory 302 is used to store an operating system, an application program, a boot loader (Boot Loader), data, and other programs. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0217] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.
[0218] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0219] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.
[0220] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above method embodiments, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, it can be a non-transient storage medium.
[0221] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0222] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0223] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0224] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0225] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0226] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A parking management method, characterized in that: The method comprises: If a locking instruction of the vehicle is received, acquiring an image of the environment around the vehicle acquired by an image acquisition device configured for the vehicle; The environment image is used as an input of a sign recognition model, and structural information of a visual positioning sign in the environment image is determined by the sign recognition model, wherein the visual positioning sign is set in a designated parking area, and the structural information is used to indicate a sign feature of the visual positioning sign; determining whether the vehicle is located in the designated parking area according to the structured information; If it is determined that the vehicle is located in the designated parking area, locking the vehicle according to the locking instruction; The positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, and a detection box in the environment image and a confidence of the detection box; wherein the identifier category is used to uniquely identify the positioning identifier; the detection box refers to a circumscribed rectangle of the positioning identifier in the environment image, and the confidence of the detection box refers to a probability that the detection box is a detection box of the positioning identifier; The determining whether the vehicle is located in the designated parking area according to the structured information includes: Whether the vehicle is located in the designated parking area is determined according to the identification category of each positioning identification in the at least one positioning identification and the confidence of the detection frame.
2. The method according to claim 1, characterized in that The determining whether the vehicle is located in the designated parking area according to the identification category of each of the at least one positioning identification and the confidence of the detection frame comprises: Determine a weight corresponding to each positioning identifier according to the identifier category of each positioning identifier in the at least one positioning identifier; According to the confidence of the detection frame of each positioning mark in the at least one positioning mark and the weight corresponding to each positioning mark, the confidence of the detection frame of the at least one positioning mark is weighted summed to obtain the confidence that the vehicle is located in the designated parking area: If the confidence that the vehicle is located in the designated parking area is greater than a confidence threshold, determining that the vehicle is located in the designated parking area; If the confidence level that the vehicle is located in the designated parking area is less than or equal to the confidence threshold, it is determined that the vehicle is not located in the designated parking area.
3. The method according to claim 1, characterized in that Before locking the vehicle according to the locking instruction, the method further includes: determining, according to the structured information, whether the parking direction of the vehicle meets the direction requirement, and whether the parking posture of the vehicle meets the posture requirement; If it is determined that the vehicle is located in the designated parking area, the parking direction meets the direction requirement, and the parking posture meets the posture requirement, a step of locking the vehicle according to the locking instruction is performed.
4. The method according to claim 3, characterized in that The visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, and a pixel position, a detection frame, and a confidence level of the detection frame in the environment image; The determining, according to the structured information, whether the parking direction of the vehicle meets the direction requirement and whether the parking posture of the vehicle meets the posture requirement includes: Determining whether the parking direction of the vehicle meets the direction requirement according to the identification category of each positioning identification in the at least one positioning identification and the pixel position in the environment image; Whether the parking posture of the vehicle meets the posture requirement is determined according to the detection frame of each positioning mark of the at least one positioning mark in the environment image and the confidence of the detection frame.
5. The method according to claim 4, characterized in that The determining, according to the identification category of each positioning identification in the at least one positioning identification and the pixel position in the environment image, whether the parking direction of the vehicle meets the direction requirement includes: Determine a positional relationship between the at least one positioning marker according to the identification category of each positioning marker in the at least one positioning marker and the pixel position in the environment image; If the position relationship meets the first preset condition, determining that the parking direction of the vehicle meets the direction requirement; If the position relationship does not meet the first preset condition, it is determined that the parking direction of the vehicle does not meet the direction requirement.
6. The method according to claim 4, characterized in that The determining whether the parking posture of the vehicle meets the posture requirement according to the detection frame of each positioning mark of the at least one positioning mark in the environment image and the confidence of the detection frame includes: Determine, from the at least one positioning identifier, a positioning identifier with the greatest confidence in the detection frame as a target positioning identifier; Determining the parking posture of the vehicle according to the width and height of the detection frame of the target positioning mark; If the parking posture meets the second preset condition, determining that the parking posture of the vehicle meets the posture requirement; If the parking posture does not meet the second preset condition, it is determined that the parking posture of the vehicle does not meet the posture requirement.
7. The method according to any one of claims 1 to 6, characterized in that: The identifier recognition model includes an identifier detection module and an identifier classification module, the visual positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, as well as a pixel position, a detection frame, and a confidence level of the detection frame in the environment image; The step of using the environment image as an input of a marker recognition model and determining structured information of a visual positioning marker in the environment image by using the marker recognition model includes: Using the environment image as input of the marker detection module, performing feature extraction on the environment image through the marker detection module to obtain a pixel position, a detection frame, and a confidence level of the detection frame of each positioning mark in the at least one positioning mark; The pixel position, detection frame and confidence of each positioning marker in the at least one positioning marker are used as inputs of the marker classification module, and the marker attributes of each positioning marker are determined by the marker classification module. According to the marker attributes of each positioning marker, the marker category of each positioning marker is determined, and the marker attributes include one or more of color, shape, width, height and texture.
8. The method according to any one of claims 1 to 6, characterized in that: Before using the environment image as an input of the marker recognition model and determining the structured information of the visual positioning marker in the environment image by the marker recognition model, the method further includes: Acquire a sample environment image around a sample vehicle; Annotating the sample environment image to obtain sample structured information of the visual positioning identifier in the sample environment image, wherein the sample structured information is used to indicate a sample identifier feature of each positioning identifier in at least one positioning identifier; The marker recognition model to be trained is trained according to the sample environment image and the sample structured information to obtain the marker recognition model, and the marker recognition model is used to recognize the structured information of the visual positioning marker in any environment image.
9. The method according to claim 8, characterized in that The training of the identification recognition model to be trained according to the sample environment image and the sample structured information to obtain the identification recognition model includes: Inputting the sample environment image into the to-be-trained mark recognition model, and determining predicted structural information of the visual positioning mark in the sample environment image through the to-be-trained mark recognition model; Determining a recognition error of the to-be-trained identification model according to the sample structured information and the predicted structured information; According to the recognition error, the model parameters of the to-be-trained identification recognition model are adjusted, and the to-be-trained identification recognition model after the model parameters are adjusted is used as the identification recognition model.
10. A parking management system, characterized in that: The parking management system comprises an image acquisition device and a main control unit, wherein the image acquisition device is fixedly connected to the vehicle; The image acquisition device is used to acquire an image of the environment around the vehicle; The main control unit is configured to obtain an image of the environment around the vehicle captured by an image capture device configured for the vehicle if a locking instruction of the vehicle is received; The main control unit is further used to use the environment image as an input of a mark recognition model, and determine structured information of a visual positioning mark in the environment image through the mark recognition model, wherein the visual positioning mark is set in a designated parking area, and the structured information is used to indicate a mark feature of the visual positioning mark; The main control unit is further used to determine whether the vehicle is located in the designated parking area according to the structured information; The main control unit is further configured to lock the vehicle according to the locking instruction if it is determined that the vehicle is located in the designated parking area; The positioning identifier includes at least one positioning identifier, and the structured information includes an identifier category of each positioning identifier in the at least one positioning identifier, and a detection box in the environment image and a confidence of the detection box; wherein the identifier category is used to uniquely identify the positioning identifier; the detection box refers to a circumscribed rectangle of the positioning identifier in the environment image, and the confidence of the detection box refers to a probability that the detection box is a detection box of the positioning identifier; The main control unit is further specifically used for: Whether the vehicle is located in the designated parking area is determined according to the identification category of each positioning identification in the at least one positioning identification and the confidence of the detection frame.
11. The system according to claim 10, characterized in that The acquisition angle of the image acquisition device is within a preset angle range, and the preset angle range is used to control the environmental image acquired by the image acquisition device to include the ground environment in front of the vehicle.
