Method and device for detecting illegal parking, and electronic device
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsGuanhao Wang, Zhi Ye
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method for detecting illegal parking. The method includes: obtaining a detection frame having a category of vehicle from an image acquired by an acquisition module through a first neural network to determine coordinate information of the detection frame; determining whether an area corresponding to the detection frame in the image is an illegal parking area through a second neural network; and when determining that the area is the illegal parking area, determining whether the coordinate information of the detection frame is changed within a preset period of time to determine whether the vehicle is parked illegally.
Claims15
A method for detecting illegal parking, comprising:
- obtaining a detection frame having a category of vehicle from an image through a first neural network to determine coordinate information of the detection frame;
- determining whether an area corresponding to the detection frame in the image is an illegal parking area through a second neural network;
- and
- in response to determining that the area is the illegal parking area, determining whether the coordinate information of the detection frame is changed within a preset period of time to determine whether the vehicle is parked illegally;
- wherein determining whether the area corresponding to the detection frame in the image is the illegal parking area through the second neural network, comprises:
- inputting the image to the second neural network to output a road category corresponding to each pixel of the image and obtain a correspondence between a coordinate of each pixel and the road category;
- obtaining the coordinate of each pixel of the image within the detection frame, and obtaining the road category of each pixel within the detection frame based on the correspondence between the coordinate of each pixel and the road category;
- and
- determining whether the area corresponding to the detection frame is the illegal parking area, based on the road category of each pixel within the detection frame and a preset rule.
A non-transitory computer-readable medium, having a computer program stored thereon that, when executed by a processor, a method for detecting illegal parking implemented, the method comprising:
- obtaining a detection frame having a category of vehicle from an image through a first neural network to determine coordinate information of the detection frame;
- determining whether an area corresponding to the detection frame in the image is an illegal parking area through a second neural network;
- and
- in response to determining that the area is the illegal parking area, determining whether the coordinate information of the detection frame is changed within a preset period of time to determine whether the vehicle is parked illegally;
- wherein determining whether the area corresponding to the detection frame in the image is the illegal parking area through the second neural network, comprises:
- inputting the image to the second neural network to output a road category corresponding to each pixel of the image and obtain a correspondence between a coordinate of each pixel and the road category;
- obtaining the coordinate of each pixel of the image within the detection frame, and obtaining the road category of each pixel within the detection frame based on the correspondence between the coordinate of each pixel and the road category;
- and
- determining whether the area corresponding to the detection frame is the illegal parking area, based on the road category of each pixel within the detection frame and a preset rule.
An electronic device, comprising:
- one or more processors;
- and
- a storage device, having one or more programs stored thereon,
- wherein when the one or more programs are executed by the one or more processors, the one or more processors are configured to:
- obtain a detection frame having a category of vehicle from an image through a first neural network to determine coordinate information of the detection frame;
- determine whether an area corresponding to the detection frame in the image is an illegal parking area through a second neural network;
- and
- in response to determining that the area is the illegal parking area, determine whether the coordinate information of the detection frame is changed within a preset period of time to determine whether the vehicle is parked illegally;
- wherein the one or more processors are configured to determine whether the area corresponding to the detection frame in the image is the illegal parking area through the second neural network by:
- inputting the image to the second neural network to output a road category corresponding to each pixel of the image and obtain a correspondence between a coordinate of each pixel and the road category;
- obtaining the coordinate of each pixel of the image within the detection frame, and obtaining the road category of each pixel within the detection frame based on the correspondence between the coordinate of each pixel and the road category;
- and
- determining whether the area corresponding to the detection frame is the illegal parking area, based on the road category of each pixel within the detection frame and a preset rule.
Dependencies are inferred from the claim text.