This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo wget -qO- http://docs.luxonis.com/_static/install_dependencies.sh | bash | |
cd /tmp | |
git clone --recursive https://github.com/luxonis/depthai-core.git --branch develop | |
cd depthai-core | |
mkdir build | |
cd build | |
cmake .. -DBUILD_SHARED_LIBS=ON | |
cd .. | |
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr/local | |
sudo cmake --build build --target install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import depthai as dai | |
import numpy as np | |
import cv2 | |
import queue | |
# Create pipeline | |
pipeline = dai.Pipeline() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import cv2 | |
import numpy as np | |
import depthai as dai | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"-res", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import depthai as dai | |
from pathlib import Path | |
import time | |
from datetime import datetime, timedelta | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument( | |
"-ls", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import depthai as dai | |
calibration_handler = dai.CalibrationHandler() | |
intrinsics = [[800, 0, 600], | |
[0, 800, 400], | |
[0, 0, 1]] |