* Add simple polygon class
* Add documentation for fill_convex_polygon
* Rename alpha_blend to antialias
* Update dlib/geometry/polygon_abstract.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update dlib/geometry/polygon_abstract.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update dlib/geometry/polygon_abstract.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update dlib/geometry/polygon_abstract.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update dlib/geometry/polygon_abstract.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update dlib/geometry/polygon.h
Co-authored-by: Davis E. King <davis685@gmail.com>
* Update documentation for get_convex_shape
* Add tests for the polygon class
* Remove new line
---------
Co-authored-by: Davis E. King <davis685@gmail.com>
The gcc altivec extension defines keywords for vector, bool, and pixel,
both with underscores and without. However, unless another extension is
used the keywords without underscores conflict with standard types.
To resolve the conflict use the keywords with underscores for the
altivec vector types.
Fixes: #2711
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
* - use add_executable directly
- use target_compile_definitions()
- strip binaries in release mode
* Added a comment
---------
Co-authored-by: pf <pf@me>
Co-authored-by: Davis E. King <davis685@gmail.com>
* - added ffmpeg stuff to cmake
* - added observer_ptr
* ffmpeg utils
* WIP
* - added ffmpeg_decoder
* config file for test data
* another test file
* install ffmpeg
* added ffmpeg_demuxer
* install all ffmpeg libraries
* support older version of ffmpeg
* simplified loop
* - test converting to dlib object
- added docs
- support older ffmpeg
* added convert() overload
* added comment
* only register stuff when API not deprecated
* - fixed version issues
- fixed decoding
* added tests for ffmpeg_demuxer
* removed unused code
* test GIF
* added docs
* added audio test
* test for audio
* more tests
* review changes
* don't need observer_ptr
* made deps public. I could be wrong but just in case.
* - added some static asserts. Some areas of the code might do memcpy's on arrays of pixels. This requires the structures to be packed. Check this.
- added convert() functions
- changed default decoder options. By default, always decode to RGB and S16 audio
- added convenience constructor to demuxer
* - no longer need opencv
* oops. I let that slip
* - made a few functions public
- more precise requires clauses
* enhanced example
* - avoid FFMPEG_INITIALIZED being optimized away at link time
- added decoding example
* - avoid -Wunused-parameter error
* constexpr and noexcept correctness. This probably makes no difference to performance, BUT, it's what the core guidelines tell you to do. It does however demonstrate how complicated and unecessarily verbose C++ is becoming. Sigh, maybe one day i'll make the switch to something that doesn't make my eyes twitch.
* - simplified metadata structure
* hopefully more educational
* added another example
* ditto
* typo
* screen grab example
* whoops
* avoid -Wunused-parameter errors
* ditto
* - added methods to av_dict
- print the demuxer format options that were not used
- enhanced webcam_face_pose_ex.cpp so you can set webcam options
* if height and width are specified, attempt to set video_size in format_options. Otherwise set the bilinear resizer.
* updated docs
* once again, the ffmpeg APIs do a lot for you. It's a matter of knowing which APIs to call.
* made header-only
* - some Werror thing
* don't use type_safe_union
* - templated sample type
- reverted deep copy of AVFrame for frame copy constructor
* - added is_pixel_type and is_pixel_check
* unit tests for pixel traits
* enhanced is_image_type type trait and added is_image_check
* added unit tests for is_image_type
* added pix_traits, improved convert() functions
* bug fix
* get rid of -Werror=unused-variable error
* added a type alias
* that's the last of the manual memcpys gone. We'using ffmpeg API everywhere now for copying frames to buffers and back
* missing doc
* set framerate for webcam
* list input devices
* oops. I was trying to make ffmpeg 5 happy but i've given up on ffmpeg v5 compatibility in this PR. Future PR.
* enhanced the information provided by list_input_devices and list_output_devices
* removed vscode settings.json file
* - added a type trait for checking whether a type is complete. This is useful for writing type traits that check other types have type trait specializations. But also other useful things. For example, std::unique_ptr uses something similar to this.
* Davis was keen to simply check pixel_traits is specialised. That's equivalent to checking pixel_traits<> is complete for some type
* code review
* juse use the void_t in dlib/type_traits.h
* one liners
* just need is_image_check
* more tests for is_image_type
* i think this is correct
* removed printf
* better docs
* Keep opencv out of it
* keep old face pose example, then add new one which uses dlib's ffmpeg wrappers
* revert
* revert
* better docs
* better docs
---------
Co-authored-by: pf <pf@me>
* Added bind_front()
* - Added bind_back()
- moved contents of invoke.h into functional.h
- invoke.h just includes functional.h
- added tests
* though it doesn't make a difference, use correct header
* add docs
* Give this a try. Might make gcc7 happy
* workaround for gcc7 bug
Co-authored-by: pf <pf@me>
Co-authored-by: Davis King <davis@dlib.net>
I was using the data augmentation recommended for the ImageNet dataset, which is not well suited
for CIFAR-10.
After doing so, the test accuracy increased by 1 point.
I was using the normalized features za as both matrices, instead of za and zb.
I noticed this because the empirical cross-correlation matrix was symmetrical,
which is not supposed to. It does not affect anything, as it was computed
properly in the loss.
* - moved for_each_in_tuple() to algs.h. Seems like a better place
- took the opportunity to deprecated the old type traits and make them aliases to things in the standard library
* - made bools() constexpr
* - removed ugly template recursion version of for_each_in_tuple(). Recursion is bad and is one of the reasons why buid times are so long.
- Use generic lambdas. Much better.
* - missing include
* - just make old deprecates stuff aliases to standard library things
- use switch_() for compile time branching. It's awesome. It means less code and less templates.
* - fixed make_compile_time_integer_range. Didn't realize it counted like Matlab. Very weird
* - nice example usage of switch_(). it will be trivially updated to if constexpr() in a couple years when dlib requires C++17
* - deduce return type
- use generic lambdas
* - for some reason these have to specify the return type. I don't understand. Will fix in a bit.
* - yet another template recursion removed. Better compile times in theory. Every little helps
* whoops
* use decay_t
* - type traits go in type_traits.h
- things found in <utility> go in utility.h
- algs.h doesn't contain any type traits. It just includes type_traits.h
* only need type_traits.h header
* use fold expressions if possible
* use is_any from type_traits.h
* - moved is_convertible to type_traits.h. Also make it an alias for std::is_convertible
* moved is_convertible
* use type traits in standard library
* - use standard library
* use standard library
* MSVC bug workaround
* missing dlib namespace
* fix typo
* - reverting back compile_time_integer_list and make_compile_time_integer_range
* - making sure nothing uses compile_time_integer_list or make_compile_time_integer_range
* - added pop_front for index_sequence
- making sure nothing uses compile_time_integer_list or make_compile_time_integer_range
- use auto
* - use integer_sequence
* - added docs for get_type_id(tag)
* - use __type_pack_element if available
* - hmm, reverting, some pre-processors break here. Don't know why.
Co-authored-by: pf <pf@me>
* 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