WO2020001263A1 - Parking space recognition - Google Patents

Parking space recognition Download PDF

Info

Publication number
WO2020001263A1
WO2020001263A1 PCT/CN2019/090635 CN2019090635W WO2020001263A1 WO 2020001263 A1 WO2020001263 A1 WO 2020001263A1 CN 2019090635 W CN2019090635 W CN 2019090635W WO 2020001263 A1 WO2020001263 A1 WO 2020001263A1
Authority
WO
WIPO (PCT)
Prior art keywords
parking space
parking
area
image
identifier
Prior art date
Application number
PCT/CN2019/090635
Other languages
French (fr)
Chinese (zh)
Inventor
高海珂
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2020001263A1 publication Critical patent/WO2020001263A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/588Recognition of the road, e.g. of lane markings; Recognition of the vehicle driving pattern in relation to the road
    • 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

Definitions

  • the invention relates to the technical field of intelligent parking, in particular to a method, a device and a device for identifying parking spaces, and a storage medium.
  • the image collected by the camera is used to determine whether there is a car in the parking space. Furthermore, the position of the camera used to collect the parking space image is used to determine which parking space the vehicle is parked in or which parking space is occupied.
  • the method of determining the occupancy of the parking space in combination with the position of the camera used to collect the parking space image has certain limitations on the mechanical garage.
  • the present invention provides a parking space identification method, device, equipment and storage medium, which can be applied to determining the parking space occupation situation in a mechanical garage.
  • a first aspect of the present invention provides a parking space identification method, including:
  • the parking area tile refers to a tile in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces, the A parking space identifier is used to identify the parking space;
  • the method further includes:
  • the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identification provided on different parking spaces is different.
  • identifying whether a parking space area tile in the captured image has a parking space identifier includes:
  • the acquired image is input into a preset neural network, and the neural network recognizes a parking space identifier in the image, and outputs the identified parking space identifier.
  • the method further includes:
  • the state of the parking space corresponding to the parking space identifier identified from the previous frame image is updated to be occupied.
  • the method further includes:
  • a second aspect of the present invention provides a parking space identification device, including:
  • a recognition unit configured to identify whether there is vehicle information and a parking space identifier in a parking area tile in the collected image, wherein the parking area tile refers to a parking space area in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces; A tile, the parking space identifier is used to identify the parking space;
  • a first determining unit configured to determine that the current state of the parking space area is occupied when it is recognized that the parking space area tile has vehicle information and the parking space identifier does not exist;
  • a second determining unit is configured to determine that the current state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier exists.
  • the apparatus further includes:
  • a third determining unit is configured to determine that the current state of the parking space area is unoccupied when it is identified that the parking area area tile does not have vehicle information and the parking space identifier does not exist.
  • the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identification provided on different parking spaces is different.
  • the identification unit further includes:
  • a neural network is configured to recognize a parking space identifier in the image based on the inputted captured image, and output the recognized parking space identifier.
  • the apparatus further includes:
  • a comparison unit is configured to compare the current state of the parking space area with a previous state of the parking space area, wherein the previous state of the parking space area is based on Determined by the previous frame of the image;
  • a first updating unit configured to update the state of a parking space corresponding to the parking space identifier to be unoccupied if the current state is different from the previous state and the current state is unoccupied;
  • a second updating unit configured to update the status of the parking space corresponding to the parking space identification identified from the previous frame image to, if the current status is different from the previous status and the current status is occupied; Occupied.
  • the apparatus further includes:
  • a binding unit is configured to query whether there is a binding relationship between the parking space and a vehicle occupying the parking space if the status of the parking space is occupied; if the binding relationship does not exist, establish the binding relationship Fixed relationship
  • the unbinding unit is configured to query whether there is a binding relationship between the parking space and the vehicle if the state of the parking space is not occupied, and release the binding relationship if the binding relationship exists.
  • an electronic device including a processor and a memory; the memory stores a program that can be called by the processor; wherein when the processor executes the program, it implements any one of the foregoing embodiments.
  • the parking space identification method described in the item is provided.
  • a fourth aspect of the present invention provides a machine-readable storage medium on which a program is stored, and when the program is executed by a processor, the parking space identification method according to any one of the foregoing embodiments is implemented.
  • the parking space is marked with a parking space identifier, so it can be determined which parking space is identified when the parking space identification is identified. After the identification of the parking space area is determined once, the parking space area's occupancy can be obtained later based on the parking space identification.
  • the determination and management of the situation can of course also be used in a flat garage, which has a wider scope of application; the presence of a parking space identifier and vehicle information in the parking area of the image at the same time as a condition for determining whether the parking space is occupied can also improve the determination result of the parking space occupation situation Accuracy.
  • FIG. 1 is a schematic diagram of a field of view of an image collected by a camera in a mechanical garage in the prior art
  • FIG. 2 is a schematic flowchart of a parking space identification method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an acquired image according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a parking space identification method according to another embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a parking space identification device according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a parking space identification device according to another embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present invention.
  • Parking guidance provide users with guidance on empty parking spaces. For example, in a large parking lot with a large passenger flow, it is inconvenient to find an empty parking space after the user's vehicle enters the parking lot.
  • the parking guidance function can more quickly determine the location of the empty parking space and guide the user's vehicle to the empty parking space Parking makes it easier to find empty parking spaces.
  • the device for parking induction may include an intersection guidance screen and / or an LED (Light-Emitting Diode) indicator provided above the parking space. For example, green may be used to indicate that there is an available parking space and red to indicate that there is no available parking space; or An LED indicator shows the status of 3 parking spaces; or an LED indicator shows whether a parking space is occupied, etc.
  • An empty space means that the parking space is not occupied by the vehicle, and a full space means that the parking space is occupied by the vehicle.
  • Reverse car search The user can query the specific location of the car in the parking lot by entering the car information, such as the license plate number. For example, in a large parking lot with a large passenger flow, the user parks the vehicle into the parking space of the parking lot and leaves. When the user returns to pick up the vehicle, he often cannot find the vehicle or forgets where the vehicle is parked. And through the reverse car search function, users can query the parking position of the vehicle, so as to find the vehicle accurately.
  • the device for realizing reverse car search may be a fixed query device in a parking lot, or a smart terminal such as a mobile phone that installs or accesses a specific application program. This disclosure does not limit this.
  • a method for identifying a parking space includes the following steps.
  • S101 Identify whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image.
  • the parking space recognition method according to the embodiment of the present invention may be applied to an image processing device.
  • the image processing device may be any device capable of processing acquired images, such as a DSP (Digital Signal Processor) device.
  • the image processing device may have an image acquisition function itself, for example, a smart camera; or it may not have an image acquisition function, but instead receives and processes the real-time image acquisition input from the image acquisition device through a connection with the image acquisition device. Is not limited.
  • step S101 it is identified whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image.
  • the parking area tile refers to a tile in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces, and the parking space identifier is used to identify the parking space.
  • the acquired image may be an image acquired in real time by an image processing device, or may be an image acquired from a device used to acquire an image in real time.
  • the image contains at least one parking area tile.
  • Each parking space is provided with a unique parking space identification, and the corresponding parking space can be uniquely determined by identifying the parking space identification.
  • each parking space (car board) on each floor has a unique parking space identification. Real-time processing of the collected images can provide services such as parking guidance and reverse car search in a timely manner, avoiding situations where there are vacancies but no vacancy information can be provided.
  • the captured image can include parking area tile 10 and parking area tile 20.
  • the image collected for a mechanical garage will include a parking area tile, and for a plane
  • the image collected by the garage will include more than one parking area tile, of course, it is not limited to this.
  • the camera can capture images of the two parking spaces at the same time, or the image collected by the camera in the flat garage can have only one parking area tile.
  • the subsequent steps can be performed for each parking area tile separately, in the same manner as the image includes only one parking area tile.
  • the position of the parking area tile in the image can be determined by image recognition of the parking space boundary, or it can be set in advance (when the camera's shooting orientation is fixed), which is not specifically limited.
  • the image contains more than one parking area tile
  • Recognition the recognition result is distinguished according to the parking area block, and then the subsequent steps are performed for the recognition result of each parking area block, without specific restrictions.
  • the purpose of identification is to find out the vehicle information and parking space identification in the parking space area tile of the image. And, as the vehicle in the parking space is parked, the vehicle leaves, and the person or object is blocked, the recognition result is dynamically changed.
  • the recognition result includes the following possibilities: there is a parking space identifier and no vehicle information, there is no parking space identifier and vehicle information, there is no parking space identifier and vehicle information, and there is both a parking space identifier and vehicle information.
  • the feature recognition method of the image may be implemented by using an object recognition technology in image processing that is well known to those skilled in the art, and is not specifically limited. Of course, it is also possible to perform pre-processing on the image and then perform feature recognition to ensure the accuracy of the recognition result.
  • a parking space identifier is set on each parking space to identify the corresponding parking space, thereby managing information about the parking space.
  • the information about the parking space may include parking space occupation information, parked vehicle information, parking space position information, and the like.
  • the corresponding parking space identification of the parking space can be queried to determine the parking space occupancy.
  • the corresponding parking space can be lowered to the first floor according to the parking space identification, and the parking space occupancy can be identified based on the vehicle information and the parking space identification. In this way, even when the parking space is not in the field of view of the camera, the occupancy situation of the parking space can be known, which facilitates the realization of the guidance of the vacant position in parking guidance and the guidance of the vehicle position in reverse car searching.
  • a parking space identifier is marked on each parking space, so when a parking space identifier is identified, which parking space can be determined. After the occupancy of the parking space is determined, the occupancy of the parking space can be obtained later according to the parking space identification. Applicable to the determination and management of parking spaces in mechanical garages. In addition, the presence of the parking space identifier and the vehicle information in the parking area block of the image at the same time as the conditions for determining whether the parking space is occupied can improve the accuracy of the determination result of the parking space occupation situation.
  • the parking space identification device 200 mainly includes an identification unit 201, a first determination unit 202, and a second determination unit 203.
  • the identification unit 201 is configured to perform the foregoing step S101
  • the first determination unit 202 is configured to perform the foregoing step S102
  • the second determination unit 203 is configured to perform the foregoing step S103.
  • the parking space identification method further includes the following step S104 (not shown in FIG. 2): when it is identified that the parking space area tile does not have vehicle information and the parking space identifier does not exist, determining the parking space The area's current status is unoccupied.
  • step S104 it can be determined whether the parking space area is occupied by the vehicle according to the recognition result.
  • the recognition result is that no vehicle information exists in the parking area tile and no parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
  • the judgment is made only on the presence of a parking area tile in the image, it is determined that the current status of the parking area is unoccupied when the parking space identification exists, and it is determined as the parking area area if the parking area identification does not exist.
  • the current status is occupied, and it is only guaranteed to determine the status of the parking area in the absence of abnormal conditions. If the obstruction obscures the parking space mark, the state of the accurate parking area cannot be obtained. For example, when there is no parking mark in the parking area tile, the status of the parking area is determined to be occupied. However, it may be that the parking space is blocked by a block. At this time, the status of the parking area is unoccupied and an error occurs. Sentence.
  • whether the parking space area and the vehicle information are present in the parking area block of the image is used as a condition for judging whether the parking area area is occupied. It is determined that the parking space area is not occupied by the vehicle, thereby avoiding the problem of erroneously judging that the parking space area is occupied by the vehicle because the parking space mark is blocked by the obstruction.
  • the parking space identification method may further include: when it is recognized that the vehicle information exists and the parking space identifier exists, determining that the current state of the parking space area is unoccupied.
  • the parking space identification device 200 mainly includes an identification unit 201, a first determination unit 202, a second determination unit 203, and a third determination unit 204.
  • the identification unit 201 is configured to execute the above step S101
  • the first determination unit 202 is used to perform the above step S102
  • the second determination unit 203 is used to perform the above step S103
  • the third determination unit 204 is used to execute the above step S104.
  • the parking space identification may be a two-dimensional code identification, and / or a number, and / or a character, and / or a bar code identification, as long as it can be used to uniquely identify the parking space.
  • the parking space identifiers set on different parking spaces must be different, so that each parking space has a unique parking space identifier, which will not cause the information to be confused with each other. By identifying the parking space identifier, the corresponding parking space can be uniquely determined.
  • the parking space identification is a two-dimensional code identification, and the identification of the two-dimensional code identification can obtain the parking space number of the parking area.
  • the information obtained by identifying the two-dimensional code can also include other required information, such as the location information of the parking space area (flat garage), or the location information of the parking area pre-allocated or allocated (mechanical garage) ); Or may also include fixed parking space information.
  • a fixed parking space refers to a vehicle that can only park in a specific license plate or plates. Other vehicles are not allowed to park in. These license plate information can be set in the parking space sign. When other vehicles with a license plate are parked, a warning and corresponding Follow-up processing.
  • the image shown includes a parking area block 10 and a parking area block 20.
  • the parking space block 10 can be identified in the parking area block 10 .
  • the parking space identification 101 is a result of identifying a physical mark provided on the parking space.
  • the physical mark can be attached, painted, or connected through a connection structure to mark a position in the parking space that can be blocked by a vehicle parked on it. For example, at the middle position of the parking space, it is ensured that there is no parking space identifier in the image when the parking space is occupied by the vehicle.
  • the vehicle information includes at least one of the following information: vehicle body characteristic information and license plate characteristic information.
  • vehicle information is information indicating a vehicle parked in the parking space area, as long as it can determine whether there is a vehicle in the parking space area.
  • the vehicle information may be, for example, the characteristics of the license plate. After the license plate is identified in the parking area block of the image, it can be determined that the vehicle is parked in the parking space, and the license plate number on the license plate can be further identified to uniquely determine the corresponding vehicle.
  • the vehicle information may include both vehicle body characteristic information and license plate characteristic information.
  • the vehicle body characteristic information may also be used to determine that there is indeed a vehicle on the parking area tile in the image.
  • the volume is large, and it is usually not completely blocked, while the license plate features are small, and it is easy to be blocked by passing vehicles or people.
  • the step S101 of identifying whether a parking space tile in the captured image has a parking space identifier includes:
  • the acquired image is input into a preset neural network to recognize the parking space identifier in the image by the neural network, and output the identified parking space identifier.
  • the neural network is already trained. By inputting the image into the neural network, the neural network can realize the identification of the parking space mark.
  • the neural network may be integrated in the recognition unit 201 as a part of the parking space recognition device 200, or may be provided outside the parking space recognition device 200, and may be called by the recognition unit 201.
  • the specific form of the neural network is not limited, and the neural network may be a Convolutional Neural Network (CNN), a Recurrent Neural Network (RNN), or a Deep Neural Network (DNN) Wait.
  • CNN Convolutional Neural Network
  • RNN Recurrent Neural Network
  • DNN Deep Neural Network
  • the neural network outputs a specific parking space identification when the parking space identification is recognized, and may output no information or output information indicating that there is no parking space identification when the parking space identification is not recognized.
  • a neural network can be used to identify the two-dimensional identification code from the image, and then scan the code to analyze the information of the two-dimensional identification code, such as the parking space number.
  • various situations need to be considered when training the neural network.
  • identifying whether a parking space area tile in the acquired image has a parking space identifier may include the following steps: inputting the acquired image into at least two preset neural networks corresponding to different imaging environments, so that each The neural network separately recognizes whether there is a parking space identifier in the parking area tile in the image and outputs the recognized parking space identifier; compares the parking space identifiers output by each of the neural networks, and selects the optimal result as the parking area tile of the image Parking space sign.
  • the object of comparison may be, for example, unlimited clarity, completeness, uniformity of brightness, etc. of the parking space mark, and the optimal result may correspondingly be the parking space mark with the highest definition and / or completeness and / or the most uniform brightness.
  • the parking space identifiers of the parking area tiles in the image are identified by these neural networks, respectively.
  • the results are compared.
  • the neural network does not recognize the parking space identification, it is not necessary to perform the comparison, but the result of directly identifying the parking space identification is not determined.
  • the neural networks corresponding to these different imaging environments are deep learning neural networks trained through image training sets corresponding to different imaging environments.
  • the image training set may include sample images with parking space identification and corresponding parking space identification.
  • Imaging environments are, for example, a darker environment and a brighter environment.
  • a darker environment may refer to an image environment with a brightness lower than a set minimum brightness threshold
  • a brighter environment may refer to an image environment with a brightness higher than a set maximum brightness threshold.
  • identifying whether the parking area tile in the acquired image includes a parking space identifier may include the following steps: inputting the acquired image into a preset neural network to identify the neural network by the neural network; The parking space identifier in the image, and the identified parking space identifier is output.
  • This preset neural network can be adapted to different imaging environments, that is, the collected image may have multiple conditions, such as an image that is too bright, an image that is too dark, etc., but after inputting this image into this preset neural network, Both can get a relatively good result.
  • the image training set of the neural network may include multiple sample images of parking spaces collected at different locations in the garage at different times.
  • the vehicle In each sample image, the vehicle may or may not be parked in the parking space, and the parked vehicle may be blocked by a pedestrian or other vehicles.
  • the parking space may or may not have a parking space identification, and the parking space identification may be blocked.
  • the background brightness may be bright or dim.
  • the algorithm can also artificially correct the recognition errors and compare the results of the parking space identification in the neural network recognition image.
  • the comparison object can be, for example, the clarity of the parking space identification, There is no limit to completeness, uniformity of brightness, etc., and the optimal result may be the parking space marking with the highest definition and / or the highest completeness and / or the most uniform brightness.
  • step S101 the vehicle information in the parking area block of the collected image can be identified through image processing methods such as traditional license plate recognition and feature recognition, or can also be identified through a neural network.
  • the parking space recognition method further includes the following steps.
  • S101 Identify whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image.
  • step S204 may be further performed to determine the state of the parking space; in step S103, the state of the parking space area is determined.
  • step S205 may be further performed to determine the state of the parking space.
  • the status of each parking space in the mechanical garage is determined by combining several frames of the parking space area.
  • the current state of the parking space area can be obtained from the acquired images.
  • the previous state of the parking space area can be determined, and the current state of the parking space area is compared with the previous state. If the current state is the same as the previous state, the state is not updated. If the current state and the previous state are different, there are two cases of the state of the parking space area. In the first case, if the current status is unoccupied, the status of the parking space corresponding to the parking space identification is updated to unoccupied according to the parking space identification identified by the acquired image.
  • the parking space can be determined based on the acquired image Corresponding vehicle information is associated with parking spaces.
  • the image acquisition device performs image acquisition on the empty parking space to obtain a first frame image (that is, a previous frame image).
  • the image processing device can recognize that there is no vehicle information and a parking space identifier exists in the parking space area according to the first frame image.
  • the previous state of the parking space area is unoccupied, and the parking space identification may be 101. at this time.
  • the image acquisition device performs image acquisition on the parking space to obtain a second frame image (that is, the captured image).
  • the image processing device can identify the parking space based on the second frame image. There is vehicle information in the area and no parking space identifier exists.
  • the current status of the parking space area is occupied, and the vehicle information may be vehicle A.
  • the image processing device associates the vehicle information A with the parking space identification 101 obtained from the first frame image, and updates the status of the parking space corresponding to the parking space identification 101 to be occupied.
  • the vehicle A After parking the vehicle, the vehicle A may rise to another floor with the panel. When the user picks up the vehicle, the vehicle A needs to be lowered to the first floor first.
  • the image acquisition device can perform image acquisition on the parking space to obtain the first frame image (that is, the previous frame image).
  • the image processing device can recognize that the parking area has vehicle information A and no parking space identifier according to the first frame image. At this time, the previous state of the parking area is occupied.
  • the image acquisition device After vehicle A drives out of the parking space, the image acquisition device performs image acquisition on the parking space to obtain a second frame image (that is, the captured image), and the image processing device can identify that there is no vehicle in the parking space area according to the second frame image Information and a parking space identification 101 exists, the current state of the parking space area is unoccupied. At this time, the image processing device may update the status of the parking space corresponding to the parking space identification 101 to be unoccupied.
  • the information of the previous frame is used to obtain the parking space identifier by combining the information of the previous frame. If the current state of the parking space area is occupied, the vehicle will put the parking space on the parking lot file, and it will not know which specific board the vehicle is occupying. At this time, there is a parking space in the previous frame image, so the previous frame is combined. Image, you can know the status of the parking space corresponding to the parking space mark in the previous image. By using at least two frames of images, the state of the parking space area can be determined to a specific parking space.
  • the time interval between the previous frame image and the acquired image described in this example can be set according to experience values, which is not limited in this application.
  • the previous frame image and the captured image described in this example are just examples.
  • multiple frames of image may be collected to determine the status of the parking space.
  • the first frame of the collected image has a parking space identification. Due to the slow entry of the vehicle into the warehouse, the second frame of the image cannot identify the vehicle information (such as the vehicle number cannot be determined).
  • the status of the parking space corresponding to the parking space identifier may be updated using the information of the first frame and the i-th frame image.
  • the specific implementation manner is similar to the use of two consecutive frames of images, and details are not described herein again.
  • the method described in this example can more accurately identify each parking space in a mechanical garage, and provide a basis for subsequent parking induction and reverse car search.
  • the parking space identification method may further include the following steps:
  • the vehicle information can be identified when there is a vehicle in the parking space, and the parking space identification can be identified when there is no vehicle, so the parking space can be identified by the parking space identification and vehicle information.
  • the vehicle information and parking space identification can be identified successively. No matter the vehicle parks in or leaves, the parking space identification and vehicle information can be obtained according to at least two frames of the collected images to obtain the occupied status of the parking space. When the status of the parking space changes, the parking space identifier and vehicle information can be bound or unbound. The same goes for flat garages.
  • a parking space When a parking space is occupied by a vehicle, it means that the vehicle has been parked in the parking space. Check whether there is a binding relationship between the vehicle occupying the parking space and the parking space. If there is no binding relationship, establish a binding relationship between the vehicle and the parking space. , The identified parking space identifier and vehicle information can be bound, for example, the parking space identifier carried by the parking space identifier and the license plate information can be bound. If there is a binding relationship, it means that the parking space is occupied by the vehicle and is full. The binding relationship can be used to perform reverse car search processing, for example, the corresponding parking space label can be queried according to the license plate information, so that the specific location of the parking space can be located.
  • the parking space When the parking space is not occupied by the vehicle, it means that there is no parked vehicle in the parking space. You can query whether there is a binding relationship between the parking space and the vehicle. If there is a binding relationship, the binding relationship between the vehicle and the parking space is released, indicating that the vehicle is Has left the parking space. When the parking space does not have a binding relationship, it means that the parking space area is not occupied by the vehicle and is empty. Other vehicles can be induced to stop, such as providing vacancy information for a parking space, which can further guide the direction of the vacancy.
  • a binding relationship identifier may be set for each parking space identifier, and the relationship identifier may be updated during binding and unbinding.
  • the actual number of parking spaces in a parking area minus the number of parking spaces identified by the binding relationship as a binding state can quickly obtain the remaining parking spaces in the area.
  • the search can be performed only in the parking spaces whose binding relationship is identified as a binding state, thereby increasing the searching efficiency.
  • a parking space identification device 200 may include:
  • a recognition unit 201 is configured to identify whether there is vehicle information and a parking space identifier in a parking area tile in an acquired image, where the parking area tile corresponds to a parking space area including a plurality of vertically overlapping parking spaces in the image. Block, the parking space identifier is used to identify the parking space;
  • a first determining unit 202 configured to determine that the state of the parking space area is occupied when it is recognized that the parking space area tile has vehicle information and the parking space identifier does not exist;
  • the second determining unit 203 is configured to determine that the state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier exists.
  • the parking space identification device 200 further includes:
  • the third determining unit 204 is configured to determine that the state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier does not exist.
  • the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identifications set on different parking spaces are different.
  • the identification unit 201 further includes:
  • a neural network is configured to recognize a parking space identifier in the image based on the inputted captured image, and output the recognized parking space identifier.
  • a parking space identification device 200 further includes:
  • a comparison unit is configured to compare the current state of the parking space area with a previous state of the parking space area, wherein the previous state of the parking space area is based on Determined by the previous frame of the image;
  • a first updating unit configured to update the state of a parking space corresponding to the parking space identifier to be unoccupied if the current state is different from the previous state and the current state is unoccupied;
  • a second updating unit configured to update the status of the parking space corresponding to the parking space identification identified from the previous frame image to, if the current status is different from the previous status and the current status is occupied; Occupied.
  • the parking space identification device 200 further includes:
  • a binding unit is configured to query whether there is a binding relationship between the parking space and a vehicle occupying the parking space if the status of the parking space is occupied; if the binding relationship does not exist, establish the binding relationship Fixed relationship
  • the unbinding unit is configured to query whether there is a binding relationship between the parking space and the vehicle if the state of the parking space is not occupied, and release the binding relationship if the binding relationship exists.
  • the relevant part may refer to the description of the method embodiment.
  • the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units.
  • a parking space identifier is marked on each parking space, so it can be determined which parking space is when the parking space identifier is recognized. Once the occupancy of the parking space is identified and determined, the occupancy of the parking space can be learned and the subsequent management can be performed according to the parking space identification. Using this method, it is relatively easy to realize the occupation management of parking spaces, such as reverse car search, parking induction, etc.
  • the present invention also provides an electronic device including a processor and a memory; the memory stores a program that can be called by the processor; wherein when the processor executes the program, the program is implemented as in any one of the foregoing embodiments.
  • FIG. 7 is a hardware structure diagram of an electronic device in which the parking space identification device 200 is located according to an exemplary embodiment of the present invention, except for the processor 510 and the memory shown in FIG. 7.
  • the electronic device in which device 200 is located in the embodiment may generally include other hardware according to the actual function of the electronic device, and details are not described herein again.
  • the present invention also provides a machine-readable storage medium on which a program is stored, and when the program is executed by a processor, the image processing method according to any one of the foregoing embodiments is implemented.
  • the present invention may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code therein.
  • Machine-readable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • machine-readable storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only Memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage , Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only Memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technologies
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disc
  • Magnetic tape cartridges magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices

