Page 2 of 2

Re: When running the sc3336 camera, the first frame is always dropped

Posted: 2025-02-12 9:29
by tom
确实应该直接从VI获取数据,并且在我的程序中也是这样做的。

我注意到在你提供的示例中loopCount初始化设置为0,当g_s32FrameCnt = 1时实际上是VI获取两帧后才关闭相机。

Code: Select all

if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
	system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}

Re: When running the sc3336 camera, the first frame is always dropped

Posted: 2025-02-12 9:45
by tom
确实应该直接从VI中获取数据,而且在我的程序中也是这样做的。

我注意到:在您提供的示例中loopCount初始化为0,当g_s32FrameCnt设置为1时,实际上RK_MPI_VI_GetChnFrame执行了两次才关闭相机。

Code: Select all

if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
			system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
		}