• Community
  • OAK-D Pro W(ov9782) depth performance issue

Hi,

I compared two OAK-D Pro W(ov9782). The sencond one has some issue with its depth performance. please check it out and guide us to enhance its performance. And both of cameras was working same distance, position and time (1 minute later).

First camera: it seems normal working)

Second camera: it seems not ok with depth performance

And they are working with same code below.
depthai-python\examples\StereoDepth> python.exe .\depth_preview.py

Best regards,
Ryan.

  • erik replied to this.

    erik

    Hi Erik,

    I tested it but i got below error. And my device is OAK-D Pro W(with OV9782).
    Please help us if there is any point i need to change.


    PS C:\Users\ryan\depthai> python calibrate.py -s 2.35 -brd bw1098obc -db
    [18443010618C631200] [1.2.4.1] [0.514] [ColorCamera(4)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P
    Starting image capture. Press the [ESC] key to abort.
    Will take 13 total images, 1 per each polygon.
    800 1280
    Traceback (most recent call last):
    File "C:\Users\ryan\depthai\calibrate.py", line 672, in <module>
    Main().run()
    File "C:\Users\ryan\depthai\calibrate.py", line 664, in run
    self.capture_images()
    File "C:\Users\ryan\depthai\calibrate.py", line 391, in capture_images
    frame = packet[1].getCvFrame()
    cv2.error: OpenCV(4.5.5) d:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:108: error: (-215:Assertion failed) sz.width % 2 == 0 && sz.height % 3 == 0
    in function 'cv::impl::anonymous-namespace'::CvtHelper<struct cv::impl::anonymous namespace'::Set<1,-1,-1>,struct cv::impl::A0xb3726c74::Set<3,4,-1>,struct cv::impl::A0xb3726c74::Set<0,-1,-1>,1>::CvtHelper'

    PS C:\Users\ryan\depthai>


    Best regards,
    Ryan.

    • erik replied to this.

      Hi RyanLee ,

      error: (-215:Assertion failed) sz.width % 2 == 0 && sz.height % 3 == 0

      Looks like color image (NV12/YUV420) size isn't ok - either width/height isn't divisible by 2. We will take a look at it.
      Thanks, Erik