Search found 7 matches

by tom
2025-02-12 9:45
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

确实应该直接从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");
		}
by tom
2025-02-12 9:29
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

确实应该直接从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");
}
by tom
2025-02-12 2:19
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

可能我还是没有表达清楚我测试的情况。 我是在从VI中获取一帧图像数据后,立即使用"i2ctransfer"命令直接将相机关闭,相机不再输出图像数据,没有调用任何API关闭相关通道。 system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00"); 此时程序是正常运行的,VI也是正常运行的。 按照我的理解: 相机一共发出了两帧图像数据,如果VI获取到了数据是相机发出的第一帧图像,那么即使相机关闭了,VI也应该能正常获取第二帧图像。 现在的现象是VI只获取到了一帧图像数据,我认为这帧数据是相机发出的第二帧数据。相机发...
by tom
2025-02-11 8:30
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

The code in the second post is modified by me according to the official example, and the problem exposed is essentially the same as the first post. After correctly acquiring one frame of image data in the program, the "i2ctransfer" command is used to force the camera to close. However, the...
by tom
2025-02-11 5:17
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

My question is not how many frames the camera outputs per second, and from the first oscilloscope photo it can be confirmed that the camera outputs 25 fps per second.

My question is why the camera outputs 26 frames, but I can only get 25 frames of data from VI.
by tom
2025-02-11 2:17
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

I can reproduce this problem using the official "simple_vi_venc" example. Will the image data obtained from "RK_MPI_VI_GetChnFrame" pass through ISP? Through the oscilloscope, the duration of one frame is measured to be 40ms. I can't upload the file, so I have to paste the code h...
by tom
2025-02-10 8:45
Forum: Luckfox Pico-RV1103/RV1106
Topic: When running the sc3336 camera, the first frame is always dropped
Replies: 11
Views: 699

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

The camera is turned on for 1 second and then turned off. The program uses VIChn to obtain 25 frames of images.

However, by capturing the camera output through an oscilloscope, it can be seen that the camera outputs 26 frames of images.

Please ask what may be the cause of this.