|
| 1 | +# USB Camera to IP Camera |
| 2 | + |
| 3 | +A complete solution for transforming your USB camera into an IP camera with both web access and a professional desktop client! This system includes a Python server that streams video from any USB camera over your local network, plus a modern GUI client for viewing and managing camera streams. |
| 4 | + |
| 5 | +## 📋 Requirements |
| 6 | + |
| 7 | +- **Python**: 3.7 or higher |
| 8 | +- **Hardware**: USB camera connected to your PC |
| 9 | + |
| 10 | +## 🛠️ Installation |
| 11 | + |
| 12 | +1. **Clone or download** this repository |
| 13 | +2. **Install server dependencies**: |
| 14 | + ```bash |
| 15 | + pip install -r requirements.txt |
| 16 | + ``` |
| 17 | +3. **Install GUI client dependencies**: |
| 18 | + ```bash |
| 19 | + cd gui_client |
| 20 | + pip install -r requirements.txt |
| 21 | + ``` |
| 22 | + |
| 23 | +## 🎯 Quick Start |
| 24 | + |
| 25 | +### 1. Start the IP Camera Server |
| 26 | + |
| 27 | +```bash |
| 28 | +python ip_camera_server.py |
| 29 | +``` |
| 30 | + |
| 31 | +The server will: |
| 32 | +- Detect your USB camera automatically |
| 33 | +- Start streaming on port 5000 |
| 34 | +- Display access URLs in console |
| 35 | +- Create a web interface at `http://localhost:5000` |
| 36 | + |
| 37 | +### 2. Access Your Camera |
| 38 | + |
| 39 | +#### Option A: Web Browser |
| 40 | +- **Local**: `http://localhost:5000` |
| 41 | +- **Network**: `http://YOUR_IP_ADDRESS:5000` |
| 42 | + |
| 43 | +#### Option B: GUI Client |
| 44 | +```bash |
| 45 | +cd gui_client |
| 46 | +python main.py |
| 47 | +``` |
| 48 | + |
| 49 | +Then: |
| 50 | +1. Click "Connect to Camera" or press Ctrl+O |
| 51 | +2. Enter connection details: |
| 52 | + - **IP Address**: `localhost` (or your PC's IP) |
| 53 | + - **Port**: `5000` |
| 54 | + - **Stream Path**: `/video_feed` |
| 55 | +3. Click "Connect" to start streaming |
| 56 | + |
| 57 | + |
0 commit comments