mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
samples(python): Updated use of model.load instances
The load() function returns a new object, and as such does not use the one it is called on. This commit updates the uses of model.load in this program so it will work as intended and not throw an error.
This commit is contained in:
parent
02d2cc58d7
commit
6820abd67f
@ -41,7 +41,7 @@ class LetterStatModel(object):
|
||||
train_ratio = 0.5
|
||||
|
||||
def load(self, fn):
|
||||
self.model.load(fn)
|
||||
self.model = self.model.load(fn)
|
||||
def save(self, fn):
|
||||
self.model.save(fn)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user