Abstract

The present invention provides a parking space recognition method, apparatus, and device, and storage medium, said parking space recognition method comprising: recognizing whether vehicle information and a parking space identifier are present in a parking space area image block in a captured image; said parking space area image block refers to an image block, in said image, corresponding to a parking space area comprising a plurality of vertically overlapping parking spaces; the parking space identifier is used for identifying the parking space; if it is recognized that the parking space area image block has vehicle information and the parking space identifier is not present, then determining that the current state of the parking space area is occupied; if it is recognized that the parking space area image block does not have vehicle information and the parking space identifier is present, then determining that the current state of the parking space area is unoccupied.

Description

车位识别Parking space recognition
相关申请的交叉引用Cross-reference to related applications
本专利申请要求于2018年06月25日提交的、申请号为201810663986.9、发明名称为“一种车位识别方法、装置及设备、存储介质”的中国专利申请的优先权,该申请的全文以引用的方式并入本文中。This patent application claims priority from a Chinese patent application filed on June 25, 2018 with an application number of 201810663986.9 and an invention name of "a method, device, device, and storage medium for parking space identification". The entire text of the application is incorporated by reference. The way is incorporated in this article.
技术领域Technical field
本发明涉及智能停车技术领域,尤其涉及一种车位识别方法、装置及设备、存储介质。The invention relates to the technical field of intelligent parking, in particular to a method, a device and a device for identifying parking spaces, and a storage medium.
背景技术Background technique
在智能停车领域中,通常是对车位上是否有车进行自动化地识别来确定车位占用情况,从而对车位进行合理的管理。In the field of intelligent parking, it is usually to automatically identify whether there is a car in the parking space to determine the occupancy of the parking space, so as to reasonably manage the parking space.
目前,平面车库中,通过相机采集的图像来判断车位上是否有车,更进一步的,结合用于采集车位图像的相机的位置来确定车辆具体停放在哪个车位上或者哪个车位被占用。At present, in a flat garage, the image collected by the camera is used to determine whether there is a car in the parking space. Furthermore, the position of the camera used to collect the parking space image is used to determine which parking space the vehicle is parked in or which parking space is occupied.
但是,对于机械车库来说,例如多层循环式立体车库,参看图1,相机1’只能装在机械车库第一层23’,因此相机1’只能看到机械车库的第一层23’,而第二层22’、第三层21’等其它多层的情况都在相机视野之外。所以,相机1’采集的图像只能反映第一层23’的车位占用情况,当车位移出相机1’的视野范围之外时,便无法确定车辆具体停在哪个车位上或者哪个车位是否被占用。因此,结合用于采集车位图像的相机的位置来确定车位占用情况的方式,对机械车库有一定的局限性。However, for a mechanical garage, such as a multi-level circular three-dimensional garage, referring to FIG. 1, the camera 1 'can only be installed on the first floor 23' of the mechanical garage, so the camera 1 'can only see the first floor 23 of the mechanical garage. ', And the other layers such as the second layer 22' and the third layer 21 'are outside the field of view of the camera. Therefore, the image collected by the camera 1 'can only reflect the parking occupancy of the first layer 23'. When the car moves out of the field of view of the camera 1 ', it cannot be determined which parking space the vehicle is parked in or whether it is occupied. . Therefore, the method of determining the occupancy of the parking space in combination with the position of the camera used to collect the parking space image has certain limitations on the mechanical garage.
发明内容Summary of the invention
有鉴于此,本发明提供一种车位识别方法、装置及设备、存储介质,可适用于机械车库进行车位占用情况的确定。In view of this, the present invention provides a parking space identification method, device, equipment and storage medium, which can be applied to determining the parking space occupation situation in a mechanical garage.
本发明第一方面提供一种车位识别方法,包括:A first aspect of the present invention provides a parking space identification method, including:
识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识,其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位;Identifying whether there is vehicle information and a parking space identifier in a parking area tile in the collected image, wherein the parking area tile refers to a tile in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces, the A parking space identifier is used to identify the parking space;
当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用;When it is identified that vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current status of the parking space area is occupied;
当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
根据本发明的一个实施例,该方法进一步包括:According to an embodiment of the present invention, the method further includes:
当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为未被占用。When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current state of the parking space area is unoccupied.
根据本发明的一个实施例,所述车位标识为二维码标识、和/或数字、和/或字符、和/或条码标识;不同车位上设置的车位标识不同。According to an embodiment of the present invention, the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identification provided on different parking spaces is different.
根据本发明的一个实施例,识别已采集的图像中的车位区域图块是否存在车位标识包括:According to an embodiment of the present invention, identifying whether a parking space area tile in the captured image has a parking space identifier includes:
将所述已采集的图像输入至预设的神经网络中,由所述神经网络识别所述图像中的车位标识,并输出识别出的所述车位标识。The acquired image is input into a preset neural network, and the neural network recognizes a parking space identifier in the image, and outputs the identified parking space identifier.
根据本发明的一个实施例,该方法还包括:According to an embodiment of the present invention, the method further includes:
将所述车位区域的当前状态与所述车位区域的前一状态进行比较,其中,所述车位区域的前一状态是根据针对所述车位区域的相对于所述已采集的图像的前一帧图像而确定的;Comparing the current state of the parking space area with the previous state of the parking space area, wherein the previous state of the parking space area is based on the previous frame for the parking space area relative to the captured image Determined by image;
若所述当前状态和所述前一状态不同且所述当前状态为未被占用,将所述车位标识对应的车位的状态更新为未被占用;If the current state is different from the previous state and the current state is unoccupied, updating the state of the parking space corresponding to the parking space identifier to unoccupied;
若所述当前状态和所述前一状态不同且所述当前状态为被占用,将从所述前一帧图像识别出的所述车位标识对应的车位的状态更新为被占用。If the current state is different from the previous state and the current state is occupied, the state of the parking space corresponding to the parking space identifier identified from the previous frame image is updated to be occupied.
根据本发明的一个实施例,该方法还包括:According to an embodiment of the present invention, the method further includes:
若所述车位的状态为被占用,则查询所述车位与占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系;If the state of the parking space is occupied, query whether there is a binding relationship between the parking space and a vehicle occupying the parking space, and if the binding relationship does not exist, establish the binding relationship;
若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。If the state of the parking space is unoccupied, query whether there is a binding relationship between the parking space and the vehicle, and if the binding relationship exists, release the binding relationship.
本发明第二方面提供一种车位识别装置,包括:A second aspect of the present invention provides a parking space identification device, including:
识别单元,用于识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识,其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位;A recognition unit, configured to identify whether there is vehicle information and a parking space identifier in a parking area tile in the collected image, wherein the parking area tile refers to a parking space area in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces; A tile, the parking space identifier is used to identify the parking space;
第一判定单元,用于当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用;A first determining unit, configured to determine that the current state of the parking space area is occupied when it is recognized that the parking space area tile has vehicle information and the parking space identifier does not exist;
第二判定单元,用于当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。A second determining unit is configured to determine that the current state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier exists.
根据本发明的一个实施例,该装置进一步包括:According to an embodiment of the present invention, the apparatus further includes:
第三判定单元,用于当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为未被占用。A third determining unit is configured to determine that the current state of the parking space area is unoccupied when it is identified that the parking area area tile does not have vehicle information and the parking space identifier does not exist.
根据本发明的一个实施例,所述车位标识为二维码标识、和/或数字、和/或字符、和/或条码标识;不同车位上设置的车位标识不同。According to an embodiment of the present invention, the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identification provided on different parking spaces is different.
根据本发明的一个实施例,所述识别单元还包括:According to an embodiment of the present invention, the identification unit further includes:
神经网络,用于根据输入的所述已采集的图像,识别出所述图像中的车位标识,并输出识别出的所述车位标识。A neural network is configured to recognize a parking space identifier in the image based on the inputted captured image, and output the recognized parking space identifier.
根据本发明的一个实施例,该装置还包括:According to an embodiment of the present invention, the apparatus further includes:
比较单元,用于将所述车位区域的当前状态与所述车位区域的前一状态进行比较,其中,所述车位区域的前一状态是根据针对所述车位区域的相对于所述已采集的图像的前一帧图像而确定的;A comparison unit is configured to compare the current state of the parking space area with a previous state of the parking space area, wherein the previous state of the parking space area is based on Determined by the previous frame of the image;
第一更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为未被占用,将所述车位标识对应的车位的状态更新为未被占用;A first updating unit, configured to update the state of a parking space corresponding to the parking space identifier to be unoccupied if the current state is different from the previous state and the current state is unoccupied;
第二更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为被占用,将从所述前一帧图像识别出的所述车位标识对应的车位的状态更新为被占用。A second updating unit, configured to update the status of the parking space corresponding to the parking space identification identified from the previous frame image to, if the current status is different from the previous status and the current status is occupied; Occupied.
根据本发明的一个实施例,该装置还包括:According to an embodiment of the present invention, the apparatus further includes:
绑定单元,用于若所述车位的状态为被占用,则查询所述车位以及占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系;A binding unit is configured to query whether there is a binding relationship between the parking space and a vehicle occupying the parking space if the status of the parking space is occupied; if the binding relationship does not exist, establish the binding relationship Fixed relationship
解绑单元,用于若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。The unbinding unit is configured to query whether there is a binding relationship between the parking space and the vehicle if the state of the parking space is not occupied, and release the binding relationship if the binding relationship exists.
本发明第三方面提供一种电子设备,包括处理器及存储器;所述存储器存储有可被处理器调用的程序;其中,所述处理器执行所述程序时,实现如前述实施例中任意一项所述的车位识别方法。According to a third aspect of the present invention, there is provided an electronic device including a processor and a memory; the memory stores a program that can be called by the processor; wherein when the processor executes the program, it implements any one of the foregoing embodiments. The parking space identification method described in the item.
本发明第四方面提供一种机器可读存储介质,其上存储有程序,该程序被处理器执行时,实现如前述实施例中任意一项所述的车位识别方法。A fourth aspect of the present invention provides a machine-readable storage medium on which a program is stored, and when the program is executed by a processor, the parking space identification method according to any one of the foregoing embodiments is implemented.
相比于现有技术,本发明实施例至少具有以下有益效果:Compared with the prior art, the embodiments of the present invention have at least the following beneficial effects:
车位上标识有车位标识,因而识别出车位标识时可确定是哪个车位,一次识别确定车位区域的占用情况后,后续可以根据车位标识来获知该车位区域的占用情况,适用于机械车库的车位占用情况的确定和管理,当然也可以用于平面车库,适用范围更广;将图像的车位区域中是否存在车位标识和车辆信息同时作为判断车位是否被占用的条件,也可提高车位占用情况判定结果的准确性。The parking space is marked with a parking space identifier, so it can be determined which parking space is identified when the parking space identification is identified. After the identification of the parking space area is determined once, the parking space area's occupancy can be obtained later based on the parking space identification. The determination and management of the situation can of course also be used in a flat garage, which has a wider scope of application; the presence of a parking space identifier and vehicle information in the parking area of the image at the same time as a condition for determining whether the parking space is occupied can also improve the determination result of the parking space occupation situation Accuracy.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为现有技术中一种机械车库中相机采集图像的视野示意图;FIG. 1 is a schematic diagram of a field of view of an image collected by a camera in a mechanical garage in the prior art; FIG.
图2为本发明一实施例的车位识别方法的流程示意图;2 is a schematic flowchart of a parking space identification method according to an embodiment of the present invention;
图3为本发明一实施例的采集的图像的示意图;3 is a schematic diagram of an acquired image according to an embodiment of the present invention;
图4为本发明另一实施例的车位识别方法的流程示意图;4 is a schematic flowchart of a parking space identification method according to another embodiment of the present invention;
图5为本发明一实施例的车位识别装置的结构框图;5 is a structural block diagram of a parking space identification device according to an embodiment of the present invention;
图6为本发明另一实施例的车位识别装置的结构框图;6 is a structural block diagram of a parking space identification device according to another embodiment of the present invention;
图7为本发明一实施例的电子设备的结构框图。FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施 例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail here, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present invention. Rather, they are merely examples of devices and methods consistent with some aspects of the invention as detailed in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing particular embodiments and is not intended to limit the present invention. The singular forms "a," "the," and "the" as used in this invention and the appended claims are also intended to include the majority, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
为了使得本发明实施例的描述更清楚简洁,下面对其中的一些技术术语进行解释。In order to make the description of the embodiments of the present invention clearer and more concise, some technical terms are explained below.
停车诱导:为用户提供指引空车位的服务。例如,在客流量很大的大型停车场中,用户车辆进入停车场后,寻找空车位很不方便,而通过停车诱导功能,可更快地确定空车位的位置,并指引用户车辆前往空车位停车,使得寻找空车位更方便。实现停车诱导的设备可包括路口诱导屏和/或在车位的上方设置的LED(Light-Emitting Diode,发光二极管)标示器,例如可以用绿色代表有空车位,红色代表无空车位;或者可通过一个LED标示器显示3个车位的状态;或者一个LED标示器显示一个车位是否被占用等。空位是指车位未被车辆占用,满位是指车位被车辆占用。Parking guidance: provide users with guidance on empty parking spaces. For example, in a large parking lot with a large passenger flow, it is inconvenient to find an empty parking space after the user's vehicle enters the parking lot. The parking guidance function can more quickly determine the location of the empty parking space and guide the user's vehicle to the empty parking space Parking makes it easier to find empty parking spaces. The device for parking induction may include an intersection guidance screen and / or an LED (Light-Emitting Diode) indicator provided above the parking space. For example, green may be used to indicate that there is an available parking space and red to indicate that there is no available parking space; or An LED indicator shows the status of 3 parking spaces; or an LED indicator shows whether a parking space is occupied, etc. An empty space means that the parking space is not occupied by the vehicle, and a full space means that the parking space is occupied by the vehicle.
反向寻车:用户通过输入车辆信息、如车牌号,可以查询到车辆在停车场的具体位置。例如,在客流量很大的大型停车场中,用户将车辆停入停车场的车位并离开,当用户返回取车时,经常找不到车辆或者忘记车辆停在哪里。而通过反向寻车功能,用户可查询到车辆的停靠位置,从而准确找到车辆。实现反向寻车的设备可以是停车场的某一固定查询设备,也可以是安装或者访问特定的应用程序的智能终端、例如手机。本公开对此不做限定。Reverse car search: The user can query the specific location of the car in the parking lot by entering the car information, such as the license plate number. For example, in a large parking lot with a large passenger flow, the user parks the vehicle into the parking space of the parking lot and leaves. When the user returns to pick up the vehicle, he often cannot find the vehicle or forgets where the vehicle is parked. And through the reverse car search function, users can query the parking position of the vehicle, so as to find the vehicle accurately. The device for realizing reverse car search may be a fixed query device in a parking lot, or a smart terminal such as a mobile phone that installs or accesses a specific application program. This disclosure does not limit this.
下面对本发明实施例的车位识别方法进行展开描述,但不应以此为限。The following describes the parking space identification method in the embodiment of the present invention, but it should not be limited to this.
在一个实施例中,参看图2,示出了一种车位识别方法,该方法包括以下步骤。In one embodiment, referring to FIG. 2, a method for identifying a parking space is shown. The method includes the following steps.
S101:识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识。S101: Identify whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image.
S102:当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用。S102: When it is identified that vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current state of the parking space area is occupied.
S103:当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。S103: When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
上述步骤S102和S103之间没有先后顺序,根据识别结果而定。There is no sequence between the above steps S102 and S103, and it depends on the recognition result.
本发明实施例的车位识别方法可以应用于图像处理设备,图像处理设备可以是任意能够对采集的图像进行处理的设备,例如是DSP(Digital Signal Processor,数字信号处理)设备等。当然,图像处理设备可以本身具备图像采集功能,例如是智能相机;或者也可以是不具备图像采集功能,而是通过与图像采集设备之间的连接接收图像采集设备输入的实时采集图像并进行处理,具体不限。The parking space recognition method according to the embodiment of the present invention may be applied to an image processing device. The image processing device may be any device capable of processing acquired images, such as a DSP (Digital Signal Processor) device. Of course, the image processing device may have an image acquisition function itself, for example, a smart camera; or it may not have an image acquisition function, but instead receives and processes the real-time image acquisition input from the image acquisition device through a connection with the image acquisition device. Is not limited.
在步骤S101中,识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识。其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位。In step S101, it is identified whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image. The parking area tile refers to a tile in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces, and the parking space identifier is used to identify the parking space.
已采集的图像可以是图像处理设备所实时采集的图像,也可以是从用于实时采集图像的设备中获取的图像。为了简便起见,本公开以下以图像采集设备采集图像为例进行描述。图像中包含至少一个车位区域图块。每个车位上都设有唯一的车位标识,通过识别车位标识可以唯一确定对应的车位。需要注意的是,对于如图1所示的机械车库,在本公开中,每层的每个车位(车板)上都有唯一的车位标识。对采集的图像进行实时处理,可及时地提供停车诱导、反向寻车等服务,避免发生有空位却无法提供空位信息的情况。The acquired image may be an image acquired in real time by an image processing device, or may be an image acquired from a device used to acquire an image in real time. For the sake of simplicity, the present disclosure is described below by taking an image acquired by an image acquisition device as an example. The image contains at least one parking area tile. Each parking space is provided with a unique parking space identification, and the corresponding parking space can be uniquely determined by identifying the parking space identification. It should be noted that, for the mechanical garage shown in FIG. 1, in the present disclosure, each parking space (car board) on each floor has a unique parking space identification. Real-time processing of the collected images can provide services such as parking guidance and reverse car search in a timely manner, avoiding situations where there are vacancies but no vacancy information can be provided.
例如图3中所示,采集的一幅图像中可以包含车位区域图块10和车位区域图块20,通常来说,针对机械车库所采集的图像中会包含一个车位区域图块,而针对平面车库所采集的图像中会包含一个以上车位区域图块,当然具体不限于此。例如,机械车库扩展为可同时下放两个车位至第一层,则相机可同时采集两个车位区域的图像,或者,平面车库中的相机采集到的图像也可以只有一个车位区域图块。For example, as shown in Figure 3, the captured image can include parking area tile 10 and parking area tile 20. Generally speaking, the image collected for a mechanical garage will include a parking area tile, and for a plane The image collected by the garage will include more than one parking area tile, of course, it is not limited to this. For example, if a mechanical garage is extended so that two parking spaces can be lowered to the first floor at the same time, the camera can capture images of the two parking spaces at the same time, or the image collected by the camera in the flat garage can have only one parking area tile.
在图像中的车位区域图块多于一个时,可以分别针对每个车位区域图块执行后续的步骤,执行的方式与图像中仅包括一个车位区域图块同理。车位区域图块在图像中的位置可以通过图像识别车位边界来确定,也可以预先设定(相机的拍摄方位固定的情况下),具体不做限制。When there is more than one parking area tile in the image, the subsequent steps can be performed for each parking area tile separately, in the same manner as the image includes only one parking area tile. The position of the parking area tile in the image can be determined by image recognition of the parking space boundary, or it can be set in advance (when the camera's shooting orientation is fixed), which is not specifically limited.
在图像中包含不止一个车位区域图块时,可以先针对其中一个车位区域图块进行识别,而后针对该车位区域图块执行后续的步骤;也可以同时针对其中的两个以上车位区域图块进行识别,识别结果按照车位区域图块进行区分,而后针对各个车位区域图块的识别结果执行后续的步骤,具体不做限制。When the image contains more than one parking area tile, you can first identify one of the parking area tiles, and then perform the subsequent steps on the parking area tile; you can also perform the same operation on two or more parking area tiles at the same time. Recognition, the recognition result is distinguished according to the parking area block, and then the subsequent steps are performed for the recognition result of each parking area block, without specific restrictions.
识别的目的是为了找出图像的车位区域图块中的车辆信息和车位标识。并且,随着 车位上的车辆停入、车辆离开、人或物的遮挡,识别结果是动态变化的。识别结果包含以下几种可能:存在车位标识且不存在车辆信息,不存在车位标识且存在车辆信息,不存在车位标识且不存在车辆信息,以及既存在车位标识又存在车辆信息。The purpose of identification is to find out the vehicle information and parking space identification in the parking space area tile of the image. And, as the vehicle in the parking space is parked, the vehicle leaves, and the person or object is blocked, the recognition result is dynamically changed. The recognition result includes the following possibilities: there is a parking space identifier and no vehicle information, there is no parking space identifier and vehicle information, there is no parking space identifier and vehicle information, and there is both a parking space identifier and vehicle information.
对于图像的特征识别方式,可以使用本领域技术人员熟知的图像处理中的目标识别技术实现,具体不做限制。当然也可以对图像进行一定的预处理后再进行特征识别,保证识别结果的准确性。The feature recognition method of the image may be implemented by using an object recognition technology in image processing that is well known to those skilled in the art, and is not specifically limited. Of course, it is also possible to perform pre-processing on the image and then perform feature recognition to ensure the accuracy of the recognition result.
若图像的车位区域图块上不存在车位标识但存在车辆信息,说明该车位区域的当前状态为被占用,即为满位。若图像的车位区域图块上存在车位标识且不存在车辆信息,说明该车位区域的当前状态为未被占用,即为空位。If there is no parking space identification but vehicle information on the parking area tile of the image, it means that the current state of the parking area is occupied, that is, it is full. If there is a parking space logo and no vehicle information on the parking area tile of the image, it means that the current state of the parking space area is unoccupied, that is, it is empty.
在每个车位上设置了车位标识,可以标识相应的车位,从而管理关于该车位的信息。其中,关于该车位的信息可包括车位占用信息、所停车辆信息、车位位置信息等。A parking space identifier is set on each parking space to identify the corresponding parking space, thereby managing information about the parking space. The information about the parking space may include parking space occupation information, parked vehicle information, parking space position information, and the like.
例如,在机械车库中,车辆的驶入和驶出都在第一层进行,相机的视野也位于第一层。当车位位于相机视野外,可查询车位相应的车位标识来确定车位占用情况。或者可以根据车位标识将其对应的车位下放至第一层,根据车辆信息与车位标识,识别车位占用情况。这样,即使车位不在相机视野内时,也可以获知该车位的占用情况,方便实现停车诱导中的空位方位指引和反向寻车中的车辆位置指引。For example, in a mechanical garage, vehicles are driven in and out on the first floor, and the camera's field of view is also on the first floor. When the parking space is outside the field of view of the camera, the corresponding parking space identification of the parking space can be queried to determine the parking space occupancy. Or, the corresponding parking space can be lowered to the first floor according to the parking space identification, and the parking space occupancy can be identified based on the vehicle information and the parking space identification. In this way, even when the parking space is not in the field of view of the camera, the occupancy situation of the parking space can be known, which facilitates the realization of the guidance of the vacant position in parking guidance and the guidance of the vehicle position in reverse car searching.
本发明实施例中,每个车位上都标识有车位标识,因而识别出车位标识时可确定是哪个车位。确定车位区域的占用情况后,后续可以根据车位标识来获知车位的占用情况。适用于机械车库的车位占用情况的确定和管理。此外,将图像的车位区域图块中是否存在车位标识和车辆信息同时作为判断车位是否被占用的条件,可以提高车位占用情况判定结果的准确性。In the embodiment of the present invention, a parking space identifier is marked on each parking space, so when a parking space identifier is identified, which parking space can be determined. After the occupancy of the parking space is determined, the occupancy of the parking space can be obtained later according to the parking space identification. Applicable to the determination and management of parking spaces in mechanical garages. In addition, the presence of the parking space identifier and the vehicle information in the parking area block of the image at the same time as the conditions for determining whether the parking space is occupied can improve the accuracy of the determination result of the parking space occupation situation.
如图5所示,上述步骤S101~S103的方法流程可由车位识别装置200执行,车位识别装置200主要包含识别单元201、第一判定单元202和第二判定单元203。识别单元201用于执行上述步骤S101,第一判定单元202用于执行上述步骤S102,第二判定单元203用于执行上述步骤S103。As shown in FIG. 5, the method flow of steps S101 to S103 may be executed by the parking space identification device 200. The parking space identification device 200 mainly includes an identification unit 201, a first determination unit 202, and a second determination unit 203. The identification unit 201 is configured to perform the foregoing step S101, the first determination unit 202 is configured to perform the foregoing step S102, and the second determination unit 203 is configured to perform the foregoing step S103.
在一个实施例中,该车位识别方法进一步包括以下步骤S104(图2中未示出):当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为未被占用。In one embodiment, the parking space identification method further includes the following step S104 (not shown in FIG. 2): when it is identified that the parking space area tile does not have vehicle information and the parking space identifier does not exist, determining the parking space The area's current status is unoccupied.
基于步骤S101的识别,在步骤S104中,可以根据识别结果来判断车位区域是否被 车辆占用。在识别结果为车位区域图块中不存在车辆信息且不存在车位标识时,确定为该车位区域的当前状态为未被占用。Based on the recognition in step S101, in step S104, it can be determined whether the parking space area is occupied by the vehicle according to the recognition result. When the recognition result is that no vehicle information exists in the parking area tile and no parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
如果仅针对图像中的车位区域图块是否存在车位标识进行判断,在车位标识存在的情况下判定为车位区域的当前状态为未被占用,而在车位标识不存在的情况下判定为车位区域的当前状态为被占用,只能保证确定在无异常情况下的车位区域的状态。若遮挡物将车位标识遮挡住,则无法得出准确的车位区域的状态。例如,车位区域图块中不存在车位标识时,判定车位区域的状态为被占用,然而其有可能是车位标识被遮挡物遮挡的情况,此时车位区域的状态为未被占用,发生了误判。If the judgment is made only on the presence of a parking area tile in the image, it is determined that the current status of the parking area is unoccupied when the parking space identification exists, and it is determined as the parking area area if the parking area identification does not exist. The current status is occupied, and it is only guaranteed to determine the status of the parking area in the absence of abnormal conditions. If the obstruction obscures the parking space mark, the state of the accurate parking area cannot be obtained. For example, when there is no parking mark in the parking area tile, the status of the parking area is determined to be occupied. However, it may be that the parking space is blocked by a block. At this time, the status of the parking area is unoccupied and an error occurs. Sentence.
而本发明实施例中,将图像的车位区域图块中是否存在车位标识和车辆信息同时作为判断车位区域是否被占用的条件,在车位区域图块中不存在车辆信息且不存在车位标识时,确定为该车位区域未被车辆占用,避免了由于车位标识被遮挡物遮挡而导致误判车位区域被车辆占用的问题。In the embodiment of the present invention, whether the parking space area and the vehicle information are present in the parking area block of the image is used as a condition for judging whether the parking area area is occupied. It is determined that the parking space area is not occupied by the vehicle, thereby avoiding the problem of erroneously judging that the parking space area is occupied by the vehicle because the parking space mark is blocked by the obstruction.
当然还可能存在的一种情况是,同时在图像的车位区域图块中识别出了车辆信息和车位标识,这种情况是小概率异常事件,但若为了避免发生这种情况下的误判,该车位识别方法还可进一步包括:当识别出存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。Of course, there may also be a case where the vehicle information and the parking space identification are identified in the parking area block of the image at the same time. This situation is a small probability anomalous event, but in order to avoid misjudgment in this case, The parking space identification method may further include: when it is recognized that the vehicle information exists and the parking space identifier exists, determining that the current state of the parking space area is unoccupied.
如图6所示,上述步骤S101~S104的方法流程可由车位识别装置200执行,车位识别装置200主要包含识别单元201、第一判定单元202、第二判定单元203和第三判定单元204。识别单元201用于执行上述步骤S101,第一判定单元202用于执行上述步骤S102,第二判定单元203用于执行上述步骤S103,第三判定单元204用于执行上述步骤S104。As shown in FIG. 6, the method flow of steps S101 to S104 may be executed by the parking space identification device 200. The parking space identification device 200 mainly includes an identification unit 201, a first determination unit 202, a second determination unit 203, and a third determination unit 204. The identification unit 201 is configured to execute the above step S101, the first determination unit 202 is used to perform the above step S102, the second determination unit 203 is used to perform the above step S103, and the third determination unit 204 is used to execute the above step S104.
在一个实施例中,车位标识可以是二维码标识、和/或数字、和/或字符、和/或条码标识等不限,只要能够用来唯一标识车位即可。不同车位上设置的车位标识必须不同,从而每个车位均有唯一的车位标识,不会导致相互之间信息发生错乱,通过识别车位标识可以唯一确定对应的车位。In one embodiment, the parking space identification may be a two-dimensional code identification, and / or a number, and / or a character, and / or a bar code identification, as long as it can be used to uniquely identify the parking space. The parking space identifiers set on different parking spaces must be different, so that each parking space has a unique parking space identifier, which will not cause the information to be confused with each other. By identifying the parking space identifier, the corresponding parking space can be uniquely determined.
例如车位标识是一个二维码标识,识别二维码标识可得到该车位区域的车位编号。当然,识别二维码标识所得到的信息还可以包括其他需要的信息,例如还可以包括该车位区域的位置信息(平面车库)、或预分配或已分配给该车位区域的位置信息(机械车库);或者还可以包括固定车位信息。固定车位是指只可以停入特定的一个或几个车牌 的车辆,其它车辆不允许停入,这些车牌信息可以被设置在车位标识中,当其它车牌车辆停入时,可以进行警告及相应的后续处理。For example, the parking space identification is a two-dimensional code identification, and the identification of the two-dimensional code identification can obtain the parking space number of the parking area. Of course, the information obtained by identifying the two-dimensional code can also include other required information, such as the location information of the parking space area (flat garage), or the location information of the parking area pre-allocated or allocated (mechanical garage) ); Or may also include fixed parking space information. A fixed parking space refers to a vehicle that can only park in a specific license plate or plates. Other vehicles are not allowed to park in. These license plate information can be set in the parking space sign. When other vehicles with a license plate are parked, a warning and corresponding Follow-up processing.
参看图3,示出的图像中包括车位区域图块10和车位区域图块20,为了使得描述更简洁,以车位区域图块10为例,在车位区域图块10中可识别出车位标识101。车位标识101是识别设置在车位上的物理标记得出的结果,该物理标记可以采用贴附、涂抹、通过连接结构连接等方式,标记在车位的可被停入其上的车辆挡住的位置,例如车位的中间位置处,保证在车位被车辆占用时图像中不存在车位标识。Referring to FIG. 3, the image shown includes a parking area block 10 and a parking area block 20. In order to make the description more concise, taking the parking area block 10 as an example, the parking space block 10 can be identified in the parking area block 10 . The parking space identification 101 is a result of identifying a physical mark provided on the parking space. The physical mark can be attached, painted, or connected through a connection structure to mark a position in the parking space that can be blocked by a vehicle parked on it. For example, at the middle position of the parking space, it is ensured that there is no parking space identifier in the image when the parking space is occupied by the vehicle.
在一个实施例中,车辆信息包括至少以下信息中的一种:车体特征信息、车牌特征信息。车辆信息是用于表示停入车位区域的车辆的信息,只要能够确定车位区域上是否有车辆即可。车辆信息例如可以是车牌特征信息,在图像的车位区域图块中识别出车牌后,可确定车位上停有车辆,还可进一步识别车牌上的车牌号,以唯一确定相对应的车辆。In one embodiment, the vehicle information includes at least one of the following information: vehicle body characteristic information and license plate characteristic information. The vehicle information is information indicating a vehicle parked in the parking space area, as long as it can determine whether there is a vehicle in the parking space area. The vehicle information may be, for example, the characteristics of the license plate. After the license plate is identified in the parking area block of the image, it can be determined that the vehicle is parked in the parking space, and the license plate number on the license plate can be further identified to uniquely determine the corresponding vehicle.
优选的,车辆信息可以同时包括车体特征信息和车牌特征信息,这样在车牌特征信息被遮挡物遮挡时,还可以通过车体特征信息来判断图像中的车位区域图块上确实有车辆,车体体积较大,通常不会被完全遮挡,而车牌特征较小,容易被经过的车辆或人遮挡。Preferably, the vehicle information may include both vehicle body characteristic information and license plate characteristic information. In this way, when the vehicle license plate characteristic information is blocked by an obstruction, the vehicle body characteristic information may also be used to determine that there is indeed a vehicle on the parking area tile in the image. The volume is large, and it is usually not completely blocked, while the license plate features are small, and it is easy to be blocked by passing vehicles or people.
在一个实施例中,步骤S101中的识别已采集的图像中的车位区域图块是否存在车位标识包括:In one embodiment, the step S101 of identifying whether a parking space tile in the captured image has a parking space identifier includes:
将已采集的图像输入至预设的神经网络中,以由神经网络识别所述图像中的车位标识,并在输出所识别的车位标识。The acquired image is input into a preset neural network to recognize the parking space identifier in the image by the neural network, and output the identified parking space identifier.
神经网络是已经训练好的,将图像输入到神经网络中,便可由神经网络实现车位标识的识别。神经网络可以集成在识别单元201中作为车位识别装置200的一部分,也可以设置在车位识别装置200的外部,可由识别单元201调用。The neural network is already trained. By inputting the image into the neural network, the neural network can realize the identification of the parking space mark. The neural network may be integrated in the recognition unit 201 as a part of the parking space recognition device 200, or may be provided outside the parking space recognition device 200, and may be called by the recognition unit 201.
在本公开中,不限定神经网络的具体形式,神经网络可以为卷积神经网络(Convolutional Neural Network,CNN)、循环神经网络(Recurrent Neural Networks,RNN)、深度神经网络(Deep Neural Network,DNN)等。In this disclosure, the specific form of the neural network is not limited, and the neural network may be a Convolutional Neural Network (CNN), a Recurrent Neural Network (RNN), or a Deep Neural Network (DNN) Wait.
由于图像中可能存在车位标识或不存在车位标识,因而该神经网络在识别出车位标识时输出具体的车位标识,而识别不出时可以不输出信息或者输出表示无车位标识的信息。Because there may or may not be a parking space identification in the image, the neural network outputs a specific parking space identification when the parking space identification is recognized, and may output no information or output information indicating that there is no parking space identification when the parking space identification is not recognized.
以车位标识是二维码标识为例,可以利用神经网络将二维码标识从图像中识别出来,而后再通过扫码方式解析二维码标识的信息,如车位编号等。为了提高二维码标识的清晰度,增加扫码准确度,在训练神经网络时,需要对各种情况加以考虑。Taking the parking space identification as a two-dimensional code identification as an example, a neural network can be used to identify the two-dimensional identification code from the image, and then scan the code to analyze the information of the two-dimensional identification code, such as the parking space number. In order to improve the clarity of the two-dimensional code identification and increase the scanning accuracy, various situations need to be considered when training the neural network.
在一个例子中,识别已采集的图像中的车位区域图块是否存在车位标识可以包括以下步骤:将已采集的图像输入到至少两个预设的对应不同成像环境的神经网络中,以由各神经网络分别识别所述图像中车位区域图块是否存在车位标识并在输出识别出的车位标识;比对各所述神经网络输出的车位标识,选择最优结果作为所述图像的车位区域图块的车位标识。In an example, identifying whether a parking space area tile in the acquired image has a parking space identifier may include the following steps: inputting the acquired image into at least two preset neural networks corresponding to different imaging environments, so that each The neural network separately recognizes whether there is a parking space identifier in the parking area tile in the image and outputs the recognized parking space identifier; compares the parking space identifiers output by each of the neural networks, and selects the optimal result as the parking area tile of the image Parking space sign.
比对的对象例如可以是车位标识的清晰度、完整度、亮度均匀度等不限,最优结果相应可以是清晰度最高和/或完整度最高和/或亮度最均匀的车位标识。The object of comparison may be, for example, unlimited clarity, completeness, uniformity of brightness, etc. of the parking space mark, and the optimal result may correspondingly be the parking space mark with the highest definition and / or completeness and / or the most uniform brightness.
由于车库的环境不一,有可能发生过亮或过暗的情况,因而可以分别针对不同的成像环境情况进行深度学习来得到不同成像环境下适用的神经网络,并使得采集到的图像可以输入到这些神经网络中,分别通过这些神经网络来识别图像中车位区域图块的车位标识。接着进行结果的比对,当然,假设神经网络均未识别出车位标识,则不需要进行比对,而是直接确定未识别出车位标识的结果。Because the environment of the garage is different, it may happen that it is too bright or too dark. Therefore, you can perform deep learning for different imaging environments to obtain neural networks suitable for different imaging environments, and make the collected images can be input to In these neural networks, the parking space identifiers of the parking area tiles in the image are identified by these neural networks, respectively. Next, the results are compared. Of course, assuming that the neural network does not recognize the parking space identification, it is not necessary to perform the comparison, but the result of directly identifying the parking space identification is not determined.
由于不同的神经网络是在不同的环境下深度学习的,因而适应于不同的成像环境,假设图像是在较暗的环境下采集的,那么图像输入到较暗环境下深度学习得到的神经网络所得到的结果是质量更高的,使得最终车位标识信息的结果精度也更高。Since different neural networks are deep-learned in different environments, they are adapted to different imaging environments. Assuming that the images are collected in a dark environment, the images are input to the neural network obtained by deep learning in a dark environment. The results obtained are of higher quality, resulting in higher accuracy of the final parking space identification information.
这些不同成像环境对应的神经网络是通过不同成像环境对应的图像训练集进行训练所得的深度学习神经网络,图像训练集可以包括带车位标识的样本图像、及对应的车位标识。The neural networks corresponding to these different imaging environments are deep learning neural networks trained through image training sets corresponding to different imaging environments. The image training set may include sample images with parking space identification and corresponding parking space identification.
不同成像环境例如是较暗环境和较亮环境,较暗环境可以指亮度低于设定最小亮度阈值的图像环境,较亮环境可以指亮度高于设定最大亮度阈值的图像环境。当然,还可以是更多的成像环境,例如可以设置为梯度式变化的环境条件。Different imaging environments are, for example, a darker environment and a brighter environment. A darker environment may refer to an image environment with a brightness lower than a set minimum brightness threshold, and a brighter environment may refer to an image environment with a brightness higher than a set maximum brightness threshold. Of course, there can be more imaging environments, for example, it can be set to environmental conditions that change in a gradient manner.
在另一个例子中,识别已采集的图像中的车位区域图块是否包括车位标识可以包括以下步骤:将已采集的图像输入到一个预设的神经网络中,以由所述神经网络识别所述图像中的车位标识,并输出识别出的所述车位标识。这个预设的神经网络可以适应不同的成像环境,也就是己采集的图像可能会有多种情况,比如图像过亮,图像过暗等等,但将该图像输入这个预设的神经网络后,都可以得到一个相对较好的结果。In another example, identifying whether the parking area tile in the acquired image includes a parking space identifier may include the following steps: inputting the acquired image into a preset neural network to identify the neural network by the neural network; The parking space identifier in the image, and the identified parking space identifier is output. This preset neural network can be adapted to different imaging environments, that is, the collected image may have multiple conditions, such as an image that is too bright, an image that is too dark, etc., but after inputting this image into this preset neural network, Both can get a relatively good result.
为此在训练神经网络时,需要对各种情况加以考虑。神经网络的图像训练集可以包括在车库不同位置、不同时间采集的车位的多个样本图像。在各个样本图像中,车位上可能停放了车辆、也可能未停放车辆,停放的车辆还可能被行人或其他车辆遮挡。同样的,在各个样本图像中,车位上可能有车位标识、也可能没有车位标识,车位标识也可能被遮挡。同样的,在各个样本图像中,背景亮度可能比较明亮、也可能比较昏暗。当然,还可以是更多的成像环境,例如可以设置为梯度式变化的环境条件。Therefore, when training the neural network, various situations need to be considered. The image training set of the neural network may include multiple sample images of parking spaces collected at different locations in the garage at different times. In each sample image, the vehicle may or may not be parked in the parking space, and the parked vehicle may be blocked by a pedestrian or other vehicles. Similarly, in each sample image, the parking space may or may not have a parking space identification, and the parking space identification may be blocked. Similarly, in each sample image, the background brightness may be bright or dim. Of course, there can be more imaging environments, for example, it can be set to environmental conditions that change in a gradient manner.
在一个实施例中,当使用监督学习的方法时,还可以人为纠正算法识别错误,对神经网络识别图像中的车位标识进行结果的比对,比对的对象例如可以是车位标识的清晰度、完整度、亮度均匀度等不限,最优结果相应可以是清晰度最高和/或完整度最高和/或亮度最均匀的车位标识。In one embodiment, when the supervised learning method is used, the algorithm can also artificially correct the recognition errors and compare the results of the parking space identification in the neural network recognition image. The comparison object can be, for example, the clarity of the parking space identification, There is no limit to completeness, uniformity of brightness, etc., and the optimal result may be the parking space marking with the highest definition and / or the highest completeness and / or the most uniform brightness.
步骤S101中的识别已采集的图像的车位区域图块中的车辆信息,可以通过传统车牌识别、特征识别等图像处理的方式来识别,或者同样可以通过神经网络来识别得到。In step S101, the vehicle information in the parking area block of the collected image can be identified through image processing methods such as traditional license plate recognition and feature recognition, or can also be identified through a neural network.
由于机械车库的车位可以上下移动,某一图像采集设备可能对应多个车位。因此,该采集设备采集的图像中一个特定的车位区域图块可能对应多个车位。为了提高对于车位占用状态判定的准确性,可以结合多帧连续采集图像进行判断。如图4所示,结合上述图2,在一个实施例中,车位识别方法进一步包括以下步骤。Since the parking space of the mechanical garage can be moved up and down, an image acquisition device may correspond to multiple parking spaces. Therefore, a specific parking space area tile in the image collected by the acquisition device may correspond to multiple parking spaces. In order to improve the accuracy of the determination of the occupied state of the parking space, multiple frames of consecutively collected images can be used for determination. As shown in FIG. 4, in combination with the above FIG. 2, in one embodiment, the parking space recognition method further includes the following steps.
S101:识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识。S101: Identify whether there is vehicle information and a parking space identifier in the parking area tile in the acquired image.
S102:当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用。S102: When it is identified that vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current state of the parking space area is occupied.
S103:当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。S103: When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
上述步骤S101-S103可以参考图2中的相关描述,在此不再赘述。在根据已采集图像确定车位区域的当前状态后,还可以根据相对于所述已采集的图像的前一帧确定该车位区域的前一状态。若前一状态与当前状态不同的话,则在步骤S102确定出所述车位区域的当前状态为被占用后,可以进一步执行步骤S204,以确定车位的状态;在步骤S103确定出所述车位区域的当前状态为未被占用后,可以进一步执行步骤S205,以确定车位的状态。For the foregoing steps S101-S103, reference may be made to the related description in FIG. 2, and details are not described herein again. After the current state of the parking space area is determined according to the acquired image, the previous state of the parking space area may also be determined according to a previous frame relative to the acquired image. If the previous state is different from the current state, after determining that the current state of the parking space area is occupied in step S102, step S204 may be further performed to determine the state of the parking space; in step S103, the state of the parking space area is determined. After the current state is not occupied, step S205 may be further performed to determine the state of the parking space.
S204:当根据前一帧图像确定所述车位区域的前一状态为未被占用,则将从前一帧图像识别出的车位标识对应的车位的状态更新为被占用。S204: When it is determined that the previous state of the parking space area is not occupied according to the previous frame image, the state of the parking space corresponding to the parking space identification identified from the previous frame image is updated to be occupied.
S205:当根据前一帧图像确定所述车位区域的前一状态为被占用,则将所述车位标识对应的车位的状态更新为未被占用。S205: When it is determined that the previous state of the parking space area is occupied according to the previous frame image, update the state of the parking space corresponding to the parking space identifier to unoccupied.
在本例中,结合车位区域的几帧图像来判断机械车库的每个车位的状态。根据步骤S102和步骤S103,可以根据已采集的图像得到车位区域的当前状态。同时,针对该车位区域的相对于所述已采集的图像的前一帧图像,可以确定该车位区域的前一状态,将该车位区域的当前状态与前一状态进行比较。若所述当前状态和所述前一状态相同,则不对状态进行更新。若所述当前状态和所述前一状态不同,车位区域的状态有两种情况。在第一种情况下,当前状态为未被占用,则根据已采集的图像识别出的车位标识,将该车位标识对应的车位的状态更新为未被占用。在第二种情况下,当前状态为被占用,则将从所述前一帧图像识别出的车位标识对应的车位的状态更新为被占用,更进一步的,可以根据已采集的图像确定该车位对应的车辆信息并与车位进行关联。In this example, the status of each parking space in the mechanical garage is determined by combining several frames of the parking space area. According to steps S102 and S103, the current state of the parking space area can be obtained from the acquired images. At the same time, for the previous frame image of the parking space area relative to the acquired image, the previous state of the parking space area can be determined, and the current state of the parking space area is compared with the previous state. If the current state is the same as the previous state, the state is not updated. If the current state and the previous state are different, there are two cases of the state of the parking space area. In the first case, if the current status is unoccupied, the status of the parking space corresponding to the parking space identification is updated to unoccupied according to the parking space identification identified by the acquired image. In the second case, if the current status is occupied, the status of the parking space corresponding to the parking space identification identified from the previous frame image is updated to be occupied. Furthermore, the parking space can be determined based on the acquired image Corresponding vehicle information is associated with parking spaces.
具体来讲,当车辆A驶入机械车库的第一层的某车位之前,图像采集设备对该空车位进行图像采集,得到第一帧图像(也就是前一帧图像)。图像处理设备根据第一帧图像可以识别出该车位区域不存在车辆信息且存在车位标识,该车位区域的前一状态为未被占用,车位标识可以为101。此时。当车辆驶入车位标识为101的这个车位后,图像采集设备对该车位进行图像采集,得到第二帧图像(也就是已采集的图像),图像处理设备根据第二帧图像可以识别出该车位区域存在车辆信息且不存在车位标识,该车位区域的当前状态为被占用,该车辆信息可以为车辆A。此时,图像处理设备将车辆信息A和第一帧图像得到的车位标识101相关联,并将车位标识101对应的车位的状态更新为被占用。Specifically, before the vehicle A enters a certain parking space on the first floor of the mechanical garage, the image acquisition device performs image acquisition on the empty parking space to obtain a first frame image (that is, a previous frame image). The image processing device can recognize that there is no vehicle information and a parking space identifier exists in the parking space area according to the first frame image. The previous state of the parking space area is unoccupied, and the parking space identification may be 101. at this time. When the vehicle enters the parking space with the parking space identification 101, the image acquisition device performs image acquisition on the parking space to obtain a second frame image (that is, the captured image). The image processing device can identify the parking space based on the second frame image. There is vehicle information in the area and no parking space identifier exists. The current status of the parking space area is occupied, and the vehicle information may be vehicle A. At this time, the image processing device associates the vehicle information A with the parking space identification 101 obtained from the first frame image, and updates the status of the parking space corresponding to the parking space identification 101 to be occupied.
停好车后,该车辆A可能随着车板升到其它层。当用户取车时,首先需要将车辆A降到第一层,此时图像采集设备可以对该车位进行图像采集,得到第一帧图像(也就是前一帧图像)。图像处理设备根据第一帧图像可以识别出该车位区域存在车辆信息A且不存在车位标识,此时,该车位区域的前一状态为被占用。当车辆A驶出停车位后,图像采集设备对该车位进行图像采集,得到第二帧图像(也就是已采集的图像),图像处理设备根据第二帧图像可以识别出该车位区域不存在车辆信息且存在车位标识101,该车位区域的当前状态为未被占用。此时,图像处理设备可以将车位标识101对应的车位的状态更新为未被占用。After parking the vehicle, the vehicle A may rise to another floor with the panel. When the user picks up the vehicle, the vehicle A needs to be lowered to the first floor first. At this time, the image acquisition device can perform image acquisition on the parking space to obtain the first frame image (that is, the previous frame image). The image processing device can recognize that the parking area has vehicle information A and no parking space identifier according to the first frame image. At this time, the previous state of the parking area is occupied. After vehicle A drives out of the parking space, the image acquisition device performs image acquisition on the parking space to obtain a second frame image (that is, the captured image), and the image processing device can identify that there is no vehicle in the parking space area according to the second frame image Information and a parking space identification 101 exists, the current state of the parking space area is unoccupied. At this time, the image processing device may update the status of the parking space corresponding to the parking space identification 101 to be unoccupied.
由此可以看出,使用前一帧的信息,是为了结合前一帧的信息,得到车位标识。如果车位区域的当前状态为被占用,则车辆会把车位标识档上,就不知道该车辆占用的 是具体哪个车板,这时前一帧图像中是有车位标识的,所以结合前一帧图像,可以知道确切的前一帧图像中车位标识所对应车位的状态。通过使用至少两帧图像,可以将车位区域的状态确定到具体的车位上。It can be seen that the information of the previous frame is used to obtain the parking space identifier by combining the information of the previous frame. If the current state of the parking space area is occupied, the vehicle will put the parking space on the parking lot file, and it will not know which specific board the vehicle is occupying. At this time, there is a parking space in the previous frame image, so the previous frame is combined. Image, you can know the status of the parking space corresponding to the parking space mark in the previous image. By using at least two frames of images, the state of the parking space area can be determined to a specific parking space.
需要注意的是,本例所述的前一帧图像和已采集的图像之间的时间间隔可以按照经验值进行设置,本申请对此不做限定。此外,本例所述的前一帧图像和已采集的图像只是作为示例,在实际使用中,由于车辆具体的出入车位的速度不同,可能采集多帧图像才能判断出该车位的状态。例如,采集的第一帧图像有车位标识,由于车辆入库较慢,第二帧图像不能识别车辆信息(如不能确定车号),需要等到第i帧采集的图像才能识别的车辆信息,此时,可以使用第一帧和第i帧图像的信息对所述车位标识对应的车位进行状态更新。其具体的实现方式和使用连续两帧图像类似,在此不再赘述。It should be noted that the time interval between the previous frame image and the acquired image described in this example can be set according to experience values, which is not limited in this application. In addition, the previous frame image and the captured image described in this example are just examples. In actual use, due to the specific speed of the vehicle entering and exiting the parking space, multiple frames of image may be collected to determine the status of the parking space. For example, the first frame of the collected image has a parking space identification. Due to the slow entry of the vehicle into the warehouse, the second frame of the image cannot identify the vehicle information (such as the vehicle number cannot be determined). At this time, the status of the parking space corresponding to the parking space identifier may be updated using the information of the first frame and the i-th frame image. The specific implementation manner is similar to the use of two consecutive frames of images, and details are not described herein again.
采用本例所述的方法,可以更准确地对机械车库的每个车位进行车位的识别,为在后续进行停车诱导中和反向寻车提供了基础。The method described in this example can more accurately identify each parking space in a mechanical garage, and provide a basis for subsequent parking induction and reverse car search.
在一个实施例中,车位识别方法还可以包括以下步骤:In one embodiment, the parking space identification method may further include the following steps:
若所述车位的状态为被占用,则查询所述车位以及占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系。If the state of the parking space is occupied, query whether there is a binding relationship between the parking space and the vehicle occupying the parking space, and if the binding relationship does not exist, establish the binding relationship.
若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。If the state of the parking space is unoccupied, query whether there is a binding relationship between the parking space and the vehicle, and if the binding relationship exists, release the binding relationship.
由于机械车库中,车辆进出都是在第一层的车位,当有车辆在车位上时可以识别车辆信息,当无车辆时可以识别车位标识,因而车辆停入可以先后识别出车位标识和车辆信息,车辆离开可以先后识别出车辆信息和车位标识,无论车辆停入还是离开,都可以根据采集的至少两帧图像来获得车位标识和车辆信息,从而得到该车位的占用状态。当该车位的状态变更时,可以对车位标识和车辆信息进行绑定或解绑。平面车库也可如此。Because in the mechanical garage, vehicles enter and exit are on the first floor, the vehicle information can be identified when there is a vehicle in the parking space, and the parking space identification can be identified when there is no vehicle, so the parking space can be identified by the parking space identification and vehicle information. , When the vehicle leaves, the vehicle information and parking space identification can be identified successively. No matter the vehicle parks in or leaves, the parking space identification and vehicle information can be obtained according to at least two frames of the collected images to obtain the occupied status of the parking space. When the status of the parking space changes, the parking space identifier and vehicle information can be bound or unbound. The same goes for flat garages.
当车位被车辆占用时,说明车辆已经停入了车位,查询占用该车位的车辆和车位之间是否存在绑定关系,如果不存在绑定关系,则要建立该车辆与该车位的绑定关系,可以将识别出的车位标识和车辆信息进行绑定,例如可以将车位标识携带的车位标号与车牌信息绑定起来。若存在绑定关系,则说明该车位已经被车辆占用,是满位,。可以利用绑定关系执行反向寻车处理,例如可以根据车牌信息来查询对应的车位标号,从而可以定位车位的具体位置。When a parking space is occupied by a vehicle, it means that the vehicle has been parked in the parking space. Check whether there is a binding relationship between the vehicle occupying the parking space and the parking space. If there is no binding relationship, establish a binding relationship between the vehicle and the parking space. , The identified parking space identifier and vehicle information can be bound, for example, the parking space identifier carried by the parking space identifier and the license plate information can be bound. If there is a binding relationship, it means that the parking space is occupied by the vehicle and is full. The binding relationship can be used to perform reverse car search processing, for example, the corresponding parking space label can be queried according to the license plate information, so that the specific location of the parking space can be located.
当车位未被车辆占用时,说明车位上没有停放车辆,可以查询该车位是否存在与车辆的绑定关系,如果存在绑定关系,则解除该车辆与该车位的绑定关系,说明该车辆是已驶离该车位。当车位不存在绑定关系,则说明该车位区域未被车辆占用,是空位。可以诱导其他车辆进行停车,例如提供车位的空位信息,可进一步指引该空位的方位。When the parking space is not occupied by the vehicle, it means that there is no parked vehicle in the parking space. You can query whether there is a binding relationship between the parking space and the vehicle. If there is a binding relationship, the binding relationship between the vehicle and the parking space is released, indicating that the vehicle is Has left the parking space. When the parking space does not have a binding relationship, it means that the parking space area is not occupied by the vehicle and is empty. Other vehicles can be induced to stop, such as providing vacancy information for a parking space, which can further guide the direction of the vacancy.
为了更容易地进行后续的停车诱导和反向寻车,,可以每个车位标识设置一个绑定关系标识,在绑定和解绑时对关系标识进行更新。In order to make subsequent parking induction and reverse car searching easier, a binding relationship identifier may be set for each parking space identifier, and the relationship identifier may be updated during binding and unbinding.
例如,当进行停车诱导时,将某一停车区域内实际的车位数量减去绑定关系标识为绑定状态的车位的数量,可以快速得到该区域剩余的车位个数。又比如,当进行反向寻车时,可以只在绑定关系标识为绑定状态的车位中进行查找,从而增加查找效率。For example, when parking guidance is performed, the actual number of parking spaces in a parking area minus the number of parking spaces identified by the binding relationship as a binding state can quickly obtain the remaining parking spaces in the area. For another example, when searching for a car in the reverse direction, the search can be performed only in the parking spaces whose binding relationship is identified as a binding state, thereby increasing the searching efficiency.
在一个实施例中,参看图5,一种车位识别装置200,可以包括:In one embodiment, referring to FIG. 5, a parking space identification device 200 may include:
识别单元201,用于识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识,其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位;A recognition unit 201 is configured to identify whether there is vehicle information and a parking space identifier in a parking area tile in an acquired image, where the parking area tile corresponds to a parking space area including a plurality of vertically overlapping parking spaces in the image. Block, the parking space identifier is used to identify the parking space;
第一判定单元202,用于当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的状态为被占用;A first determining unit 202, configured to determine that the state of the parking space area is occupied when it is recognized that the parking space area tile has vehicle information and the parking space identifier does not exist;
第二判定单元203,用于当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的状态为未被占用。The second determining unit 203 is configured to determine that the state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier exists.
在一个实施例中,参看图6,该车位识别装置200进一步包括:In one embodiment, referring to FIG. 6, the parking space identification device 200 further includes:
第三判定单元204,用于当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的状态为未被占用。The third determining unit 204 is configured to determine that the state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier does not exist.
在一个实施例中,所述车位标识为二维码标识、和/或数字、和/或字符、和/或条码标识;不同车位上设置的车位标识不同。In one embodiment, the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a barcode identification; the parking space identifications set on different parking spaces are different.
在一个实施例中,所述识别单元201还包括:In one embodiment, the identification unit 201 further includes:
神经网络,用于根据输入的所述已采集的图像,识别出所述图像中的车位标识,并输出识别出的所述车位标识。A neural network is configured to recognize a parking space identifier in the image based on the inputted captured image, and output the recognized parking space identifier.
在一个实施例中,一种车位识别装置200,还包括:In one embodiment, a parking space identification device 200 further includes:
比较单元,用于将所述车位区域的当前状态与所述车位区域的前一状态进行比较,其中,所述车位区域的前一状态是根据针对所述车位区域的相对于所述已采集的图 像的前一帧图像而确定的;A comparison unit is configured to compare the current state of the parking space area with a previous state of the parking space area, wherein the previous state of the parking space area is based on Determined by the previous frame of the image;
第一更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为未被占用,将所述车位标识对应的车位的状态更新为未被占用;A first updating unit, configured to update the state of a parking space corresponding to the parking space identifier to be unoccupied if the current state is different from the previous state and the current state is unoccupied;
第二更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为被占用,将从所述前一帧图像识别出的所述车位标识对应的车位的状态更新为被占用。A second updating unit, configured to update the status of the parking space corresponding to the parking space identification identified from the previous frame image to, if the current status is different from the previous status and the current status is occupied; Occupied.
在一个实施例中,该车位识别装置200还包括:In one embodiment, the parking space identification device 200 further includes:
绑定单元,用于若所述车位的状态为被占用,则查询所述车位以及占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系;A binding unit is configured to query whether there is a binding relationship between the parking space and a vehicle occupying the parking space if the status of the parking space is occupied; if the binding relationship does not exist, establish the binding relationship Fixed relationship
解绑单元,用于若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。The unbinding unit is configured to query whether there is a binding relationship between the parking space and the vehicle if the state of the parking space is not occupied, and release the binding relationship if the binding relationship exists.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details about the implementation process of the functions and functions of the units in the above device, refer to the implementation process of the corresponding steps in the foregoing method for details, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元。As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part may refer to the description of the method embodiment. The device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units.
通过本发明提供的装置,每个车位上都标识有车位标识,因而识别出车位标识时可确定是哪个车位。一旦识别确定车位的占用情况后,可以根据车位标识来获知该车位的占用情况并进行后续管理。使用本方法,可以较简便地实现车位的占用管理,例如反向寻车、停车诱导等。With the device provided by the present invention, a parking space identifier is marked on each parking space, so it can be determined which parking space is when the parking space identifier is recognized. Once the occupancy of the parking space is identified and determined, the occupancy of the parking space can be learned and the subsequent management can be performed according to the parking space identification. Using this method, it is relatively easy to realize the occupation management of parking spaces, such as reverse car search, parking induction, etc.
本发明还提供一种电子设备,包括处理器及存储器;所述存储器存储有可被处理器调用的程序;其中,所述处理器执行所述程序时,实现如前述实施例中任意一项所述的车位识别方法。The present invention also provides an electronic device including a processor and a memory; the memory stores a program that can be called by the processor; wherein when the processor executes the program, the program is implemented as in any one of the foregoing embodiments. The parking space identification method described above.
本发明车位识别装置的实施例可以应用在电子设备上。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图7所示,图7是本发明根据一示例性实施例示出的车位识别装置200所在电子设备的一种硬件结构图,除了图7所示的处理器510、内存530、网络接口520、总线550、以及非易失性存储器540之 外,实施例中装置200所在的电子设备通常根据该电子设备的实际功能,还可以包括其他硬件,对此不再赘述。The embodiments of the parking space identification device of the present invention can be applied to electronic equipment. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the electronic device where it is located. In terms of hardware, as shown in FIG. 7, FIG. 7 is a hardware structure diagram of an electronic device in which the parking space identification device 200 is located according to an exemplary embodiment of the present invention, except for the processor 510 and the memory shown in FIG. 7. In addition to 530, network interface 520, bus 550, and non-volatile memory 540, the electronic device in which device 200 is located in the embodiment may generally include other hardware according to the actual function of the electronic device, and details are not described herein again.
本发明还提供一种机器可读存储介质,其上存储有程序,该程序被处理器执行时,实现如前述实施例中任意一项所述的图像处理方法。The present invention also provides a machine-readable storage medium on which a program is stored, and when the program is executed by a processor, the image processing method according to any one of the foregoing embodiments is implemented.
本发明可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。机器可读存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。机器可读存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The present invention may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code therein. Machine-readable storage media includes permanent and non-permanent, removable and non-removable media, and information can be stored by any method or technology. Information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only Memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD), or other optical storage , Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the present invention. Within the scope of protection.

