Commit Graph

436 Commits

Author SHA1 Message Date
Davis King
a0dc35edb0 updated python docs 2019-03-18 21:38:45 -04:00
Kapil Sachdeva
f7f6f67618 Add python api that generates desciptor(s) from the aligned image(s) (#1667)
* Add python api that generates desciptor(s) from the aligned image(s)

* Remove asserts from face_recognition.py example/tutorial

* In batch_compute_face_descriptors_from_aligned_images, use for-in loop to simplify the code

Improvde the document on binding methods and the error message if the aligned image is not of size 150x150
2019-02-25 20:10:04 -05:00
Branko Kokanovic
41a87e5926 Exposing chinese_whispers directly, closes #1642 (#1644)
* Exposing chinese_whispers directly

* Addressing comments

* Changed description
* Added support for distance weights
* Added tests

* Improving test to check returned results
2019-02-07 06:59:04 -08:00
Miks Miķelsons
e73d3adc0e Add padding argument support for Python compute_face_descriptor methods (#1578) 2018-12-05 07:18:40 -05:00
Davis King
3e9d361f89 Minor changes to avoid bugs in some compilers. 2018-11-20 15:36:07 -05:00
Davis E. King
ba361d73ab
Avoid compiler bug 2018-11-09 09:40:18 -05:00
Davis King
6747122ca5 Added --box-images to imglab 2018-10-22 19:14:05 -04:00
samuarl
0072afbc72 Python Image and Rectangle Scaling (#1488)
* added scale_image python binding which returns an image resized by the provided scale factor

* added scale_rect for rectangle and drectangle. returns a rectangle scaled by the provided scaling factor

* - do not cast scale_rect coordinates to long for drectangle
- document scale_rect for drectangle and rectangle in _abstract.h
- change python binding scale_image to resize_image
- update documentation for resize_image to describe behaviour
2018-09-29 08:02:45 -04:00
Davis King
975b6e88e2 Fixed compile error I just introduced. 2018-07-09 06:57:58 -04:00
Davis King
7b99544f39 clarified docs 2018-07-08 18:08:42 -04:00
Davis King
df21421525 Fixed sub_image(), in the pyhton API, not working correctly for non-8bit images. 2018-07-08 13:37:31 -04:00
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
e248cc8fba Added spatially_filter_image() and spatially_filter_image_separable() do the
python API.
2018-07-04 20:35:22 -04:00
Davis King
93b83677a7 clarified docs 2018-07-03 09:41:22 -04:00
Davis King
0f169ed71f Just a bit of code cleanup 2018-07-03 09:17:51 -04:00
Davis King
a60be3415d Fixed busted assert. 2018-06-28 00:58:48 -04:00
Davis King
8fdb3af9bf Fixed docstrings not showing the right types. 2018-06-27 07:57:03 -04:00
Davis King
d96d3a50f4 cleanup 2018-06-27 07:49:38 -04:00
Guillaume "Vermeille" Sanchez
ec342e39bd Allow batched face recognition for greater performances (#1335) 2018-06-27 07:22:12 -04:00
Davis King
6b581d91f6 Added detection_window_width, detection_window_height, and num_detectors fields
to the simple object detection objects in the Python API.
2018-06-25 21:11:35 -04:00
Davis King
92a89bceb6 Allow point and dpoint use for hough_transform stuff. 2018-06-23 09:03:01 -04:00
Davis King
9a9eb5e53d Clarified docs 2018-06-22 20:58:46 -04:00
Davis King
d0fc6023ce Updated count_points_on_side_of_line() python binding. 2018-06-22 20:57:16 -04:00
Davis King
64fb231240 Fixed grammar in docs 2018-06-21 18:16:13 -04:00
Davis King
d2efb68931 Made hysteresis_threshold() return a uint8 image so it's consistent with
threshold_image().
2018-06-20 18:23:37 -04:00
Davis King
3aad318e90 Made add_overlay() work with more input types in python. 2018-06-18 22:10:15 -04:00
Davis King
dcec88672f Fixed integer overflow. 2018-06-18 21:56:02 -04:00
Davis King
527e26df08 Added max runtime option to object detector trainer API in python. 2018-06-18 21:37:06 -04:00
Davis King
7d3fac5502 Added a --split-train-test option to imglab. 2018-06-18 21:36:36 -04:00
Davis King
d3006ab3b9 Made it so you can call the std::vector<detectors> version of the
object_detector constructor from python.  So now you can pack multiple
detectors into one object via the python API.
2018-06-17 23:17:36 -04:00
Davis King
d50d8e0268 Made the run_multiple() routine work identically for fhog and simple object detectors. 2018-06-17 21:22:24 -04:00
Davis King
19005f68c2 Added translate_rect() to python API 2018-06-17 09:17:45 -04:00
Davis King
165310c51b Fixed print formatting. 2018-06-17 08:29:17 -04:00
Davis King
c255e73baa Made it so you can display arbitrary full_object_detection objects on the
image_window in Python.
2018-06-16 17:36:17 -04:00
Davis King
4b907532d8 Allow python to set the padding mode of the shape_predictor_trainer. 2018-06-16 17:02:33 -04:00
Davis King
8798955d59 Made it so you can fully build image_dataset_metadata::dataset objects from python. 2018-06-16 16:17:38 -04:00
Davis King
85a0dea37c Added zero_border_pixels() to the python API 2018-06-12 20:03:53 -04:00
Davis King
b23c718640 Fixed dlib.threshold_image() ignoring the optional thresh argument. 2018-06-10 22:33:27 -04:00
Davis King
1f0cb544ca Added max_point() and max_point_interpolated() to the Python API. 2018-06-10 22:16:30 -04:00
Davis King
f8419124ce Cleaned up the object_detector Python API a little and also pushed the nuclear
norm regularization stuff to Python. This also includes adding
num_separable_filters() and threshold_filter_singular_values() to the Python API.
2018-06-10 21:04:57 -04:00
Davis King
9a845c511e A bit of cleanup 2018-06-10 20:51:14 -04:00
Davis King
5ed1c2f28b Made it so you can construct dlib.image_windows from detectors. 2018-06-10 20:50:44 -04:00
Davis King
1d67149511 Added CMakeLists.txt for the stuff in tools/archive. 2018-06-10 08:48:07 -04:00
Davis King
3126372c10 Added the translation jittering option to the python API. 2018-06-08 22:01:21 -04:00
Davis King
0fe68bb5a2 Added auto_train_rbf_classifier() and reduced() to the Python API. 2018-06-06 23:07:01 -04:00
Davis King
66c4fa81cb Made decision functions more viewable from python. 2018-06-03 13:45:19 -04:00
Davis King
908f5540ad Make arrays of points and rectangles constructable with a size in the Python API. 2018-06-02 18:53:28 -04:00
Davis King
5dc918581e updated docs 2018-05-31 23:03:43 -04:00