Skip to content

LifeTrace FAQ

Q: What should I do if dependency installation fails?

A: Try the following solutions:

  1. Use Chinese mirror:
bash
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. Upgrade pip:
bash
pip install --upgrade pip
  1. Install key dependencies separately:
bash
pip install rapidocr-onnxruntime
pip install chromadb
pip install flask

Q: What if RapidOCR installation fails?

A: RapidOCR may require a specific version:

bash
# Uninstall existing version
pip uninstall rapidocr-onnxruntime

# Install specific version
pip install rapidocr-onnxruntime==1.3.0

On macOS, you may need to install Xcode command line tools:

bash
xcode-select --install

Q: ChromaDB initialization failed?

A: Ensure sufficient disk space and check permissions:

bash
# Create data directory
mkdir -p ./chromadb

# Check permissions
chmod -R 755 ./chromadb

# Reinitialize
python init_db.py

Q: Screenshot service didn't start automatically?

A: Check the following:

  1. Confirm service is running:
bash
ps aux | grep screenshot_service
  1. Check log file:
bash
tail -f logs/screenshot.log
  1. Manually start service:
bash
python screenshot_service.py --debug

Q: What if OCR recognition is inaccurate?

A: Try the following optimizations:

  1. Adjust image quality:
yaml
screenshot:
  quality: 95  # Increase quality (1-100)
  1. Change OCR language model:
yaml
ocr:
  language: ch_en  # Chinese-English mixed
  1. Enable post-processing:
yaml
ocr:
  post_process: true

Q: Search results not accurate?

A: Optimize search configuration:

  1. Adjust similarity threshold:
yaml
search:
  similarity_threshold: 0.6  # Lower threshold (0-1)
  1. Increase number of results:
bash
curl -X POST http://localhost:5000/api/search \
  -d '{"query": "keyword", "limit": 50}'
  1. Use semantic search instead of keyword search

Q: What if storage space is too large?

A: Optimize storage strategy:

  1. Lower image quality:
yaml
screenshot:
  quality: 70
  1. Increase screenshot interval:
yaml
screenshot:
  interval: 300  # 5 minutes
  1. Regularly cleanup old data:
bash
lifetrace cleanup --before 2025-09-01
  1. Enable image compression:
yaml
screenshot:
  compress: true

Q: LifeTrace consuming too much CPU?

A: Performance optimization:

  1. Adjust screenshot interval to reduce frequency
  2. Disable real-time OCR, switch to batch processing:
yaml
ocr:
  realtime: false
  batch_size: 10
  1. Limit OCR threads:
yaml
ocr:
  max_threads: 2

Q: Database query slow?

A: Database optimization:

  1. Rebuild index:
bash
python manage.py rebuild-index
  1. Cleanup old data
  2. Increase memory cache:
yaml
database:
  cache_size: 1024  # MB

Q: Frontend interface lagging?

A: Frontend optimization:

  1. Reduce per-page display count
  2. Enable virtual scrolling
  3. Optimize image loading (lazy loading)

Privacy & Security

Q: How to avoid capturing sensitive information?

A: Set application blacklist:

yaml
screenshot:
  blacklist:
    - "1Password"
    - "Bitwarden"
    - "Banking App"
    - "Private Browser"

Or set region exclusion:

yaml
screenshot:
  exclude_regions:
    - x: 0
      y: 0
      width: 100
      height: 100

Q: 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:

yaml
security:
  encryption: true
  encryption_key: "your-secret-key"

Or use full disk encryption (such as BitLocker, FileVault).

Q: Does it support multiple monitors?

A: Yes, LifeTrace supports multiple monitors:

yaml
screenshot:
  multi_monitor: true
  # Specify monitors (optional)
  monitors: [0, 1]  # Capture 1st and 2nd monitor

Q: Can data be exported?

A: Yes, multiple formats are supported:

bash
# 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.zip

Q: Does it support cloud sync?

A: Current version doesn't directly support cloud sync, but you can:

  1. Use cloud storage to sync data directory
  2. Use rsync for regular backup
  3. Build your own sync service

Q: Can it be used on multiple devices?

A: Yes, but requires separate deployment. For data sharing:

  1. Use shared storage
  2. Build centralized server
  3. Use data export/import function

Error Handling

Q: "Port already in use" error?

A: Port is occupied:

bash
# Find process occupying port
lsof -i :5000

# Kill process
kill -9 <PID>

# Or change port
python app.py --port 5001

Q: "Permission denied" error?

A: Permission issue:

bash
# Check file permissions
ls -la

# Modify permissions
chmod -R 755 .

# Use sudo (carefully)
sudo python app.py

Q: OCR returns garbled text?

A: Encoding issue:

  1. Check system encoding:
bash
locale
  1. Set correct encoding:
bash
export LANG=en_US.UTF-8
  1. Specify in config file:
yaml
ocr:
  encoding: utf-8

Q: How to contribute code?

A: Welcome to contribute!

  1. Fork project repository
  2. Create feature branch
  3. Submit code
  4. Create Pull Request

See Contribution Guide

Q: How to develop custom plugins?

A: LifeTrace supports plugin system:

python
# my_plugin.py
from lifetrace.plugin import Plugin

class MyPlugin(Plugin):
    def on_screenshot(self, screenshot):
        # Custom processing
        pass

Register plugin:

yaml
plugins:
  - path: ./plugins/my_plugin.py
    enabled: true

Q: Where is the API documentation?

A: After starting the service, visit:

http://localhost:5000/api/docs

Or see Online API Documentation

Community Support

Q: How to get help when encountering problems?

A: Multiple channels:

  1. Check GitHub Issues
  2. Submit new Issue
  3. Join discussion community
  4. Check online documentation

Q: How to report bugs?

A: Submit an Issue on GitHub, please include:

  1. Detailed problem description
  2. Reproduction steps
  3. System environment information
  4. Related logs and error messages
  5. 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: