Commit Graph

6973 Commits

Author SHA1 Message Date
Davis King 22f26ebe97 Improved visual studio compilation instructions 2017-12-16 23:17:37 -05:00
Davis King cb4f78ba61 Tell appveyor to use 64bit visual studio toolchain. 2017-12-16 23:04:50 -05:00
Davis King 2213c428bb updated docs 2017-12-16 22:56:50 -05:00
Davis King a88a00d1fe Merged 2017-12-16 22:34:22 -05:00
Davis King 233a239342 updated docs 2017-12-16 22:28:16 -05:00
Davis King 43c802c961 Added video and ol tags 2017-12-16 22:24:48 -05:00
Davis King bc7d4c4803 Converted to webm since it's compatible with more browsers. 2017-12-16 21:21:58 -05:00
Davis King 3f5de81977 Fixed grammar 2017-12-16 11:26:40 -05:00
ernestotapiar ba83f52420 little corrections in global optimization (#1016)
* Removed redudant (repeated) definition of sample_type.

* Added return statement in the documentation of the (lambda) upper bound
function.
2017-12-15 17:12:58 -05:00
Davis King a6c6427e03 clarified spec 2017-12-15 17:08:49 -05:00
Davis King 76dc546b90 Clarified spec 2017-12-15 11:30:19 -05:00
Davis King 977db52930 Improved error messages for people who have incorrectly installed boost in windows. 2017-12-14 08:06:16 -05:00
Davis King d5097f72db Added python bindings for count_steps_without_decrease() and count_steps_without_decrease_robust() 2017-12-12 21:57:04 -05:00
Aron Rubin fd06680d81 Fixed type passing to opencv to use basic instead of aggregate. (#1010)
* Fixed type passing to opencv to use basic instead of aggregate.

* Change tabs to spaces.
2017-12-12 21:23:47 -05:00
Davis King a9b9299f2d Fixed DLIB_ISO_CPP_ONLY not building. 2017-12-12 06:36:37 -05:00
wyd1520 d223a8a076 Change VS2015 Update3 MSVC Version v19.0.24215.1 To v19.0.24210.0 (#1009) 2017-12-11 13:20:31 -05:00
Davis King 46a1893534 Fixed spelling error in comment 2017-12-11 06:40:00 -05:00
Davis King 7d3397db5b Better travis python testing. 2017-12-10 15:33:46 -05:00
Davis King a80f31a8f6 Try to fix travis build 2017-12-10 15:25:21 -05:00
Davis King 6f4a1dd9c7 Improved cmake's finding of the right python interpreter. 2017-12-10 15:24:45 -05:00
Davis King d3a824d942 Tell the python3 tests to use python3 2017-12-10 14:57:00 -05:00
Davis King 85d62337f6 Minor tweak 2017-12-10 14:48:09 -05:00
Davis King f22d6736b7 Make travis build both python2 and python3 versions of the python extension. 2017-12-10 14:44:31 -05:00
Davis King 2b93468843 Made random_cropper's API a little more convenient for cropping out only
background crops.
2017-12-09 20:53:35 -05:00
Davis King be8269900c The previous commit broke for pyhton2 but fixed python3. This should deal with
numpy's import_array() in a more robust way.
2017-12-09 20:52:07 -05:00
Davis King 7b38ea6f2d Numpy's import_array() macro in python3 requires the calling function to return
void*.  But the previous code didn't so it wouldn't compile.  Fixed that
problem.
2017-12-09 19:51:20 -05:00
Davis King b096bddc43 Added graphic docs for find_max_global 2017-12-08 10:21:17 -05:00
Davis King 3a0a63da39 A little bit of cleanup 2017-12-08 10:16:08 -05:00
Davis King 07febbc9de Made this file executable 2017-12-08 10:09:50 -05:00
Davis King 4ff442324b cleaned up cmake 2017-12-08 10:09:30 -05:00
visionworkz ac292309c1 Exposed jitter_image in Python and added an example (#980)
* Exposed jitter_image in Python and added an example

* Return Numpy array directly

* Require numpy during setup

* Added install of Numpy before builds

* Changed pip install for user only due to security issues.

* Removed malloc

* Made presence of Numpy during compile optional.

* Conflict

* Refactored get_face_chip/get_face_chips to use Numpy as well.
2017-12-08 09:59:27 -05:00
Davis King a865e63552 Fixed spelling error that broke cmake just now. 2017-12-08 09:39:52 -05:00
Davis King c451ac11b7 merged 2017-12-08 09:09:47 -05:00
Davis King a2e90af5b6 Added USE_NEON_INSTRUCTIONS cmake option. 2017-12-08 09:08:09 -05:00
Davis King 52972a7380 Fixed incorrect printing of blas warning message. 2017-12-08 09:07:49 -05:00
Kino f9af9f8bfd don't look for OpenMP with Apple Clang (#1002)
look at issue:
https://github.com/davisking/dlib/issues/674
2017-12-07 16:53:29 -05:00
Davis King 27b2d03432 Merge 2017-12-07 08:16:52 -05:00
Davis King 0ff862aeb7 Changed the windows signaler and mutex code to use the C++11 thread library instead of
the old win32 functions.  I did this to work around how windows unloads dlls.  In particular, during dll unload
windows will kill all threads, THEN it will destruct global objects.  So this leads to problems
where a global obejct that owns threads tries to tell them to shutdown and everything goes wrong.
The specific problem this code change fixes is when signaler::broadcast() is called
on a signaler that was being waited on by one of these abruptly killed threads.  In that case, the old
code would deadlock inside signaler::broadcast().  This new code doesn't seem to have that problem,
thereby mitigating the windows dll unload behavior in some situations.
2017-12-07 08:11:55 -05:00
Davis King 95d16fd05e Added a missing assert. 2017-12-05 15:10:41 -05:00
Davis King c83838c3e5 Filled out the documentation 2017-12-04 21:47:43 -05:00
Davis King 354542685d merged 2017-12-04 17:11:18 -05:00
Davis King 71fca2a164 Fixed shape_predictor_trainer padding so that it behaves as it used to. In
dlib 19.7 the padding code was changed and accidentally doubled the size of the
applied padding when in the older (and still default) landmark_relative padding
mode.  It's not a huge deal either way, but this change reverts back to the
intended behavior.
2017-12-04 17:09:18 -05:00
Davis King 7d91dfccaa Changed test_regression_function() and cross_validate_regression_trainer() to
output correlation rather than squared correlation.
2017-12-04 12:57:38 -05:00
Davis King 155bf30da9 Fixed a very small bias in rand::get_random_double() 2017-12-04 12:29:51 -05:00
Davis King b4644120e6 Fixed grammar 2017-12-02 15:21:23 -05:00
Davis King 3cffafad8c Changed example to use minimization rather than maximization. 2017-12-02 08:55:24 -05:00
Davis King 5e8e997bf7 Added python interface to find_min_global() 2017-12-02 08:55:02 -05:00
Davis King e273f5159d Added find_min_global() overloads. 2017-12-02 07:53:31 -05:00
Davis King 3284f5759a Updated to use thread_local instead of old thread_specific_data class. 2017-12-01 20:15:16 -05:00
Davis King 00910ac1d5 Fixed stack trace macro 2017-12-01 19:53:57 -05:00