Claims (14)

  1. 一种车位识别方法,包括:A parking space identification method includes:
    识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识,其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位;Identifying whether there is vehicle information and a parking space identifier in a parking area tile in the collected image, wherein the parking area tile refers to a tile in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces, the A parking space identifier is used to identify the parking space;
    当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用;When it is identified that vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current status of the parking space area is occupied;
    当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier exists, it is determined that the current state of the parking space area is unoccupied.
  2. 如权利要求1所述的车位识别方法,其特征在于,该方法进一步包括:The method for identifying a parking space according to claim 1, further comprising:
    当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为未被占用。When it is identified that no vehicle information exists in the parking space area tile and the parking space identifier does not exist, it is determined that the current state of the parking space area is unoccupied.
  3. 如权利要求1所述的车位识别方法,其特征在于,所述车位标识为二维码标识、和/或数字、和/或字符、和/或条码标识;不同车位上设置的车位标识不同。The parking space identification method according to claim 1, wherein the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a bar code identification; parking space identifications set on different parking spaces are different.
  4. 如权利要求1所述的车位识别方法,其特征在于,识别所述已采集的图像中的所述车位区域图块是否存在所述车位标识包括:The method for identifying a parking space according to claim 1, wherein identifying whether the parking space area tile in the acquired image exists for the parking space identifier comprises:
    将所述已采集的图像输入至预设的神经网络中,以由所述神经网络识别所述图像中的车位标识,并输出识别出的所述车位标识。The acquired image is input into a preset neural network, so that the neural network recognizes a parking space identifier in the image, and outputs the identified parking space identifier.
  5. 如权利要求1所述的车位识别方法,其特征在于,所述方法还包括:The method for identifying a parking space according to claim 1, further comprising:
    将所述车位区域的当前状态与所述车位区域的前一状态进行比较,其中,所述车位区域的前一状态是根据针对所述车位区域的相对于所述已采集的图像的前一帧图像而确定的;Comparing the current state of the parking space area with the previous state of the parking space area, wherein the previous state of the parking space area is based on the previous frame for the parking space area relative to the captured image Determined by image;
    若所述当前状态和所述前一状态不同且所述当前状态为未被占用,将所述车位标识对应的车位的状态更新为未被占用;If the current state is different from the previous state and the current state is unoccupied, updating the state of the parking space corresponding to the parking space identifier to unoccupied;
    若所述当前状态和所述前一状态不同且所述当前状态为被占用,将从所述前一帧图像识别出的所述车位标识对应的车位的状态更新为被占用。If the current state is different from the previous state and the current state is occupied, the state of the parking space corresponding to the parking space identifier identified from the previous frame image is updated to be occupied.
  6. 如权利要求5所述的车位识别方法,其特征在于,该方法还包括:The method for identifying a parking space according to claim 5, further comprising:
    若所述车位的状态为被占用,则查询所述车位与占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系;If the state of the parking space is occupied, query whether there is a binding relationship between the parking space and a vehicle occupying the parking space, and if the binding relationship does not exist, establish the binding relationship;
    若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。If the state of the parking space is unoccupied, query whether there is a binding relationship between the parking space and the vehicle, and if the binding relationship exists, release the binding relationship.
  7. 一种车位识别装置,包括:A parking space identification device includes:
    识别单元,用于识别已采集的图像中的车位区域图块是否存在车辆信息和车位标识,其中,所述车位区域图块是指所述图像中与包括多个纵向重叠车位的车位区域对应的图块,所述车位标识用于标识所述车位;A recognition unit, configured to identify whether there is vehicle information and a parking space identifier in a parking area tile in the collected image, wherein the parking area tile refers to a parking space area in the image corresponding to a parking space area including a plurality of vertically overlapping parking spaces; A tile, the parking space identifier is used to identify the parking space;
    第一判定单元,用于当识别出所述车位区域图块存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为被占用;A first determining unit, configured to determine that the current state of the parking space area is occupied when it is recognized that the parking space area tile has vehicle information and the parking space identifier does not exist;
    第二判定单元,用于当识别出所述车位区域图块不存在车辆信息且存在所述车位标识,则确定所述车位区域的当前状态为未被占用。A second determining unit is configured to determine that the current state of the parking space area is unoccupied when it is recognized that the parking space area tile does not have vehicle information and the parking space identifier exists.
  8. 如权利要求7所述的车位识别装置,其特征在于,该装置进一步包括:The parking space identification device according to claim 7, wherein the device further comprises:
    第三判定单元,用于当识别出所述车位区域图块不存在车辆信息且不存在所述车位标识,则确定所述车位区域的当前状态为未被占用。A third determining unit is configured to determine that the current state of the parking space area is unoccupied when it is identified that the parking area area tile does not have vehicle information and the parking space identifier does not exist.
  9. 如权利要求7所述的车位识别装置,其特征在于,所述车位标识为二维码标识、和/或数字、和/或字符、和/或条码标识;不同车位上设置的车位标识不同。The parking space identification device according to claim 7, wherein the parking space identification is a two-dimensional code identification, and / or a number, and / or a character, and / or a bar code identification; parking space identifications set on different parking spaces are different.
  10. 如权利要求7所述的车位识别装置,其特征在于,所述识别单元还包括:The parking space recognition device according to claim 7, wherein the recognition unit further comprises:
    神经网络,用于根据输入的所述已采集的图像,识别出所述图像中的车位标识,并输出识别出的所述车位标识。A neural network is configured to recognize a parking space identifier in the image based on the inputted captured image, and output the recognized parking space identifier.
  11. 如权利要求7所述的车位识别装置,其特征在于,该装置还包括:The parking space identification device according to claim 7, further comprising:
    比较单元,用于将所述车位区域的当前状态与所述车位区域的前一状态进行比较,其中,所述车位区域的前一状态是根据针对所述车位区域的相对于所述已采集的图像的前一帧图像而确定的;A comparison unit is configured to compare the current state of the parking space area with a previous state of the parking space area, wherein the previous state of the parking space area is based on Determined by the previous frame of the image;
    第一更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为未被占用,将所述车位标识对应的车位的状态更新为未被占用;A first updating unit, configured to update the state of a parking space corresponding to the parking space identifier to be unoccupied if the current state is different from the previous state and the current state is unoccupied;
    第二更新单元,用于若所述当前状态和所述前一状态不同且所述当前状态为被占用,将从所述前一帧图像识别出的所述车位标识对应的车位的状态更新为被占用。A second updating unit, configured to update the status of the parking space corresponding to the parking space identification identified from the previous frame image to, if the current status is different from the previous status and the current status is occupied; Occupied.
  12. 如权利要求11所述的车位识别装置,其特征在于,该装置还包括:The parking space identification device according to claim 11, further comprising:
    绑定单元,用于若所述车位的状态为被占用,则查询所述车位与占用所述车位的车辆之间是否存在绑定关系,若不存在所述绑定关系,则建立所述绑定关系;A binding unit is configured to query whether there is a binding relationship between the parking space and a vehicle occupying the parking space if the status of the parking space is occupied; if the binding relationship does not exist, establish the binding relationship Fixed relationship
    解绑单元,用于若所述车位的状态为未被占用,则查询所述车位是否存在与车辆的绑定关系,若存在所述绑定关系,则解除所述绑定关系。The unbinding unit is configured to query whether there is a binding relationship between the parking space and the vehicle if the state of the parking space is not occupied, and release the binding relationship if the binding relationship exists.
  13. 一种电子设备,包括处理器及存储器;所述存储器存储有可被所述处理器调用的程序;其中,所述处理器执行所述程序时,实现如权利要求1-7中任意一项所述的车 位识别方法。An electronic device includes a processor and a memory; the memory stores a program that can be called by the processor; wherein when the processor executes the program, the device according to any one of claims 1-7 is implemented The parking space identification method described above.
  14. 一种机器可读存储介质,其上存储有程序,该程序被处理器执行时,实现如权利要求1-7中任意一项所述的车位识别方法。A machine-readable storage medium stores a program thereon. When the program is executed by a processor, the method for identifying a parking space according to any one of claims 1-7 is implemented.
