mirror of https://github.com/AlexeyAB/darknet.git
minor fix - added: move_window_cv() function
This commit is contained in:
parent
c2221f07f8
commit
97ccee5628
|
@ -385,6 +385,17 @@ extern "C" void resize_window_cv(char const* window_name, int width, int height)
|
|||
}
|
||||
// ----------------------------------------
|
||||
|
||||
extern "C" void move_window_cv(char const* window_name, int x, int y)
|
||||
{
|
||||
try {
|
||||
cv::moveWindow(window_name, x, y);
|
||||
}
|
||||
catch (...) {
|
||||
cerr << "OpenCV exception: create_window_cv \n";
|
||||
}
|
||||
}
|
||||
// ----------------------------------------
|
||||
|
||||
extern "C" void destroy_all_windows_cv()
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -48,6 +48,7 @@ image mat_to_image_cv(mat_cv *mat);
|
|||
// Window
|
||||
void create_window_cv(char const* window_name, int full_screen, int width, int height);
|
||||
void resize_window_cv(char const* window_name, int width, int height);
|
||||
void move_window_cv(char const* window_name, int x, int y);
|
||||
void destroy_all_windows_cv();
|
||||
int wait_key_cv(int delay);
|
||||
int wait_until_press_key_cv();
|
||||
|
|
Loading…
Reference in New Issue