xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 2.38KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-03-27
  • 語言: 其他
  • 標簽: 其他??

資源簡介


采用雙線程,用opencv同時打開兩個攝像頭

資源截圖

代碼片段和文件信息


#include“cv.h“
#include“highgui.h“
#include?
#include?
#include?
#include?
#include?
void?test(void*w)
{
int?han?lie?lieju?channel?imgsize?l?=?1;
CvCapture?*?capture;
if?((capture?=?cvCreateCameraCapture(0))?==?NULL)
{
printf(“Camera?Open?Fail!Please?check?your?Camera.“);
char?c?=?cvWaitKey(33);
return;
}

cvNamedWindow(“Camera?Show1“?CV_WINDOW_AUTOSIZE);
IplImage?*?frame;
cvWaitKey(300);
while?(1)
{
frame?=?cvQueryframe(capture);

if?(!frame)
break;
//frame?=?cvLoadImage(“f://1.jpg“);
//char?*data?=?frame->imageData;
if?(l?==?1)
{
han?=?frame->height;
lie?=?frame->width;
lieju?=?frame->widthStep;
channel?=?frame->nChannels;
imgsize?=?frame->imageSize;
printf(“han=%dlie=%dlieju=%dchannel=%dimgsize?=?%d“?han?lie?lieju?channel?imgsize);
//for?(int?i?=?0;?i //for?(int?j?=?0;?j //for?(int?k?=?0;?k

評論

共有 條評論