- Add debug mode support for encoding statistics in API responses - Debug info includes encoding length, min/max/mean/std, and first 10 values - Frontend logs encoding stats to browser console when debug enabled - Identify page enables debug mode by default - Implement distance-based confidence thresholds for stricter matching - Borderline distances require higher confidence (70-95% vs 50%) - Applied when use_distance_based_thresholds=True (auto-match) - Reduces false positives for borderline matches - Dual tolerance system for auto-match - Default tolerance 0.6 for regular browsing (more lenient) - Run auto-match button uses 0.5 tolerance with distance-based thresholds (stricter) - Auto-accept threshold updated to 85% (from 70%) - Enhance pose detection with single-eye detection - Profile threshold reduced from 30° to 15° (stricter) - Detect single-eye visibility for extreme profile views - Infer profile direction from landmark visibility - Improved face width threshold (20px vs 10px) - Clean up debug code - Remove test photo UUID checks from production code - Remove debug print statements - Replace print statements with proper logging
68 lines
1.9 KiB
HTML
68 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Enable Developer Mode</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
background: #f5f5f5;
|
|
}
|
|
.container {
|
|
background: white;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
text-align: center;
|
|
}
|
|
.success {
|
|
color: #10b981;
|
|
font-weight: bold;
|
|
margin-top: 1rem;
|
|
}
|
|
button {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
margin-top: 1rem;
|
|
}
|
|
button:hover {
|
|
background: #2563eb;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Enable Developer Mode</h1>
|
|
<p>Click the button below to enable Developer Mode for PunimTag.</p>
|
|
<button onclick="enableDevMode()">Enable Developer Mode</button>
|
|
<div id="result"></div>
|
|
</div>
|
|
<script>
|
|
function enableDevMode() {
|
|
localStorage.setItem('punimtag_developer_mode', 'true');
|
|
const result = document.getElementById('result');
|
|
result.innerHTML = '<p class="success">✅ Developer Mode enabled! Redirecting...</p>';
|
|
setTimeout(() => {
|
|
window.location.href = '/';
|
|
}, 1500);
|
|
}
|
|
|
|
// Check if already enabled
|
|
if (localStorage.getItem('punimtag_developer_mode') === 'true') {
|
|
document.getElementById('result').innerHTML = '<p class="success">✅ Developer Mode is already enabled!</p>';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|
|
|