xphoto/ color balance sample - problem with learn_color_balance.py

asked 2017-02-02 16:24:34 -0600

dma gravatar image

Hi,

I am trying to make the color balance sample (opencv extra modules, rebuilt from opencv 3.x head) working. but I have no luck while running the learn_color_balance.py python script, as I get:

python learn_color_balance.py -i png -g groundtruth/real_illum_568..mat -r 0,378 --num_trees 30 --max_tree_depth 6 --num_augmented 0 Traceback (most recent call last): File "learn_color_balance.py", line 250, in <module> inst = cv2.xphoto.createLearningBasedWB() AttributeError: 'module' object has no attribute 'xphoto'

I am not using python usually, so it might be a configuration problem I suppose. any help appreciated.

edit retag flag offensive close merge delete

Comments

Did you build OpenCV with the contributed modules repository linked? It is not contained in prebuilt packages...

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-03 08:42:04 -0600 )edit