Commit Graph

463 Commits

Author SHA1 Message Date
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
Davis King f24b0816a1 Made .size of hough_transform a property rather than a function. 2018-05-31 23:00:17 -04:00
Davis King 212c19c0ce cleanup 2018-05-31 22:29:19 -04:00
Davis King 18d438588d Fixed spelling error in comment 2018-05-31 22:15:57 -04:00
Davis King 771036ceed Cleanup hough_transform pyhton binding 2018-05-31 21:20:27 -04:00
Davis King b9146ad676 Fixed spelling error 2018-05-28 22:12:05 -04:00
Davis King 06bbfcb448 Added polygon_area() to python API 2018-05-28 20:52:42 -04:00
Davis King a40614e585 Added sub_image() to python API. Also added an overload of get_rect() for
hough_transform objects and made some argument names more consistent.
2018-05-28 18:54:14 -04:00
Davis King 3426570903 More overloads for rectangle.contains() 2018-05-28 18:53:22 -04:00
Davis King 4f2f565cb8 Added more operators for dpoint and point in the Pyhton API. 2018-05-28 18:53:02 -04:00
Davis King 0249bcb9de Added get_histogram() to the python API. Also added more overloads of label_connected_blobs(). 2018-05-27 11:05:20 -04:00
Davis King 1a3f8d5bf3 Added center() and more overloads of centered_rect() to the Python API. 2018-05-26 22:53:30 -04:00
Davis King 8516442aee Added extract_image_chip() and extract_image_chips() to the Python API. 2018-05-26 22:38:16 -04:00
Davis King 2ed128e2b4 Made dlib.range a little more like the python range. 2018-05-26 17:35:35 -04:00
Davis King d2fa9e85e1 Cleaned up code and fixed point and dpoint addition actually doing subtraction. 2018-05-26 16:59:25 -04:00
Davis King 57e4fd207e Added a .add_overlay_circle() to dlib.image_window. 2018-05-25 19:17:03 -04:00
Davis King 91e64dfb17 Added min_barrier_distance() to the Python API. 2018-05-25 19:14:53 -04:00
Davis King 37d13ae88e Fixed some python functions not taking as wide a range of images as they did in
previous dlib versions.
2018-05-25 19:03:00 -04:00
Davis King bd2e0bc306 Made skeleton(), in the python API, return the given image so
you can chain calls easily.
2018-05-24 21:06:20 -04:00
Davis King c1f5f32b2a Renamed convert_rgb_to_grayscale() to as_grayscale() and made it take any
numpy array as input.
2018-05-24 20:59:45 -04:00
Davis King 89ffae6126 Added load_grayscale_image() to the Python API 2018-05-24 20:59:19 -04:00
Davis King 840bb5bc64 Updated to work with new extract_image_4points() interface. 2018-05-24 20:40:23 -04:00
Davis King d3bd9d61e1 Added extract_image_4points() to the Python API. 2018-05-23 23:06:48 -04:00
Davis King 7eb1d2d4d5 Added angle_between_lines() to the Python API. 2018-05-23 23:06:31 -04:00
Davis King ec150f8d88 Fixed warnings and sorta bugs. 2018-05-23 13:09:28 -04:00
Davis King 39a1329831 Added a version of transform_image() that works with projective transforms to
the Python API.
2018-05-22 23:02:42 -04:00
Davis King a67bdd8d70 Added point_transform_projective, find_projective_transform(), and inv() to
the Python API.
2018-05-22 23:02:11 -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 1df5227e3e Added hysteresis_threshold() and sobel_edge_detector() bindings in the Python API. 2018-05-20 22:13:00 -04:00
Davis King 5df921a226 Made the python API for image_window accept any image type. 2018-05-20 22:11:41 -04:00
Davis King a3ca78de9c Added convert_rgb_to_grayscale(), pyramid_down, find_bright_keypoints(),
find_bright_lines(), find_dark_lines(), find_dark_keypoints(),
suppress_non_maximum_edges(), and find_peaks() to the Python API.
2018-05-20 19:21:34 -04:00
Davis King 40da8bf72f Added length() for point and dpoint in the Python API. 2018-05-20 19:20:09 -04:00
Davis King 52e7ab68bc Made image_window use numpy_image explicitly so it benefits from numpy_image's
automatic binding.
2018-05-20 18:43:50 -04:00
Davis King cafd6a0ad5 Added centered_rect() and centered_rects() to Python API. Also
added the *_corner() routines to rectangle and drectangle and made these
objects constructable from instances of each other.
2018-05-20 18:43:15 -04:00
Davis King c18202842e Made point and dpoint constructable from each other. 2018-05-20 18:41:57 -04:00
Davis King 70c6f7b84e Minor cleanup 2018-05-20 10:19:55 -04:00
Davis King c0097a7826 Added dpoint to the python API. 2018-05-20 10:17:53 -04:00
Davis King da943c691e Added label_connected_blobs_watershed(), convert_image(),
and convert_image_scaled() to the python API.
2018-05-20 10:09:19 -04:00
Davis King e15fcbd39e Added the following things to the python API: gaussian_blur(), label_connected_blobs(),
randomly_color_image(), jet(), skeleton(), find_line_endpoints(), get_rect(), shrink_rect(),
grow_rect(), and image_gradients.
2018-05-19 23:43:28 -04:00
Davis King 26701f7342 Fixed typo in docs 2018-05-19 14:38:29 -04:00
Davis King 1f727f930b Fixed broken unit test. 2018-05-19 14:14:43 -04:00
Davis King 7e7d8e9071 Added python interface to threshold_image() and partition_pixels(). 2018-05-19 13:12:47 -04:00
Davis King 27dbbe2de1 Renamed dlib.save_rgb_image() to dlib.save_image() 2018-05-19 13:12:27 -04:00
Davis King 0e0675715a Improved python docs 2018-05-17 07:18:13 -04:00
Davis King 851d70a5b4 A bit of cleanup 2018-05-07 07:24:29 -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
Davis King 30101dff48 Updated about to talk about new part labeling method. 2018-04-19 22:45:58 -04:00
Davis King 52322e5ae2 Made convert_to_numpy() take an rvalue reference so that it's really explicit
that it's going to move the matrix into the result.
2018-04-17 22:58:13 -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
visionworkz 509d62351e Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips (#1246)
* Fixed reference count issue

* Fixed refcount issue in Python dlib.jitter_image and dlib.get_face_chips
2018-04-10 09:29:08 -04:00
Davis King 24ac9bc43f A bit of cmake cleanup 2018-04-06 17:43:49 -04:00
visionworkz 0db8713a6d Fixed reference count issue (#1222) 2018-03-31 07:38:52 -04:00
Davis King 60a4af67e8 Added more unit tests 2018-03-17 17:10:44 -04:00
Davis King 2cff3f4e00 Added a note about disabling LTO 2018-03-17 17:10:31 -04:00
Davis King 3e781f6f61 Added interface to the global_function_search object. 2018-03-17 17:00:08 -04:00
Davis King 49ec319ce4 Added rect_filter and find_optimal_rect_filter() to python API. 2018-03-03 18:45:16 -05:00
Davis King 1c26be904c Added operator + support for dlib.rectangle. 2018-03-03 17:21:23 -05:00
Davis King 09f36dbf47 Added python interface to cuda::set_device() and other relevant
functions.
2018-02-21 21:51:48 -05:00
Davis King a37c5e7c2b Add the example program contents as a test as well. 2018-02-19 13:31:07 -05:00
Morten Hustveit 9691c194c0 Added support for variadic Python functions in find_max_global. (#1141)
* Added support for variadic Python functions in find_max_global.

* Add test for find_{min,max}_global on variadic functions.
2018-02-19 13:26:45 -05:00
Davis King 87aa290c04 Fixed pybind11 not doing the overload resolution correctly on the cnn_face_detector's operator() in Python. 2018-02-14 22:01:22 -05:00
Davis King ca1c7af21b Added missing , in output 2018-02-13 19:09:54 -05:00
HarveyBrezinaConniffe 46e85e45c6 Added set_dnn_prefer_smallest_algorithms() (#1128)
* Added set_dnn_prefer_smallest_algorithms()

* Added description for set_dnn_prefer_smallest_algorithms();w

* Changed architectures to algorithms.
2018-02-13 16:28:46 -05:00
Davis King 52edc0d2e7 Fixed incorrect input validation. 2018-02-11 22:40:30 -05:00
Davis King 0040eb7fa8 removed debugging print statement. 2018-02-11 22:38:27 -05:00
Davis King aca8087371 Added num_threads to shape_predictor_training_options. 2018-02-11 18:15:40 -05:00
Davis King 2a26521b0b - Added rectangless.
- Moved all uses of PYBIND11_MAKE_OPAQUE to a common header to avoid possilbe ODR violations.
- Added python binding for make_bounding_box_regression_training_data().
2018-02-11 17:19:04 -05:00
Davis King 5bde5c526e Made the index outputs of run_multiple_rect_detectors be integers rather than doubles. 2018-02-10 17:12:13 -05:00
Davis King 2d3dd3c830 Exposed the image_dataset_metadata routines for parsing XML datasets to Python. 2018-02-10 12:44:39 -05:00