Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions start-realtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

echo "Starting fastsdcpu..."

PYTHON_COMMAND="python"

# Check if Python is installed
if command -v $PYTHON_COMMAND &>/dev/null; then
echo "Python command check: OK"
else
echo "Error: Python command not found, please install Python (Recommended: Python 3.10 or Python 3.11) and try again"
exit 1
fi

# Check Python version
PYTHON_VERSION=$("$PYTHON_COMMAND" --version 2>&1 | awk '{print $2}')
echo "Python version: $PYTHON_VERSION"

# Add openvino libs to PATH
export PATH=$PATH:$(dirname "$(readlink -f "$0")")/env/lib/python3.10/openvino/libs
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will work with Python 3.10 only, we don't need to specify Python version


# Activate virtual environment
source "$(dirname "$(readlink -f "$0")")/env/bin/activate" && $PYTHON_COMMAND "$(dirname "$(readlink -f "$0")")/src/app.py" --r