RLL Computer Vision Code: code/tool.h 源文件 From RLL Computer Vision previous page next page RLL Computer Vision Code 1.0 江苏科技大学HLL战队机器视觉代码 code tool.h 浏览该文件的文档. 1 /***************************************************************************** 2 * HLL Computer Vision Code * 3 * Copyright (C) 2017 HLL sin1997@gmail.com. * 4 * * 5 * This file is part of HCVC. * 6 * * 7 * @file tool.h * 8 * @brief Provide some debug tools * 9 * Details. * 10 * * 11 * @author HLL * 12 * @email sin1997@gmail.com * 13 * @version 1.0.0.0 * 14 * @date 2017.11.10 * 15 * * 16 *----------------------------------------------------------------------------* 17 * Remark : Description * 18 *----------------------------------------------------------------------------* 19 * Change History : * 20 * <Date> | <Version> | <Author> | <Description> * 21 *----------------------------------------------------------------------------* 22 * 2017/11/10 | 1.0.0.0 | Zhu Min | Create file * 23 *----------------------------------------------------------------------------* 24 * * 25 *****************************************************************************/ 26 #ifndef TOOL_H 27 #define TOOL_H 28 29 /*opencv库*/ 30 #include "opencv2/opencv.hpp" 31 32 /*C++标准库*/ 33 #include "string" 34 #include "iostream" 35 36 using namespace cv; 37 using namespace std; 38 39 namespace HCVC { 43 extern int g_trackBarLocation; 44 49 class Tool 50 { 51 public: 56 Tool() 57 { 58 } 59 67 static void addTrackBar(const string& windowName, VideoCapture& file); 68 77 static void setTrackBarFollow(const string& windowName, const VideoCapture& file); 78 80 enum 81 { 82 ESC = 27, 83 PAUSE = ' ', 84 MOVE_BACK = 'j', 85 MOVE_FORWARD = 'k', 86 }; 87 95 static void addKeyboardControl(VideoCapture& srcFile, const int& delay = 1); 96 104 static void getTimeCount(const int& id); 105 106 private: 114 static void onTrackBarCallback(int pos, void* data); 115 }; 117 } 118 #endif // TOOL_HHCVC::Tool提供一些调试用工具 Definition: tool.h:49 std cv HCVC::Tool::ToolTool()初始化 Definition: tool.h:56 HCVCHLL Computer Vision Code namepace. Definition: armour_detector.cpp:3 HCVC::g_trackBarLocationint g_trackBarLocationDefinition: tool.cpp:4 制作者 1.8.13 previous page start next page