You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/official/ip_camera/README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
-
# USB Camera to IP Camera
1
+
# USB Camera to IP Camera with Barcode Scanning
2
2
3
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
4
5
+
Real-time barcode scanning powered by **Dynamsoft Barcode Reader**! The GUI client also supports live barcode detection with visual overlays showing detected codes directly on the video stream.
6
+
5
7
## 📋 Requirements
6
8
7
9
-**Python**: 3.7 or higher
8
10
-**Hardware**: USB camera connected to your PC
11
+
-[30-day Trial License Key](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv&package=cross-platform) for Dynamsoft Barcode Reader
9
12
10
13
## 🛠️ Installation
11
14
@@ -20,6 +23,13 @@ A complete solution for transforming your USB camera into an IP camera with both
20
23
pip install -r requirements.txt
21
24
```
22
25
26
+
4. Update the license key in `gui_client/barcode_scanner.py` for barcode scanning.
27
+
28
+
```python
29
+
license_key ="LICENSE-KEY"
30
+
```
31
+
32
+
23
33
## 🎯 Quick Start
24
34
25
35
### 1. Start the IP Camera Server
@@ -31,7 +41,6 @@ python ip_camera_server.py
31
41
The server will:
32
42
- Detect your USB camera automatically
33
43
- Start streaming on port 5000
34
-
- Display access URLs in console
35
44
- Create a web interface at `http://localhost:5000`
36
45
37
46
### 2. Access Your Camera
@@ -47,11 +56,17 @@ python main.py
47
56
```
48
57
49
58
Then:
50
-
1. Click "Connect to Camera" or press Ctrl+O
59
+
1. Click "Connect to Camera"
51
60
2. Enter connection details:
52
61
-**IP Address**: `localhost` (or your PC's IP)
53
62
-**Port**: `5000`
54
63
-**Stream Path**: `/video_feed`
55
64
3. Click "Connect" to start streaming
65
+
4.**Enable Barcode Scanning** (optional):
66
+
- Check "Enable Barcode Scanning" in the control panel
67
+
- Point camera at barcodes/QR codes to see real-time detection
68
+
- Detected codes appear as green overlays with yellow text
69
+
- Results are displayed in the "Detected Barcodes" text area
0 commit comments