How to convert detected mouth region in gray-scale and binary in android ? [closed]
Here is my code, i am not able to covert the mouth region into grayscale please help me...i have tried everything available on internet
Mat innerWindow = mRgba.submat(moutharea);
Imgproc.cvtColor(innerWindow, innerWindow,Imgproc.COLOR_RGB2GRAY);
Imgproc.threshold( innerWindow, innerWindow,70, 255,Imgproc.THRESH_BINARY);
please post whole code
could you try ( sorry i can't try java code )
let me try
One year ago I wouldn't expect someone to be able to perform face/mouth detection but not able to perform image thresholding.
I have tried this and it gives no grayscale area :(
@Pedro Batista i have spent 2 days but nothing works :( i want only a region to be in grayscale for further processing... i have seen opencv4android mixed processing project sample but there is no code for showing a ROI in grayscale
You have to go step by step. Try to visualize the image in every step and then tell us where it is going wrong.
Does
Imgproc.cvtColor(innerWindow, innerWindowGray,Imgproc.COLOR_RGB2GRAY);
work? Visualize the image after this step tell us if you see a grayscale ROI.No it doesnot show grayscale region... but when i tried this it show me region in blue.. it means only grayscale is not working
And before? Try to visualize mouthArea and tell us if you see a normal mouth ROI.
yes i can see the normal mouth ROI i draw a rectangle around the mouth area