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
Python 3.9.10 (main, Feb 8 2022, 06:35:48) | |
[GCC 10.2.1 20210110] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import depthai as dai | |
[2022-08-13 12:30:48.615] [debug] Python bindings - version: 2.17.3.0.dev+dev from build: 2022-08-07 12:42:18 +0000 | |
[2022-08-13 12:30:48.615] [debug] Library information - version: 2.17.3, commit: from , build: 2022-08-07 12:42:08 +0000 | |
[2022-08-13 12:30:48.621] [debug] Initialize - finished | |
>>> [2022-08-13 12:30:48.956] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.20.tar.xz' open: 8ms, archive read: 331ms | |
[2022-08-13 12:30:50.167] [debug] Resources - Archive 'depthai-device-fwp-602822fe9eaca68a72c666497dc4979b29291b3e.tar.xz' open: 6ms, archive read: 1544ms |
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
[2022-04-08 09:59:48.493] [debug] Python bindings - version: 2.15.2.0.dev+dev from build: 2022-03-30 17:50:42 +0000 | |
[2022-04-08 09:59:48.493] [debug] Library information - version: 2.15.2, commit: from , build: 2022-03-30 17:50:33 +0000 | |
[2022-04-08 09:59:48.496] [debug] Initialize - finished | |
[2022-04-08 09:59:48.752] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.17.tar.xz' open: 6ms, archive read: 252ms | |
[2022-04-08 09:59:50.002] [debug] Resources - Archive 'depthai-device-fwp-afe8d00c868344c73ee897e26278f80a444b9763.tar.xz' open: 6ms, archive read: 1502ms | |
[2022-04-08 09:59:51.385] [debug] Device - OpenVINO version: 2021.4 | |
[2022-04-08 09:59:51.385] [debug] De |
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@k8-dvr:/home/pi# DEPTHAI_LEVEL=debug python3 camera.py | |
[877/1350] | |
[2022-03-02 11:24:45.846] [debug] Python bindings - version: 2.15.0.0.dev+dev from build: 2022-02-24 00:14:33 +0000 | |
[2022-03-02 11:24:45.846] [debug] Library information - version: 2.15.0, commit: from , build: 2022-02-24 00:14:24 +0000 | |
[2022-03-02 11:24:45.849] [debug] Initialize - finished | |
[2022-03-02 11:24:46.095] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.17.tar.xz' open: 6ms, archive read: 241ms | |
unit mac dc-a6-32-57-5d-7a | |
unit conf {'Item': {'process': {'cloud': False, 'auto': True, 'ipAddr': '10.42.0.83', 'thumbs': {'photos': {'size': [Decimal('250'), Decimal('188')]}, 'videos': {'size': [Decimal('250'), Decimal('188')]}}}, 'product': ['boatVideo', 'boatPhoto'], 'uploadToLocalServer': False, 'gpioConfig': {'output': {'blue': Decimal('21'), 'red': Decimal('16'), 'green': Decimal('20')}, 'input': {'23': {'triggers': ['video'], 'device': 'Button'}, '24': {'triggers': ['photo', 'process'], 'device': 'Button'}}, 'default |
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/depthai# DEPTHAI_LEVEL=debug python3 depthai_demo.py | |
[2022-01-28 15:22:08.247] [debug] Python bindings - version: 2.14.1.0.dev+27fa4519f289498e84768ab5229a1a45efb7e4df from 2022-01-12 23:20:36 +0100 build: 2022-01-12 22:25:55 +0000 | |
[2022-01-28 15:22:08.247] [debug] Library information - version: 2.14.1, commit: 55408918f4fb299cad45d292f8268aa93b1c10bb from 2022-01-12 23:20:24 +0100, build: 2022-01-12 22:25:53 +0000 | |
[2022-01-28 15:22:08.250] [debug] Initialize - finished | |
[2022-01-28 15:22:08.541] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.15.tar.xz' open: 7ms, archive read: 284ms | |
[2022-01-28 15:22:09.537] [debug] Resources - Archive 'depthai-device-fwp-8c8315579295367f49100d0884157ad9c93339b6.tar.xz' open: 6ms, archive read: 1282ms | |
Using depthai module from: /root/.local/lib/python3.7/site-packages/depthai.cpython-37m-arm-linux-gnueabihf.so | |
Depthai version installed: 2.14.1.0.dev+27fa4519f289498e84768ab5229a1a45efb7e4df | |
[2022-01-28 15:22:11.440] [debug] Python bindings - |
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: |
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
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 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
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
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"] |
NewerOlder