mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made imglab show the name of the current image in the title bar.
This commit is contained in:
parent
6e0f13ba06
commit
738b4d36af
@ -20,7 +20,7 @@
|
||||
#include <dlib/dir_nav.h>
|
||||
|
||||
|
||||
const char* VERSION = "1.2";
|
||||
const char* VERSION = "1.3";
|
||||
|
||||
|
||||
|
||||
|
@ -87,7 +87,6 @@ metadata_editor(
|
||||
get_display_size(screen_width, screen_height);
|
||||
set_pos((screen_width-width)/2, (screen_height-height)/2);
|
||||
|
||||
set_title("Image Labeler - " + metadata.name);
|
||||
show();
|
||||
}
|
||||
|
||||
@ -430,7 +429,7 @@ load_image(
|
||||
try
|
||||
{
|
||||
dlib::load_image(img, metadata.images[idx].filename);
|
||||
|
||||
set_title(metadata.name + ": " +metadata.images[idx].filename);
|
||||
}
|
||||
catch (exception& e)
|
||||
{
|
||||
@ -458,7 +457,7 @@ load_image_and_set_size(
|
||||
try
|
||||
{
|
||||
dlib::load_image(img, metadata.images[idx].filename);
|
||||
|
||||
set_title(metadata.name + ": " +metadata.images[idx].filename);
|
||||
}
|
||||
catch (exception& e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user