Skip to content

No implementation found for phash #67

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

Open
jslok opened this issue Apr 3, 2022 · 3 comments
Open

No implementation found for phash #67

jslok opened this issue Apr 3, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@jslok
Copy link

jslok commented Apr 3, 2022

In 4.5.3.0 and 4.4.0, I am unable to use org.opencv.img_hash.PHash. I get error:

No implementation found for long org.opencv.img_hash.PHash.create...

Same for the other classes under org.opencv.img_hash. I am importing with implementation 'com.quickbirdstudios:opencv-contrib:4.5.3.0'

My code:

        Mat phash = new Mat();
        PHash hasher = PHash.create();
        hasher.compute(imageMat, phash);

I downgraded to 3.4.15 and it works.

@nasirky
Copy link
Contributor

nasirky commented Apr 13, 2022

@jslok If I remember correctly, PHash is is only part of the 3.4.X OpenCV versions and not 4.X OpenCV versions.

@nasirky nasirky added the More Info needed More information is requested from the OP label Apr 13, 2022
@jslok
Copy link
Author

jslok commented Apr 13, 2022

@nasirky
Copy link
Contributor

nasirky commented Apr 13, 2022

@jslok I can see the java wrapper class in 4.5.2. I will investigate this sometime next week

@nasirky nasirky added bug Something isn't working and removed More Info needed More information is requested from the OP labels Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants