gdeanrexroth
However when I commented out line 445, and ran the same command line. The interface to capture the images pops up on the screen. But the results are different:
Cam: rgb and focus: False
Cam: left and focus: False
Cam: right and focus: False
Camera type ToF
Starting image capture. Press the [ESC] key to abort.
Will take 13 total images, 1 per each polygon.
left 0:01:25.766316
new minimum: {'ts': 0.0, 'indicies': {'left': 0}} min required: 0.2
synced frames: None
right 0:01:25.766330
new minimum: {'ts': 1.3999999993075107e-05, 'indicies': {'left': 0, 'right': 0}} min required: 0.2
synced frames: None
rgb 0:01:25.667397
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
synced frames: None
left 0:01:25.866318
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
synced frames: None
right 0:01:25.866340
rgb 0:01:25.767397
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
left 0:01:25.966316
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
right 0:01:25.966328
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
rgb 0:01:25.867395
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
rgb 0:01:25.967395
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
right 0:01:26.066337
left 0:01:26.066318
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
left 0:01:26.166316
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
right 0:01:26.166329
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
synced frames: None
rgb 0:01:26.067393
new minimum: {'ts': 0.09893300000000238, 'indicies': {'left': 0, 'right': 0, 'rgb': 0}} min required: 0.2
new minimum: {'ts': 0.0010949999999922966, 'indicies': {'left': 0, 'right': 0, 'rgb': 1}} min required: 0.2
Returning synced messages with error: 0.0010949999999922966 {'left': 0, 'right': 0, 'rgb': 1}
synced frames: {'left': <depthai.ImgFrame object at 0x0000019B3839E830>, 'right': <depthai.ImgFrame object at 0x0000019B59F61530>, 'rgb': <depthai.ImgFrame object at 0x0000019B59F03BF0>}
Timestamp of left is 0:01:25.766316
Timestamp of right is 0:01:25.766330
Timestamp of rgb is 0:01:25.767397
Traceback (most recent call last):
File "S:\test_run\depthai\calibrate.py", line 1207, in <module>
**Main().run()**
File "S:\test_run\depthai\calibrate.py", line 1196, in run
**self.capture_images_sync()**
File "S:\DEPT\SVM4\Shared\Crossfunctional_Work\Projects\DepthCameras\LuxonisDepthAI\test_run\depthai\calibrate.py", line 590, in capture_images_sync
**gray_frame = cv2.cvtColor(frameMsg.getCvFrame(), cv2.COLOR_BGR2GRAY)**
**^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^**
cv2.error: OpenCV(4.5.5) d:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::`anonymous-namespace'::CvtHelper<struct cv::impl::`anonymous namespace'::Set<3,4,-1>,struct cv::impl::A0xa96199bf::Set<1,-1,-1>,struct cv::impl::A0xa96199bf::Set<0,2,5>,2>::CvtHelper(const class cv::InputArray &,const class cv::OutputArray &,int)'
> Invalid number of channels in input image:
> 'VScn::contains(scn)'
> where
> 'scn' is 1