[go: up one dir, main page]

CN108492616B - Parking state determination method and device for parking space - Google Patents

Parking state determination method and device for parking space Download PDF

Info

Publication number
CN108492616B
CN108492616B CN201810321745.6A CN201810321745A CN108492616B CN 108492616 B CN108492616 B CN 108492616B CN 201810321745 A CN201810321745 A CN 201810321745A CN 108492616 B CN108492616 B CN 108492616B
Authority
CN
China
Prior art keywords
preset
parking space
license plate
parking
confidence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810321745.6A
Other languages
Chinese (zh)
Other versions
CN108492616A (en
Inventor
韩超
程建辉
孙晓辉
覃忠斌
杨远兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201810321745.6A priority Critical patent/CN108492616B/en
Publication of CN108492616A publication Critical patent/CN108492616A/en
Application granted granted Critical
Publication of CN108492616B publication Critical patent/CN108492616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a parking state determining method and a parking state determining device for a parking space, wherein in the embodiment of the invention, when the intensity of received second ultrasonic waves is greater than a preset first intensity threshold value, the confidence level of the ultrasonic waves is firstly updated, when the intensity of the second ultrasonic waves is not greater than the preset first intensity threshold value, the confidence level of the ultrasonic waves is secondly updated, and when the first updated confidence level of the first ultrasonic waves is greater than the preset first confidence level threshold value, the parking state of the parking space is determined as the presence of a vehicle; when the second updated second ultrasonic confidence is smaller than the preset second confidence threshold, the parking state of the parking space is determined to be the vehicle-free state, so that the problem that the measured distance is inaccurate due to short-time ultrasonic intensity change or misjudgment is caused when an obstacle exists in the parking space for a short time, and then the parking state of the parking space is determined to be inaccurate can be solved.

Description

Parking state determination method and device for parking space
Technical Field
The invention relates to the field of video monitoring, in particular to a parking state determining method and device for a parking space.
Background
With the continuous improvement of market economy and the acceleration of life rhythm of people, the demand of automobiles is on a rapid growth trend, and the number of automobiles is rapidly increased. With the rapid increase of the number of automobiles, the problems of difficult parking and difficult parking lot management are presented. In order to solve the problems, an effective scheme is to accurately determine the parking state of each parking space, and then manage the parking lot according to the parking state of each parking space.
When the parking state of a parking space is determined in the prior art, an ultrasonic sensor is generally adopted for distance measurement, when the distance measured by the ultrasonic sensor is smaller than a preset distance threshold value, a vehicle is judged to be in the parking space, and otherwise, no vehicle is judged to be in the parking space. The problem that prior art exists is that, at first the ultrasonic wave receives the surrounding environment interference great, and changes such as temperature or humidity for a short time can lead to the intensity change of the ultrasonic wave of transmission, lead to the measuring distance inaccurate, and then confirm that the parking status on parking stall can be inaccurate, or the short time has the barrier to exist when the parking stall, can misjudge for having the car, lead to confirming that the parking status on parking stall can be inaccurate.
Disclosure of Invention
The embodiment of the invention provides a parking state determining method and device for a parking space, which are used for solving the problem that the parking state of the parking space is determined inaccurately in the prior art.
The embodiment of the invention provides a parking state determining method for a parking space, which comprises the following steps:
when the preset time point is reached, transmitting a first ultrasonic wave, and receiving a reflected second ultrasonic wave; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not;
if so, increasing the ultrasonic confidence by a first value, and performing a first update on the ultrasonic confidence,
if not, subtracting a second numerical value from the ultrasonic confidence coefficient, and performing second updating on the ultrasonic confidence coefficient;
judging whether the first updated first ultrasonic confidence coefficient is greater than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a car, and snapshotting a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image.
Further, the method further comprises:
acquiring a third image when a preset time point is reached, and judging whether a license plate exists in the third image or not;
if yes, adding a third numerical value to the confidence coefficient of the license plate, carrying out third updating on the confidence coefficient of the license plate, and if not, subtracting a fourth numerical value from the confidence coefficient of the license plate, and carrying out fourth updating on the confidence coefficient of the license plate;
judging whether the confidence coefficient of the first license plate after the third updating is larger than a preset third confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is the presence of a vehicle; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
Further, the determining that the parking status of the parking space is vehicle-free includes:
and if the second confidence level of the second license plate is smaller than a preset fourth confidence level threshold value and the second ultrasonic confidence level is smaller than a preset second confidence level threshold value, determining that the parking state of the parking space is no vehicle.
Further, before updating the confidence of the license plate, the method further comprises:
acquiring the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the third updating of the confidence of the license plate comprises the following steps:
if the number of the pixel points is larger than a preset number threshold, performing third updating on the confidence coefficient of the license plate;
the fourth updating of the confidence of the license plate comprises:
and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
Further, the method further comprises:
when the confidence of the second license plate is smaller than a preset fourth confidence threshold value and the first ultrasonic confidence is larger than a preset first confidence threshold value, sending out prompt information that the automobile stopped at the parking space is a license-free automobile or the license plate is blocked;
and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
Further, after sending the prompt message that the ultrasonic sensor is out of order, the method further includes:
the frequency and current of the transmitted ultrasonic waves are adjusted.
Further, after determining that the parking status of the parking space is the presence of the vehicle, the method further includes:
updating the continuous times of determining that the parking state of the parking space is the presence of the vehicle, judging whether the updated first time reaches a preset first time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
updating the continuous times of determining that the parking state of the parking space is the non-vehicle state, judging whether the updated second time reaches a preset second time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
Further, after determining that the parking status of the parking space is the presence of the vehicle, the method further includes:
judging whether the parking state of the parking space determined at the last preset time point is no vehicle, if so, capturing a fourth image, and storing a fifth image and the fourth image acquired at the last preset time point according to a time sequence;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
judging whether the parking state of the parking space determined at the last preset time point is a vehicle, if so, capturing a sixth image, and storing a seventh image and the sixth image acquired at the last preset time point according to a time sequence.
Further, after receiving the reflected second ultrasonic wave, the method further includes:
when the parking state of the parking space determined at the last preset time point is judged to be the presence of a vehicle, judging whether the second ultrasonic intensity is smaller than a preset second intensity threshold value or not, and if so, capturing an eighth image, wherein the preset second intensity threshold value is smaller than a preset first intensity threshold value;
and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
Further, before capturing the first image or the second image, the method further comprises:
and judging whether the current scene is a night scene or not, if so, controlling the light supplement lamp to be turned on, and if not, controlling the light supplement lamp to be turned off.
Further, after determining that the parking status of the parking space is the presence of the vehicle, the method further includes:
sending a first control instruction to an indicator light, and controlling the indicator light to display a first color;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
and sending a second control instruction to the indicator light, and controlling the indicator light to display a second color.
On the other hand, an embodiment of the present invention provides a parking state determination device for a parking space, where the device includes:
the first judgment module is used for transmitting a first ultrasonic wave when the preset time point is reached and receiving a second ultrasonic wave reflected back; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not;
the first updating module is used for increasing the ultrasonic confidence coefficient by a first value and carrying out first updating on the ultrasonic confidence coefficient if the judgment result of the first judging module is yes, and subtracting a second value from the ultrasonic confidence coefficient and carrying out second updating on the ultrasonic confidence coefficient if the judgment result of the first judging module is no;
the determining module is used for judging whether the first updated first ultrasonic confidence coefficient is larger than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a parking state and capturing a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image.
Further, the apparatus further comprises:
the second judgment module is used for acquiring a third image when a preset time point is reached and judging whether a license plate exists in the third image or not;
the second updating module is used for increasing the confidence coefficient of the license plate by a third numerical value and performing third updating on the confidence coefficient of the license plate if the judgment result of the second judging module is positive, and subtracting a fourth numerical value from the confidence coefficient of the license plate and performing fourth updating on the confidence coefficient of the license plate if the judgment result of the second judging module is negative;
the determining module is further configured to determine whether the confidence of the third updated first license plate is greater than a preset third confidence threshold, and if so, determine that the parking state of the parking space is a parking state; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
Further, the apparatus further comprises:
the third judgment module is used for acquiring the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the second updating module is specifically configured to perform third updating on the license plate confidence level if the number of the pixel points is greater than a preset number threshold; and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
Further, the apparatus further comprises:
the prompting module is used for sending out prompting information that the automobile stopped at the parking space is a unlicensed automobile or the license plate is shielded when the confidence of the second license plate is smaller than a preset fourth confidence threshold value and the confidence of the first ultrasonic wave is larger than a preset first confidence threshold value; and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
Further, the apparatus further comprises:
and the first adjusting module is used for adjusting the frequency and the current of the transmitted ultrasonic wave.
Further, the apparatus further comprises:
the second adjusting module is used for updating the continuous times of determining that the parking state of the parking space is the presence of the vehicle after determining that the parking state of the parking space is the presence of the vehicle, judging whether the updated first time reaches a preset first time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval;
the second adjusting module is further configured to update the continuous times for determining that the parking state of the parking space is the non-vehicle state after determining that the parking state of the parking space is the non-vehicle state, determine whether the updated second time reaches a preset second time threshold, and if so, adjust a first time interval between two adjacent preset time points to a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
Further, the apparatus further comprises:
the storage module is used for judging whether the parking state of the parking space determined at the last preset time point is a vehicle-free state after the parking state of the parking space is determined to be a vehicle-available state, if so, capturing a fourth image, and storing a fifth image and the fourth image which are acquired at the last preset time point according to a time sequence;
the storage module is further configured to, after the parking state of the parking space is determined to be the vehicle-free state, determine whether the parking state of the parking space determined at the previous preset time point is the vehicle-available state, if so, capture a sixth image, and store the seventh image and the sixth image acquired at the previous preset time point according to a time sequence.
Further, the apparatus further comprises:
the fourth judging module is used for judging whether the second ultrasonic intensity is smaller than a preset second intensity threshold value or not when the parking state of the parking space determined at the last preset time point is judged to be the presence of a vehicle, and if so, capturing an eighth image, wherein the preset second intensity threshold value is smaller than the preset first intensity threshold value; and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
Further, the apparatus further comprises:
and the first control module is used for judging whether the current scene is a night scene or not, controlling the light supplement lamp to be turned on if the current scene is the night scene, and controlling the light supplement lamp to be turned off if the current scene is not the night scene.
Further, the apparatus further comprises:
the second control module is used for sending a first control instruction to the indicator light after determining that the parking state of the parking space is the presence of a vehicle, and controlling the indicator light to display a first color; and after the parking state of the parking space is determined to be the vehicle-free state, sending a second control instruction to the indicator lamp, and controlling the indicator lamp to display a second color.
The embodiment of the invention provides a parking state determining method and device for a parking space, wherein the method comprises the following steps: when the preset time point is reached, transmitting a first ultrasonic wave, and receiving a reflected second ultrasonic wave; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not; if yes, increasing the ultrasonic confidence by a first numerical value, performing first updating on the ultrasonic confidence, and if not, subtracting a second numerical value from the ultrasonic confidence, and performing second updating on the ultrasonic confidence; judging whether the first updated first ultrasonic confidence coefficient is greater than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a car, and snapshotting a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image. In the embodiment of the invention, when the intensity of the second ultrasonic wave is greater than the preset first intensity threshold, the ultrasonic confidence coefficient is first updated, when the intensity of the second ultrasonic wave is not greater than the preset first intensity threshold, the ultrasonic confidence coefficient is second updated, and when the first updated ultrasonic confidence coefficient is greater than the preset first confidence coefficient threshold, the parking state of the parking space is determined as the presence of a vehicle; when the second updated second ultrasonic confidence is smaller than the preset second confidence threshold, the parking state of the parking space is determined to be the vehicle-free state, and therefore the problem that the measured distance is inaccurate and the parking state of the parking space is inaccurate due to short-time ultrasonic intensity change can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a parking status determination process of a parking space according to embodiment 1 of the present invention;
fig. 2 is a schematic view of an electronic device installation location provided in embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to embodiment 9 of the present invention;
fig. 4 is a schematic structural diagram of a parking status determination apparatus for a parking space according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic view of a parking status determination process for a parking space according to an embodiment of the present invention, where the process includes the following steps:
s101: when the preset time point is reached, transmitting a first ultrasonic wave, and receiving a reflected second ultrasonic wave; and judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value.
The electronic equipment stores a preset time point for acquiring the image, a timer can be installed in the electronic equipment, and the first ultrasonic wave is transmitted when the preset time point is determined to be reached through the timer. The electronic equipment is provided with the ultrasonic sensor, and when the preset time point is reached, the electronic equipment transmits first ultrasonic waves through the ultrasonic sensor and receives reflected second ultrasonic waves. When the vehicle is in the parking space, the second ultrasonic wave can be received in a short time after the first ultrasonic wave is sent out compared with the situation that the vehicle is not in the parking space, the loss of the first ultrasonic wave is small, and therefore the intensity of the returned second ultrasonic wave is large. Therefore, the electronic apparatus can perform determination of the parking space parking state according to the intensity of the second ultrasonic wave. In the embodiment of the present invention, when the electronic device stores that the preset first intensity threshold receives the reflected second ultrasonic wave, it is determined whether the intensity of the second ultrasonic wave is greater than the preset first intensity threshold. Wherein, the preset first intensity threshold may be 120 db, 150 db, etc.
S102: if the intensity of the second ultrasonic wave is larger than the preset first intensity threshold value, increasing the ultrasonic confidence coefficient by a first value, and performing first updating on the ultrasonic confidence coefficient, and if the intensity of the second ultrasonic wave is not larger than the preset first intensity threshold value, subtracting the second value from the ultrasonic confidence coefficient, and performing second updating on the ultrasonic confidence coefficient.
When the electronic equipment judges that the intensity of the second ultrasonic wave is larger than a preset first intensity threshold value, the ultrasonic confidence coefficient is increased by a first numerical value, and the current ultrasonic confidence coefficient is subjected to first updating. And when the electronic equipment judges that the intensity of the second ultrasonic wave is not greater than the preset number threshold, subtracting a second numerical value from the ultrasonic confidence coefficient, and performing second updating on the current ultrasonic confidence coefficient. The first value and the second value may be the same or different, and preferably, both the first value and the second value may be set to 1.
In addition, a plurality of continuous time lengths can be set in the electronic device, the ultrasonic confidence level is updated in each time length, and when the next time length is reached, the ultrasonic confidence level is cleared.
S103: judging whether the first updated first ultrasonic confidence coefficient is greater than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a car, and snapshotting a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image.
The electronic equipment stores a preset first confidence coefficient threshold, after the current ultrasonic confidence coefficient is subjected to first updating, whether the first updated first ultrasonic confidence coefficient is larger than the preset first confidence coefficient threshold is judged, and if yes, the parking state of the parking space is determined to be the presence of the vehicle. And after the current ultrasonic confidence coefficient is subjected to second updating, judging whether the second updated ultrasonic confidence coefficient is smaller than the preset second confidence coefficient threshold, and if so, determining that the parking state of the parking space is no vehicle.
The preset first confidence coefficient threshold value is larger than the preset second confidence coefficient threshold value. The preset first confidence threshold may be set to 10, 15, etc., and the preset second confidence threshold may be set to-5, -8, etc.
In addition, the electronic equipment can shoot the first image in a snapping mode when the parking state of the parking space is determined to be the presence of a vehicle, and can shoot the second image in a snapping mode when the parking state of the parking space is determined to be the absence of the vehicle. When a user needs to check the parking state of the parking space, the captured image can be directly called, and accurate guarantee is provided for the user to manage the parking space. The user experience is improved.
In the embodiment of the invention, when the intensity of the received second ultrasonic wave is greater than the preset first intensity threshold, the ultrasonic confidence coefficient is first updated, when the intensity of the second ultrasonic wave is not greater than the preset first intensity threshold, the ultrasonic confidence coefficient is second updated, and when the first updated first ultrasonic confidence coefficient is greater than the preset first confidence coefficient threshold, the parking state of the parking space is determined to be the presence of a vehicle; when the second updated second ultrasonic confidence is smaller than the preset second confidence threshold, the parking state of the parking space is determined to be the vehicle-free state, so that the problem that the measured distance is inaccurate due to short-time ultrasonic intensity change or misjudgment is caused when an obstacle exists in the parking space for a short time, and then the parking state of the parking space is determined to be inaccurate can be solved.
Example 2:
in order to make the determination of the parking status of the parking space more accurate, on the basis of the above embodiment, in an embodiment of the present invention, the method further includes:
acquiring a third image when a preset time point is reached, and judging whether a license plate exists in the third image or not;
if yes, adding a third numerical value to the confidence coefficient of the license plate, carrying out third updating on the confidence coefficient of the license plate, and if not, subtracting a fourth numerical value from the confidence coefficient of the license plate, and carrying out fourth updating on the confidence coefficient of the license plate;
judging whether the confidence coefficient of the first license plate after the third updating is larger than a preset third confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is the presence of a vehicle; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
In the embodiment of the invention, one electronic device is correspondingly installed for each parking space to be detected. The position of this electronic equipment installation corresponds with the license plate position when waiting to detect that there is the vehicle in the parking stall, promptly, this electronic equipment installation can acquire the position of the license plate image of vehicle when waiting to detect that there is the vehicle in the parking stall. The electronic equipment can be installed at the upper left corner, the upper right corner, the lower left corner or the lower right corner of the parking space to be detected according to an actual scene in order to avoid influencing the driving of the vehicle into or out of the parking space.
Fig. 2 is a schematic diagram of an installation position of an electronic device, and as shown in fig. 2, the electronic device is installed in an upper left corner of a parking space.
And when the preset time point is reached, the electronic equipment acquires the third image, improves the priority of an algorithm for identifying the license plate in the third image and judges whether the license plate exists in the third image. Specifically, whether the license plate exists in the third image can be judged through methods such as feature matching. The process of determining whether the license plate exists in the third image belongs to the prior art, and the process is not described herein again.
And when judging that the license plate exists in the third image, the electronic equipment increases the confidence coefficient of the license plate by a third numerical value and carries out third updating on the confidence coefficient of the current license plate. And after the current license plate confidence coefficient is subjected to third updating, judging whether the confidence coefficient of the first license plate after the third updating is larger than the preset third confidence coefficient threshold, and if so, determining that the parking state of the parking space is the presence of the vehicle.
And when the electronic equipment judges that the license plate does not exist in the third image, the electronic equipment subtracts a fourth numerical value from the confidence coefficient of the license plate and carries out fourth updating on the confidence coefficient of the current license plate. And after the current license plate confidence coefficient is subjected to fourth updating, judging whether the fourth updated second license plate confidence coefficient is smaller than the preset fourth confidence coefficient threshold, and if so, determining that the parking state of the parking space is no vehicle.
The third value and the fourth value may be the same or different, and preferably, both the first value and the second value may be set to 1. The preset third confidence threshold and the preset first confidence may be the same or different, and the preset fourth confidence threshold and the preset second confidence may be the same or different. The preset fourth confidence threshold is smaller than the preset third confidence threshold, the preset third confidence threshold may be set to 12, 15, etc., and the preset fourth confidence threshold may be set to-8, -10, etc.
Similarly, a plurality of continuous time lengths can be set in the electronic equipment, the confidence coefficient of the license plate is updated in each time length, and when the next time length is reached, the confidence coefficient of the license plate is cleared.
In an embodiment of the present invention, the determining that the parking status of the parking space is no vehicle includes:
and if the second confidence level of the second license plate is smaller than a preset fourth confidence level threshold value and the second ultrasonic confidence level is smaller than a preset second confidence level threshold value, determining that the parking state of the parking space is no vehicle.
In the embodiment of the invention, when the license plate exists in the third image, the confidence coefficient of the license plate is increased by a third numerical value, otherwise, the confidence coefficient of the license plate is subtracted by a fourth numerical value, the confidence coefficient of the license plate is updated, when the confidence coefficient of the first license plate after the third update is greater than a preset third confidence coefficient threshold value, the parking state of the parking space is determined as the presence of a vehicle, and when the confidence coefficient of the second license plate after the fourth update is less than a preset fourth confidence coefficient threshold value, the parking state of the parking space is determined as the absence of a vehicle. Therefore, the parking state of the parking space can be determined more accurately, in addition, when the ultrasonic sensor breaks down, the parking state of the parking space can still be determined, and the limitation of determining the parking state of the parking space in the prior art is avoided.
Example 3:
in order to avoid an influence of vehicles parked in adjacent parking spaces on determining a parking state of a parking space, on the basis of the above embodiments, before updating a license plate confidence, the method further includes:
acquiring the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the third updating of the confidence of the license plate comprises the following steps:
if the number of the pixel points is larger than a preset number threshold, performing third updating on the confidence coefficient of the license plate;
the fourth updating of the confidence of the license plate comprises:
and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
And after judging that the license plate exists in the third image, the electronic equipment acquires the number of pixel points occupied by the license plate in the third image. The preset number threshold is stored in the electronic equipment, and after the number of the pixel points occupied by the license plate in the third image is obtained, whether the number of the pixel points occupied by the license plate is larger than the preset number threshold is judged. And if the judgment result is yes, performing third updating on the confidence coefficient of the license plate, and if the judgment result is no, performing fourth updating on the confidence coefficient of the license plate. Wherein the preset number threshold may be 1000, 1500, and so on.
The number of the pixel points occupied by the license plates in the adjacent parking spaces is less than that occupied by the license plates in the parking spaces corresponding to the electronic equipment. In the embodiment of the invention, when the number of the pixel points occupied by the license plate is greater than the preset number threshold, the confidence of the license plate is updated for the third time. Therefore, the situation that the vehicle in the adjacent parking space is taken as the vehicle in the parking space corresponding to the electronic equipment can be avoided, and the parking state of the parking space can be determined more accurately.
Example 4:
in order to improve the user experience, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
when the confidence of the second license plate is smaller than a preset fourth confidence threshold value and the first ultrasonic confidence is larger than a preset first confidence threshold value, sending out prompt information that the automobile stopped at the parking space is a license-free automobile or the license plate is blocked;
and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
When the electronic device judges that the confidence of the second license plate is smaller than a preset fourth confidence threshold, the electronic device judges that the parking space has no car based on the image, and at the moment, if the electronic device judges that the confidence of the first ultrasonic wave is larger than the preset first confidence threshold, the electronic device judges that the parking space has the car based on the ultrasonic wave. The reason for this is that the vehicle parked in the parking space does not have a license plate, or the license plate is blocked, and thus, it is determined that there is a vehicle in the parking space based on the ultrasonic waves, and it is determined that there is no vehicle in the parking space based on the images. Therefore, the electronic equipment sends out prompt information that the automobile parked in the parking space is a license-free automobile or the license plate is blocked.
In addition, when the electronic device judges that the confidence of the first license plate is greater than a preset third confidence threshold, the electronic device judges that the parking space has the car based on the image, and at the moment, if the confidence of the second ultrasonic wave is smaller than the preset second confidence threshold, the electronic device judges that the parking space has no car based on the ultrasonic wave. This is caused by a failure of the ultrasonic sensor in the electronic device, resulting in a low intensity of the first ultrasonic wave being emitted, so that it is determined based on the ultrasonic wave that the parking space is empty and based on the image that there is a car in the parking space. Therefore, the electronic device sends out a message indicating that the ultrasonic sensor is out of order.
In addition, since the humidity and the temperature in the scene both affect the intensity of the ultrasonic wave, after the electronic device sends out a message indicating that the ultrasonic sensor is out of order, the method further includes:
the frequency and current of the transmitted ultrasonic waves are adjusted.
Specifically, the process of adjusting the frequency and the current of the transmitted ultrasonic wave includes setting the frequency to a certain value, sequentially traversing a current range supported by the ultrasonic wave to obtain intensities of a plurality of ultrasonic waves, determining a corresponding current when the intensity of the ultrasonic wave is maximum, keeping the current unchanged, sequentially traversing the frequency range supported by the ultrasonic wave to obtain the intensities of the plurality of ultrasonic waves, and determining a corresponding frequency when the intensity of the ultrasonic wave is maximum, wherein the obtained current and frequency are the adjusted current and frequency.
And when the time point of next ultrasonic wave transmission is reached, transmitting the first ultrasonic wave according to the adjusted frequency and current, judging whether the intensity of the received second ultrasonic wave is greater than a preset first intensity threshold value or not when the parking space is judged to be occupied based on the third image, if so, replacing the ultrasonic sensor, and transmitting the ultrasonic wave according to the adjusted frequency and current. And if the intensity of the received second ultrasonic wave is still not greater than the preset first intensity threshold value, the ultrasonic sensor needs to be replaced at the moment.
In the embodiment of the present invention, the prompt message sent by the electronic device may be a voice message, a text message, or the like.
In the embodiment of the invention, when the confidence of the second license plate is smaller than the preset fourth confidence threshold and the first ultrasonic confidence is larger than the preset first confidence threshold, the prompt message that the parked automobile in the parking space is a unlicensed automobile or the license plate is blocked is sent out, and when the confidence of the first license plate is larger than the preset third confidence threshold and the second ultrasonic confidence is smaller than the preset second confidence threshold, the prompt message that the ultrasonic sensor fails is sent out, so that the user experience can be improved.
Example 5:
in order to reduce power consumption of the electronic device, on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining that the parking status of the parking space is a car, the method further includes:
updating the continuous times of determining that the parking state of the parking space is the presence of the vehicle, judging whether the updated first time reaches a preset first time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
updating the continuous times of determining that the parking state of the parking space is the non-vehicle state, judging whether the updated second time reaches a preset second time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
If the parking state of the parking space is always the presence of the vehicle or the absence of the vehicle, the parking state is determined without frequently acquiring the first image, so that the time interval for acquiring the first image can be reduced, and the effect of reducing the power consumption is achieved.
Specifically, the electronic device updates the number of consecutive times that the parking state of the parking space is determined to be the presence of the vehicle after determining that the parking state of the parking space is the presence of the vehicle. The preset first time threshold is stored in the electronic device, and when the updated first time reaches the preset first time threshold, it indicates that a car is in the parking space for a long time, so that the first time interval between two adjacent preset time points can be adjusted to be the preset second time interval. The preset first time threshold may be 30 times, 40 times, etc.
The electronic device updates the number of consecutive times of determining that the parking state of the parking space is the vehicle-free state after determining that the parking state of the parking space is the vehicle-free state. The preset second-time threshold value is stored in the electronic device, and when the updated second time reaches the preset second-time threshold value, the parking space is indicated to be empty for a long time, so that the first time interval between two adjacent preset time points can be adjusted to be the preset second time interval. The preset first time threshold and the preset second time threshold may be the same or different.
The following description is given by way of a specific example.
For example, the preset first time threshold is 30 times, and the first time interval between two adjacent preset time points is 2 seconds. After the parking state of the parking space is determined to be the presence of the vehicle, the number of consecutive times that the parking state of the parking space is determined to be the presence of the vehicle is updated, and when the updated first number of times is 30, a first time interval between two adjacent preset time points is adjusted to be a preset second time interval, wherein the preset second time interval can be 10 seconds, 15 seconds and the like. It should be noted that, if the parking state of the parking space is determined to be the presence of a vehicle at the last time and the parking state of the parking space is still determined to be the presence of a vehicle at the present time, the first time is increased by 1; and if the parking state of the parking space is determined to be the presence of the vehicle at the last time and the parking state of the parking space is determined to be the absence of the vehicle at the present time, resetting the first time and setting the second time to be 1.
In the embodiment of the present invention, when the updated first number reaches the preset first number threshold, or when the updated second number reaches the preset second number threshold, that is, when it is determined that there is a car in the parking space for a long time or there is no car in the parking space for a long time, the first time interval between two adjacent preset time points is adjusted to be the preset second time interval, and the preset first time interval is smaller than the preset second time interval. Therefore, the frequency of processing images by the electronic equipment can be reduced, and the power consumption is reduced.
Example 6:
in order to determine a state from a vehicle-in state to a vehicle-out state or a state from a vehicle-out state to a vehicle-in state of a parking space and improve user experience, on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining that a parking state of a parking space is a vehicle-in state, the method further includes:
judging whether the parking state of the parking space determined at the last preset time point is no vehicle, if so, capturing a fourth image, and storing a fifth image and the fourth image acquired at the last preset time point according to a time sequence;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
judging whether the parking state of the parking space determined at the last preset time point is a vehicle, if so, capturing a sixth image, and storing a seventh image and the sixth image acquired at the last preset time point according to a time sequence.
The electronic device determines that the parking state of the parking space determined at the last preset time point is no vehicle, determines that the parking state of the parking space is vehicle-available at the current time point, captures a fourth image currently, wherein the fourth image has vehicle information such as color and license plate number of the vehicle, and stores the fifth image and the fourth image acquired at the last preset time point according to a time sequence, so as to form a process from no vehicle to vehicle-available at the parking space.
The electronic equipment determines that the parking state of the parking space determined at the last preset time point is the presence of the vehicle, and when the current time point determines that the parking state of the parking space is the absence of the vehicle, the sixth image is captured currently, and the seventh image and the sixth image acquired at the last preset time point are stored according to the time sequence, so that the process from the absence of the vehicle to the presence of the vehicle in the parking space is formed. The sixth image has information of the vehicle, such as the color of the vehicle, the number plate, and the like.
When a user needs to check the process images of the parking spaces from the presence of the vehicle to the absence of the vehicle or from the absence of the vehicle to the presence of the vehicle, the images stored according to the time sequence can be directly called, and accurate guarantee is provided for the user to manage the parking spaces. The user experience is improved.
Example 7:
in order to ensure that a state that another vehicle enters the parking space soon after the vehicle is detected to leave the parking space, on the basis of the above embodiments, in an embodiment of the present invention, after the receiving the reflected second ultrasonic wave, the method further includes:
when the parking state of the parking space determined at the last preset time point is judged to be the presence of a vehicle, judging whether the second ultrasonic intensity is smaller than a preset second intensity threshold value or not, and if so, capturing an eighth image, wherein the preset second intensity threshold value is smaller than a preset first intensity threshold value;
and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
When the vehicle drives away from the parking space, the intensity of the second ultrasonic wave received by the electronic device is weaker, so a preset second intensity threshold value is stored in the electronic device, when the parking state of the parking space determined at the last preset time point is judged to be the presence of the vehicle, whether the second ultrasonic intensity is smaller than the preset second intensity threshold value is judged, if yes, the vehicle is determined to drive away, wherein the preset second intensity threshold value is smaller than the preset first intensity threshold value, and the preset second intensity threshold value can be 50 decibels, 60 decibels and the like.
When the vehicle is judged to drive away, the eighth image is captured, when the first license plate information exists in the eighth image, the first license plate information in the eighth image and the second license plate information in the ninth image acquired at the last preset time point are identified, whether the first license plate information and the second license plate information are consistent or not is judged, if not, the fact that the vehicle corresponding to the second license plate information drives away from the parking space is determined, and the vehicle corresponding to the first license plate information drives into the parking space. The license plate information may be license plate number information.
In addition, the electronic device may store the eighth image and the ninth image in time sequence, and when the user needs to view the images, the stored images may be called.
In the embodiment of the invention, when the vehicle is detected to drive away, and the first image acquired at the last preset time point is inconsistent with the license plate information in the currently acquired eighth image, it is determined that one vehicle drives away from the parking space and the other vehicle drives into the parking space.
Example 8:
in order to improve the quality of the acquired image, on the basis of the above embodiments, in an embodiment of the present invention, before capturing the first image or the second image, the method further includes:
and judging whether the current scene is a night scene or not, if so, controlling the light supplement lamp to be turned on, and if not, controlling the light supplement lamp to be turned off.
The electronic equipment can judge whether the current scene is a daytime scene or a nighttime scene, the light supplement lamp is installed in the electronic equipment, and after the current scene is judged to be the nighttime scene, the light supplement lamp is controlled to be turned on, so that the quality of a first image or a second image which is captured is better, and when the current scene is judged to be the daytime scene, the light supplement lamp is controlled to be turned off, and the power consumption of the electronic equipment is reduced.
The process of determining whether the current scene is a daytime scene or a nighttime scene by the electronic device belongs to the prior art, and the process is not repeated here.
Example 9:
in order to further improve the user experience, on the basis of the foregoing embodiments, in an embodiment of the present invention, after determining that the parking status of the parking space is a car, the method further includes:
sending a first control instruction to an indicator light, and controlling the indicator light to display a first color;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
and sending a second control instruction to the indicator light, and controlling the indicator light to display a second color.
And an indicator lamp is arranged in the electronic equipment and displays corresponding colors according to the received control instruction. After the electronic equipment determines that the parking state of the parking space is a car, a first control instruction is sent to the indicating lamp, the first control instruction carries first color information, and the indicating lamp displays a first color after receiving the first control instruction. And when the electronic equipment determines that the parking state of the parking space is the non-vehicle state, sending a second control instruction to the indicator lamp, wherein the second control instruction carries second color information, and after receiving the second control instruction, the indicator lamp displays a second color. The first color may be red and the second color may be green.
Fig. 3 is a schematic structural view of an electronic device according to an embodiment of the present invention, and as shown in fig. 3, the electronic device includes a lens, an indicator light, a fill-in light, and an ultrasonic sensor, where the lens is used to capture an image, and the ultrasonic sensor is used to emit ultrasonic waves, and further includes an extinction thread, a device housing, and a bottom bracket.
Fig. 4 is a schematic structural diagram of a parking status determining apparatus for a parking space according to an embodiment of the present invention, where the apparatus includes:
a first judging module 41, configured to emit a first ultrasonic wave when the preset time point is reached, and receive a second ultrasonic wave reflected back; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not;
a first updating module 42, configured to, if the determination result of the first determining module 41 is yes, increase the ultrasound confidence by a first value, and perform a first update on the ultrasound confidence, and if the determination result of the first determining module 41 is no, subtract a second value from the ultrasound confidence, and perform a second update on the ultrasound confidence;
the determining module 43 is configured to determine whether the first updated first ultrasonic confidence is greater than a preset first confidence threshold, and if so, determine that the parking state of the parking space is a parked car, and capture a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image.
The device further comprises:
the second judging module 44 is configured to obtain a third image when a preset time point is reached, and judge whether a license plate exists in the third image;
the second updating module 45 is configured to, if the judgment result of the second judging module 44 is yes, increase the license plate confidence by a third value and perform third updating on the license plate confidence, and if the judgment result of the second judging module 44 is no, subtract the fourth value from the license plate confidence and perform fourth updating on the license plate confidence;
the determining module 43 is further configured to determine whether the confidence of the third updated first license plate is greater than a preset third confidence threshold, and if so, determine that the parking state of the parking space is a parking state; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
The device further comprises:
the third judging module 46 is configured to obtain the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the second updating module 45 is specifically configured to perform a third update on the license plate confidence level if the number of the pixel points is greater than a preset number threshold; and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
The device further comprises:
the prompting module 47 is configured to send out a prompting message that the vehicle stopped at the parking space is a unlicensed vehicle or the license plate is blocked when the second license plate confidence level is smaller than a preset fourth confidence level threshold value and the first ultrasonic confidence level is larger than a preset first confidence level threshold value; and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
The device further comprises:
a first adjusting module 48 for adjusting the frequency and current of the emitted ultrasonic waves.
The device further comprises:
a second adjusting module 49, configured to update the consecutive times for determining that the parking status of the parking space is the presence of the vehicle after determining that the parking status of the parking space is the presence of the vehicle, determine whether the updated first time reaches a preset first time threshold, and if so, adjust a first time interval between two adjacent preset time points to a preset second time interval;
the second adjusting module 49 is further configured to update the consecutive times for determining that the parking status of the parking space is the non-vehicle state after determining that the parking status of the parking space is the non-vehicle state, determine whether the updated second time reaches a preset second time threshold, and if so, adjust a first time interval between two adjacent preset time points to a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
The device further comprises:
the storage module 410 is configured to determine whether the parking state of the parking space determined at the previous preset time point is a vehicle-free parking state after determining that the parking state of the parking space is a vehicle-available parking state, if so, capture a fourth image, and store a fifth image and the fourth image acquired at the previous preset time point according to a time sequence;
the saving module 410 is further configured to, after the parking state of the parking space is determined to be the vehicle-free state, determine whether the parking state of the parking space determined at the previous preset time point is the vehicle-available state, if so, capture a sixth image, and save the seventh image and the sixth image acquired at the previous preset time point according to a time sequence.
The device further comprises:
a fourth determining module 411, configured to determine whether the second ultrasonic intensity is smaller than a preset second intensity threshold when it is determined that the parking status of the parking space determined at the previous preset time point is that a vehicle is parked, and if so, capture an eighth image, where the preset second intensity threshold is smaller than the preset first intensity threshold; and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
The device further comprises:
the first control module 412 is configured to determine whether the current scene is a night scene, control the light supplement lamp to turn on if the current scene is the night scene, and control the light supplement lamp to turn off if the current scene is the night scene.
The device further comprises:
the second control module 413 is configured to send a first control instruction to an indicator light after determining that the parking status of the parking space is that a vehicle is parked, and control the indicator light to display a first color; and after the parking state of the parking space is determined to be the vehicle-free state, sending a second control instruction to the indicator lamp, and controlling the indicator lamp to display a second color.
The embodiment of the invention provides a parking state determining method and device for a parking space, wherein the method comprises the following steps: when the preset time point is reached, transmitting a first ultrasonic wave, and receiving a reflected second ultrasonic wave; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not; if yes, increasing the ultrasonic confidence by a first numerical value, performing first updating on the ultrasonic confidence, and if not, subtracting a second numerical value from the ultrasonic confidence, and performing second updating on the ultrasonic confidence; judging whether the first updated first ultrasonic confidence coefficient is greater than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a car, and snapshotting a first image; and judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image. In the embodiment of the invention, when the intensity of the second ultrasonic wave is greater than the preset first intensity threshold, the ultrasonic confidence coefficient is first updated, when the intensity of the second ultrasonic wave is not greater than the preset first intensity threshold, the ultrasonic confidence coefficient is second updated, and when the first updated ultrasonic confidence coefficient is greater than the preset first confidence coefficient threshold, the parking state of the parking space is determined as the presence of a vehicle; when the second updated second ultrasonic confidence is smaller than the preset second confidence threshold, the parking state of the parking space is determined to be the vehicle-free state, and therefore the problem that the measured distance is inaccurate and the parking state of the parking space is inaccurate due to short-time ultrasonic intensity change can be avoided.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (19)

1. A parking state determination method for a parking space, characterized by comprising:
when a preset time point is reached, transmitting a first ultrasonic wave, and receiving a reflected second ultrasonic wave; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not;
if yes, increasing the ultrasonic confidence by a first numerical value, performing first updating on the ultrasonic confidence, and if not, subtracting a second numerical value from the ultrasonic confidence, and performing second updating on the ultrasonic confidence;
judging whether the first updated first ultrasonic confidence coefficient is greater than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a car, and snapshotting a first image; judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image;
after the parking state of the parking space is determined to be the presence of the vehicle, the method further comprises the following steps:
updating the continuous times of determining that the parking state of the parking space is the presence of the vehicle, judging whether the updated first time reaches a preset first time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
updating the continuous times of determining that the parking state of the parking space is the non-vehicle state, judging whether the updated second time reaches a preset second time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
2. The method of claim 1, wherein the method further comprises:
acquiring a third image when a preset time point is reached, and judging whether a license plate exists in the third image or not;
if yes, adding a third numerical value to the confidence coefficient of the license plate, carrying out third updating on the confidence coefficient of the license plate, and if not, subtracting a fourth numerical value from the confidence coefficient of the license plate, and carrying out fourth updating on the confidence coefficient of the license plate;
judging whether the confidence coefficient of the first license plate after the third updating is larger than a preset third confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is the presence of a vehicle; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
3. The method of claim 2, wherein determining that the parking status of the parking space is empty comprises:
and if the second confidence level of the second license plate is smaller than a preset fourth confidence level threshold value and the second ultrasonic confidence level is smaller than a preset second confidence level threshold value, determining that the parking state of the parking space is no vehicle.
4. The method of claim 2, wherein prior to updating the license plate confidence, the method further comprises:
acquiring the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the third updating of the confidence of the license plate comprises the following steps:
if the number of the pixel points is larger than a preset number threshold, performing third updating on the confidence coefficient of the license plate;
the fourth updating of the confidence of the license plate comprises:
and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
5. The method of claim 2, wherein the method further comprises:
when the confidence of the second license plate is smaller than a preset fourth confidence threshold value and the first ultrasonic confidence is larger than a preset first confidence threshold value, sending out prompt information that the automobile stopped at the parking space is a license-free automobile or the license plate is blocked;
and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
6. The method of claim 5, wherein after sending the indication that the ultrasonic sensor is malfunctioning, the method further comprises:
the frequency and current of the transmitted ultrasonic waves are adjusted.
7. The method of claim 1, wherein after determining that the parking status of the parking space is vehicle-in, the method further comprises:
judging whether the parking state of the parking space determined at the last preset time point is no vehicle, if so, capturing a fourth image, and storing a fifth image and the fourth image acquired at the last preset time point according to a time sequence;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
judging whether the parking state of the parking space determined at the last preset time point is a vehicle, if so, capturing a sixth image, and storing a seventh image and the sixth image acquired at the last preset time point according to a time sequence.
8. The method of claim 1, wherein after receiving the reflected second ultrasonic wave, the method further comprises:
when the parking state of the parking space determined at the last preset time point is judged to be the presence of a vehicle, judging whether the second ultrasonic intensity is smaller than a preset second intensity threshold value or not, and if so, capturing an eighth image, wherein the preset second intensity threshold value is smaller than a preset first intensity threshold value;
and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
9. The method of claim 1, wherein prior to snapping the first image or the second image, the method further comprises:
and judging whether the current scene is a night scene or not, if so, controlling the light supplement lamp to be turned on, and if not, controlling the light supplement lamp to be turned off.
10. The method of claim 1, wherein after determining that the parking status of the parking space is vehicle-in, the method further comprises:
sending a first control instruction to an indicator light, and controlling the indicator light to display a first color;
after determining that the parking status of the parking space is no vehicle, the method further comprises:
and sending a second control instruction to the indicator light, and controlling the indicator light to display a second color.
11. A parking state determination apparatus for a parking space, characterized by comprising:
the first judgment module is used for transmitting a first ultrasonic wave when a preset time point is reached and receiving a second ultrasonic wave reflected back; judging whether the intensity of the second ultrasonic wave is greater than a preset first intensity threshold value or not;
the first updating module is used for increasing the ultrasonic confidence coefficient by a first value and carrying out first updating on the ultrasonic confidence coefficient if the judgment result of the first judging module is yes, and subtracting a second value from the ultrasonic confidence coefficient and carrying out second updating on the ultrasonic confidence coefficient if the judgment result of the first judging module is no;
the determining module is used for judging whether the first updated first ultrasonic confidence coefficient is larger than a preset first confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is a parking state and capturing a first image; judging whether the second updated second ultrasonic confidence coefficient is smaller than a preset second confidence coefficient threshold value or not, if so, determining that the parking state of the parking space is no vehicle, and snapshotting a second image;
the device further comprises:
the second adjusting module is used for updating the continuous times of determining that the parking state of the parking space is the presence of the vehicle after determining that the parking state of the parking space is the presence of the vehicle, judging whether the updated first time reaches a preset first time threshold value, and if so, adjusting a first time interval between two adjacent preset time points to be a preset second time interval;
the second adjusting module is further configured to update the continuous times for determining that the parking state of the parking space is the non-vehicle state after determining that the parking state of the parking space is the non-vehicle state, determine whether the updated second time reaches a preset second time threshold, and if so, adjust a first time interval between two adjacent preset time points to a preset second time interval; wherein the preset first time interval is smaller than the preset second time interval.
12. The apparatus of claim 11, wherein the apparatus further comprises:
the second judgment module is used for acquiring a third image when a preset time point is reached and judging whether a license plate exists in the third image or not;
the second updating module is used for increasing the confidence coefficient of the license plate by a third numerical value and performing third updating on the confidence coefficient of the license plate if the judgment result of the second judging module is positive, and subtracting a fourth numerical value from the confidence coefficient of the license plate and performing fourth updating on the confidence coefficient of the license plate if the judgment result of the second judging module is negative;
the determining module is further configured to determine whether the confidence of the third updated first license plate is greater than a preset third confidence threshold, and if so, determine that the parking state of the parking space is a parking state; and judging whether the fourth updated second license plate confidence coefficient is smaller than a preset fourth confidence coefficient threshold value or not, and if so, determining that the parking state of the parking space is no vehicle.
13. The apparatus of claim 12, wherein the apparatus further comprises:
the third judgment module is used for acquiring the number of pixel points occupied by the license plate; judging whether the number of the pixel points is larger than a preset number threshold value or not;
the second updating module is specifically configured to perform third updating on the license plate confidence level if the number of the pixel points is greater than a preset number threshold; and if the number of the pixel points is not larger than a preset number threshold, performing fourth updating on the confidence of the license plate.
14. The apparatus of claim 12, wherein the apparatus further comprises:
the prompting module is used for sending out prompting information that the automobile stopped at the parking space is a unlicensed automobile or the license plate is shielded when the confidence of the second license plate is smaller than a preset fourth confidence threshold value and the confidence of the first ultrasonic wave is larger than a preset first confidence threshold value; and when the confidence coefficient of the first license plate is greater than a preset third confidence coefficient threshold value and the second ultrasonic confidence coefficient is less than a preset second confidence coefficient threshold value, sending out a fault prompt message of the ultrasonic sensor.
15. The apparatus of claim 13, wherein the apparatus further comprises:
and the first adjusting module is used for adjusting the frequency and the current of the transmitted ultrasonic wave.
16. The apparatus of claim 11, wherein the apparatus further comprises:
the storage module is used for judging whether the parking state of the parking space determined at the last preset time point is a vehicle-free state after the parking state of the parking space is determined to be a vehicle-available state, if so, capturing a fourth image, and storing a fifth image and the fourth image which are acquired at the last preset time point according to a time sequence;
the storage module is further configured to, after the parking state of the parking space is determined to be the vehicle-free state, determine whether the parking state of the parking space determined at the previous preset time point is the vehicle-available state, if so, capture a sixth image, and store the seventh image and the sixth image acquired at the previous preset time point according to a time sequence.
17. The apparatus of claim 11, wherein the apparatus further comprises:
the fourth judging module is used for judging whether the second ultrasonic intensity is smaller than a preset second intensity threshold value or not when the parking state of the parking space determined at the last preset time point is judged to be the presence of a vehicle, and if so, capturing an eighth image, wherein the preset second intensity threshold value is smaller than the preset first intensity threshold value; and judging whether the eighth image has the first license plate information, if so, judging whether the second license plate information in the ninth image acquired at the last preset time point is consistent with the first license plate information in the eighth image, and if not, determining that the automobile corresponding to the second license plate information drives out of the parking space and the automobile corresponding to the first license plate information drives into the parking space.
18. The apparatus of claim 11, wherein the apparatus further comprises:
and the first control module is used for judging whether the current scene is a night scene or not, controlling the light supplement lamp to be turned on if the current scene is the night scene, and controlling the light supplement lamp to be turned off if the current scene is not the night scene.
19. The apparatus of claim 11, wherein the apparatus further comprises:
the second control module is used for sending a first control instruction to the indicator light after determining that the parking state of the parking space is the presence of a vehicle, and controlling the indicator light to display a first color; and after the parking state of the parking space is determined to be the vehicle-free state, sending a second control instruction to the indicator lamp, and controlling the indicator lamp to display a second color.
CN201810321745.6A 2018-04-11 2018-04-11 Parking state determination method and device for parking space Active CN108492616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810321745.6A CN108492616B (en) 2018-04-11 2018-04-11 Parking state determination method and device for parking space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810321745.6A CN108492616B (en) 2018-04-11 2018-04-11 Parking state determination method and device for parking space

Publications (2)

Publication Number Publication Date
CN108492616A CN108492616A (en) 2018-09-04
CN108492616B true CN108492616B (en) 2020-12-08

Family

ID=63315502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810321745.6A Active CN108492616B (en) 2018-04-11 2018-04-11 Parking state determination method and device for parking space

Country Status (1)

Country Link
CN (1) CN108492616B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109147382B (en) * 2018-09-25 2022-01-11 深圳市元征科技股份有限公司 Intelligent parking method and system
CN110245544A (en) * 2018-09-26 2019-09-17 浙江大华技术股份有限公司 A kind of method and device of determining dead ship condition
CN110349431A (en) * 2019-06-28 2019-10-18 广州有位智能科技有限公司 Outdoor parking stall management method based on ultrasound and storage medium
CN115440026A (en) * 2022-07-19 2022-12-06 江西山水光电科技股份有限公司 Road parking geomagnetic-free inspection evidence obtaining management method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345851B (en) * 2013-07-23 2015-04-22 上海风翼空调设备有限公司 Integrative system for garage ventilation and illumination and parking place guidance and control method of system
KR101682281B1 (en) * 2014-12-01 2016-12-05 호서대학교 산학협력단 Parking lot automatic guide system
EP3188149A1 (en) * 2015-12-30 2017-07-05 Skidata Ag Method of identifying vehicles for operating a parking garage or a parking lot
CN107194393B (en) * 2016-03-15 2020-02-18 杭州海康威视数字技术股份有限公司 Method and device for detecting temporary license plate
CN206400780U (en) * 2016-06-30 2017-08-11 深圳市金溢科技股份有限公司 A kind of radar module recognized for parking stall and parking stall identifying system
CN106379319B (en) * 2016-10-13 2019-11-19 上汽大众汽车有限公司 Automobile auxiliary driving system and control method
CN107123303A (en) * 2017-04-01 2017-09-01 智慧互通科技有限公司 The system and method for radar and smart camera linkage management parking position
CN106981216A (en) * 2017-04-11 2017-07-25 厦门路桥信息股份有限公司 A kind of ultrasonic wave combination video technique seek the method and system of car
CN107845289A (en) * 2017-12-19 2018-03-27 智慧互通科技有限公司 A kind of Roadside Parking management and charging system based on height digital video array

Also Published As

Publication number Publication date
CN108492616A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN108492616B (en) Parking state determination method and device for parking space
CN110796834B (en) Vehicle flooding alarm method and system, vehicle and readable storage medium
CN109311425A (en) A kind of alarming method by monitoring of vehicle blind zone, device, equipment and storage medium
CN102145693B (en) Stop line recognition device
CN110386065B (en) Vehicle blind area monitoring method and device, computer equipment and storage medium
CN115179926B (en) Pedestrian safety reminding method and device for vehicle, vehicle and storage medium
KR20180126199A (en) Control system of streetlight, and method thereof
CN113160590B (en) Smart car control method, device and related equipment
CN112307825A (en) Visual detection method and device for automatic driving, electronic equipment and storage medium
CN108369781A (en) The method for the dangerous situation that at least one sensor for evaluating by vehicle detects, the method for the method of the presentation for controlling warning against danger and for rendering warning against danger
CN118062032A (en) Method and device for controlling vehicle in electromagnetic environment, vehicle and storage medium
CN117565819A (en) Vehicle control method and device and vehicle
CN210792730U (en) Vehicle remote monitoring system and vehicle
CN112141094A (en) Vehicle and anti-collision method and device thereof
CN113593253A (en) Method and device for monitoring red light running of vehicle
CN118400841A (en) Car lamp control method and device, car and readable storage medium
CN113393689B (en) Method, apparatus, device and storage medium for providing vehicle information
CN113386658A (en) Vehicle light control method and device and vehicle
CN109300286B (en) Self-adaptive detection method and device
CN209879748U (en) Parking lot exit dredging and guiding system
CN112949448A (en) Vehicle behind vehicle prompting method and device, electronic equipment and storage medium
CN113823116B (en) Vehicle guiding method, management equipment and system
CN112135098A (en) Low-power-consumption video recording method, device and system
CN110728839A (en) Vehicle and illegal punishment method and device thereof
CN116524622B (en) A comprehensive automatic driving recording method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant