LifeTrace FAQ
Installation Related
Q: What should I do if dependency installation fails?
A: Try the following solutions:
- Use Chinese mirror:
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple- Upgrade pip:
pip install --upgrade pip- Install key dependencies separately:
pip install rapidocr-onnxruntime
pip install chromadb
pip install flaskQ: What if RapidOCR installation fails?
A: RapidOCR may require a specific version:
# Uninstall existing version
pip uninstall rapidocr-onnxruntime
# Install specific version
pip install rapidocr-onnxruntime==1.3.0On macOS, you may need to install Xcode command line tools:
xcode-select --installQ: ChromaDB initialization failed?
A: Ensure sufficient disk space and check permissions:
# Create data directory
mkdir -p ./chromadb
# Check permissions
chmod -R 755 ./chromadb
# Reinitialize
python init_db.pyUsage Related
Q: Screenshot service didn't start automatically?
A: Check the following:
- Confirm service is running:
ps aux | grep screenshot_service- Check log file:
tail -f logs/screenshot.log- Manually start service:
python screenshot_service.py --debugQ: What if OCR recognition is inaccurate?
A: Try the following optimizations:
- Adjust image quality:
screenshot:
quality: 95 # Increase quality (1-100)- Change OCR language model:
ocr:
language: ch_en # Chinese-English mixed- Enable post-processing:
ocr:
post_process: trueQ: Search results not accurate?
A: Optimize search configuration:
- Adjust similarity threshold:
search:
similarity_threshold: 0.6 # Lower threshold (0-1)- Increase number of results:
curl -X POST http://localhost:5000/api/search \
-d '{"query": "keyword", "limit": 50}'- Use semantic search instead of keyword search
Q: What if storage space is too large?
A: Optimize storage strategy:
- Lower image quality:
screenshot:
quality: 70- Increase screenshot interval:
screenshot:
interval: 300 # 5 minutes- Regularly cleanup old data:
lifetrace cleanup --before 2025-09-01- Enable image compression:
screenshot:
compress: truePerformance Related
Q: LifeTrace consuming too much CPU?
A: Performance optimization:
- Adjust screenshot interval to reduce frequency
- Disable real-time OCR, switch to batch processing:
ocr:
realtime: false
batch_size: 10- Limit OCR threads:
ocr:
max_threads: 2Q: Database query slow?
A: Database optimization:
- Rebuild index:
python manage.py rebuild-index- Cleanup old data
- Increase memory cache:
database:
cache_size: 1024 # MBQ: Frontend interface lagging?
A: Frontend optimization:
- Reduce per-page display count
- Enable virtual scrolling
- Optimize image loading (lazy loading)
Privacy & Security
Q: How to avoid capturing sensitive information?
A: Set application blacklist:
screenshot:
blacklist:
- "1Password"
- "Bitwarden"
- "Banking App"
- "Private Browser"Or set region exclusion:
screenshot:
exclude_regions:
- x: 0
y: 0
width: 100
height: 100Q: Will data be uploaded to cloud?
A: LifeTrace is a completely local application. All data is stored locally and will not be uploaded to any cloud server. Your data is completely under your control.
Q: How to encrypt stored data?
A: Enable data encryption:
security:
encryption: true
encryption_key: "your-secret-key"Or use full disk encryption (such as BitLocker, FileVault).
Feature Related
Q: Does it support multiple monitors?
A: Yes, LifeTrace supports multiple monitors:
screenshot:
multi_monitor: true
# Specify monitors (optional)
monitors: [0, 1] # Capture 1st and 2nd monitorQ: Can data be exported?
A: Yes, multiple formats are supported:
# JSON format
lifetrace export --format json --output data.json
# CSV format
lifetrace export --format csv --output data.csv
# Archive export with images
lifetrace export --format archive --output backup.zipQ: Does it support cloud sync?
A: Current version doesn't directly support cloud sync, but you can:
- Use cloud storage to sync data directory
- Use rsync for regular backup
- Build your own sync service
Q: Can it be used on multiple devices?
A: Yes, but requires separate deployment. For data sharing:
- Use shared storage
- Build centralized server
- Use data export/import function
Error Handling
Q: "Port already in use" error?
A: Port is occupied:
# Find process occupying port
lsof -i :5000
# Kill process
kill -9 <PID>
# Or change port
python app.py --port 5001Q: "Permission denied" error?
A: Permission issue:
# Check file permissions
ls -la
# Modify permissions
chmod -R 755 .
# Use sudo (carefully)
sudo python app.pyQ: OCR returns garbled text?
A: Encoding issue:
- Check system encoding:
locale- Set correct encoding:
export LANG=en_US.UTF-8- Specify in config file:
ocr:
encoding: utf-8Development Related
Q: How to contribute code?
A: Welcome to contribute!
- Fork project repository
- Create feature branch
- Submit code
- Create Pull Request
Q: How to develop custom plugins?
A: LifeTrace supports plugin system:
# my_plugin.py
from lifetrace.plugin import Plugin
class MyPlugin(Plugin):
def on_screenshot(self, screenshot):
# Custom processing
passRegister plugin:
plugins:
- path: ./plugins/my_plugin.py
enabled: trueQ: Where is the API documentation?
A: After starting the service, visit:
http://localhost:5000/api/docsOr see Online API Documentation
Community Support
Q: How to get help when encountering problems?
A: Multiple channels:
- Check GitHub Issues
- Submit new Issue
- Join discussion community
- Check online documentation
Q: How to report bugs?
A: Submit an Issue on GitHub, please include:
- Detailed problem description
- Reproduction steps
- System environment information
- Related logs and error messages
- Screenshots (if applicable)
Q: Are there plans to add new features?
A: Welcome to check the Roadmap, or submit feature suggestions.
Have Other Questions?
If the above content doesn't solve your problem, please:
- Visit GitHub Repository
- Submit Issue
- Check Complete Documentation