The Library

- Algorithms
- API Wrappers
- Bayesian Nets
- Compression
- Containers
- Graph Tools
- Image Processing
- Linear Algebra
- Machine Learning
- Metaprogramming
- Miscellaneous
- Networking
- Optimization
- Parsing

Help/Info

- Examples: C++
  - 3D_Point_Cloud
  - Assignment_Learning
  - Base64_Encoder
  - Bayesian_Network
  - Bayesian_Network_From_Disk
  - Bayesian_Network_GUI
  - Bridge
  - BSP
  - C-Support_Vector_Machine
  - Cmd_Line_Parser
  - Compress_Stream
  - Config_File_Reader
  - Custom_Trainers
  - Directory_Navigation
  - Empirical_Kernel_Map
  - Face_Detection
  - Face_Landmark_Detection
  - FHOG_Feature_Extraction
  - FHOG_Object_Detection
  - Graph_Labeling
  - GUI
  - Hough_Transform
  - HTTP_Server
  - Image
  - IO Socket Streams
  - IO Streams Server
  - Kernel_Centroid
  - Kernel_K-Means_Clustering
  - Kernel_Ridge_Regression
  - Kernel_RLS_Filtering
  - Kernel_RLS_Regression
  - KRR_Classification
  - Learning_to_Track
  - Linear_Assignment_Problems
  - Linear_Manifold_Regularizer
  - Logger
  - Logger_Advanced
  - Logger_Custom_Output
  - Matrix
  - Matrix_Expressions
  - Member_Function_Pointer
  - Model_Selection
  - Multiclass_Classification
  - Multithreaded_Object
  - Neural_Network
  - Non-Linear Least Squares
  - Nu-Support_Vector_Machine
  - Numerical_Integration
  - Object_Detector
  - Object_Detector_Advanced
  - One_Class_Classifiers
  - Online_SVM
  - Optimization
  - Parallel_For_Loops
  - Pipe
  - Pipe_2
  - Quantum_Computing
  - Queue
  - Rank_Features
  - Relevance_Vector_Classification
  - Relevance_Vector_Regression
  - Running_Stats
  - Sequence_Labeling
  - Sequence_Segmentation
  - Sockets
  - Sockstreambuf
  - Sparse_Vectors
  - SQLite
  - Std_C++_Allocator
  - Structural_Support_Vector_Machines
  - Support_Vector_Regression
  - SURF
  - SVM-Rank
  - Threaded_Object
  - Threads
  - Thread_Function
  - Thread_Pool
  - Timer
  - Train_Object_Detector
  - Train_Shape_Predictor
  - Using_Custom_Kernels
  - Video_Object_Tracking
  - Webcam_Face_Pose_Estimation
  - XML_Parser
- Examples: Python
  - Face_Detector
  - Face_Landmark_Detection
  - find_candidate_object_locations
  - Linear_Assignment_Problems
  - Sequence_Segmenter
  - Structural_Support_Vector_Machines
  - SVM-Rank
  - Train_Object_Detector
  - Train_Shape_Predictor
- FAQ
- Home
- How to compile
- How to contribute
- Index
- Introduction
- License
- Python API
- Suggested Books

Current Release

- Change Log
- Release Notes
- Version: 18.15

Last Modified: Apr 29, 2015

# Change Log

Revision: c8eea577dc04bd32
Author: Davis King
Date: Apr 28, 2015 (14:31:05 UTC)

Filled out spec for the reinforcement learning stuff.

Modified
dlib/control/approximate_linear_models.h
dlib/control/approximate_linear_models_abstract.h
dlib/control/lspi.h
dlib/control/lspi_abstract.h

Revision: fbee9c63212360f0
Author: Davis King
Date: Apr 22, 2015 (04:01:39 UTC)

Made the perspective display resort the points with the proper z order whenever you release the mouse button or add more points.

Modified
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.h

Revision: bc7f2219b8bdca09
Author: Davis King
Date: Apr 22, 2015 (03:40:06 UTC)

Added a convenient overload of translate_point.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h

Revision: 552e61547c7a0630
Author: Davis King
Date: Apr 20, 2015 (03:58:35 UTC)

Added an implementation of the least-squares policy iteration algorithm.

