From 8c884838ced928d29a8436be8b2808766c5a1e53 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 14 May 2021 11:40:31 -0400 Subject: Changed extension from .txt to .csv --- configure | 2 +- readme.md | 34 ++++++++++++++++++++++++++++++++++ src/annotator.cc | 2 +- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 readme.md diff --git a/configure b/configure index 9d1c65c..6bc70e1 100755 --- a/configure +++ b/configure @@ -12,7 +12,7 @@ LIBS="libconfuse opencv4" CFLAGS="-c -Wall -fPIC -std=c++20" -LDFLAGS="-pthread" +LDFLAGS= SOURCE_DIR="src" diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9069fc8 --- /dev/null +++ b/readme.md @@ -0,0 +1,34 @@ +# Annotator + +This is a simple tool for annotating (short) videos. It is designed to facilitate frame-level annotations, at the expense of having to load the entire video into memory. Future versions may relax this requirement. + +## Building + +Requirements are: + + * libconfuse (for parsing config file) + * opencv (for video playback) + +Compile by running: + +```console +./configure +make +``` + +## Usage + +Available labels are configured in `annotator.conf`. Controls are as follows: + + * Number keys: Make annotation + * Escape: Quit (doesn't save) + * Space: Pause + * Left arrow: Go backward 1 frame + * Right arrow: Go forward 1 frame + * Up arrow: Seek backard 1 second + * Down arrow: Seek forward 1 second + * u: Undo (WIP) + * r: Redo (WIP) + * Delete: Remove closest annotation to current frame + * s: Save (there is no autosave) + diff --git a/src/annotator.cc b/src/annotator.cc index c74f04f..f1fccbc 100644 --- a/src/annotator.cc +++ b/src/annotator.cc @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { // Format save path auto savedir = std::filesystem::path("save") / p.parent_path().filename(); std::filesystem::create_directories(savedir); - auto savepath = savedir / (p.stem().string() + ".txt"); + auto savepath = savedir / (p.stem().string() + ".csv"); std::cout << "Saves are written to: " << savepath << std::endl; std::shared_ptr labeller(new backend::labeller(savepath)); frontend::ui ui(playback, labeller); -- cgit v1.2.3