无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

當大學生學了C語言后

2023-02-27 02:11 作者:莫語浮生  | 我要投稿

#include <iostream>

#include <openCV2/opencv.hpp>

#include<easyx.h>

#include<mmsystem.h>

#pragma comment(lib,"winmm.lib")

using namespace std;

using namespace cv;

int main()

{

VideoCapture video("./aikun.mp4");

mciSendString("open aikun.mp3", 0, 0, 0);

Mat image;

Mat show;

string txt;

initgraph(video.get(CAP_PROP_FRAME_WIDTH) * 2, video.get(CAP_PROP_FRAME_HEIGHT) * 2);

BeginBatchDraw();

while (1)

{

video >> image;

if (image.empty())

{

break;

}

imshow("badapple", image);

resize(image, show, Size(),0.125*1,0.125*1);

cvtColor(show, show, COLOR_RGB2GRAY);

for (int i=0;i<show.rows;i++)

{

for (int j = 0; j < show.cols; j++)

{

if (show.at<uchar>(i,j)<= 128)

{

txt +="11";

}

else

{

txt += "00";

}

}

outtextxy(0, i*16, txt.c_str());

txt.clear();

}

FlushBatchDraw();

waitKey(1000 / video.get(CAP_PROP_FPS));

cleardevice();

mciSendString("play aikun.mp3", 0, 0, 0);

}

EndBatchDraw();

closegraph();

return 0;

}

當大學生學了C語言后的評論 (共 條)

分享到微博請遵守國家法律
霍州市| 东乌珠穆沁旗| 凤山县| 河津市| 阳西县| 昌吉市| 卢龙县| 连山| 玉门市| 萨迦县| 开远市| 吉水县| 巴马| 苗栗县| 鹤岗市| 涞源县| 云安县| 鸡西市| 闵行区| 濮阳县| 那曲县| 文昌市| 博客| 栖霞市| 得荣县| 江城| 白城市| 江都市| 靖江市| 永修县| 即墨市| 烟台市| 云霄县| 辽中县| 寿宁县| 仲巴县| 临汾市| 鹤岗市| 巧家县| 五指山市| 如东县|