Modified
dlib/test/CMakeLists.txt
dlib/test/makefile
Added
dlib/control.h
dlib/control/approximate_linear_models.h
dlib/control/approximate_linear_models_abstract.h
dlib/control/lspi.h
dlib/control/lspi_abstract.h
dlib/test/lspi.cpp

Revision: 5ba4d41d793aa3a3
Author: Davis King
Date: Apr 13, 2015 (-01:52:45 UTC)

Improved assert error message in cv_image's constructor.

Modified
dlib/opencv/cv_image.h

Revision: 83159841f7a629a7
Author: Aziz Baibabaev
Date: Apr 09, 2015 (17:17:13 UTC)

Fix dlib tests for c++11 c++11 std::mutex clashes with dlib::mutex when: using namespace std; using namespace dlib;

Modified
dlib/test/pipe.cpp
dlib/test/read_write_mutex.cpp
dlib/test/timer.cpp

Revision: aa556db473d3c422
Author: Davis King
Date: Apr 08, 2015 (00:14:44 UTC)

Added missing scope qualifiers to assert statement code so that calls to these macros compile when invoked outside dlib namespace.

Modified
dlib/assert.h

Revision: a266528d481e5917
Author: Davis King
Date: Apr 06, 2015 (13:47:18 UTC)

Merged changes and modified them slightly. In particular, the class already has a timeout parameter, so the connect() call should use that rather than adding another.

Modified
dlib/http_client/http_client.cpp
dlib/http_client/http_client.h

Revision: 13ec362aecc71e4f
Author: Suresh Namla
Date: Apr 06, 2015 (20:35:07 UTC)

Dlib::http_client - Changes for configured Socket Connection Initialization Timeout

Modified
dlib/http_client/http_client.cpp
dlib/http_client/http_client.h

Revision: 716de365a36a6d86
Author: Davis King
Date: Apr 04, 2015 (09:45:09 UTC)

Made the perspective widgets draw lines first.

Modified
dlib/gui_widgets/widgets.cpp

Revision: e87852042fdd4540
Author: Davis King
Date: Apr 04, 2015 (09:41:44 UTC)

Added another add_overlay() overload to perspective_window and also fixed a rendering problem in perspective_display that appeared when drawing lines on displays that weren't positioned at the upper left corner of the entire window.

Modified
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.h
dlib/gui_widgets/widgets_abstract.h

Revision: 2c31b968267cd882
Author: Davis King
Date: Apr 03, 2015 (09:20:09 UTC)

The shape_predictor and shape_predictor_trainer had a non-optimal behavior when used with objects that have non-square bounding boxes. This has been fixed but will cause models that were trained with the previous version of dlib to not work as accurately if they used non-square boxes. So you might have to retrain your models when updating dlib.

Modified
dlib/image_processing/shape_predictor.h

Revision: 12ca999d69b27468
Author: Davis King
Date: Mar 29, 2015 (12:49:00 UTC)

updated README

Modified
tools/imglab/README.txt

Revision: b98432b6dc6b2a14
Author: Davis King
Date: Mar 29, 2015 (12:47:37 UTC)

added comments about using imglab

Modified
examples/train_shape_predictor_ex.cpp

Revision: 60eafa957cbff58a
Author: Davis King
Date: Mar 29, 2015 (12:44:31 UTC)

updated version number and about docs

Modified
tools/imglab/src/main.cpp
tools/imglab/src/metadata_editor.cpp

Revision: b633df7b8f79fd5f
Author: Davis King
Date: Mar 29, 2015 (12:41:25 UTC)

Now you can move overlay rectangles and their parts around on the image_display by holding shift and right clicking and dragging.

Modified
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.h
dlib/gui_widgets/widgets_abstract.h

Revision: a6516a86112c8efe
Author: Davis King
Date: Mar 29, 2015 (12:35:23 UTC)

clarified documentation

Modified
tools/imglab/src/main.cpp

Revision: ce1221e6417e5619
Author: Davis King
Date: Mar 28, 2015 (19:16:54 UTC)

Added default upsampling amount to detector.run(). Also moved the new example code into face_detector.py and added some comments.

Modified
python_examples/face_detector.py
tools/python/src/object_detection.cpp
Deleted
python_examples/face_detector_scores_idx.py

Revision: 700bc3cccb68ba85
Author: Jack Culpepper
Date: Mar 12, 2015 (-06:17:40 UTC)

simplify

Modified
tools/python/src/simple_object_detector_py.h

Revision: fc2389fe5b4efc79
Author: Jack Culpepper
Date: Mar 12, 2015 (08:10:56 UTC)

repair old interface

Modified
tools/python/src/object_detection.cpp
tools/python/src/simple_object_detector_py.h

Revision: 48e7d168583239b2
Author: Jack Culpepper
Date: Mar 12, 2015 (07:48:21 UTC)

run on telling example

Added
python_examples/face_detector_scores_idx.py

Revision: 3d26e92fa1c4b4a5
Author: Jack Culpepper
Date: Mar 12, 2015 (07:39:42 UTC)

re-arrange, use vector<double> to facilitate pass back to python

Modified
tools/python/src/object_detection.cpp
tools/python/src/simple_object_detector_py.h

Revision: baf7130795b73f77
Author: Jack Culpepper
Date: Mar 11, 2015 (16:23:19 UTC)

add ability to return detection confidences and weight index to python

Modified
tools/python/src/object_detection.cpp
tools/python/src/simple_object_detector_py.h

Revision: ccae0e78a834af94
Author: Davis King
Date: Mar 25, 2015 (14:00:40 UTC)

Fixed the get_best_hough_point() function so that it works on generic images.

Modified
dlib/image_transforms/hough_transform.h

Revision: a112c64db55a0ee2
Author: Davis King
Date: Mar 25, 2015 (13:45:12 UTC)

Renamed the lambda variable since it clashes with a python keyword.

Modified
tools/python/src/shape_predictor.cpp
tools/python/src/shape_predictor.h

Revision: 61f97f083b2c1c83
Author: Davis King
Date: Mar 24, 2015 (13:36:07 UTC)

Fixed some bug in the point rotation code and added more unit tests.

Modified
dlib/geometry/point_transforms.h
dlib/test/geometry.cpp

Revision: d22008e6c8621fc8
Author: Davis King
Date: Mar 24, 2015 (13:28:07 UTC)

Minor change to avoid compiler warning

Modified
dlib/gui_widgets/widgets.cpp

Revision: 45e75796cde9d974
Author: Davis King
Date: Mar 24, 2015 (03:40:50 UTC)

Added the apt-get statement to install libx11-dev

Modified
dlib/CMakeLists.txt

Revision: 21a603e9baeb1349
Author: Davis King
Date: Mar 23, 2015 (12:30:24 UTC)

Changed how we #include and compile our own copy of libjpeg. This is to make the build more robust against name conflicts from other libraries that also statically compile libjpeg or stick incompatible versions of libjpeg's header files into folders in the include search path.

Modified
dlib/CMakeLists.txt
dlib/external/libjpeg/jmorecfg.h
dlib/image_loader/jpeg_loader.cpp
dlib/image_saver/save_jpeg.cpp

Revision: fdb49393d88b348f
Author: Davis King
Date: Mar 23, 2015 (02:38:29 UTC)

Added an optional scale output to the camera_transform.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h

Revision: 692528915020cf73
Author: Davis King
Date: Mar 22, 2015 (15:33:17 UTC)

cleaned up examples

Modified
examples/3d_point_cloud_ex.cpp

Revision: 3e3cd44c63363ae1
Author: Davis King
Date: Mar 22, 2015 (15:22:07 UTC)

Added an example program for the new perspective_window object.

Modified
examples/CMakeLists.txt
Added
examples/3d_point_cloud_ex.cpp

Revision: 5ce030707417759e
Author: Davis King
Date: Mar 22, 2015 (14:45:08 UTC)

Replaced the raw_input() calls with a call into dlib since raw_input() isn't available in python3.

Modified
python_examples/face_detector.py
python_examples/face_landmark_detection.py
python_examples/train_object_detector.py
python_examples/train_shape_predictor.py
tools/python/src/other.cpp

Revision: c201be2569e43188
Author: Davis King
Date: Mar 22, 2015 (14:30:41 UTC)

Forgot to make the default constructor for perspective_window make the window show itself.

Modified
dlib/gui_widgets/widgets.h

Revision: c9724176a7a2c6ac
Author: Davis King
Date: Mar 22, 2015 (14:24:07 UTC)

Made the jet and heat colormaps more accessible to other routines.

Modified
dlib/image_transforms/colormaps.h
dlib/image_transforms/colormaps_abstract.h

Revision: 8c0660060a599d6a
Author: Davis King
Date: Mar 22, 2015 (12:43:42 UTC)

Added the perspective_display and perspective_window GUI tools.

Modified
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.h
dlib/gui_widgets/widgets_abstract.h

Revision: a000e05ea8e925ed
Author: Davis King
Date: Mar 22, 2015 (12:42:29 UTC)

fixed typo in comment

Modified
dlib/gui_widgets/base_widgets_abstract.h

Revision: b41b78336fc6d51f
Author: Davis King
Date: Mar 21, 2015 (13:55:08 UTC)

Fixed fov parameter range for camera_transform.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h

Revision: 1d4a3dc5b0c786fc
Author: Davis King
Date: Mar 21, 2015 (13:24:14 UTC)

Made camera_transform default constructable.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h

Revision: 8fdc45286ab6b539
Author: Davis King
Date: Mar 21, 2015 (13:23:35 UTC)

fixed typo in comment

Modified
dlib/gui_widgets/drawable.h

Revision: 6e731f5f4a901c73
Author: Davis King
Date: Mar 21, 2015 (11:23:24 UTC)

Added the camera_transform object.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h

Revision: a178bfe650d144c6
Author: Davis King
Date: Mar 21, 2015 (04:45:17 UTC)

Added get_best_hough_point() to the hough_transform object.

Modified
dlib/image_transforms/hough_transform.h
dlib/image_transforms/hough_transform_abstract.h

Revision: d83295406545ded1
Author: Davis King
Date: Mar 21, 2015 (03:59:41 UTC)

Made it so you can multiply 2d and 3d point transforms together.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h
dlib/test/geometry.cpp

Revision: 37999c2b39e1f75c
Author: Davis King
Date: Mar 20, 2015 (15:53:57 UTC)

Added draw_solid_circle()

Modified
dlib/image_transforms/draw.h
dlib/image_transforms/draw_abstract.h

Revision: 1ec014deedce8576
Author: Davis King
Date: Mar 09, 2015 (04:01:13 UTC)

Added a 3d version of point_transform_affine and also some functions for making 3d rotations.

Modified
dlib/geometry/point_transforms.h
dlib/geometry/point_transforms_abstract.h
dlib/test/geometry.cpp

Revision: f9e3203128163ddf
Author: Davis King
Date: Mar 07, 2015 (09:14:47 UTC)

Added notes about installing skimage.

Modified
python_examples/face_detector.py
python_examples/face_landmark_detection.py
python_examples/find_candidate_object_locations.py
python_examples/train_object_detector.py
python_examples/train_shape_predictor.py

Revision: edac7bff8b92b323
Author: Davis King
Date: Mar 07, 2015 (09:05:42 UTC)

Added instructions for compiling boost-python on windows.

Modified
dlib/add_python_module

Revision: 31627ee88c3c588e
Author: Davis King
Date: Mar 07, 2015 (08:29:23 UTC)

Made the PYTHON3 cmake switch a proper cmake option.

Modified
dlib/add_python_module
tools/python/CMakeLists.txt

Revision: c799f5ee41e99e38
Author: Davis King
Date: Mar 07, 2015 (08:12:39 UTC)

Made the search for boost-python a little more robust

Modified
dlib/add_python_module

Revision: 039ec4bbbfa57f4c
Author: Davis King
Date: Mar 03, 2015 (11:54:53 UTC)

Fixed a bug which prevented add_image_rotations() from compiling.

Modified
dlib/image_transforms/interpolation.h

Revision: ebececc00c39b5fd
Author: Davis King
Date: Mar 02, 2015 (12:49:50 UTC)

A minor change to avoid errors from some compilers.

Modified
dlib/svm/kkmeans.h

Old Change Logs