Ask Your Question
0

editing OpenCV rgb/hsv values through a visual basic program?

asked 2013-03-25 13:11:46 -0600

Is it possible to edit the RGB and HSV values through a simple Visual Basic program while my opencv object detection program is running (calibration purposes)? if so how would I go about that? The object detection code works and so does my VB program, just need them to talk while both of them are running. Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-25 13:56:21 -0600

Only way I see it happening is by

  • Opening a general txt or xml data file
  • Then open that txt file in OpenCV, write your communication
  • Close txt file in OpenCV
  • Read in data in VB and process
  • Again close the file in VB (due to access rights)
  • Open the changed data in OpenCV

However, you can edit RGB ( remember OpenCV uses BGR ) and HSV values through OpenCV, why go around using VB?

edit flag offensive delete link more

Comments

The current project that I am working on requires me to calibrate A LOT (underwater), so I figured if I can make a simple program to take in a picture(preferably camera feed) and auto calibrate colors (or manual adjustments) and auto update the BGR/HSV variables (thanks for the correction), then that would make my life so much easier. If you guys see an easier way of doing this, then by all means, I am very open to suggestions. Thank you for your input.

rsantana2021 gravatar imagersantana2021 ( 2013-03-25 14:42:49 -0600 )edit
1

Actually, what you should do, is calibrate for a scene, then shoot pictures, then recalibrate. And this can be implemented in OpenCV I guess by looking at the calibration library. I would not suggest going to manual adaptation of the values each time. Once calibration is correct, colours should have correct values.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-03-25 15:23:47 -0600 )edit

Question Tools

Stats

Asked: 2013-03-25 13:11:46 -0600

Seen: 668 times

Last updated: Mar 25 '13