Davis King
3f19503a3c
Split image2.cpp into two files to help speed up the build.
2018-07-07 14:10:30 -04:00
Davis King
4aed5b2b7f
Split image.cpp into two files so builds are more parallelizeable.
2018-07-07 14:01:08 -04:00
Davis King
ea2fbcab5c
Disable LTO since it basically just makes the build process slow.
2018-07-07 08:59:16 -04:00
Davis King
18d438588d
Fixed spelling error in comment
2018-05-31 22:15:57 -04:00
Davis King
a18e72e516
A bit of cmake cleanup
2018-05-22 07:15:27 -04:00
Davis King
104ffddb4c
Make python extension automatically enable AVX instructions if the host machine
...
supports them.
2018-05-21 21:21:40 -04:00
Davis King
f21ac08063
Added hough_transform, remove_incoherent_edge_pixels(),
...
normalize_image_gradients(), line, signed_distance_to_line(),
distance_to_line(), reverse(), intersect(), count_points_on_side_of_line(),
count_points_between_lines(), dot(), and normalize() to Python API.
2018-05-21 21:20:18 -04:00
Davis King
a190a1c242
Added equalize_histogram() and resize_image() to the Python API.
2018-05-20 22:34:49 -04:00
Davis King
1a297363c6
Fixed spelling error in message.
2018-05-03 16:35:33 -04:00
Davis King
46052db07c
Turn LTO back on.
2018-04-28 16:44:40 -04:00
Davis King
43e5f42ef5
Added numpy_image templated class that makes a numpy array
...
conform to dlib's generic image interface. This makes dealing with
numpy images in pybind11 modules much nicer.
2018-04-28 08:52:25 -04:00
visionworkz
e8faced822
Add basic image io and remove python C-API refs from numpy_returns.cpp ( #1258 )
...
* Fixed reference count issue
* Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips
* Consolidation of https://github.com/davisking/dlib/pull/1249
* Fixed build issue
* Fixed: Paths in a pytest file should be relative to dlib root
* Skip numpy return tests for Python 2.7 or if Numpy is not installed
* Enabled numpy returns tests on Python 2.7 using cPickle.dumps
2018-04-17 22:49:25 -04:00
Davis King
24ac9bc43f
A bit of cmake cleanup
2018-04-06 17:43:49 -04:00
Davis King
2cff3f4e00
Added a note about disabling LTO
2018-03-17 17:10:31 -04:00
Davis King
2d3dd3c830
Exposed the image_dataset_metadata routines for parsing XML datasets to Python.
2018-02-10 12:44:39 -05:00
Davis King
635747e654
Cleaned up setup.py and the python cmake script.
2018-01-16 07:24:47 -05:00
Mischan Toosarani-Hausberger
077a3b60e7
Replace boost::python with pybind11 ( #1040 )
...
* Replace boost::python with pybind11
* Replace add_python_module with pybind11_add_module
* Fix clang error on type-dependent expression
2018-01-15 14:41:40 -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
c3f2c1dfcb
Added a python interface to find_max_global()
2017-11-25 10:07:00 -05:00
Davis King
ba430be591
Make DLIB_ASSERT statements not abort the python interpreter, but just trigger an exception.
2017-08-19 08:48:48 -04:00
Adam Geitgey
b6d2329c5e
Add a python wrapper for using the mmod face detector ( #753 )
2017-08-18 16:30:33 -04:00
Alain Vaucher
b41455fd26
Change minimum CMake version that supports the introduced features
2017-02-27 18:23:28 +01:00
Davis King
c182adbf4b
Added a python interface to the face recognition DNN model.
2017-02-12 20:37:18 -05:00
Davis King
4de8678b57
Moved the auxiliary cmake into a common folder.
...
--HG--
rename : dlib/add_global_compiler_switch.cmake => dlib/cmake_utils/add_global_compiler_switch.cmake
rename : dlib/add_python_module => dlib/cmake_utils/add_python_module
rename : dlib/cmake_find_blas.txt => dlib/cmake_utils/cmake_find_blas.txt
rename : dlib/dlib.pc.in => dlib/cmake_utils/dlib.pc.in
rename : dlib/dlibConfig.cmake.in => dlib/cmake_utils/dlibConfig.cmake.in
rename : dlib/release_build_by_default => dlib/cmake_utils/release_build_by_default
rename : dlib/tell_visual_studio_to_use_static_runtime.cmake => dlib/cmake_utils/tell_visual_studio_to_use_static_runtime.cmake
rename : dlib/dnn/test_for_cpp11/CMakeLists.txt => dlib/cmake_utils/test_for_cpp11/CMakeLists.txt
rename : dlib/dnn/test_for_cpp11/cpp11_test.cpp => dlib/cmake_utils/test_for_cpp11/cpp11_test.cpp
rename : dlib/dnn/test_for_cuda/CMakeLists.txt => dlib/cmake_utils/test_for_cuda/CMakeLists.txt
rename : dlib/dnn/test_for_cuda/cuda_test.cu => dlib/cmake_utils/test_for_cuda/cuda_test.cu
rename : dlib/dnn/test_for_cudnn/CMakeLists.txt => dlib/cmake_utils/test_for_cudnn/CMakeLists.txt
rename : dlib/dnn/test_for_cudnn/find_cudnn.txt => dlib/cmake_utils/test_for_cudnn/find_cudnn.txt
rename : dlib/use_cpp_11.cmake => dlib/cmake_utils/use_cpp_11.cmake
2016-06-28 20:17:03 -04:00
Davis King
96e9129105
Made the python build get a DLIB_VERSION macro defined. Also cleaned up cmake
...
a little bit.
2016-02-03 08:24:11 -05:00
Davis King
fbd1178047
Made the python modules use SSE4 instructions by default.
2015-09-28 21:47:44 -04:00
Patrick Snape
e3c3d39ab1
Add an API for the correlation tracker
...
This aids an API for the correlation based tracker that Davis
recently added to Dlib. I've made sure to allow overrides for
passing normal rectangles rather than drectangles (which isn't
currently supported in the Dlib C++ API). This is mostly
because I imagine people might initialize the tracking using
something like a bounding box from a detector (e.g.
load_frontal_face_detector).
2015-05-20 11:29:14 +01:00
Patrick Snape
c4cf31a746
Preparing for correlation tracker - add drectangle
...
The correlation tracker deals with the drectangle
(double rectangle) class which currently isn't wrapped. Therefore,
I add the drectangle class and refactor rectangles into their
own file. I also added a load of methods on rectangle that might
be useful such as intersection/contains/area etc.
2015-05-20 10:46:01 +01:00
Davis King
4bbfe512ae
Made the PYTHON3 cmake switch a proper cmake option.
2015-03-07 13:29:23 -05:00
Patrick Snape
5b485a628b
Properly handle turning the GUI off
2014-12-11 12:05:10 +00:00
Patrick Snape
e801bd6ab5
Refactor the GUI code out
...
I also cleaned up a bunch of code. I'm not sure why the
simple_object_detector was keeping track of the upsample amount,
since it can't even be passed as an argument to the constructor.
Therefore, I removed the simple_object_detector_py and the second
declaration of the hog object detector. I also changed the
view code to optionally take keyword args of color and added
a single view of a rectangle.
Finally, I added viewing of the shape parts.
2014-12-11 11:46:01 +00:00
Patrick Snape
e3aee32f34
Add wrappers for the shape predictors
...
This includes the full_object_detection, a new struct in the same
vein as the simple_object_detector_training_options and of
course, the shape predictor classes themselves.
All of training, fitting and testing are wrapped.
2014-12-10 17:45:51 +00:00
Patrick Snape
68ae858f27
Refactor rgb_pixel out of object detection
...
Also, move the vectorize template into its own header to
stop having to declare it again in vector.
2014-12-10 17:45:51 +00:00
Davis King
cdbc1919d4
more cmake changes to avoid cmake warnings
2014-12-06 08:38:04 -05:00
Davis King
db3eaa728b
Changed python cmake scrips to have an option to compile Python 3 libraries.
2014-11-26 16:28:52 -05:00
Davis King
a20f154483
Added a python interface to the fhog_object_detector and related tools.
2014-02-09 12:56:35 -05:00
Davis King
a0fe7efc8f
Added initial version of structural svm python bindings
2013-06-26 22:34:00 -04:00
Davis King
d20b08a00c
Added comments
2013-05-29 22:41:01 -04:00
Davis King
5597d9cb20
Starting to flesh out the python interface documentation a little more.
2013-05-26 14:21:02 -04:00
Davis King
cecc38f5b6
Added support for using the dense vector version of the sequence_segmenter from
...
python.
2013-05-20 23:18:14 -04:00
Davis King
2c2f955647
Added cca() bindings
2013-04-28 15:46:55 -04:00
Davis King
bca5cddf43
Added more refinements and also bindings for svm_rank_trainer.
2013-04-27 14:05:38 -04:00
Davis King
d7b8dfbc0c
Fixed spelling error in filename.
...
--HG--
rename : tools/python/src/decision_funcions.cpp => tools/python/src/decision_functions.cpp
2013-04-27 12:29:52 -04:00
Davis King
6c313b8949
Just moving code around.
2013-04-27 12:28:46 -04:00
Davis King
affd197e3c
Refined the python bindings more. Still lots to do though.
2013-04-27 09:57:24 -04:00
Davis King
1a64bcc39a
Added initial python bindings for dlib
2013-04-27 08:35:04 -04:00