A ground lock control method, device, electronic device and storage medium
By obtaining the video stream image of the ground lock area, it can determine and prevent the ground lock from executing wrong instructions, which solves the security problems caused by abnormal ground lock controllers and human destruction in the existing technology, and improves the safety of the ground lock.
Patent Information
- Application Number
- CN202311283929.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-09-28
AI Technical Summary
The existing ground lock control method causes the vehicle to collide with the ground lock due to controller abnormality or human sabotage, which reduces the safety of the ground lock and cannot effectively determine whether the control instructions are executed correctly.
By obtaining the video stream image of the parking area where the floor lock is located, after sending the control instruction, it determines whether to prevent the floor lock from executing the command based on the image, determines whether the floor lock is abnormal or damaged, and outputs an alarm message when necessary.
It effectively reduces the collision between the vehicle and the ground lock due to controller errors or human sabotage, improves the safety of the ground lock, and determines the correctness of the control instructions and the status of the ground lock through the video stream image.
Smart Images

Figure CN117392777B
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of ground locks, and in particular, relates to a ground lock control method, device, electronic device and storage medium. Background Art
[0002] The current ground lock control method is usually to receive the control command sent by the controller through the ground lock, and complete the corresponding lock raising or locking operation after receiving the control command. However, the controller may be abnormal and fail to issue the correct control command, thereby failing to correctly control the ground lock, which may cause the vehicle to collide with the ground lock, reducing the safety of the ground lock. Summary of the invention
[0003] In view of this, embodiments of the present application provide a ground lock control method, device, electronic device and storage medium to solve the technical problem of low security of existing ground locks.
[0004] In a first aspect, an embodiment of the present application provides a ground lock control method, comprising:
[0005] Acquire a video stream image of the parking area where the ground lock is located;
[0006] After sending the first control instruction to the ground lock, determining whether to send a second control instruction to the ground lock according to the video stream image; wherein the second control instruction is used to prevent the ground lock from executing the first control instruction.
[0007] Optionally, also include:
[0008] After sending a first control instruction to the ground lock, determining whether the ground lock executes the first control instruction according to the video stream image;
[0009] If the ground lock does not execute the first control instruction, the first control instruction is sent to the ground lock again.
[0010] Optionally, also include:
[0011] Sending a self-check control instruction to the ground lock;
[0012] determining, according to the video stream image, whether the ground lock performs a self-check operation corresponding to the self-check control instruction;
[0013] If the ground lock does not perform the self-check operation corresponding to the self-check control instruction, it is determined that the ground lock is abnormal.
[0014] Optionally, also include:
[0015] Determining whether the ground lock is being damaged according to the video stream image;
[0016] If the ground lock is being damaged, the video stream image is stored and an alarm message is output.
[0017] Optionally, determining whether to send a second control instruction to the ground lock according to the video stream image includes:
[0018] determining, based on the video stream image, whether a vehicle has entered the parking area, and if it is determined that a vehicle has entered the parking area, sending the second control instruction to the ground lock;
[0019] determining whether there is a vehicle parked in the parking area according to the video stream image, and if it is determined that there is a vehicle parked in the parking area, sending the second control instruction to the ground lock;
[0020] Based on the video stream image, determine whether the vehicle has not left the parking area. If it is determined that the vehicle has not left the parking area, send the second control instruction to the ground lock, and after determining that the vehicle has left the parking area, send the third control instruction to the ground lock; wherein the third control instruction is used to instruct the ground lock to execute the first control instruction.
[0021] Optionally, also include:
[0022] Determining whether the ground lock successfully executes the first control instruction according to the video stream image;
[0023] If the ground lock fails to execute the first control instruction successfully, it is determined that the ground lock is abnormal.
[0024] Optionally, the ground lock is provided with a spring assembly and a blocking assembly.
[0025] In a second aspect, an embodiment of the present application provides a ground lock control device, including:
[0026] The video stream image acquisition unit is used to acquire the video stream image of the parking area where the ground lock is located.
[0027] A first determining unit is used to determine whether to send a second control instruction to the ground lock according to the video stream image after sending the first control instruction to the ground lock; wherein the second control instruction is used to prevent the ground lock from executing the first control instruction.
[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the ground lock control method described in the first aspect above are implemented.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the ground lock control method as described in any one of the first aspects above are implemented.
[0030] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a server, the server executes each step of the ground lock control method as described in any one of the first aspects above.
[0031] The ground lock control method, device, electronic device and storage medium provided in the embodiments of the present application have the following features:
[0032] Beneficial effects:
[0033] The ground lock control method provided in the embodiment of the present application obtains the video stream image of the parking area where the ground lock is located, and after sending the first control instruction to the ground lock, determines whether to send the second control instruction to the ground lock according to the video stream image, wherein the second control instruction is used to prevent the ground lock from executing the first control instruction. The ground lock control method of the present application can determine whether the first control instruction is correct according to the video stream image of the parking area where the ground lock is located, and when it is determined that the first control instruction is incorrect, the second control instruction is sent to prevent the ground lock from executing the first control instruction, thereby effectively reducing the phenomenon of collision between the vehicle and the ground lock caused by incorrect first control instructions sent by the controller, thereby improving the safety of the ground lock. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 paying creative labor.
[0035] Figure 1 A schematic diagram of a flow chart of a ground lock control method provided in an embodiment of the present application;
[0036] Figure 2 A flow chart of another ground lock control method provided in an embodiment of the present application;
[0037] Figure 3 A flowchart of another ground lock control method provided in an embodiment of the present application;
[0038] Figure 4 A flowchart of another ground lock control method provided in an embodiment of the present application;
[0039] Figure 5A schematic diagram of the structure of a ground lock control device provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one", "one or more" refers to one, two or more. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, it is defined that the "first" and "second" features can explicitly or implicitly include one or more of the features.
[0042] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0043] The executor of the ground lock control method provided in the embodiment of the present application is an electronic device, which can be used to obtain a video stream image of the parking area where the ground lock is located, and after sending a first control instruction to the ground lock, determine whether to send a second control instruction to the ground lock to prevent the ground lock from executing the first control instruction based on the acquired video stream image of the parking area where the ground lock is located.
[0044] In the current control method of the ground lock, the ground lock receives the control instruction sent by the controller, and completes the corresponding lock raising or locking operation after receiving the control instruction. However, in actual applications, the controller may be abnormal and unable to issue the correct control instruction, so that the ground lock cannot be correctly controlled, which may cause the vehicle to collide with the ground lock; in addition, the ground lock may also be abnormal and unable to correctly execute the control instruction, which may also cause the vehicle to collide with the ground lock; in addition, in actual applications, there may be human behavior to destroy the ground lock, which will cause the ground lock to be damaged, and then the ground lock cannot correctly execute the control instruction, which will also cause the vehicle to collide with the ground lock. All of the above will reduce the safety of the ground lock.
[0045] However, the current ground lock control method cannot determine whether the controller controls the ground lock correctly, whether the ground lock can successfully execute the control instruction, or whether the ground lock is damaged. Therefore, the current ground lock control method reduces the safety of the ground lock.
[0046] The ground lock control method provided in the embodiment of the present application can be applied to improve the safety of the ground lock. Specifically, each step of the ground lock control method provided in the embodiment of the present application can be performed by an electronic device, thereby effectively improving the safety of the ground lock.
[0047] See also Figure 1 , Figure 1 A flow chart of a ground lock control method provided in an embodiment of the present application is provided. The ground lock control method provided in an embodiment of the present application may include S101 to S102, which are described in detail as follows:
[0048] In S101, a video stream image of a parking area where a ground lock is located is obtained.
[0049] In the embodiment of the present application, the electronic device can obtain a video stream image of the parking area where the ground lock is located through a camera set in the parking area where the ground lock is located.
[0050] In S102, after sending the first control instruction to the ground lock, it is determined whether to send the second control instruction to the ground lock according to the video stream image.
[0051] The second control instruction is used to prevent the ground lock from executing the first control instruction.
[0052] In an embodiment of the present application, the electronic device may send a first control instruction to the ground lock through existing technology to instruct the ground lock to execute the first control instruction. The first control instruction may include a lock raising instruction and a lock lowering instruction. The lock raising instruction is used to instruct the ground lock to perform a lock raising operation; the lock lowering instruction is used to instruct the ground lock to perform a lock lowering operation.
[0053] In practical applications, since the first control instruction sent by the electronic device is not necessarily a correct control instruction, if the first control instruction sent by the electronic device is an erroneous control instruction, it may cause the vehicle to collide with the ground lock.
[0054] Based on this, after sending the first control instruction, the electronic device can determine whether to send the second control instruction to the ground lock according to the video stream image to prevent the ground lock from executing the first control instruction.
[0055] In a possible implementation, steps a to c can be used to determine whether to send the second control instruction to the ground lock according to the video stream image, as described in detail as follows:
[0056] In step a, whether a vehicle enters the parking area is determined based on the video stream image, and if it is determined that a vehicle enters the parking area, a second control instruction is sent to the ground lock.
[0057] In this implementation, when the first control instruction is a lock raising instruction, the electronic device can determine whether a vehicle enters the parking area based on the video stream image. If it is determined that a vehicle enters the parking area, a second control instruction is sent to the ground lock to prevent the ground lock from executing the lock raising instruction.
[0058] Specifically, the electronic device can detect vehicle motion information in the parking area based on the video stream image. The vehicle motion information may include the vehicle's motion direction and speed. The electronic device can calculate a first confidence parameter for the vehicle entering the parking area based on the vehicle motion information. If the first confidence parameter for the vehicle entering the parking area is greater than a first preset threshold, it is considered that the vehicle is entering the parking area. If the first confidence parameter for the vehicle entering the parking area is less than the first preset threshold, it is considered that no vehicle is entering the parking area.
[0059] Exemplarily, the electronic device may calculate the moving direction and moving speed of the vehicle by using an optical flow method, and obtain a first confidence parameter of the vehicle entering the parking area according to the moving direction and moving speed of the vehicle.
[0060] In practical applications, as an example but not a limitation, the first preset threshold may be set to 0.5.
[0061] In step b, whether there is a vehicle parked in the parking area is determined based on the video stream image, and if it is determined that there is a vehicle parked in the parking area, a second control instruction is sent to the ground lock.
[0062] In this implementation, when the first control instruction is a lock raising instruction, the electronic device can determine whether there is a vehicle parked in the parking area based on the video stream image, that is, determine whether there is a vehicle on the ground lock. If it is determined that there is a vehicle parked in the parking area, a second control instruction is sent to the ground lock to prevent the ground lock from executing the lock raising instruction.
[0063] Specifically, the electronic device can detect the static information of the ground lock in the parking area based on the video stream image. The static information of the ground lock can be used to help the electronic device determine whether the ground lock exists in the video, and then help the electronic device determine whether there is a vehicle parked in the parking area.
[0064] Exemplarily, a preset pattern can be pre-set on the ground lock, and a binary comparison original image corresponding to the preset pattern is generated. The electronic device can binarize the corresponding position in the video stream image in the same way, and then compare the binarized video stream image with the binary comparison original image corresponding to the preset pattern, so as to determine the second confidence parameter of the ground lock present in the video.
[0065] If the second confidence parameter of the ground lock in the video is greater than the second preset threshold, it is considered that there is a ground lock in the video, that is, it is considered that there is no vehicle parked in the parking area; if the second confidence parameter of the ground lock in the video is less than the second preset threshold, it is considered that there is no ground lock in the video, that is, it is considered that there is a vehicle parked in the parking area.
[0066] In practical applications, as an example but not a limitation, the second preset threshold may be set to 0.5.
[0067] In step c, it is determined based on the video stream image whether the vehicle has not left the parking area. If it is determined that the vehicle has not left the parking area, a second control instruction is sent to the ground lock, and after it is determined that the vehicle has left the parking area, a third control instruction is sent to the ground lock.
[0068] The third control instruction is used to instruct the ground lock to execute the first control instruction.
[0069] In this implementation, when the first control instruction is a lock raising instruction, the electronic device can determine whether the vehicle has not left the parking area based on the video stream image. If it is determined that the vehicle has not left the parking area, a second control instruction is sent to the ground lock to prevent the ground lock from executing the lock raising instruction. After determining that the vehicle has left the parking area, a third control instruction is sent to the ground lock to control the ground lock to execute the lock raising instruction.
[0070] Specifically, the electronic device can detect the vehicle motion information in the parking area based on the video stream image, and the electronic device can calculate the third confidence parameter that the vehicle is still in the parking area based on the vehicle motion information. If the third confidence parameter that the vehicle is still in the parking area is greater than the third preset threshold, it is considered that the vehicle is still in the parking area, that is, the vehicle has not left the parking area; if the third confidence parameter that the vehicle is still in the parking area is less than the third preset threshold, it is considered that the vehicle is not in the parking area, that is, the vehicle has left the parking area.
[0071] In practical applications, as an example but not a limitation, the third preset threshold may be set to 0.5.
[0072] From the above, it can be seen that the ground lock control method provided in the embodiment of the present application obtains the video stream image of the parking area where the ground lock is located, and after sending the first control instruction to the ground lock, determines whether to send the second control instruction to the ground lock according to the video stream image, wherein the second control instruction is used to prevent the ground lock from executing the first control instruction. The ground lock control method of the present application can determine whether the first control instruction is correct according to the video stream image of the parking area where the ground lock is located, and when it is determined that the first control instruction is incorrect, the second control instruction is sent to prevent the ground lock from executing the first control instruction, thereby effectively reducing the phenomenon of collision between the vehicle and the ground lock caused by incorrect first control instructions sent by the controller, thereby improving the safety of the ground lock.
[0073] See also Figure 2 , Figure 2 A flow chart of another ground lock control method provided in an embodiment of the present application is provided. The ground lock control method provided in an embodiment of the present application may include S201 to S202, which are described in detail as follows:
[0074] In S201, after sending a first control instruction to the ground lock, it is determined according to the video stream image whether the ground lock executes the first control instruction.
[0075] In an embodiment of the present application, after the electronic device sends the first control instruction to the ground lock, it can determine whether the ground lock executes the first control instruction based on the video stream image. Specifically, after the electronic device sends the first control instruction to the ground lock, and after determining that it is not necessary to send the second control instruction to the ground lock (i.e., it is not necessary to prevent the ground lock from executing the first control instruction), the electronic device can determine whether the ground lock executes the first control instruction based on the video stream image.
[0076] In a possible implementation, the electronic device can determine whether the ground lock executes the first control instruction according to the video stream image according to steps d to e. The details are as follows:
[0077] In step d, the ground lock movement information of the ground lock in the parking area is detected according to the video stream image.
[0078] In this implementation, the ground lock movement information may include the movement direction and speed of the ground lock. Based on this, the electronic device can calculate the ground lock movement direction and speed of the ground lock in the parking area according to the video stream image by optical flow method.
[0079] In step e, it is determined whether the ground lock executes the first control instruction according to the ground lock movement information.
[0080] In this implementation, after detecting the movement direction and speed of the ground lock, the electronic device can calculate the fourth confidence parameter corresponding to the ground lock raising and the fifth confidence parameter corresponding to the ground lock lowering according to the movement direction and speed of the ground lock, and determine whether the ground lock is performing a raising operation and a lowering operation according to the fourth confidence parameter and the fifth confidence parameter, and then determine whether the ground lock executes the first control instruction.
[0081] Specifically, if the fourth confidence parameter is greater than the fourth preset threshold, it can be considered that the ground lock is performing a lock raising operation; if the fourth confidence parameter is less than the fourth preset threshold, it can be considered that the ground lock is not performing a lock raising operation; if the fifth confidence parameter is greater than the fifth preset threshold, it can be considered that the ground lock is performing a lock lowering operation; if the fifth confidence parameter is less than the fifth preset threshold, it can be considered that the ground lock is not performing a lock lowering operation.
[0082] Based on this, if the first control instruction is a lock-up instruction, if the calculated fourth confidence parameter is greater than the fourth preset threshold, it can be considered that the ground lock is executing the first control instruction; if the first control instruction is a lock-up instruction, if the calculated fourth confidence parameter is less than the fourth preset threshold, it can be considered that the ground lock is not executing the first control instruction; if the first control instruction is a lock-down instruction, if the calculated fifth confidence parameter is greater than the fifth preset threshold, it can be considered that the ground lock is executing the first control instruction; if the first control instruction is a lock-down instruction, if the calculated fifth confidence parameter is less than the fifth preset threshold, it can be considered that the ground lock is not executing the first control instruction.
[0083] In practical applications, as an example but not a limitation, the fourth preset threshold and the fifth preset threshold may both be 0.5.
[0084] In S202, if the ground lock does not execute the first control instruction, the first control instruction is sent to the ground lock again.
[0085] In the embodiment of the present application, if the electronic device determines that the ground lock does not execute the first control instruction, it sends the first control instruction to the ground lock again, and repeats step S201 again to determine whether the ground lock executes the first control instruction.
[0086] If the ground lock still does not execute the first control instruction, it can be considered that the ground lock has failed, and the first preset measure can be executed to remind the vehicle or person that the ground lock has failed, thereby reducing the safety problem caused by the ground lock failure. In practical applications, for example, the first preset measure can be that the electronic device sends a reminder alarm to remind the vehicle or person that the ground lock has failed.
[0087] From the above, it can be seen that the ground lock control method provided in the embodiment of the present application can determine whether the ground lock executes the first control instruction based on the video stream image after sending the first control instruction to the ground lock, and send the first control instruction to the ground lock again when the ground lock does not execute the first control instruction, and determine whether the ground lock executes the first control instruction based on the video stream image again. If the ground lock still does not execute the first control instruction, it is determined that the ground lock is abnormal, and the first preset measure is executed to prompt the vehicle or personnel that the ground lock has a fault, thereby reducing the collision between the vehicle and the ground lock due to the fault of the ground lock, and improving the safety of the ground lock.
[0088] In a possible implementation, the ground lock control method provided in the embodiment of the present application may further include steps f to g, which are described in detail as follows:
[0089] In step f, it is determined whether the ground lock successfully executes the first control instruction according to the video stream image.
[0090] In this implementation, the electronic device can also determine whether the ground lock successfully executes the first control instruction based on the video stream image. Specifically, when the first control instruction is a lock-up instruction, the electronic device can determine whether the ground lock is locked in place based on the video stream image; when the first control instruction is a lock-down instruction, the electronic device can determine whether the ground lock is locked in place based on the video stream image.
[0091] Specifically, the electronic device may first obtain a picture of the ground lock after it is locked up and a picture of the ground lock after it is locked down, and after the ground lock executes the first control instruction and becomes still, obtain an image of the ground lock at this time, and compare the image of the ground lock at this time with the picture of the ground lock after it is locked up or the picture of the ground lock after it is locked down, to obtain a sixth confidence parameter of the ground lock being locked up and a seventh confidence parameter of the ground lock being locked down. If the sixth confidence parameter is greater than the sixth preset threshold, it can be considered that the ground lock has been locked up, if the sixth confidence parameter is less than the sixth preset threshold, it can be considered that the ground lock has not been locked up; if the seventh confidence parameter is greater than the seventh preset threshold, it can be considered that the ground lock has been locked down; if the seventh confidence parameter is less than the seventh preset threshold, it can be considered that the ground lock has not been locked down.
[0092] When it is determined that the ground lock is locked in place or locked in place, the electronic device can determine that the ground lock has successfully executed the first control instruction; when it is determined that the ground lock is not locked in place or locked in place, the electronic device can determine that the ground lock has not successfully executed the first control instruction.
[0093] In practical applications, as an example but not a limitation, the sixth preset threshold and the seventh preset threshold may both be set to 0.5.
[0094] In step g, if the ground lock fails to execute the first control instruction, it is determined that an abnormality occurs in the ground lock.
[0095] In this implementation, if the electronic device determines that the ground lock fails to execute the first control instruction, the electronic device may determine that an abnormality occurs in the ground lock.
[0096] When determining that the ground lock is abnormal, the electronic device can perform the following operations: Figure 2 The first preset measure in the corresponding embodiment is to remind the vehicle or personnel that the ground lock has failed, thereby reducing the safety problem caused by the ground lock failure.
[0097] From the above, it can be seen that the ground lock control method provided in the embodiment of the present application can determine whether the ground lock has successfully executed the first control instruction based on the video stream image, and determine that an abnormality has occurred in the ground lock when the ground lock has not successfully executed the first control instruction, and prompt the vehicle or personnel that the ground lock has failed by executing the first preset measure, thereby reducing the collision between the vehicle and the ground lock caused by the failure of the ground lock and improving the safety of the ground lock.
[0098] See also Figure 3 , Figure 3 A flowchart of another ground lock control method provided in an embodiment of the present application is provided. The ground lock control method provided in an embodiment of the present application may include S301 to S303, which are described in detail as follows:
[0099] In S301, a self-check control instruction is sent to the ground lock.
[0100] In an embodiment of the present application, the electronic device may send a self-check control instruction to the ground lock according to a preset rule to detect whether the ground lock is faulty.
[0101] Among them, the self-check control instruction may include a lock-up self-check instruction and a lock-down self-check instruction. The lock-up self-check instruction is used to control the ground lock to perform a lock-up operation, and the lock-down self-check instruction is used to control the ground lock to perform a lock-down operation.
[0102] Among them, the preset rules can be set according to the actual application. For example, the electronic device can send a self-check control instruction to the ground lock when there is no vehicle parked in the first parking area of the day. Specifically, if the second confidence parameter calculated by the electronic device based on the video stream image is greater than the second preset threshold, it can be considered that there is a ground lock in the video, and then it can be considered that there is no vehicle parked in the parking area at this time. At this time, the electronic device can send a self-check control instruction to the ground lock; if the second confidence parameter calculated by the electronic device based on the video stream image is less than the second preset threshold, it can be considered that there is no ground lock in the video, and then it can be considered that there is a vehicle parked in the parking area at this time. At this time, the electronic device cannot send a self-check control instruction to the ground lock.
[0103] In S302, it is determined whether the ground lock performs a self-check operation corresponding to the self-check control instruction according to the video stream image.
[0104] In the embodiment of the present application, after sending a self-check control instruction to the ground lock, the electronic device can determine whether the ground lock performs a self-check operation corresponding to the self-check control instruction based on the video stream image.
[0105] For example, the electronic device may Figure 2 The fourth confidence parameter in the corresponding embodiment is used to determine whether the ground lock is performing a lock raising operation. The electronic device can Figure 2 The fifth confidence parameter in the corresponding embodiment is used to determine whether the ground lock performs a lock-down operation.
[0106] Specifically, when the self-test control instruction sent by the electronic device to the ground lock is a lock raising self-test instruction, if it is judged according to the fourth confidence parameter that the ground lock is performing a lock raising operation, it is considered that the ground lock has executed the self-test operation corresponding to the self-test control instruction; if it is judged according to the fourth confidence parameter that the ground lock has not performed a lock raising operation, it is considered that the ground lock has not executed the self-test operation corresponding to the self-test control instruction.
[0107] Specifically, when the self-test control instruction sent by the electronic device to the ground lock is a lock-down self-test instruction, if it is judged according to the fifth confidence parameter that the ground lock is performing a lock-down operation, it is considered that the ground lock has performed the self-test operation corresponding to the self-test control instruction; if it is judged according to the fifth confidence parameter that the ground lock is not performing a lock-down operation, it is considered that the ground lock has not performed the self-test operation corresponding to the self-test control instruction.
[0108] In S303, if the ground lock does not perform the self-check operation corresponding to the self-check control instruction, it is determined that the ground lock is abnormal.
[0109] In the embodiment of the present application, if the electronic device determines that the ground lock does not perform the self-check operation corresponding to the self-check control instruction, it can be determined that the ground lock is abnormal.
[0110] When determining that the ground lock is abnormal, the electronic device can perform the following operations: Figure 2 The first preset measure in the corresponding embodiment is to remind the vehicle or personnel that the ground lock has failed, thereby reducing the safety problem caused by the ground lock failure.
[0111] From the above, it can be seen that the ground lock control method provided in the embodiment of the present application can send a self-check control instruction to the ground lock, and after sending the self-check control instruction to the ground lock, determine whether the ground lock performs the self-check operation corresponding to the self-check control instruction based on the video stream image, and after determining that the ground lock does not perform the self-check operation corresponding to the self-check control instruction, determine that the ground lock has an abnormality, and prompt the vehicle or personnel that the ground lock has a fault by executing the first control instruction, thereby reducing the collision between the vehicle and the ground lock caused by the fault of the ground lock and improving the safety of the ground lock.
[0112] See also Figure 4 , Figure 4 A flowchart of another ground lock control method provided in an embodiment of the present application is provided. The ground lock control method provided in an embodiment of the present application may include S401 to S402, which are described in detail as follows:
[0113] In S401, it is determined whether the ground lock is being damaged based on the video stream image.
[0114] In the embodiment of the present application, the electronic device can determine whether the ground lock is damaged based on the video stream image.
[0115] In a possible implementation, it can be determined whether the ground lock is being damaged according to steps h to i.
[0116] In step h, the motion information of the area around the ground lock is determined according to the video stream image.
[0117] In this implementation, the motion information of the area around the ground lock is used to describe the motion state of objects within a preset range around the ground lock. The preset range can be set according to actual needs. For example, the motion information of the area around the ground lock can be the motion state of objects within 0.5 meters around the ground lock.
[0118] Based on this, the electronic device can determine the movement state of objects in the area around the ground lock according to the video stream image, and the movement state of objects in the area around the ground lock may include the presence of objects moving in the area around the ground lock and the absence of objects moving in the area around the ground lock.
[0119] Specifically, the electronic device can calculate, based on the video stream image, by the optical flow method, the eighth confidence parameter corresponding to the existence of an object moving in the area around the ground lock. If the eighth confidence parameter is greater than the eighth preset threshold, it is considered that there is an object moving in the area around the ground lock; if the eighth confidence parameter is less than the eighth preset threshold, it is considered that there is no object moving in the area around the ground lock.
[0120] In practical applications, as an example but not a limitation, the eighth preset threshold may be set to 0.5.
[0121] In step i, it is determined whether the ground lock is being damaged based on the motion information of the area around the ground lock.
[0122] In this implementation, the electronic device can determine whether the ground lock is being damaged based on the motion information of the area around the ground lock. Specifically, after the electronic device obtains the eighth confidence parameter, if the eighth confidence parameter is greater than the eighth preset threshold (i.e., it is considered that there is an object in motion in the area around the ground lock), and the first confidence parameter is less than the first preset threshold (i.e., it is considered that no vehicle is entering or exiting the parking area, excluding the influence of vehicle movement), and the second confidence parameter is greater than the second preset threshold (i.e., it is considered that no vehicle is parked above the ground lock, and there are conditions for damaging the ground lock), and the electronic device does not send any control instructions to the ground lock (excluding the interference of the ground lock itself raising or lowering the lock), then it can be considered whether the ground lock is being damaged.
[0123] In S402, if the ground lock is being damaged, the video stream image is stored and an alarm message is output.
[0124] In the embodiment of the present application, if the electronic device determines that the lock is being damaged, it stores the video stream image and outputs an alarm message to collect evidence and prevent the damage from continuing.
[0125] From the above, it can be seen that the ground lock control method provided in the embodiment of the present application can determine whether the ground lock is damaged based on the video stream image. If it is determined that the ground lock is being damaged, the video stream image can be stored to collect evidence and output alarm information to prevent the damage from continuing. The ground lock control method provided in the embodiment of the present application can protect the ground lock, effectively reduce the failure of the ground lock, and improve the safety of the ground lock.
[0126] The various ground lock control methods provided in the embodiments of the present application can effectively improve the safety of the ground lock. However, in actual applications, the ground lock may still have abnormalities. Therefore, the damage caused by the ground lock when colliding with the vehicle can be reduced by using a preset structure in the design of the ground lock.
[0127] Among them, the preset structure may include a spring assembly and a blocking assembly. The spring assembly is a double spring structure and is supported by the double spring structure. The blocking assembly is made of plastic material. This structure can solve the problems of pressure resistance and scraping the bottom of the vehicle, thereby minimizing the damage suffered by the ground lock when it collides with the vehicle.
[0128] Based on the ground lock control method provided in the above embodiment, the present application further provides a ground lock control device that implements the above method embodiment. Figure 5 , Figure 5 This is a schematic diagram of the structure of a ground lock control device provided in an embodiment of the present application. Figure 5 As shown, the ground lock control device 50 may include a video stream image acquisition unit 51 and a first determination unit 52. Wherein:
[0129] The video stream image acquisition unit 51 is used to acquire the video stream image of the parking area where the ground lock is located.
[0130] The first determination unit 52 is used to determine whether to send a second control instruction to the ground lock according to the video stream image after sending the first control instruction to the ground lock; wherein the second control instruction is used to prevent the ground lock from executing the first control instruction.
[0131] Optionally, the ground lock control device 50 may further include a second determining unit and a first sending unit.
[0132] The second determining unit is used to determine whether the ground lock executes the first control instruction according to the video stream image after sending the first control instruction to the ground lock.
[0133] The first sending unit is used to send the first control instruction to the ground lock again if the ground lock does not execute the first control instruction
[0134] Optionally, the ground lock control device 50 may further include a second sending unit, a third determining unit and a fourth determining unit.
[0135] The second sending unit is used to send a self-check control instruction to the ground lock.
[0136] The third determination unit is used to determine whether the ground lock performs a self-check operation corresponding to the self-check control instruction according to the video stream image.
[0137] The fourth determining unit is configured to determine that an abnormality occurs in the ground lock if the ground lock fails to perform a self-check operation corresponding to the self-check control instruction.
[0138] Optionally, the ground lock control device 50 may further include a fifth determination unit and a first output unit.
[0139] The fifth determining unit is used to determine whether the ground lock is being damaged according to the video stream image.
[0140] The first output unit is used to store the video stream image and output alarm information if the ground lock is being damaged.
[0141] Optionally, the first determining unit 51 may include a sixth determining unit, a seventh determining unit and an eighth determining unit.
[0142] The sixth determination unit is used to determine whether a vehicle enters the parking area according to the video stream image, and if it is determined that a vehicle enters the parking area, send the second control instruction to the ground lock.
[0143] The seventh determination unit is used to determine whether there is a vehicle parked in the parking area according to the video stream image, and if it is determined that there is a vehicle parked in the parking area, send the second control instruction to the ground lock.
[0144] The eighth determination unit is used to determine whether the vehicle has not left the parking area based on the video stream image. If it is determined that the vehicle has not left the parking area, the second control instruction is sent to the ground lock, and after determining that the vehicle has left the parking area, the third control instruction is sent to the ground lock; wherein the third control instruction is used to instruct the ground lock to execute the first control instruction.
[0145] Optionally, the ground lock control device 50 may further include a ninth determining unit and a tenth determining unit.
[0146] The ninth determination unit is used to determine whether the ground lock successfully executes the first control instruction according to the video stream image.
[0147] The tenth determining unit is configured to determine that an abnormality occurs in the ground lock if the ground lock fails to execute the first control instruction.
[0148] Optionally, the ground lock is provided with a spring assembly and a blocking assembly.
[0149] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be specifically referred to the method embodiment part and will not be repeated here.
[0150] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 6 provided in this embodiment may include: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. For example, a program corresponding to the ground lock control method. When the processor 60 executes the computer program 62, the steps applied to the ground lock control method embodiment are implemented, for example Figure 1 S101~S102 shown, Figure 2 S201~S202 shown, Figure 3 S301 to S303 shown in FIG. Figure 4 Alternatively, when the processor 60 executes the computer program 62, the functions of each module / unit in the embodiment corresponding to the electronic device 6 are realized, for example Figure 5 The functions of the units 51-52 are shown.
[0151] Exemplarily, the computer program 62 may be divided into one or more modules / units, one or more modules / units are stored in the memory 61, and are executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the electronic device 6. For example, the computer program 62 may be divided into a video stream image acquisition unit 51 and a first determination unit 52. For the specific functions of each unit, please refer to Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.
[0152] Those skilled in the art will understand that Figure 6 The electronic device 6 is merely an example and does not limit the electronic device 6 , and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0153] The processor 60 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. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0154] The memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. The memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card, etc., equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 61 is used to store computer programs and other programs and data required by the electronic device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0155] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the ground lock control device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0156] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0157] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.
[0158] 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.
[0159] 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.
[0160] 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 ground lock control method, characterized in that: include: Acquire a video stream image of the parking area where the ground lock is located; After sending the first control instruction to the ground lock, determining whether to send a second control instruction to the ground lock according to the video stream image; wherein the second control instruction is used to prevent the ground lock from executing the first control instruction; The determining whether to send a second control instruction to the ground lock according to the video stream image includes: determining, based on the video stream image, whether a vehicle has entered the parking area, and if it is determined that a vehicle has entered the parking area, sending the second control instruction to the ground lock; determining whether there is a vehicle parked in the parking area according to the video stream image, and if it is determined that there is a vehicle parked in the parking area, sending the second control instruction to the ground lock; Determine whether the vehicle has not left the parking area according to the video stream image, and if it is determined that the vehicle has not left the parking area, send the second control instruction to the ground lock, and after determining that the vehicle has left the parking area, send a third control instruction to the ground lock; wherein the third control instruction is used to instruct the ground lock to execute the first control instruction; The determining whether there is a vehicle parked in the parking area comprises: Obtaining a binary comparison original image corresponding to a preset pattern on the ground lock; The corresponding positions in the video stream image are binarized in the same manner, and the binarized video stream image is compared with the binarized original image to determine whether there is a vehicle parked in the parking area.
2. The method according to claim 1, characterized in that Also includes: After sending a first control instruction to the ground lock, determining whether the ground lock executes the first control instruction according to the video stream image; If the ground lock does not execute the first control instruction, the first control instruction is sent to the ground lock again.
3. The method according to claim 1, characterized in that Also includes: Sending a self-check control instruction to the ground lock; determining, according to the video stream image, whether the ground lock performs a self-check operation corresponding to the self-check control instruction; If the ground lock does not perform the self-check operation corresponding to the self-check control instruction, it is determined that the ground lock is abnormal.
4. The method according to claim 1, characterized in that Also includes: Determining whether the ground lock is being damaged according to the video stream image; If the ground lock is being damaged, the video stream image is stored and an alarm message is output.
5. The method according to claim 2, characterized in that: Also includes: Determining whether the ground lock successfully executes the first control instruction according to the video stream image; If the ground lock fails to execute the first control instruction successfully, it is determined that the ground lock is abnormal.
6. The method according to any one of claims 1 to 5, characterized in that: The ground lock is provided with a spring component and a blocking component.
7. A ground lock control device, characterized in that: include: A video stream image acquisition unit, used to acquire a video stream image of the parking area where the ground lock is located; A first determining unit is used to determine whether to send a second control instruction to the ground lock according to the video stream image after sending the first control instruction to the ground lock; wherein the second control instruction is used to prevent the ground lock from executing the first control instruction; The first determining unit is specifically configured to: determining, based on the video stream image, whether a vehicle has entered the parking area, and if it is determined that a vehicle has entered the parking area, sending the second control instruction to the ground lock; determining whether there is a vehicle parked in the parking area according to the video stream image, and if it is determined that there is a vehicle parked in the parking area, sending the second control instruction to the ground lock; Determine whether the vehicle has not left the parking area according to the video stream image, and if it is determined that the vehicle has not left the parking area, send the second control instruction to the ground lock, and after determining that the vehicle has left the parking area, send a third control instruction to the ground lock; wherein the third control instruction is used to instruct the ground lock to execute the first control instruction; The first determining unit is specifically configured to: Obtaining a binary comparison original image corresponding to a preset pattern on the ground lock; The corresponding positions in the video stream image are binarized in the same manner, and the binarized video stream image is compared with the binarized original image to determine whether there is a vehicle parked in the parking area.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, each step of the ground lock control method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, each step of the ground lock control method according to any one of claims 1 to 6 is implemented.
