Spaces:
Running
Running
File size: 13,192 Bytes
ccb7e46 | 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 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | import { motion } from 'framer-motion'
import { Shield, Zap, Lock, Globe, Cpu, BarChart3, ExternalLink, Code, FileCode, Terminal } from 'lucide-react'
const features = [
{
icon: <Lock className="w-6 h-6" />,
title: 'Privacy-Centric',
description: 'Facial verification without biometric storage. Your data stays under your control, fully GDPR compliant.',
color: 'from-green-500 to-emerald-500',
},
{
icon: <Shield className="w-6 h-6" />,
title: 'Zero Storage Architecture',
description: 'No biometric data is stored on our servers. Process and forget - true privacy by design.',
color: 'from-blue-500 to-cyan-500',
},
{
icon: <BarChart3 className="w-6 h-6" />,
title: 'NIST Top 10 Ranked',
description: 'OpenCV FR algorithm ranked among Top 10 globally by NIST FRVT benchmark.',
color: 'from-red-500 to-rose-500',
},
{
icon: <Zap className="w-6 h-6" />,
title: 'Lightning Fast',
description: 'Process face comparisons in milliseconds with our optimized cloud infrastructure.',
color: 'from-yellow-500 to-orange-500',
},
{
icon: <Globe className="w-6 h-6" />,
title: 'Global Cloud',
description: 'Deployed in Singapore, US, and Europe for low-latency access worldwide.',
color: 'from-purple-500 to-pink-500',
},
{
icon: <Cpu className="w-6 h-6" />,
title: 'Multi-Platform SDKs',
description: 'Integrate with Python, C++, or REST API. Flexible solutions for any platform.',
color: 'from-primary-500 to-secondary-400',
},
]
const sdkOptions = [
{
icon: <Code className="w-6 h-6" />,
title: 'Python SDK',
description: 'Full-featured Python library for face recognition',
url: 'https://docs.opencv.fr/python/',
color: 'from-yellow-500 to-orange-500',
},
{
icon: <FileCode className="w-6 h-6" />,
title: 'C++ SDK',
description: 'High-performance native C++ integration',
url: 'https://docs.opencv.fr/cpp/',
color: 'from-blue-500 to-cyan-500',
},
{
icon: <Terminal className="w-6 h-6" />,
title: 'REST API',
description: 'Language-agnostic HTTP API endpoints',
url: 'https://sg.opencv.fr/docs',
color: 'from-green-500 to-emerald-500',
},
]
function Features() {
return (
<section className="py-20">
{/* API Programming Guide Section - FIRST */}
<motion.div
id="api"
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="glass-card p-8 md:p-12 max-w-5xl mx-auto scroll-mt-42"
>
<div className="text-center mb-10">
<h3 className="text-3xl font-bold mb-4">
<span className="gradient-text">API Programming Guide</span>
</h3>
<p className="text-gray-400">
Choose your preferred SDK or API to integrate face recognition
</p>
</div>
{/* SDK Options Grid */}
<div className="grid grid-cols-3 gap-4 mb-10">
{sdkOptions.map((sdk, index) => (
<motion.a
key={sdk.title}
href={sdk.url}
target="_blank"
rel="noopener noreferrer"
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: index * 0.1 }}
whileHover={{ scale: 1.05, y: -5 }}
className="glass p-5 rounded-xl text-center group hover:border-primary-500/50 transition-all cursor-pointer"
>
<div className={`
inline-flex p-3 rounded-xl mb-3
bg-gradient-to-br ${sdk.color}
group-hover:scale-110 transition-transform
`}>
<div className="text-white">{sdk.icon}</div>
</div>
<h4 className="text-white font-semibold mb-1">{sdk.title}</h4>
<p className="text-gray-500 text-xs">{sdk.description}</p>
<ExternalLink className="w-4 h-4 text-gray-600 mx-auto mt-2 group-hover:text-primary-400 transition-colors" />
</motion.a>
))}
</div>
{/* Code Example */}
<div className="bg-dark-300 rounded-xl p-6 overflow-x-auto mb-8">
<div className="flex items-center gap-2 mb-4 text-gray-500 text-sm">
<Code className="w-4 h-4" />
<span>Python Example</span>
</div>
<pre className="text-sm">
<code className="text-gray-300">
<span className="text-purple-400">import</span>{' '}
<span className="text-blue-400">requests</span>
{'\n'}
<span className="text-purple-400">import</span>{' '}
<span className="text-blue-400">base64</span>
{'\n\n'}
<span className="text-gray-500"># Encode images to base64</span>
{'\n'}
<span className="text-blue-400">probe</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-white">[</span>
<span className="text-yellow-400">base64</span>
<span className="text-white">.</span>
<span className="text-yellow-400">b64encode</span>
<span className="text-white">(</span>
<span className="text-yellow-400">open</span>
<span className="text-white">(</span>
<span className="text-green-400">"face1.jpg"</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"rb"</span>
<span className="text-white">).</span>
<span className="text-yellow-400">read</span>
<span className="text-white">()).</span>
<span className="text-yellow-400">decode</span>
<span className="text-white">()]</span>
{'\n'}
<span className="text-blue-400">gallery</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-white">[</span>
<span className="text-yellow-400">base64</span>
<span className="text-white">.</span>
<span className="text-yellow-400">b64encode</span>
<span className="text-white">(</span>
<span className="text-yellow-400">open</span>
<span className="text-white">(</span>
<span className="text-green-400">"face2.jpg"</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"rb"</span>
<span className="text-white">).</span>
<span className="text-yellow-400">read</span>
<span className="text-white">()).</span>
<span className="text-yellow-400">decode</span>
<span className="text-white">()]</span>
{'\n\n'}
<span className="text-gray-500"># Compare faces</span>
{'\n'}
<span className="text-blue-400">response</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-blue-400">requests</span>
<span className="text-white">.</span>
<span className="text-yellow-400">post</span>
<span className="text-white">(</span>
{'\n'}
{' '}<span className="text-green-400">"https://sg.opencv.fr/compare"</span>
<span className="text-white">,</span>
{'\n'}
{' '}<span className="text-blue-400">json</span>
<span className="text-white">=</span>
<span className="text-white">{'{'}</span>
<span className="text-green-400">"probe"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">probe</span>
<span className="text-white">,</span>{' '}
<span className="text-green-400">"gallery"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">gallery</span>
<span className="text-white">{'}'}</span>
<span className="text-white">,</span>
{'\n'}
{' '}<span className="text-blue-400">headers</span>
<span className="text-white">=</span>
<span className="text-white">{'{'}</span>
<span className="text-green-400">"x-api-key"</span>
<span className="text-white">:</span>{' '}
<span className="text-blue-400">API_KEY</span>
<span className="text-white">{'}'}</span>
{'\n'}
<span className="text-white">)</span>
{'\n\n'}
<span className="text-blue-400">score</span>{' '}
<span className="text-white">=</span>{' '}
<span className="text-blue-400">response</span>
<span className="text-white">.</span>
<span className="text-yellow-400">json</span>
<span className="text-white">()[</span>
<span className="text-green-400">"score"</span>
<span className="text-white">]</span>
{' '}
<span className="text-gray-500"># 0.0 to 1.0</span>
</code>
</pre>
<p className="text-gray-500 text-sm mt-3">
Regions: <span className="text-gray-400">sg.opencv.fr</span> (Singapore) | <span className="text-gray-400">us.opencv.fr</span> (US) | <span className="text-gray-400">eu.opencv.fr</span> (Europe)
</p>
</div>
{/* CTA Buttons */}
<div className="flex flex-col sm:flex-row gap-4 justify-center">
<a
href="https://developer.opencv.fr/ui/#/onboard/login"
target="_blank"
rel="noopener noreferrer"
className="px-8 py-4 rounded-xl bg-gradient-to-r from-primary-500 to-secondary-400 text-white font-semibold text-center hover:shadow-lg hover:shadow-primary-500/30 transition-all flex items-center justify-center gap-2"
>
Get Free API Key
<ExternalLink className="w-4 h-4" />
</a>
</div>
{/* Additional Info */}
<p className="text-center text-gray-500 text-sm mt-6">
Sign up at{' '}
<a
href="https://developer.opencv.fr"
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-300 transition-colors"
>
developer.opencv.fr
</a>
{' '}to get your API key and start building
</p>
</motion.div>
{/* Why Choose Us Section - SECOND */}
<div id="features" className="mt-24 scroll-mt-24">
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="text-center mb-16"
>
<h2 className="text-4xl md:text-5xl font-bold mb-4">
Why Choose <span className="gradient-text">Seventh Sense AI</span>
</h2>
<p className="text-gray-400 text-lg max-w-4xl mx-auto">
The face of a smarter, safer future.
<br />
Privacy-centric facial recognition and video analysis solutions for enterprises and governments.
</p>
</motion.div>
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto">
{features.map((feature, index) => (
<motion.div
key={feature.title}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: index * 0.1 }}
>
<FeatureCard {...feature} />
</motion.div>
))}
</div>
</div>
{/* Learn More Section */}
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="mt-16 text-center"
>
<p className="text-gray-400">
Learn more about Seventh Sense AI at{' '}
<a
href="https://www.seventhsense.ai"
target="_blank"
rel="noopener noreferrer"
className="text-primary-400 hover:text-primary-300 transition-colors"
>
www.seventhsense.ai
</a>
</p>
</motion.div>
</section>
)
}
function FeatureCard({ icon, title, description, color }) {
return (
<div className="glass-card p-6 h-full group hover:border-primary-500/30 transition-colors">
<div className={`
inline-flex p-3 rounded-xl mb-4
bg-gradient-to-br ${color} bg-opacity-20
group-hover:scale-110 transition-transform
`}>
<div className="text-white">{icon}</div>
</div>
<h3 className="text-xl font-semibold text-white mb-2">{title}</h3>
<p className="text-gray-400">{description}</p>
</div>
)
}
export default Features |