- 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
29 lines
842 B
Bash
Executable File
29 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
# Helper script to set LD_LIBRARY_PATH for Sharp before running commands
|
|
# This ensures Sharp can find its bundled libvips library
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
SHARP_LIB_PATH="$PROJECT_DIR/node_modules/sharp/node_modules/@img/sharp-libvips-linux-x64/lib"
|
|
|
|
# Add node_modules/.bin to PATH if it exists
|
|
if [ -d "$PROJECT_DIR/node_modules/.bin" ]; then
|
|
export PATH="$PROJECT_DIR/node_modules/.bin:$PATH"
|
|
fi
|
|
|
|
# Change to project directory to ensure relative paths work
|
|
cd "$PROJECT_DIR" || exit 1
|
|
if [ -d "$SHARP_LIB_PATH" ]; then
|
|
export LD_LIBRARY_PATH="$SHARP_LIB_PATH:${LD_LIBRARY_PATH:-}"
|
|
exec "$@"
|
|
else
|
|
echo "Warning: Sharp libvips library not found at $SHARP_LIB_PATH"
|
|
echo "Sharp image processing may not work correctly."
|
|
exec "$@"
|
|
fi
|
|
|
|
|
|
|
|
|
|
|