PCT/CN2019/090635 2018-06-25 2019-06-11 Parking space recognition WO2020001263A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810663986.9A CN110633606A (en) 2018-06-25 2018-06-25 Parking space identification method, device and equipment and storage medium
CN201810663986.9 2018-06-25

Publications (1)

Publication Number Publication Date
WO2020001263A1 true WO2020001263A1 (en) 2020-01-02

Family

ID=68968619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090635 WO2020001263A1 (en) 2018-06-25 2019-06-11 Parking space recognition

Country Status (2)

Country Link
CN (1) CN110633606A (en)
WO (1) WO2020001263A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507269A (en) * 2020-04-17 2020-08-07 浙江大华技术股份有限公司 Parking space state identification method and device, storage medium and electronic device
CN112835359A (en) * 2020-12-24 2021-05-25 浙江合众新能源汽车有限公司 AVP control method and device based on visual SLAM technology

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111899548A (en) * 2020-07-31 2020-11-06 上海博泰悦臻电子设备制造有限公司 Vehicle searching method and system for indoor parking lot, storage medium and platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105448100A (en) * 2015-12-15 2016-03-30 重庆凯泽科技有限公司 Reverse vehicle searching method and reverse vehicle searching system
CN106448257A (en) * 2016-12-19 2017-02-22 深圳市捷顺科技实业股份有限公司 Parking space occupation condition detection method and device
CN108022431A (en) * 2017-12-04 2018-05-11 珠海横琴小可乐信息技术有限公司 A kind of method and system that parking stall is detected by video capture image

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104282169B (en) * 2014-09-29 2016-03-02 四川川大智胜软件股份有限公司 Embedded integrated parking space detector and detection method thereof
CN104794931B (en) * 2015-04-15 2018-10-02 深圳市景阳信息技术有限公司 The method and system of parking stall service condition are monitored using video camera
CN106611509A (en) * 2015-10-23 2017-05-03 中兴通讯股份有限公司 Vehicle parking prompt method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105448100A (en) * 2015-12-15 2016-03-30 重庆凯泽科技有限公司 Reverse vehicle searching method and reverse vehicle searching system
CN106448257A (en) * 2016-12-19 2017-02-22 深圳市捷顺科技实业股份有限公司 Parking space occupation condition detection method and device
CN108022431A (en) * 2017-12-04 2018-05-11 珠海横琴小可乐信息技术有限公司 A kind of method and system that parking stall is detected by video capture image

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507269A (en) * 2020-04-17 2020-08-07 浙江大华技术股份有限公司 Parking space state identification method and device, storage medium and electronic device
CN111507269B (en) * 2020-04-17 2023-05-09 浙江大华技术股份有限公司 Parking space state identification method and device, storage medium and electronic device
CN112835359A (en) * 2020-12-24 2021-05-25 浙江合众新能源汽车有限公司 AVP control method and device based on visual SLAM technology

