This file contains 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 | |
from pathlib import Path | |
import sys | |
import cv2 | |
import depthai as dai | |
import numpy as np | |
from time import monotonic, sleep | |
import threading |
This file contains 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
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') |
This file contains 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
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) |
This file contains 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
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 file contains 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 | |
from time import monotonic, sleep | |
from datetime import datetime | |
import paho.mqtt.client as mqtt | |
import json | |
from setup import unit | |
import cv2 | |
try: | |
rotation = unit["camSettings"]["photo"]["oakcamera"]["rotation"] |
This file contains 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 | |
from time import monotonic, sleep | |
from datetime import datetime | |
import paho.mqtt.client as mqtt | |
import json | |
from setup import unit | |
import cv2 | |
try: | |
focus = unit["camSettings"]["photo"]["oakcamera"]["focus"] |
This file contains 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
>>> from camera import * | |
[2021-12-18 12:15:24.770] [debug] Python bindings - version: 2.13.3.0 from 2021-12-01 03:26:17 +0200 build: 2021-12-01 03:07:01 +0000 | |
[2021-12-18 12:15:24.770] [debug] Library information - version: 2.13.3, commit: 0cc6284767ae21e8747d26562cb058d181e0ca34 from 2021-12-01 03:23:55 +0200, build: 2021-12-01 03:07:00 +0000 | |
[2021-12-18 12:15:24.772] [debug] Initialize - finished | |
[2021-12-18 12:15:25.336] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.15.tar.xz' open: 6ms, archive read: 559ms | |
Found 1 devices | |
[3461.421] finished setup 02-back | |
cams setup, starting them | |
[2021-12-18 12:15:26.950] [debug] Device - OpenVINO version: 2021.4 | |
[2021-12-18 12:15:27.765] [debug] Resources - Archive 'depthai-device-fwp-48fca4a443d841221c94c70d5c05e7e946168636.tar.xz' open: 6ms, archive read: 2988ms |
This file contains 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
class Camera: | |
def __init__( | |
self, | |
ip=None, | |
mac=None, | |
settings={}, | |
name=None, | |
type=None, | |
deviceInfo=None, | |
streamingServer=None, |
This file contains 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
>>> from camera import * | |
[2021-12-18 20:30:50.250] [debug] Python bindings - version: 2.13.2.0.dev+87552f67f0820a6eef058550af2c27724795fefe from 2021-11-27 00:53:57 +0100 build: 2021-12-18 07:15:11 +0000 | |
[2021-12-18 20:30:50.250] [debug] Library information - version: 2.13.2, commit: 3da1b89a57804c969b9394c38f1553da0643a146 from 2021-11-27 00:53:01 +0100, build: 2021-12-18 07:15:09 +0000 | |
[2021-12-18 20:30:50.252] [debug] Initialize - finished | |
[2021-12-18 20:30:50.490] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.15.tar.xz' open: 5ms, archive read: 233ms | |
Found 1 devices | |
[2021-12-18 20:30:51.419] [debug] Resources - Archive 'depthai-device-fwp-9dce18f220f3f927be309fe7b4aa535cf897897a.tar.xz' open: 5ms, archive read: 1163ms | |
[33186.710] finished setup 02-back | |
cams setup, starting them | |
[2021-12-18 20:30:52.237] [debug] Device - OpenVINO version: 2021.4 |
This file contains 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
root@devraspi:/home/pi/camera# DEPTHAI_LEVEL=debug python3 test.py | |
[2021-12-21 08:57:26.627] [debug] Python bindings - version: 2.13.2.0.dev+92788aa52a091a097b719621ae293ce55d59a82f from 2021-12-20 02:46:02 +0100 build: 2021-12-20 08:09:36 +0000 | |
[2021-12-21 08:57:26.627] [debug] Library information - version: 2.13.2, commit: 7b0e4f38bf6f09f4e6ff964641658c0fbd617ee9 from 2021-12-20 02:45:50 +0100, build: 2021-12-20 08:09:32 +0000 | |
[2021-12-21 08:57:26.630] [debug] Initialize - finished | |
[2021-12-21 08:57:27.070] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.15.tar.xz' open: 5ms, archive read: 433ms | |
[2021-12-21 08:57:27.921] [debug] Device - OpenVINO version: 2021.4 | |
[2021-12-21 08:57:29.293] [debug] Resources - Archive 'depthai-device-fwp-27bc51a1b85d1ce7354aca1e062d7fda1ecfe4fa.tar.xz' open: 5ms, archive read: 2660ms | |
[2021-12-21 08:57:30.825] [debug] Booting FW with Bootloader. Version 0.0.12, Time taken: 830ms | |
[2021-12-21 08:57:30.825] [debug] DeviceBootloader about to be closed... | |
[2021-12-21 08:57: |
OlderNewer