Skip to content

Commit e1ab227

Browse files
committed
Merge pull request opencv#9515 from berak:fix_directx_samples
2 parents 91ef0b9 + a0e2681 commit e1ab227

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/directx/d3dsample.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ static const char* keys =
168168
{
169169
"{c camera | true | use camera or not}"
170170
"{f file | | movie file name }"
171-
"{h help | false | print help info }"
171+
"{h help | | print help info }"
172172
};
173173

174174

175175
template <typename TApp>
176176
int d3d_app(int argc, char** argv, std::string& title)
177177
{
178178
cv::CommandLineParser parser(argc, argv, keys);
179+
std::string file = parser.get<std::string>("file");
179180
bool useCamera = parser.has("camera");
180-
string file = parser.get<string>("file");
181-
bool showHelp = parser.get<bool>("help");
181+
bool showHelp = parser.has("help");
182182

183183
if (showHelp)
184184
help();
@@ -198,8 +198,8 @@ int d3d_app(int argc, char** argv, std::string& title)
198198
return -1;
199199
}
200200

201-
int width = (int)cap.get(CAP_PROP_FRAME_WIDTH);
202-
int height = (int)cap.get(CAP_PROP_FRAME_HEIGHT);
201+
int width = (int)cap.get(cv::CAP_PROP_FRAME_WIDTH);
202+
int height = (int)cap.get(cv::CAP_PROP_FRAME_HEIGHT);
203203

204204
std::string wndname = title;
205205

0 commit comments

Comments
 (0)