[Python] Would this GUI concept be a good open source contribution?

asked 2014-02-04 17:21:18 -0500

CVNovice gravatar image

updated 2014-02-04 23:56:18 -0500

Background: I am working on a project where I am trying to automatically identify an object and perform color calibration and segmentation on a subset of an image. The image can be taken from any camera where it is uploaded to a server. I am trying to normalize and accommodate for issues such as shadows, non-uniform illumination, as well as zoom, pan, and tilt of the camera. The problem I have is my code works well on images that match the test images I used, but subtle variations can throw it off.

GUI Proposal: I am considering making a tool which would allow each step in an image processing algorithms be kept track of and changed on the fly.

For instance, If these are the steps:

  1. BGR > Gray

  2. Gray >Gaussian Blur

  3. Gaussian Blur > Histogram Equalization

  4. Histogram Equalization > Adaptive Threshold

  5. Adaptive Threshold > Morph Close

  6. Morph Close > Morph Open

I would have a single window pop up with prev and next buttons. Each Step would be loaded into an array along with parameters important to each step. The main window will allow you to scroll through the stack of steps for each process. A prev and next button, along with a slider to quickly cycle through all the steps would be present in every window.

For example, all step one would have is the basic gui. Step two however would have a slider to adjust the kernel size of the blurr, in addition to the basic elemnts. Step 4 would have multiple sliders to adjust all of the paremeters involved in an adaptive threshold.

For instance, when you go to step four you can change the threshold value, and the image will automatically update in the window reflecting the updated values. If you hit next, it will use your updated image rather than the originial hard coded value.

I hope my discription made sense, but my thought here is I waste a lot of time with trial and error trying to get parameters right in some of these functions (primarily thresholds where lighting and showdows vary).

Main Question: Would this be a useful tool for anyone (make a valid contribution to the open source project?) or am I just doing CV wrong? Is there some function I can use to calculate optimal parameters for each image without having to manually play with the values?

edit retag flag offensive close merge delete



I think many people have made something similar themselves so I do recon that this could be a useful contribution to the library. However, keep in mind that in computer vision, the most hard task is to define optimal parameters, so just calculating them won't be straightforward. Many people still use the old trial and error approach, which is far from optimal, but gives good results most of the times...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-02-05 02:55:47 -0500 )edit

Thanks for the response. I've got a working prototype I did with PyQt, I'll post some screen shots soon.

CVNovice gravatar imageCVNovice ( 2014-02-05 14:35:02 -0500 )edit