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

initialize py2gpu with many xml files ?! #6

Open
elpimous opened this issue May 7, 2018 · 1 comment
Open

initialize py2gpu with many xml files ?! #6

elpimous opened this issue May 7, 2018 · 1 comment

Comments

@elpimous
Copy link

elpimous commented May 7, 2018

hello Alexander,
I'd like to make my tracker stronger, trying some haarcascades on the fly. Anything like this :

cascades 1 to 3 are different cascades files;

        if self.cascade_1:
            faces = self.cascade_1.detectMultiScale(input_image, **self.haar_params)
        # If that fails, check the profile template
        if len(faces) == 0 and self.cascade_3:
            faces = self.cascade_3.detectMultiScale(input_image, **self.haar_params)
        # If that also fails, check a the other frontal template
        if len(faces) == 0 and self.cascade_2:
faces = self.cascade_2.detectMultiScale(input_image, **self.haar_params)

Is it possible to do it with your lib ?
cv2gpu.init_gpu_detector(self.cascade_1)

@elpimous
Copy link
Author

elpimous commented May 7, 2018

tried with different instances, doesn't work !
a = cv2gpu
a.init_gpu_detector(cascade_file_gpu_1)
b = cv2gpu
b.init_gpu_detector(cascade_file_gpu_2)
c = cv2gpu
c.init_gpu_detector(cascade_file_gpu_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

1 participant