0.28.0 regenerate bindings
MODIFY
CHANGES.md
CHANGES.md
+* 0.28
+ * dnn::BackendNode constructor as well as stitching::createStitcher and stitching::createStitcherScans are no
+ longer generated for the OpenCV version where they are not available, fixing the linking issues
+
* 0.27.0
* add support for `vcpkg` when building for windows, it's being used by default in the absence of
environment variables

MODIFY
Cargo.toml
Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/twistedfall/opencv-rust"
readme = "README.md"
keywords = [ "opencv", "vision" ]
license = "MIT"
-version = "0.27.2"
+version = "0.28.0"
edition = "2018"
authors = ["Mathieu Poumeyrol <kali@zoy.org>", "Pro <twisted.fall@gmail.com>"]
build = "build.rs"

MODIFY
README.md
README.md
@@ -36,17 +36,17 @@ files or `-dev` packages.
Update your Cargo.toml
```toml
-opencv = "0.27"
+opencv = "0.28"
```
Select OpenCV version if different from default in Cargo.toml:
```toml
-opencv = {version = "0.27", default-features = false, features = ["opencv-41"]}
+opencv = {version = "0.28", default-features = false, features = ["opencv-41"]}
```
And enable usage of `contrib` modules:
```toml
-opencv = {version = "0.27", default-features = false, features = ["opencv-41", "contrib"]}
+opencv = {version = "0.28", default-features = false, features = ["opencv-41", "contrib"]}
```
Import prelude

