1

Possible Duplicate:
Setting ROI with mouse from a rectangle on a video

I am developing a simple application in opencv which will show a one third of video stream as grayscale, that one-third region is based on user's mouth detection. If the mouth is at extreme right then the right one-third of screen converts to grayscale. I am unable to find an approach to convert specific part to grayscale based on detection. Please can somebody identify the correct way of doing this.

I am using OpenCV version 2.3 in ubuntu

Community
  • 1
  • 1
sum2000
  • 1,363
  • 5
  • 21
  • 36
  • [Is this](http://stackoverflow.com/questions/10881397/setting-roi-with-mouse-from-a-rectangle-on-a-video/10883266#10883266) what you are trying to do? – karlphillip Jul 13 '12 at 17:02
  • pretty much this, except the user selection part through mouse – sum2000 Jul 13 '12 at 17:38

1 Answers1

1

Use an roi to select the region of the source image you want to change, then cvtColor to make it grey

Martin Beckett
  • 94,801
  • 28
  • 188
  • 263