Commit Graph

297 Commits

Author SHA1 Message Date
Adrià Arrufat
65bce59a15
Update Pybind11 to v2.10.0 (#2660)
* Update Pybind11 to v2.10.0

* Update numpy_image to work with latest Pybind11

* I don't know why I have to do this now...

* Try to make macOS use Python3... Really?

* Try to make macOS use Python3... Again

* Try to make macOS use Python3... Once more

* Install dependencies with pip3
2022-09-05 15:59:19 -04:00
Davis King
29288e5d89 Make C++14 and CMake 3.8.0 the new minimum required versions 2022-07-31 17:45:18 -04:00
Davis King
a517aaa0bb remove broken python tests 2022-07-12 19:51:19 -04:00
Davis King
0f1d8e964f Fix assert having wrong condition 2022-06-06 22:01:59 -04:00
Ryan_Huang
7e942ba989
Update __init__.py.in (#2515) 2022-02-18 08:50:55 -05:00
Davis King
7c8ca22580 minor cleanup 2021-11-14 14:09:57 -05:00
Davis King
a77b361f89 Make test python builds nice 2021-11-14 14:05:47 -05:00
Addam Dominec
569de81464
expose momentum_filter to Python (#2457) 2021-11-14 13:34:00 -05:00
Akshay Naresh Modi
286ca71e1a
Release GIL before detecting faces (#2252)
* Allow the face detector to be run concurrently.

* Use img_view instead of numpy_image

Co-authored-by: Akshay Modi <amodi@netflix.com>
2020-12-13 14:57:41 -05:00
Adrià Arrufat
b6bf8aefee
Add support for matrix serialization to python API (#2241)
* Add support for matrix serialization to python API

* add double to function names
2020-11-21 17:09:06 -05:00
Frankie Robertson
d7644ef2b7
Expose get_face_chip_details to Python (#2238) 2020-11-21 17:07:28 -05:00
Davis King
0419b81689 Let python users give up to 35 parameters when using the global optimizer. 2020-09-25 07:41:57 -04:00
Davis King
8910445a7a fix some spelling and grammar errors 2020-08-07 15:41:42 -04:00
Davis King
71b303d883 Improve the error a user gets when trying to build the pyhton extention on windows but they didn't install visual C++. 2020-06-27 20:08:39 -04:00
Davis King
f8887d8cbb fix paths 2020-06-17 21:29:10 -04:00
Davis King
2a3cb83afc Make dlib/__init__.py know the paths to cuda that cmake used. Use those
paths instead of relying on CUDA_PATH to be set.
2020-06-17 20:17:10 -04:00
Davis King
7fe355e0ec Oops, put import statements after path adjustment 2020-06-07 16:59:40 -04:00
Davis King
7fcb6c285d Add an __init__.py file so we can add paths to CUDA libs on windows. 2020-06-07 16:42:44 -04:00
Mischan Toosarani-Hausberger
efd4e27488 dpoint mutates x-coord in y-property (see #1794) (#1866) 2019-08-24 11:13:00 -04:00
Davis King
48b9bf3f93 Fixed cmake warning 2019-07-19 07:12:27 -04:00
mchelem
5d64de24b3 Fix setting a point's y coordinate changes x instead (Python bindings) (#1795)
* Add point assignment test

* Fix setting points y coordinate changes x instead (issue #1794)
2019-06-08 06:08:45 -04:00
Davis King
6de82e2417 Added methods for getting keyboard and mouse clicks to image_window's pyhton API. 2019-06-01 09:29:43 -07:00
Davis King
2dd970a1fb Fixed compiler warnings 2019-04-14 11:19:06 -04:00
Davis King
ae406bf4c1 Make dlib.full_object_detection take list of dlib.point or dlib.points. 2019-03-19 08:13:49 -04:00
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
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
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