Skip to content

BusBom/Qt_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚌 Busbom - Smart Bus Queue Guide System (Qt Client)

Busbom is a smart bus stop system based on network cameras and STM32 LED displays.
This Qt-based client provides a real-time dashboard for bus approach detection, passenger guidance, and remote configuration.



Features

Login Page Main Dashboard

  • Login & Sign Up UI
    • User authentication via email and password
    • Password confirmation and duplicate email validation
    • Warning dialogs for login failures and invalid inputs




image
  • Live Dashboard
    • Platform selection and real-time status indicators (Server, Camera, Display)
    • RTSP live video stream and recorded video playback
    • Bus number and platform assignment display




Image 1 Image 2

Image 3 Image 4

  • Settings
    • Network: Set API URL, port, auto-connect
    • Camera: Adjust brightness, contrast, exposure, saturation
    • ROI: Designate platform areas directly on the captured image
    • Sleep Mode: Schedule stream off/on time (e.g., 01:00 to 05:00)





Architecture

[LoginPage] ⇄ [SignUpPage] ⇨ [MainWindow]
                                 └── [SettingsDialog]
                                        ├── Network Settings
                                        ├── Camera Settings (with preview)
                                        ├── ROI Settings (draw directly on canvas)
                                        └── Sleep Mode Configuration



Build Instructions

1. Dependencies

Make sure the following packages are installed:

  • Qt 6.x (Widgets, Network, Multimedia, Sql)
  • OpenCV
  • CMake ≥ 3.19

2. Build Steps

git clone https://github.com/yourusername/BusbomQt.git
cd BusbomQt
mkdir build && cd build
cmake ..
cmake --build .

※ Make sure to configure your OpenCV_DIR correctly in CMakeLists.txt.




Required Files

Place the following files in the same directory as the compiled executable (usually the build/ folder):

config.json

This file contains server and video stream information.
Here’s an example format:

{
  "api_base_url": "https://192.168.0.xx",
  "camera_url": "https://192.168.0.xx",
  "video_url": "http://192.168.0.xx",
  "rtsp_url": "rtsp://192.168.0.xx/profile2/media.smp"
}

SSL Certificates (for HTTPS)

If your server requires HTTPS, also place the following:

  • client.cert.pem
  • client.key.pem
  • ca.cert.pem



Database

  • Uses SQLite with a local file user.db
  • Automatically created on first launch
  • Table structure:
    CREATE TABLE users (
      id INTEGER PRIMARY KEY AUTOINCREMENT,
      email TEXT UNIQUE,
      password TEXT
    );



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •