Skip to content

Add Ptr KNearest::load and python binding - #14332

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
LaurentBerger:loadknearest
Apr 17, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
LaurentBerger:loadknearest

Conversation

@LaurentBerger

@LaurentBerger LaurentBerger commented Apr 15, 2019 •

Copy link
Copy Markdown
Contributor

Merge with extra: opencv/opencv_extra#597

Add Ptr KNearest::load and python binding

relates #14137

force_builders=linux,docs
test_modules=python2,python3

@LaurentBerger LaurentBerger changed the title oops Add Ptr KNearest::load and python binding Apr 15, 2019

class knearest_test(NewOpenCVTests):
def test_load(self):
k_nearest = cv.ml.KNearest_load("opencv_ml_knn.xml")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"opencv_ml_knn.xml"

Try this instead self.find_file("ml/opencv_ml_knn.xml")

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Thank you 👍

@opencv-pushbot
opencv-pushbot merged commit 621e3ea into opencv:3.4 Apr 17, 2019
@alalek alalek mentioned this pull request Apr 18, 2019
@LaurentBerger
LaurentBerger deleted the loadknearest branch February 2, 2021 09:50
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants