Ask Your Question
0

How to load a trained Random Trees model in opencv 3 in python?

asked 2017-01-12 01:07:50 -0600

I have a trained random tree model but i am not able to find a way to load this model using opencv3 in python.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-12 03:01:04 -0600

berak gravatar image

updated 2017-01-12 03:14:44 -0600

unfortunately, this is not possible atm., as of opencv3.2, only SVM and ANN_MLP have correctly wrapped load methods.

(yes, it's a bug)

edit flag offensive delete link more

Comments

Thanks for the reply.

Amandeep Singh Uppal gravatar imageAmandeep Singh Uppal ( 2017-01-12 09:37:40 -0600 )edit

yea, let's try to get someone to fix it asap.

berak gravatar imageberak ( 2017-01-12 09:39:11 -0600 )edit

Yeah, that will be a much necessary update in any new 3.x version of opencv

Amandeep Singh Uppal gravatar imageAmandeep Singh Uppal ( 2017-01-12 09:47:54 -0600 )edit

Can i use source of opencv 2.4.13 to build .pyd file for python 3.5 using cmake and visual studio 2013 professional edition? I have tried that but it always fail while releasing the .pyd file in x64 bit configuration.

Amandeep Singh Uppal gravatar imageAmandeep Singh Uppal ( 2017-01-12 09:50:32 -0600 )edit

i don't think, that python3 works with opencv2.4 at all.

berak gravatar imageberak ( 2017-01-12 10:07:31 -0600 )edit

Thanks a lot You have saved lot of my time by not trying to load random tree classifier by different methods and fail.

Amandeep Singh Uppal gravatar imageAmandeep Singh Uppal ( 2017-01-12 21:26:38 -0600 )edit

there's a pr for this already, watch it !

berak gravatar imageberak ( 2017-01-13 03:22:16 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-12 01:07:50 -0600

Seen: 682 times

Last updated: Jan 12 '17