Skip to main content

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.5.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ewha_parking-0.1.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file ewha_parking-0.1.5.tar.gz.

File metadata

  • Download URL: ewha_parking-0.1.5.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ewha_parking-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8754e5541f92329b5c335a7c29d18a5381c5db3bbb820b207708711f22130578
MD5 079d2be1ff46946ca3af878b0aa6be64
BLAKE2b-256 ea6d0a3861c2233f5ba6f09fcba33fb997987ee7d671bda8f51ddd6e5e9379cf

See more details on using hashes here.

File details

Details for the file ewha_parking-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: ewha_parking-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for ewha_parking-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b5c4f0015921e75a3511f82d94d8219daa984c4f9729cd76e29c607f741d0c55
MD5 4932272d8fc460984ec82358ed00ab10
BLAKE2b-256 2561a353c9d1c3b235efda38b2b6be285b7502bfb29a7d558d87a7c6b5254d8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page