Orbecc Femto Bolt depth_color_sync_align_viewer.py
Hello,
I have an Orbecc Femto Bolt. I am trying to get the aligned depth and color frames from running this example. However, upon running the script, there is an error on this line:
depth_image = cv2.addWeighted(color_image, 0.5, depth_image, 0.5, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.11.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\arithm.cpp:665: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'cv::arithm_op'
The size of color_image is 1920x1080, and the size of depth_image is 640 x 576. It is my understanding that depth_image is not aligned with color_Image because the resolution between depth_image and color_image is different. I tried using both HW and SW modes, both both produce the same result. How do I get the aligned depth_image such that the depth_image is the same resolution as the color_image?
Thank you.
Hello,I have same Issue,have you solved this problem?
we recommend using the v2-main branch, which is a Python wrapper based on the open-source SDK. @balibali1 @nirajkark07
Software D2C sample https://github.com/orbbec/pyorbbecsdk/blob/v2-main/examples/sync_align.py