Hello,
I'm having some trouble with my OAK-D Pro W PoE w/ OV9782 and would appreciate some help.
I have created an image/video server that runs locally on the camera in a script node, similar to the examples below:
- https://docs.luxonis.com/projects/api/en/latest/samples/Script/script_mjpeg_server/
- https://docs.luxonis.com/projects/api/en/latest/samples/Script/script_http_server/
I have three of these cameras, each with the OV9782 main sensor. For two of them, I have been able to flash the pipeline and use the servers successfully. However, on this last camera, I am having some problems.
I have reduced this down to a small sample that reproduces the error. Here, the script node containing the server is omitted.
import depthai as dai
import time
def main() -> None:
# Device info.
ADR = "10.0.0.4"
device_info = dai.DeviceInfo(ADR)
pipeline = dai.Pipeline()
# Camera node.
cam = pipeline.create(dai.node.Camera)
cam.setSize(1280, 800)
# Video encoder node.
jpeg = pipeline.create(dai.node.VideoEncoder)
jpeg.setDefaultProfilePreset(cam.getFps(), dai.VideoEncoderProperties.Profile.MJPEG)
# Connections.
cam.video.link(jpeg.input)
# Load pipeline.
with dai.Device(pipeline, device_info) as device:
device.setLogLevel(dai.LogLevel.DEBUG)
device.setLogOutputLevel(dai.LogLevel.DEBUG)
while not device.isClosed():
time.sleep(1)
if __name__ == "__main__":
main()
When the connection between the camera's video output and the video encoder is made, I get the following error:
[184430107175960F00] [10.0.0.4] [4.860] [Camera(0)] [error] Not possible to create warp params. Error: WARP_SWCH_ERR_CACHE_TO_SMALL
[2023-10-17 12:33:46.165] [warning] Monitor thread (device: 184430107175960F00 [10.0.0.4]) - ping was missed, closing the device connection
From my research, it seems this is related to the unwarping/undistorting of the lens, which is the reason I am using the Camera
node and not the ColorCamera
node. My full servers work totally fine with ColorCamera but I do need that lens correction.
I'd appreciate some help with this issue, or a workaround for the lens correction. Thanks!