Skip to main content

ewha-congestions

A Python module for calculating and analyzing three types of congestion—Road, PM, and Pedestrian congestion—using trajectory data collected from CCTV systems. It includes safety-aware adjustments based on pedestrian-vehicle and pedestrian-pedestrian interactions.

How to use

'''python from ewha_congestions.three_congestions import processing_congestions

df = your data. data index must be DatetimeIndex as "dtct_dt". data must has point geometry as "geomatry", "snr_id", "distance", "speed", "acceleration", "traj_id", "direction", "mf_type", and "apr_code"

road_shp = your road data. road data must has Polygon geometry of roads as "geometry" and CCTV ID as "snr_id".

road_shp = road_shp.to_crs("EPSG:5179") for calculate road area

road_cong, ped_cong, pm_cong = processing_congestions(df, road_shp, 3600).call()

''' df: includes object tracking data with fields like snr_id, mf_type, apr_code, geometry, dtct_dt, speed, and acceleration.

road_df: includes road information with fields snr_id and geometry.

interval: time window (in seconds) over which congestion is aggregated and computed.

Output

Each output (road_cong, ped_cong, pm_cong) is a DataFrame with:

CCTV_ID: unique identifier for each camera

time: timestamp of the congestion record

congestion_level: integer from 0 to 4

0: Excellent (≤ 0.2)

1: Good (≤ 0.4)

2: Normal (≤ 0.6)

3: Crowded (≤ 0.8)

4: Very Crowded (> 0.8)

Congestion Types Type | Description Road Congestion | Combined area occupied by all moving objects divided by the road polygon area PM Congestion | PM area only, normalized by unoccupied space (excluding pedestrian & vehicle) Pedestrian Congestion | Road congestion adjusted using pedestrian-pedestrian and pedestrian-vehicle conflicts

Requirements

numpy pandas geopandas movingpandas tqdm shapely geopy

License

This project is licensed under the JiyoonLee License.

Contact

0197black@gmail.com

Metadata

Release files for ewha-congestions 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ewha-congestions 0.2.0
File Size Uploaded Provenance Actions
ewha_congestions-0.2.0.tar.gz 9.7 kB Without provenance Details for ewha_congestions-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ewha-congestions 0.2.0
File Interpreter ABI Platform Actions
ewha_congestions-0.2.0-py3-none-any.whl Python 3 none any Details for ewha_congestions-0.2.0-py3-none-any.whl

Total release size: 18.8 kB

Release files / ewha_congestions-0.2.0.tar.gz

Download URL ewha_congestions-0.2.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b23bc9f9a81f844a9ee60bc85cc7cac21940b833e7d29b3e2bd066c6ff3a8585
BLAKE2b-256 checksum
How to use checksums
b82f3f44c8a7efba46e0f8e1df28edf8ff9aad14a9a80bd42d7eae46985f7d41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / ewha_congestions-0.2.0-py3-none-any.whl

Download URL ewha_congestions-0.2.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9f4b42adc1d97d1ad7cd3052c4918d930ed4f1c95403d455b70638a00e9c5f4
BLAKE2b-256 checksum
How to use checksums
84283b5dd48bf4019b1450ef065281cd483cadeb7c27e0362788d971a89d8bf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for ewha-congestions 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page