Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text.cpp: error: call of overloaded create #505

Closed
RedyJack opened this issue Oct 19, 2023 · 3 comments
Closed

text.cpp: error: call of overloaded create #505

RedyJack opened this issue Oct 19, 2023 · 3 comments

Comments

@RedyJack
Copy link

Hi I have problem during building of small project containing opencv bindings. Compilation of opencv text.cpp seem to fail.

  1. Operating system
NAME="Ubuntu"
VERSION="20.04.6 LTS
  1. Open CV installed using apt-get install libopencv-dev
  2. Open CV version
cat /usr/lib/x86_64-linux-gnu/pkgconfig/opencv4.pc 
# Package Information for pkg-config

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/x86_64-linux-gnu
includedir_old=${prefix}/include/opencv4/opencv
includedir_new=${prefix}/include/opencv4

Name: OpenCV
Description: Open Source Computer Vision Library
Version: 4.2.0
Libs: -L${exec_prefix}/lib/x86_64-linux-gnu -lopencv_stitching -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_dnn_objdetect -lopencv_dnn_superres -lopencv_dpm -lopencv_highgui -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_hfs -lopencv_img_hash -lopencv_line_descriptor -lopencv_quality -lopencv_reg -lopencv_rgbd -lopencv_saliency -lopencv_shape -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_superres -lopencv_optflow -lopencv_surface_matching -lopencv_tracking -lopencv_datasets -lopencv_text -lopencv_dnn -lopencv_plot -lopencv_ml -lopencv_videostab -lopencv_videoio -lopencv_viz -lopencv_ximgproc -lopencv_video -lopencv_xobjdetect -lopencv_objdetect -lopencv_calib3d -lopencv_imgcodecs -lopencv_features2d -lopencv_flann -lopencv_xphoto -lopencv_photo -lopencv_imgproc -lopencv_core
Libs.private: -ldl -lm -lpthread -lrt
Cflags: -I${includedir_old} -I${includedir_new}
  1. rustc 1.72.1 (d5c2e9c34 2023-09-13)
  2. Build output attached as log file build.log

In the code I basically just do this (if this matters):

use opencv::prelude::*;
use opencv::core;
use opencv::objdetect;

pub fn detect_faces() {
    let face_cascade = objdetect::CascadeClassifier::new("models/haarcascade_frontalface_default.xml").unwrap();
}

I am not sure if this is bug, setup issue or me doing something wrong. Any guidance?

@twistedfall
Copy link
Owner

That does look like a bug, thanks for reporting! Is there any chance you could try checking if the crate version 0.84.5 works for you?

@RedyJack
Copy link
Author

RedyJack commented Oct 19, 2023 via email

@twistedfall
Copy link
Owner

This should be fixed in 0.85.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants