Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
ef6a3a05
Commit
ef6a3a05
authored
Jan 10, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a readme file to imglab that gives a little introduction
parent
de066e54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
README.txt
tools/imglab/README.txt
+40
-0
No files found.
tools/imglab/README.txt
0 → 100644
View file @
ef6a3a05
imglab is a simple graphical tool for annotating images with object bounding
boxes. Generally, you use it when you want to train an object detector (e.g. a
face detector) since it allows you to easily create the needed training
dataset.
You can compile imglab with the following commands:
cd dclib/tools/imglab
mkdir build
cd build
cmake ..
cmake --build . --config Release
Note that you may need to install CMake (www.cmake.org) for this to work. On a
unix system you can also install imglab into /usr/local/bin by running
sudo make install
This will make running it more convenient.
Next, to use it, lets assume you have a folder of images called /tmp/images.
These images should contain examples of the objects you want to learn to
detect. You will use the imglab tool to label these objects. Do this by
typing the following command:
./imglab -c mydataset.xml /tmp/images
This will create a file called mydataset.xml which simply lists the images in
/tmp/images. To add bounding boxes to the objects you run:
./imglab mydataset.xml
and a window will appear showing all the images. You can use the up and down
arrow keys to cycle though the images and the mouse to label objects. In
particular, holding the shift key, left clicking, and dragging the mouse will
allow you to draw boxes around the objects you wish to detect.
Once you finish labeling objects go to the file menu, click save, and then
close the program. This will save the object boxes back to mydataset.xml. You
can verify this by opening the tool again with:
./imglab mydataset.xml
and observing that the boxes are present.
imglab can do a few additional things. To see these run:
imglab -h
and also read the instructions in the About->Help menu.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment