Commit Graph

90 Commits

Author SHA1 Message Date
Davis King ec3c36fc23 Set execute bit. 2018-04-29 17:18:51 -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
Arian Giles García fe1c287374 Remove unnecessary semicolon (#1223) 2018-03-31 11:25:04 -04:00
Davis King 1ec5a94554 Added comments about how to run multiple detectors together efficiently. 2018-02-10 16:58:02 -05:00
Davis King c1b1ac955a Removed references to boost.python since it's no longer needed. 2018-01-22 19:23:01 -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 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
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 3cffafad8c Changed example to use minimization rather than maximization. 2017-12-02 08:55:24 -05:00
Davis King ed9beffa33 Added python example for find_max_global() 2017-11-25 10:23:36 -05:00
Davis King 7a317f5456 Fixed bug 2017-10-18 10:17:46 -04:00
Davis King e35b2d8fc8 Added python binary classifier example 2017-10-18 07:36:31 -04:00
Davis King b9238fa5eb Clarified docs 2017-10-01 08:44:03 -04:00
Davis King 67e6957b1e Clarified comment and updated requirements.txt 2017-09-22 21:52:15 -04:00
Varun Chatterji 7e94daad4d Cleaned up example file. 2017-09-19 23:08:54 +08:00
Varun Chatterji 5f26972551 Added code to get face_chip images.. 2017-09-19 13:08:51 +08:00
Varun Chatterji 9fe352d696 Added size and padding as optional parameters 2017-09-18 19:54:26 +08:00
Davis King 532552627a Cleaned up code and comments.
In particular, these new functions don't need to be inside the face
recognition class.  So I moved them out.  I also fixed many incorrect
copy/pasted comments and clarified parts of the example code.
2017-09-16 14:53:11 -04:00
Davis King 5cf80dda6a Merge branch 'master' of git://github.com/visionworkz/dlib into visionworkz-master 2017-09-16 14:18:44 -04:00
Davis King f56ba6b04f Changed code to recommend users to use the new 5 point face landmarking model. 2017-09-15 19:57:54 -04:00
Davis King 80222b5987 Fixed grammar 2017-09-15 19:57:33 -04:00
Davis King bd26a5d030 fix awkward grammar 2017-09-10 22:23:31 -04:00
Davis King 205b26f831 Improved citations 2017-09-10 22:16:54 -04:00
Varun 93a1aba096 Added threshold to clustering call 2017-09-10 06:15:42 +08:00
Visionworkz 8b48c09c7b Added face clustering example to Python API 2017-09-06 02:05:42 +08:00
Davis King a4eb894ff0 Set this file to executable 2017-08-27 19:13:46 -04:00
Guillaume Ramé bbf3d987b2 improvements to cnn face detection python interface (#780)
* improvements to cnn face detection interface

* mmod rectangle object renaming. possibility to set batch size in multi image detection. Added check to make sure images are all the same size.
2017-08-27 18:40:31 -04:00
Adam Geitgey b6d2329c5e Add a python wrapper for using the mmod face detector (#753) 2017-08-18 16:30:33 -04:00
Pavan kumar 3e471ade23 Just small typo (#716) 2017-07-19 09:08:28 -04:00
Davis King 6d636ffb7e Added python requirements.txt file for scikit-image 2017-04-19 22:19:17 -04:00
Adam Geitgey a3023fdeea Remove extra semicolons (#446) 2017-02-22 13:23:21 -05:00
Davis King 3e63e0a1b3 Added a python version of the DNN face recognition example program. 2017-02-12 20:38:17 -05:00
Davis King f467624eec Changed URLs to point to dlib.net instead of sourceforge.net 2016-06-25 14:00:38 -04:00
nxwhite-str b53e9cf010 Add detection threshold adjustment to object detection python interface (#140)
* Add cmake option to use external libjpeg on Mac OS

* Add adjust_threshold to python object detector

* Add cmake option to use external libjpeg on Mac OS

* Add adjust_threshold to python object detector

* Revert "Add cmake option to use external libjpeg on Mac OS"

This reverts commit 01f7fd13ea.

* Update detector example to set adjust_threshold
2016-06-22 21:17:16 -04:00
Davis King 9988deac43 Cleaned up install instructions slightly. 2015-10-27 08:50:44 -04:00
Davis King 844f252a75 Updated compile/install instructions for python bindings. 2015-10-27 08:25:43 -04:00
Patrick Snape dd922c668f Add example of python correlation tracker
This replicates the c++ example.
2015-05-20 12:25:28 +01:00
Davis King d1a5815cb9 Added default upsampling amount to detector.run(). Also moved the
new example code into face_detector.py and added some comments.
2015-03-28 23:16:54 -04:00
Davis King 216eb3f30f Merge branch 'py_det_conf_and_idx' of https://github.com/jackculpepper/dlib into jackculpepper-py_det_conf_and_idx 2015-03-28 22:48:19 -04:00
Davis King e00f6f63ca Replaced the raw_input() calls with a call into dlib since raw_input() isn't
available in python3.
2015-03-22 18:45:08 -04:00
Jack Culpepper f2f4e9d0bf run on telling example 2015-03-12 07:48:21 +00:00
Davis King 154f435427 Added notes about installing skimage. 2015-03-07 14:14:47 -05:00
Davis King 5b5393f6ac clarified example 2015-01-03 23:33:46 -05:00
Davis King ab424628dc Made this file executable 2015-01-03 23:26:02 -05:00
Vinh Khuc 067e36b505 Added a Python example for find_candidate_object_locations 2015-01-03 14:45:46 -05:00
Davis King ef06f0e8d5 Fixed grammar 2014-12-27 18:15:07 -05:00
Davis King 1ab3482597 Clarified a few comments and simplified the serialization code a bit.
Also just cleaned up a few minor details.
2014-12-27 15:30:56 -05:00
Patrick Snape 37af35b55e Re-add the cached object detector
A little bit hacky, but should be fine. Supports both fhog
detectors and the "cached" simple_object_detector. Also, maintains
the upscale parameter for testing
2014-12-12 16:22:57 +00:00
Patrick Snape fbe597be03 Add facial landmark prediction examples for Python 2014-12-11 15:01:08 +00:00