Skip to main content

Core

Installation

Note: If you followed the Easy Install instructions, you do not need to perform the installation steps below.

Go to your desired directory to clone Wisor modules for headset (i.e. ~/wisor/). This base directory should be identical to the renderer's'

File structure should look like the following:

-wisor
-core
-renderer
git clone --branch core --single-branch https://github.com/egemenertugrul/Wisor.git core

Core module runs on Python (tested on 3.9.2).

Update pip:

python3 -m pip install --user --upgrade pip

Create virtual environment:

python3 -m venv ~/wisor/venv # or change 'venv' to your desired location to create the virtual environment

Activate it:

source ~/wisor/venv/bin/activate

Install dependencies of Core:

sudo apt install libopenjp2-7 sense-hat libopenblas-dev

Install Picamera2 [Source]:

  1. Ensure that libcamera version 0.0.10 is installed
dpkg -l | grep libcamera

If your version is lower than 0.0.10 please install the latest:

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps
  1. Install Picamera2 dependencies
sudo apt install -y python3-kms++
sudo apt install -y python3-pyqt5 python3-prctl libatlas-base-dev ffmpeg python3-pip
pip install numpy --upgrade
pip install picamera2 --upgrade
requirements.txt
backports.statistics==0.1.0
brotli==1.1.0
brotlicffi==1.0.9.2
chardet==5.2.0
cryptography==41.0.3
Cython==3.0.2
dl==0.1.0
imusensor==1.0.1
ipaddr==2.2.0
keyring==24.2.0
mock==5.1.0
mypy_extensions==1.0.0
numpy
picamera2
ordereddict==1.1
psutil==5.9.5
pyee==11.0.0
pyOpenSSL==23.2.0
pyzbar==0.1.9
# sense_hat==2.4.0
simplejson==3.19.1
smbus==1.1.post2
typing_extensions==4.7.1
urllib3_secure_extra==0.1.0
websockets==11.0.3
zstandard==0.21.0
opencv-python==4.5.3.56

Install rest of the requirements:

cd core/
python3 -m pip install -r requirements.txt
cd ..