From e394f4a07c633419cfde46dd1404583c83a74b99 Mon Sep 17 00:00:00 2001
From: 13195980010 <1512161085@qq.com>
Date: Sat, 14 May 2022 18:51:44 -0700
Subject: [PATCH] merge master
---
src/ui/Triplet/mainwindow.ui | 71 -----------------------------------
test/TestContent.txt | 2 +
test/open | Bin 0 -> 19208 bytes
test/opencvtest.cpp | 27 +++++++++++++
4 files changed, 29 insertions(+), 71 deletions(-)
delete mode 100644 src/ui/Triplet/mainwindow.ui
create mode 100644 test/TestContent.txt
create mode 100755 test/open
create mode 100644 test/opencvtest.cpp
diff --git a/src/ui/Triplet/mainwindow.ui b/src/ui/Triplet/mainwindow.ui
deleted file mode 100644
index 96a2ec2..0000000
--- a/src/ui/Triplet/mainwindow.ui
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
- MainWindow
-
-
-
- 0
- 0
- 1280
- 768
-
-
-
- MainWindow
-
-
-
-
-
- 1100
- 440
- 80
- 25
-
-
-
- CLOSE
-
-
-
-
-
- 1100
- 250
- 80
- 25
-
-
-
- PLAY
-
-
-
-
-
- 50
- 30
- 731
- 461
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/TestContent.txt b/test/TestContent.txt
new file mode 100644
index 0000000..5e075fe
--- /dev/null
+++ b/test/TestContent.txt
@@ -0,0 +1,2 @@
+opencvtest.cpp is used to detect whether the virtual machine can be connected to the camera
+g++ `pkg-config opencv4 --cflags` opencvtest.cpp -o example `pkg-config opencv4 --libs`
diff --git a/test/open b/test/open
new file mode 100755
index 0000000000000000000000000000000000000000..c1e7131dc9de49b23633ea73e6d6ef84f2ad3151
GIT binary patch
literal 19208
zcmeHPe{fsXmA3M(=MzTc9+nW!2$}#g(V9i+V9+V
z&-2r>)D}u-c4vGO>AdsZbIv{Y*Lzp@-Q(MXts6^RF2Ttyt`@|NpJ^g~l~LZLEK
zmC~i+om5wjG39)#JP#=&dE~c6f2r!n)UHQuGk%#VKYmp{?NaqV#FbHgkvYzG6@+f)aw-8P}_Qy$^l{`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&3^IkVMf;C!mi(?^qF47f{OAwo#7UTKJT+J
z^{}9#PW>Bz<0wml{pWparVUCD%SoA>{)d6m)-UT%D*u^cGf5_@BegT@^Zs%S7>QW=
zsvzFy<9%_6$V4{mX(t%kb7pw1>?+?-w#XsPxHy@{|2nuo%My
zwJGcKz9LhPa+u3!eXjpKO21JV9nK$c>I{92=S&v|L}!o4pSbNEblNUK1K%Zt*U8m?HlvoZE?0Ym(SD0`|
ztk1L>%65I>SHd+W<$2B~SdaPhp-dQ;@AsQI)vQm(ZOL!DrpvFX@|C!i%lf>J#TjhQ
zPE`}Jh@>H9(4*el(R;uv@nQeDUZ(+L-=(7Z>bt_c*vSpAa4wf+X}TBEe>GrAT;@=4
Hu;PCK2NZs>
literal 0
HcmV?d00001
diff --git a/test/opencvtest.cpp b/test/opencvtest.cpp
new file mode 100644
index 0000000..9184440
--- /dev/null
+++ b/test/opencvtest.cpp
@@ -0,0 +1,27 @@
+#include
+#include
+#include
+using namespace cv;
+int main() {
+
+ VideoCapture cap(0);
+
+ if (!cap.isOpened()) {
+ std::cout << "!!!";
+ return -1;
+ }
+ Mat frame;
+ bool judge = true;
+ namedWindow("test1");
+ while (judge)
+ {
+ cap >> frame;
+ if (frame.empty()) break;
+ imshow("test1", frame);
+ if (27 == waitKey(30)) {
+ break;
+ }
+ }
+ destroyWindow("test1");
+ return 0;
+}