Analyze frequent and illegal parking patterns using trajectory and GIS data
Project description
ewha-parking
A Python module for detecting Frequent Parking spots from CCTV trajectory data
and identifying Illegal Parking events using GIS layers.
How to use
from ewha_parking.frequent_parking import FrequentParking
from ewha_parking.illegal_parking import IllegalParking
# df: trajectory data (required fields: snr_id, traj_id, dtct_dt, lon/lat or geometry)
# road_df: road data (required fields: CCTV_ID, ufid, geometry)
# frequent parking
frequent_result = FrequentParking(df.copy(), road_df).call()
# illegal parking
illegal_parking = IllegalParking(
zip_path="data/illegal_parking.zip", # ZIP archive containing SHP files
extract_dir="data/illegal_parking_extracted" # Directory to extract SHP files
)
illegal_result = illegal_parking.call(frequent_result)
## Output
- **FrequentParking result**
- Columns: `CCTV_ID`, `time`, `Geometry`, `Leaving_time`, `Traj_ID`, `Duration`, `ufid`
- **IllegalParking result**
- Subset of the above events flagged as illegal
- Rules:
- ≥ 5 minutes: within custom_area, yellow solid line, yellow dashed line, etc.
- ≥ 1 minute: within crosswalk, sidewalk, yellow double line (excluding custom_area)
## Requirements
pandas, numpy, geopandas, shapely
> All SHP layers are assumed to use EPSG:4326 (WGS84).
> If your data uses a different CRS, please reproject it before analysis.
## License
This project is licensed under JiwonKim License.
## Contact
kimjiwon4007@ewha.ac.kr
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ewha_parking-0.1.1.tar.gz
(8.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ewha_parking-0.1.1.tar.gz.
File metadata
- Download URL: ewha_parking-0.1.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86c9d56df8742a43ebf9b54388f933cee13125362be338ee182a8d17ff239d88
|
|
| MD5 |
02bdb8336c5502451b44fe7b53078a58
|
|
| BLAKE2b-256 |
ae7f622561b9281a06374ffb2887c93b6b05cef0dcfcfa650dafeb540581fc12
|
File details
Details for the file ewha_parking-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ewha_parking-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88bd518e7f20bc152618480198eaf39be80a09af5ad7cad2230dcb633ecfa271
|
|
| MD5 |
af2292f01bae38c40caabbf9681ff99d
|
|
| BLAKE2b-256 |
c3c9d76e88c109249f66e04697da38fb44ab22541de46a2422bfdf86decfcc53
|