Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create start-realtime.sh #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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