DDWS Computer Vision Model

byvelabsTask:
Object Detection
License:CC BY 4.0811 views36 downloads

How to use the DDWS Detection API

Try This Model

Drop an image here or click to upload

Or try a test image 

Code Snippets

from inference_sdk import InferenceHTTPClient

CLIENT = InferenceHTTPClient(
    api_url="https://serverless.roboflow.com",
    api_key="API_KEY"
)

result = CLIENT.infer("YOUR_IMAGE.jpg", model_id="ddws-icv9n/2")
Give your agent everything it needs

Or, Use Free Drinking, 0 and 1 Detection API

Powered by general detection model

Code
pip install inference-sdk
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workspace
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="<YOUR_WORKSPACE>",
  workflow_id="<YOUR_WORKFLOW_ID>",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  parameters={
    "classes": "Drinking, 0, 1, 2, 3"
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Run on custom image

Drop an image here or click to upload

Detecting classes:
Or try a test image 

About DDWS Model

Here are a few use cases for this project:

  1. Road Safety Applications: The DDWS model can be used in vehicles' software systems to detect unsafe driving behaviors such as driving while drinking, texting, or talking on the phone. It can then initiate safety measures like alerting the driver or activating an auto-brake system.

  2. Surveillance System: The model could be used in conjunction with traffic cameras to automatically detect drivers engaging in reckless activities like drinking while driving or texting. This data can then be used by law enforcement to issue warnings or fines and improve road safety.

  3. Transportation Services: Taxi and rideshare services could utilize this model to ensure the safety and professionalism of their drivers. If a driver is detected engaging in any of these unsafe practices, the information could be used for training or disciplinary measures.

  4. Traffic Accident Analysis: The DDWS model can be useful for insurance companies and traffic accident investigators to determine the causes of an accident. If the driver was engaged in any distracting activity, the model would serve as an effective tool in understanding culpability and liability.

  5. Autonomous Vehicle Development: The model might be employed in the development of autonomous vehicles for understanding human driver behavior and situations which commonly lead to accidents, thus refining autonomous driving algorithms for safer navigation.

Cite This Project

LicenseCC BY 4.0

If you use this dataset in a research paper, please cite it using the following BibTeX:

@misc{ ddws-icv9n_dataset,
  title = { DDWS Dataset },
  type = { Open Source Dataset },
  author = { velabs },
  howpublished = { \url{ https://universe.roboflow.com/velabs/ddws-icv9n } },
  url = { https://universe.roboflow.com/velabs/ddws-icv9n },
  journal = { Roboflow Universe },
  publisher = { Roboflow },
  year = { 2023 },
  month = { may },
  note = { visited on 2026-07-29 },
}

Similar Projects

See More