Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (113 loc) · 7.92 KB
/
Copy pathindex.html
File metadata and controls
115 lines (113 loc) · 7.92 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Computer Vision System | Portfolio Project</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root { --bg: #0d1117; --surface: #161b22; --border: #30363d; --text: #c9d1d9; --text-muted: #8b949e; --accent: #3776AB; --accent-dim: #3776AB22; --green: #238636; --blue: #58a6ff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.hero { padding: 80px 40px 60px; text-align: center; background: linear-gradient(180deg, var(--accent-dim) 0%, var(--bg) 100%); }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 16px; color: #f0f6fc; animation: fadeIn 0.8s ease; }
.hero .lang-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); margin-bottom: 24px; }
.hero .desc { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.7; animation: fadeIn 1s ease; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section { margin: 60px 0; animation: slideUp 0.6s ease; }
.section h2 { font-size: 1.5rem; margin-bottom: 24px; color: #f0f6fc; display: flex; align-items: center; gap: 12px; }
.section h2::before { content: ''; width: 4px; height: 24px; background: var(--accent); border-radius: 2px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tech-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; transition: all 0.2s; }
.tech-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-card span { font-weight: 500; font-size: 0.95rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 12px; transition: all 0.2s; }
.feature-card:hover { border-color: var(--accent); }
.feature-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; color: var(--accent); }
.code-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header { padding: 12px 16px; background: #1c2128; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-header span { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
pre { padding: 24px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; line-height: 1.6; color: #e6edf3; }
.btn-group { display: flex; gap: 16px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--green); color: #fff; border: 1px solid #2ea043; }
.btn-primary:hover { background: #2ea043; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.footer { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 80px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .hero { padding: 60px 20px 40px; } .hero h1 { font-size: 2rem; } .container { padding: 0 20px; } .tech-grid { grid-template-columns: repeat(2, 1fr); } .features-grid { grid-template-columns: 1fr; } }
</style>
</head>
<body>
<div class="hero">
<h1>Computer Vision System</h1>
<div class="lang-badge">Python</div>
<p class="desc">Real-time object detection and image classification system</p>
</div>
<div class="container">
<div class="section">
<h2>Tech Stack</h2>
<div class="tech-grid">
<div class="tech-card"><span>Python 3.12</span></div>
<div class="tech-card"><span>PyTorch</span></div>
<div class="tech-card"><span>OpenCV</span></div>
<div class="tech-card"><span>YOLOv8</span></div>
<div class="tech-card"><span>FastAPI</span></div>
</div>
</div>
<div class="section">
<h2>Features</h2>
<div class="features-grid">
<div class="feature-card"><div class="feature-icon">✓</div><span>Object detection with YOLOv8</span></div>
<div class="feature-card"><div class="feature-icon">✓</div><span>Image classification</span></div>
<div class="feature-card"><div class="feature-icon">✓</div><span>Real-time video processing</span></div>
<div class="feature-card"><div class="feature-icon">✓</div><span>REST API for predictions</span></div>
<div class="feature-card"><div class="feature-icon">✓</div><span>Batch processing support</span></div>
</div>
</div>
<div class="section">
<h2>Code Sample</h2>
<div class="code-block">
<div class="code-header">
<span class="code-dot red"></span>
<span class="code-dot yellow"></span>
<span class="code-dot green"></span>
<span>detector.py</span>
</div>
<pre><code>from ultralytics import YOLO
import cv2
class ObjectDetector:
def __init__(self, model_path: str = "yolov8n.pt"):
self.model = YOLO(model_path)
def detect(self, image_path: str):
results = self.model(image_path)
detections = []
for result in results:
for box in result.boxes:
detections.append({
"class": result.names[int(box.cls)],
"confidence": float(box.conf),
"bbox": box.xyxy.tolist()
})
return detections</code></pre>
</div>
</div>
<div class="btn-group">
<a href="https://github.com/Raphasha27/python-computer-vision-system" class="btn btn-primary">View Source</a>
<a href="https://hub.docker.com/r/raphasha27/python-computer-vision-system" class="btn btn-secondary">Docker Hub</a>
<a href="https://raphasha27.github.io/python-computer-vision-system" class="btn btn-secondary">Live Demo</a>
</div>
</div>
<div class="footer">
Built by <strong>Koketso Raphasha</strong> | raphashakoketso69@gmail.com | <a href="https://github.com/Raphasha27" style="color:var(--accent);text-decoration:none;">GitHub</a>
</div>
</body>
</html>