Is this just for backwards compatibility, for people who have been developing for years with OpenCV 2 and then want to use OpenCV 3 without having to rewrite all their legacy code? Or is this related to a fundamental design decision the creators of OpenCV 3 opted for? For instance, when I look up imread examples for OpenCV 3, they have #include "opencv2/imgproc.hpp"
. Is this just the way you refer to certain files/functions in OpenCV 3, or is there an "OpenCV 3 way" out there that many people don't use, because they just prefer the old syntax/style of various operations?
The version number in the include path refers to the API version. C-based OpenCV was API v1, C++-based OpenCV is API v2.
The library versions are now 3.x, but they are still using the same C++-based API. Thus OpenCV builds still have their header files in opencv2 folders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With