camera input change to video input (cv:Mat to vsdk::UMat)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

camera input change to video input (cv:Mat to vsdk::UMat)

661件の閲覧回数
alan13341313
Contributor I

In apex_isp_ldw demo 

SDI_ImageDescriptor lFrmDesc2 = SDI_ImageDescriptor(640, 480, GS8);
lpFdma->DdrBufferDescSet(FDMA_IX_G_SUB_2, lFrmDesc2);

lFrameYsub = lGrabber.FramePop(FDMA_IX_G_SUB_2);

algorithm takes "lFrameYsub.mUMat "as input 

How do I change  into videoCapture?

I tried this :

cv::VideoCapture mVideoCap;
cv::Mat img1(HEIGHT, WIDTH, CV_8UC3);
cv::Mat img2(HEIGHT, WIDTH, CV_8UC3);
cv::Mat img3(640, 480, CV_8UC3);
cv::Mat img4(640, 480, CV_8UC1);
vsdk::UMat vsdkumat1(HEIGHT, WIDTH, CV_8UC3);
vsdk::UMat vsdkumat2(640, 480, CV_8UC1);

cv::resize(img2,img3,cv::Size(640,480),0,0,1);
cv::cvtColor(img3, img4, cv::COLOR_BGR2GRAY);

vsdkumat2 = img4.getUMat(cv::ACCESS_RW);

and send "vsdkumat2" as input , but the result doesn't seem right

0 件の賞賛
返信
0 返答(返信)