MODIFY
src/opencv/hub/dnn.rs
src/opencv/hub/dnn.rs
@@ -709,13 +709,6 @@ impl BackendNode {
unsafe impl Send for BackendNode {}
-impl BackendNode {
- pub fn new(backend_id: i32) -> Result<crate::dnn::BackendNode> {
- unsafe { sys::cv_dnn_BackendNode_BackendNode_int(backend_id) }.into_result().map(|ptr| crate::dnn::BackendNode { ptr })
- }
-
-}
-
// Generating impl for trait crate::dnn::BackendWrapper
/// Derivatives of this class wraps cv::Mat for different backends and targets.
pub trait BackendWrapper {

MODIFY
src/opencv/hub/sys.rs
src/opencv/hub/sys.rs
@@ -1567,7 +1567,6 @@ mod dnn_sys {
pub fn cv_BNLLLayer_delete(ptr : *mut c_void);
pub fn cv_dnn_BNLLLayer_create_LayerParams(params: *mut c_void) -> cv_return_value_void_X;
pub fn cv_BackendNode_delete(ptr : *mut c_void);
- pub fn cv_dnn_BackendNode_BackendNode_int(backend_id: i32) -> cv_return_value_void_X;
pub fn cv_dnn_BackendWrapper_copyToHost(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_dnn_BackendWrapper_setHostDirty(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_BaseConvolutionLayer_delete(ptr : *mut c_void);

MODIFY
src/opencv_34/hub/dnn.rs
src/opencv_34/hub/dnn.rs
@@ -709,13 +709,6 @@ impl BackendNode {
unsafe impl Send for BackendNode {}
-impl BackendNode {
- pub fn new(backend_id: i32) -> Result<crate::dnn::BackendNode> {
- unsafe { sys::cv_dnn_BackendNode_BackendNode_int(backend_id) }.into_result().map(|ptr| crate::dnn::BackendNode { ptr })
- }
-
-}
-
// Generating impl for trait crate::dnn::BackendWrapper
/// Derivatives of this class wraps cv::Mat for different backends and targets.
pub trait BackendWrapper {

MODIFY
src/opencv_34/hub/sys.rs
src/opencv_34/hub/sys.rs
@@ -1567,7 +1567,6 @@ mod dnn_sys {
pub fn cv_BNLLLayer_delete(ptr : *mut c_void);
pub fn cv_dnn_BNLLLayer_create_LayerParams(params: *mut c_void) -> cv_return_value_void_X;
pub fn cv_BackendNode_delete(ptr : *mut c_void);
- pub fn cv_dnn_BackendNode_BackendNode_int(backend_id: i32) -> cv_return_value_void_X;
pub fn cv_dnn_BackendWrapper_copyToHost(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_dnn_BackendWrapper_setHostDirty(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_BaseConvolutionLayer_delete(ptr : *mut c_void);

MODIFY
src/opencv_41/hub/dnn.rs
src/opencv_41/hub/dnn.rs
@@ -714,13 +714,6 @@ impl BackendNode {
unsafe impl Send for BackendNode {}
-impl BackendNode {
- pub fn new(backend_id: i32) -> Result<crate::dnn::BackendNode> {
- unsafe { sys::cv_dnn_BackendNode_BackendNode_int(backend_id) }.into_result().map(|ptr| crate::dnn::BackendNode { ptr })
- }
-
-}
-
// Generating impl for trait crate::dnn::BackendWrapper
/// Derivatives of this class wraps cv::Mat for different backends and targets.
pub trait BackendWrapper {

MODIFY
src/opencv_41/hub/stitching.rs
src/opencv_41/hub/stitching.rs
@@ -66,24 +66,6 @@ pub enum Stitcher_Status {
ERR_CAMERA_PARAMS_ADJUST_FAIL = Stitcher_ERR_CAMERA_PARAMS_ADJUST_FAIL as isize,
}
-/// **Deprecated**: use Stitcher::create
-///
-/// ## C++ default parameters
-/// * try_use_gpu: false
-#[deprecated = "use Stitcher::create"]
-pub fn create_stitcher_scans(try_use_gpu: bool) -> Result<types::PtrOfStitcher> {
- unsafe { sys::cv_createStitcherScans_bool(try_use_gpu) }.into_result().map(|ptr| types::PtrOfStitcher { ptr })
-}
-
-/// **Deprecated**: use Stitcher::create
-///
-/// ## C++ default parameters
-/// * try_use_gpu: false
-#[deprecated = "use Stitcher::create"]
-pub fn create_stitcher(try_use_gpu: bool) -> Result<types::PtrOfStitcher> {
- unsafe { sys::cv_createStitcher_bool(try_use_gpu) }.into_result().map(|ptr| types::PtrOfStitcher { ptr })
-}
-
// boxed class cv::AffineWarper
/// Affine warper factory class.
/// ## See also

MODIFY
src/opencv_41/hub/sys.rs
src/opencv_41/hub/sys.rs
@@ -1604,7 +1604,6 @@ mod dnn_sys {
pub fn cv_BNLLLayer_delete(ptr : *mut c_void);
pub fn cv_dnn_BNLLLayer_create_LayerParams(params: *mut c_void) -> cv_return_value_void_X;
pub fn cv_BackendNode_delete(ptr : *mut c_void);
- pub fn cv_dnn_BackendNode_BackendNode_int(backend_id: i32) -> cv_return_value_void_X;
pub fn cv_dnn_BackendWrapper_copyToHost(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_dnn_BackendWrapper_setHostDirty(instance: *mut c_void) -> cv_return_value_void;
pub fn cv_BaseConvolutionLayer_delete(ptr : *mut c_void);
@@ -3285,8 +3284,6 @@ mod stitching_sys {
use super::*;
extern "C" {
- pub fn cv_createStitcherScans_bool(try_use_gpu: bool) -> cv_return_value_void_X;
- pub fn cv_createStitcher_bool(try_use_gpu: bool) -> cv_return_value_void_X;
pub fn cv_AffineWarper_delete(ptr : *mut c_void);
pub fn cv_CompressedRectilinearPortraitWarper_delete(ptr : *mut c_void);
pub fn cv_CompressedRectilinearPortraitWarper_CompressedRectilinearPortraitWarper_float_float(a: f32, b: f32) -> cv_return_value_void_X;

0.28.0 regenerate bindings