tsdconseil / opencv-demonstrator

OpenCV demonstrator (GUI)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
GNU Lesser General Public License v3.0
141 stars 57 forks source link

saving image to file plus working on makin open button active again #57

Closed applemuncy closed 8 years ago

applemuncy commented 8 years ago

Save image button now becomes active when output contains an image. Also so a few edits to turn on open button for image selection possible before first demo run. Not working correctly yet. Change of "magic numbers' to allow 2 webcams to be selected. Selection window seems to do the right thing but does not yet work in stereo demo. .

juliena82 commented 8 years ago

@applemuncy I just merged you pull, but there are a few minor mistakes that I will have to fix in an upcoming commit. More specifically, the change in the "magic number" is not a good thing to do: actually, to enable multiple cameras, one has just to specify it in the demonstration properties, as in the stereo vision demo (file 3d.cc, line 43 and 44) : props.id = "stereo-cal"; props.input_min = 2; props.input_max = 2;

PS : but currently, it enables only with 2 input images, because the support for multiple camera is not already done (and it is not a problem of "magic number"), I will work on it soon.