Testing the oak-ffc-4p device, I found that there is a issue at CAM_D.The issue is that the CAM_D will not respond after I restart the program.
Firstly, run the simple testing program:
depthAI version: v2.22.0
#!/usr/bin/env python3
import os
# os.environ["DEPTHAI_LEVEL"] = "debug"
import depthai as dai
import cv2
import queue
import time
pipeline = dai.Pipeline()
camMono = pipeline.createMonoCamera()
xoutMono= pipeline.createXLinkOut()
camMono.setResolution(dai.MonoCameraProperties.SensorResolution.THE_400_P)
camMono.setBoardSocket(dai.CameraBoardSocket.CAM_D)
camMono.setFps(30)
xoutMono.setStreamName("mono")
camMono.out.link(xoutMono.input)
device = dai.Device(pipeline)
test_q = device.getOutputQueue("mono",4,False)
fps_cnt=0
timer = time.time()
while(True):
data = test_q.tryGet()
if data is not None:
fps_cnt+=1
frame = data.getCvFrame()
cv2.imshow("preview",frame)
if time.time()-timer>=1:
print(f"fps: {fps_cnt}")
fps_cnt=0
timer=time.time()
if cv2.waitKey(1) == ord('q'):
break
pass
cv2.destroyAllWindows()
I got:
fps: 29
fps: 30
fps: 30
Then press q or ctrl-c to exit and rerun the program.
fps: 0
fps: 0
fps: 0
The reason why I think this is a hardware issue is that our team had lay a board that refer to the OAK-FFC-4P schematic which don't have this issue.