Open BBwanaz opened 1 year ago
@BBwanaz Do you mind checking the version of base image you are using? It seems like an older version is being used in this case. Try using either: v2.17.1 or v2.17.2
Hi @themarpe
both versions and I still get the same error.
Sorry about the trouble @BBwanaz . We'll likely need to dig into firmware to see how/why this is happening and what it will take to fix this.
@BBwanaz
The latest v2.17.3 should address the issues when connecting with specific IP.
The app has been running smoothly for weeks but recently it started giving this error here
One question on the issue - does this happen continuously or it happened once after one week long run? And afterwards after another 1 week run? In that case you may catch the exception thrown by the device and reconnect upon such even, and log the issue upwards to notify any consumers, etc...
I am running OAKD-POE inside a docker container. The app has been running smoothly for weeks but recently it started giving this error here:
Furthermore, specifying the IP of the camera using: device_info = dai.DeviceInfo(ip) is returning "no device with such info" however, when I run it to auto find the device on the network, the finds the device and when I print the device info, it shows the same IP address.
Further Details:
COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt
ADD . /computer-vision
WORKDIR /computer-vision
ENV PYTHONPATH "${PYTHONPATH}:/computer-vision"
version: '2.4' services: cv-camera: container_name: camera build: context: ./ dockerfile: docker/Dockerfile.training
!/usr/bin/env python3
from distutils.command.upload import upload import depthai as dai import json from datetime import date, datetime from camera.pipeline import Pipeline from camera.controls import Controls from uploader import Uploader
DEFAULT_EXP_TIME = 20000 DEFAULT_SENS_ISO = 800 DEFAULT_FOCUS = 150 DEFAULT_BRIGHTNESS = 0 DEFAULT_LENGTH = 10
Connect to device and start pipeline
pipe = Pipeline() uploader = Uploader()
with open('config.json') as f: config = json.load(f)
autoFocus = config.get("autoFocus", "Fasle") in ["true", "True"] brightness = int(config.get('brightness', DEFAULT_BRIGHTNESS)) expTime = int(config.get('expTime', DEFAULT_EXP_TIME)) sensIso = int(config.get('sensIso', DEFAULT_SENS_ISO)) focus = int(config.get('focus', DEFAULT_FOCUS)) vidLength = float(config.get("vidLength", DEFAULT_LENGTH)) autoFind = config.get("autoFind", "Fasle") in ["true", "True"] poe = config.get("POE", "Fasle") in ["true", "True"] ip = config.get("cameraIp", None)
def run_recorder(device): print("Starting Camera...", flush=True)
if autoFind or not poe: with dai.Device(pipe.create_pipeline()) as device:
print(device.getDeviceInfo(), flush=True)
else: device_info = dai.DeviceInfo(ip) with dai.Device(pipe.create_pipeline(), device_info) as device: print(device.getDeviceInfo(), flush=True) run_recorder(device)