Also Published As

Publication number Publication date
CN110633606A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
WO2020001263A1 (en) Parking space recognition
WO2019223586A1 (en) Method and apparatus for detecting parking space usage condition, electronic device, and storage medium
US9483944B2 (en) Prediction of free parking spaces in a parking area
CN104282169B (en) Embedded integrated parking space detector and detection method thereof
CN110837807A (en) Identification method and system for fake-licensed vehicle
CN112052826A (en) Intelligent enforcement multi-scale target detection method, device and system based on YOLOv4 algorithm and storage medium
CN106384532A (en) Video data analysis method and apparatus thereof, and parking space monitoring system
CN105528912A (en) Indoor parking stall recommendation method and system
CN110619277A (en) Multi-community intelligent deployment and control method and system
CN113688851B (en) Data labeling method and device and fine granularity identification method and device
KR101895374B1 (en) Management apparatus of parking spaces
CN105909116A (en) Vehicle door control method, device and system
CN110291569A (en) A kind of relevant video and lighting system for parking management and control
CN108805184B (en) Image recognition method and system for fixed space and vehicle
KR20210048132A (en) Lifting gate for parking equipped with vehicle recognizer through image analysis based on artificial intelligence and construction method thereof
CN115063746A (en) Vehicle warehousing management method and device, computer equipment and storage medium
CN103106400B (en) A kind of method for detecting human face and device
CN109325755B (en) Electronic billing system based on automobile hub
CN111951601B (en) Method and device for identifying parking positions of distribution vehicles
Zhang et al. Image-based approach for parking-spot detection with occlusion handling
CN103761345A (en) Video retrieval method based on OCR character recognition technology
CN109686110A (en) Parking stall sky expires condition discrimination method and apparatus
CN111639640B (en) License plate recognition method, device and equipment based on artificial intelligence
Anuar et al. Smart campus initiative: car entrance, exit and parking management prototype development
Osabe et al. Solutions to social problems leveraging image analysis technology based on machine learning

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19824918

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19824918

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19824918

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 28.06.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19824918

Country of ref document: EP

Kind code of ref document: A1