Skip to content

barpavel/Smart-CAR-Dashboard-GUI-in-Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Dashboard (HMI) Prototype

Welcome to the Car Dashboard (HMI) prototype project! This simple yet intuitive dashboard is designed for a comprehensive in-car user experience. Check out the features and planned enhancements below.

Features

  1. Speedometer

    • Real-time display of vehicle speed for a safer driving experience.
  2. Fuel Status

    • Keep track of your fuel level to plan your refueling stops effectively.
  3. Date & Time

    • Display a real-time date and time on the Dashboard tab.
  4. Door Status

    • Monitor the status of your car doors for enhanced security.
  5. AC/Music Controller

    • Control your car's air conditioning and music system seamlessly from the dashboard.
  6. Map for Navigation

    • Integrated navigation system to guide you through your journeys.
    • Implemented an automatic location detection for map using IP geolocation.
  7. Weather Forecast

    • Stay informed about the weather conditions to plan your trips accordingly.
  8. Camera Streaming

    • Access live camera feeds for improved awareness and safety.
    • Supports turning the camera on & off.
    • Handles camera failures (camera is unavailable or gets disconnected during use).
  9. Prerecorded Video Streaming

    • When camera is unavailable (i.e., during development or demos), you can play video instead.
    • Supports pausing the video & resuming it from the same frame.
    • Handles video file failures (file doesn't exist or video stream gets interrupted/corrupted).
  10. Kiosk Mode

  • Fullscreen operation without window decorations, preventing access to the underlying OS.
  • Designed for embedded systems, automotive displays, and dedicated hardware installations.

Development

  1. Create a Python virtual environment (optional but recommended):
$ python3 -m venv .venv
  1. Activate the Python virtual environment:
    1. For Linux or MacOS
    $ source .venv/bin/activate
    1. For Windows
    $ .\.venv\Scripts\activate

Prerequisites

Install the mandatory dependencies using the following command:

(.venv) $ pip install -r requirements.txt

Execute

Run the application:

(.venv) $ python app.py

or

(.venv) $ python app.py --camera-device 4

or

(.venv) $ python app.py --play-video /path/to/your/video.mp4

Use --help to display the available options:

(.venv) $ python app.py --help
usage: app.py [-h] [--camera-device idx | --play-video path] [--kiosk]

Smart Car Dashboard GUI

options:
  -h, --help            show this help message and exit
  --camera-device idx   [Optional] camera device index to use (default: 0)
  --play-video path     [Optional] path to video file to play instead of camera
  --kiosk               [Optional] run in kiosk mode (fullscreen + no window decorations)

Screenshot

Todo

  1. Backend

    • Develop the backend for data processing and communication.
  2. ADAS Integration

    • Integrate Advanced Driver Assistance Systems for enhanced safety.
  3. Virtual Assistant Integration

    • Implement a virtual assistant to provide hands-free control and assistance.

Feel free to contribute or provide feedback on the project. Let's make driving more enjoyable and safer together!

About

A Simple CAR Dashboard (HMI) prototype build for a project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%