Is this library correct for my use-case? #19
Comments
Hi guys, nice for asking ;p @Override
public void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity);
// prepare surface.
mRecorderViews = (FilterRecoderView) findViewById(R.id.vp_video_recorder_gl);
// prepare the filter you want to use
final GPUImageContrastFilter contrastFilter = new GPUImageContrastFilter(1.0f);
contrastFilter.setContrast(contrastValue);
// bind to PureImageManager and render
PureImageManager.init(context)
.setGLSurfaceView(mRecorderViews)
.setScaleType(GPUImage.ScaleType.CENTER_INSIDE)
.setImage(mUri)
.setFilter(contrastFilter)
.requestRender();
} But the filter you use to deal with the input frame buffer need to be defined by yourself. cn.co.willow.android.ultimate.gpuimage.core_render_filter.image_enhance_filter.filter_3x3_sampling.GPUImageDirectionalSobelEdgeDetectionFilter , another is a filter group cn.co.willow.android.ultimate.gpuimage.core_render_filter.recommend_effect_filter_group.GPUImageSobelEdgeDetection I suggest you consult this two, especial the second one. |
Hey @Windsander . Thanks for the reply, i really appreciate it. A couple of questions for you.
Also, the code you gave me.
If I want to get frames from a camera continuously, should I be using this code? Should i be calling Thank you. :) |
So basically, I'm trying to build an app where you can colour the walls in real-time.
I was trying to do Sobel Edge Detection, get the edges from that and then floodfill in the space.
I am not sure if this is the correct library i should be using.
Any help would be appreciated?
The text was updated successfully, but these errors were encountered: