File size: 4,722 Bytes
1f4e4ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# πŸ“¦ Installation Guide - Sign Language Interpreter

This guide provides detailed installation instructions for the Sign Language Interpreter system.

## πŸ”§ System Requirements

- **Python**: 3.8 - 3.11 (recommended: 3.9 or 3.10)
- **Operating System**: Windows 10/11, macOS 10.14+, or Linux
- **Hardware**: 
  - Webcam (built-in or external)
  - 4GB RAM minimum (8GB recommended)
  - 2GB free disk space
- **Internet**: Required for initial setup and package installation

## πŸš€ Quick Installation

### Option 1: Automated Setup (Recommended)

1. **Download and Extract**
   ```bash
   # If using git
   git clone https://github.com/yourusername/sign-language-interpreter.git
   cd sign-language-interpreter
   
   # Or download and extract ZIP file
   ```

2. **Run Setup Script**
   ```bash
   python setup.py
   ```
   
   This will:
   - Create necessary directories
   - Install required packages
   - Create a sample model
   - Verify installation

### Option 2: Manual Installation

1. **Create Virtual Environment**
   ```bash
   python -m venv venv
   
   # Activate virtual environment
   # Windows:
   venv\Scripts\activate
   # macOS/Linux:
   source venv/bin/activate
   ```

2. **Install Dependencies**
   ```bash
   pip install -r requirements.txt
   ```

3. **Create Directories**
   ```bash
   mkdir models dataset logs examples
   ```

4. **Create Sample Model**
   ```bash
   python create_simple_model.py
   ```

## πŸ” Verification

Run the system test to verify everything is working:

```bash
python test_system.py
```

Expected output:
```
🀟 Sign Language Interpreter - System Test
==================================================

Dependencies:
βœ… All dependencies installed

Camera:
βœ… Camera working

MediaPipe:
βœ… MediaPipe working

Model Files:
βœ… Model files found

Predictor:
βœ… Predictor working - Sample prediction: hello (0.85)

==================================================
Test Results: 5/5 tests passed
πŸŽ‰ All tests passed! System is ready to use.
```

## πŸš€ Running the Application

### Web Interface (Recommended)
```bash
streamlit run app.py
```

### Command Line Interface
```bash
python examples/basic_usage.py
```

## πŸ› οΈ Troubleshooting

### Common Issues

1. **Python Version Error**
   ```
   Error: This package requires Python 3.8-3.11
   ```
   **Solution**: Install a compatible Python version

2. **Camera Access Error**
   ```
   Error: Camera not accessible
   ```
   **Solutions**:
   - Close other applications using the camera
   - Check camera permissions
   - Try a different camera index

3. **Package Installation Error**
   ```
   Error: Could not find a version that satisfies the requirement
   ```
   **Solutions**:
   - Update pip: `python -m pip install --upgrade pip`
   - Try installing packages individually
   - Check Python version compatibility

4. **TensorFlow Installation Issues**
   ```
   Error: No matching distribution found for tensorflow
   ```
   **Solutions**:
   - Use Python 3.8-3.11
   - Install TensorFlow separately: `pip install tensorflow`
   - Use CPU-only version: `pip install tensorflow-cpu`

### Platform-Specific Issues

#### Windows
- **Visual C++ Error**: Install Microsoft Visual C++ Redistributable
- **Long Path Error**: Enable long path support in Windows settings

#### macOS
- **Permission Error**: Grant camera access in System Preferences
- **Homebrew Issues**: Update Homebrew and Python

#### Linux
- **Camera Error**: Install v4l-utils: `sudo apt install v4l-utils`
- **Permission Error**: Add user to video group: `sudo usermod -a -G video $USER`

## πŸ”„ Updates

To update the system:

1. **Update Code**
   ```bash
   git pull  # If using git
   ```

2. **Update Dependencies**
   ```bash
   pip install -r requirements.txt --upgrade
   ```

3. **Test System**
   ```bash
   python test_system.py
   ```

## πŸ†˜ Getting Help

If you encounter issues:

1. **Check Documentation**
   - Read `README.md` for overview
   - Check `QUICKSTART.md` for basic usage
   - Review this installation guide

2. **Run Diagnostics**
   ```bash
   python test_system.py --verbose
   ```

3. **Community Support**
   - GitHub Issues: Report bugs and feature requests
   - Discord: Join our community chat
   - Email: support@signlanguage.ai

## πŸ“‹ Next Steps

After successful installation:

1. **Try the Demo**: `streamlit run app.py`
2. **Collect Data**: `python data_collection.py`
3. **Train Model**: `python train_model.py`
4. **Read Documentation**: Check `docs/` folder for guides

## πŸ” Security Notes

- The application only accesses your camera locally
- No data is sent to external servers
- All processing happens on your device
- You can review the source code for transparency