質問編集履歴
5
勘違いだった
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,51 +99,3 @@
|
|
99
99
|
```
|
100
100
|
|
101
101
|
このプログラムでカメラで円検出をしました。opencvのCaptureFromFileという関数でカメラの部分をデスクトップにある動画に変えたいのですが、どうすればいいでしょうか
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
```c
|
106
|
-
|
107
|
-
#include <stdio.h>
|
108
|
-
|
109
|
-
#include <cv.h>
|
110
|
-
|
111
|
-
#include <highgui.h>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
int main(int agrc, char* argv[]){
|
118
|
-
|
119
|
-
cvNamedWindow("Example",CV_WINDOW_AUTOSIZE);
|
120
|
-
|
121
|
-
CvCapture *capture = cvCreateFileCapture(argv[1]);
|
122
|
-
|
123
|
-
IplImage *frame ;
|
124
|
-
|
125
|
-
while(1){
|
126
|
-
|
127
|
-
frame = cvQueryFrame(capture);
|
128
|
-
|
129
|
-
if(!frame) break;
|
130
|
-
|
131
|
-
cvShowImage("Example" , frame);
|
132
|
-
|
133
|
-
char c = cvWaitKey(33);
|
134
|
-
|
135
|
-
if(c == 27) break;
|
136
|
-
|
137
|
-
}
|
138
|
-
|
139
|
-
cvReleaseCapture(&capture);
|
140
|
-
|
141
|
-
cvDestroyWindow("Example");
|
142
|
-
|
143
|
-
}
|
144
|
-
|
145
|
-
```
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
こう書くとエラーがVIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!だけになった。
|
4
間違えてなかった
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,51 @@
|
|
99
99
|
```
|
100
100
|
|
101
101
|
このプログラムでカメラで円検出をしました。opencvのCaptureFromFileという関数でカメラの部分をデスクトップにある動画に変えたいのですが、どうすればいいでしょうか
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```c
|
106
|
+
|
107
|
+
#include <stdio.h>
|
108
|
+
|
109
|
+
#include <cv.h>
|
110
|
+
|
111
|
+
#include <highgui.h>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
int main(int agrc, char* argv[]){
|
118
|
+
|
119
|
+
cvNamedWindow("Example",CV_WINDOW_AUTOSIZE);
|
120
|
+
|
121
|
+
CvCapture *capture = cvCreateFileCapture(argv[1]);
|
122
|
+
|
123
|
+
IplImage *frame ;
|
124
|
+
|
125
|
+
while(1){
|
126
|
+
|
127
|
+
frame = cvQueryFrame(capture);
|
128
|
+
|
129
|
+
if(!frame) break;
|
130
|
+
|
131
|
+
cvShowImage("Example" , frame);
|
132
|
+
|
133
|
+
char c = cvWaitKey(33);
|
134
|
+
|
135
|
+
if(c == 27) break;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
cvReleaseCapture(&capture);
|
140
|
+
|
141
|
+
cvDestroyWindow("Example");
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
```
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
こう書くとエラーがVIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!だけになった。
|
3
間違えていたので消した
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,49 +99,3 @@
|
|
99
99
|
```
|
100
100
|
|
101
101
|
このプログラムでカメラで円検出をしました。opencvのCaptureFromFileという関数でカメラの部分をデスクトップにある動画に変えたいのですが、どうすればいいでしょうか
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
```c
|
106
|
-
|
107
|
-
#include <stdio.h>
|
108
|
-
|
109
|
-
#include <cv.h>
|
110
|
-
|
111
|
-
#include <highgui.h>
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
int main(int agrc, char* argv[]){
|
118
|
-
|
119
|
-
cvNamedWindow("Example",CV_WINDOW_AUTOSIZE);
|
120
|
-
|
121
|
-
CvCapture *capture = cvCreateFileCapture(argv[1]);
|
122
|
-
|
123
|
-
IplImage *frame ;
|
124
|
-
|
125
|
-
while(1){
|
126
|
-
|
127
|
-
frame = cvQueryFrame(capture);
|
128
|
-
|
129
|
-
if(!frame) break;
|
130
|
-
|
131
|
-
cvShowImage("Example" , frame);
|
132
|
-
|
133
|
-
char c = cvWaitKey(33);
|
134
|
-
|
135
|
-
if(c == 27) break;
|
136
|
-
|
137
|
-
}
|
138
|
-
|
139
|
-
cvReleaseCapture(&capture);
|
140
|
-
|
141
|
-
cvDestroyWindow("Example");
|
142
|
-
|
143
|
-
}
|
144
|
-
|
145
|
-
```
|
146
|
-
|
147
|
-
こう書くとエラーがVIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!だけになった。
|
2
エラーが少なくなった
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,49 @@
|
|
99
99
|
```
|
100
100
|
|
101
101
|
このプログラムでカメラで円検出をしました。opencvのCaptureFromFileという関数でカメラの部分をデスクトップにある動画に変えたいのですが、どうすればいいでしょうか
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
```c
|
106
|
+
|
107
|
+
#include <stdio.h>
|
108
|
+
|
109
|
+
#include <cv.h>
|
110
|
+
|
111
|
+
#include <highgui.h>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
int main(int agrc, char* argv[]){
|
118
|
+
|
119
|
+
cvNamedWindow("Example",CV_WINDOW_AUTOSIZE);
|
120
|
+
|
121
|
+
CvCapture *capture = cvCreateFileCapture(argv[1]);
|
122
|
+
|
123
|
+
IplImage *frame ;
|
124
|
+
|
125
|
+
while(1){
|
126
|
+
|
127
|
+
frame = cvQueryFrame(capture);
|
128
|
+
|
129
|
+
if(!frame) break;
|
130
|
+
|
131
|
+
cvShowImage("Example" , frame);
|
132
|
+
|
133
|
+
char c = cvWaitKey(33);
|
134
|
+
|
135
|
+
if(c == 27) break;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
cvReleaseCapture(&capture);
|
140
|
+
|
141
|
+
cvDestroyWindow("Example");
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
```
|
146
|
+
|
147
|
+
こう書くとエラーがVIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!だけになった。
|
1
<code>を使った
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
```c
|
2
2
|
|
3
|
-
|
3
|
+
#include <stdio.h>
|
4
4
|
|
5
|
+
#include <cv.h>
|
6
|
+
|
5
|
-
|
7
|
+
#include <highgui.h>
|
6
8
|
|
7
9
|
|
8
10
|
|
@@ -94,4 +96,6 @@
|
|
94
96
|
|
95
97
|
}
|
96
98
|
|
99
|
+
```
|
100
|
+
|
97
101
|
このプログラムでカメラで円検出をしました。opencvのCaptureFromFileという関数でカメラの部分をデスクトップにある動画に変えたいのですが、どうすればいいでしょうか
|