Skip to content

Instantly share code, notes, and snippets.

View lucasmediaflow's full-sized avatar

Lucas lucasmediaflow

View GitHub Profile
DEPTHAI_LEVEL=debug python3 camera.py
[2021-09-28 20:36:20.077] [debug] Python bindings - version: 2.10.0.0.dev+97a16a3f62ca51d4d31ed8dad23e53823bb94181 from 2021-09-28 05:00:25 +0300 build: 2021-09-28 02:09:59 +0000
[2021-09-28 20:36:20.077] [debug] Library information - version: 2.10.0, commit: 74d1b05ab48bbeef673ba37d5864da3c2469fe94 from 2021-09-28 04:58:32 +0300, build: 2021-09-28 02:09:56 +0000
[2021-09-28 20:36:20.080] [debug] Initialize - finished
[2021-09-28 20:36:20.308] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.15.tar.xz' open: 5ms, archive read: 223ms
TRYING TO GET UNIT INFO FROM DDB
[2021-09-28 20:36:21.417] [debug] Resources - Archive 'depthai-device-fwp-260a950984ee67cbb70ca1f1cd97b5bdc71aca44.tar.xz' open: 5ms, archive read: 1333ms
Subscribed to MQTT Topic OAK
[2021-09-28 20:36:22.333] [debug] Device - OpenVINO version: 2021.4
Traceback (most recent call last):
this is the whole output:
```
root@devraspi:/home/pi# python3 camera.py
TRYING TO GET UNIT INFO FROM DDB
error reading unit conf 'temperature'
Subscribed to MQTT Topic OAK
[10.42.0.109] [24.871] [system] [warning] Calibration Data on device is empty
[10.42.0.109] [24.871] [system] [info] PRINT:LeonCss: BootloaderConfig.options2 checksum doesn't match. Is: 0x00000000 should be: 0x2380F205
GPIO boot mode 0x3, interface SPI_MASTER_EFF
Setting aons(0..4) back to boot from flash (offset = 0)
from gpiozero import LED
import depthai as dai
import cv2
from time import sleep
flashpin = LED(23)
pipeline = dai.Pipeline()
pipeline.setCameraTuningBlobPath('/home/pi/oak/tuning_color_low_light.bin')
#!/usr/bin/env python3
from pathlib import Path
import sys
import cv2
import depthai as dai
import numpy as np
from time import monotonic, sleep
import threading