Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,请问一下如何只获取mbnv2_fcn语义分割后的图像,而不是和实景叠加显示的图像。 #113

Open
plmoknhhh opened this issue Oct 31, 2023 · 2 comments

Comments

@plmoknhhh
Copy link

No description provided.

@cmdbug
Copy link
Owner

cmdbug commented Oct 31, 2023

简单点就直接修改这个 561行 跟 575 行100的值 (0-255):
https://github.com/cmdbug/YOLOv5_NCNN/blob/1fc45dcfd48f4e38bfc2a023dbed2501600e1a29/android_YOLOV5_NCNN/app/src/main/java/com/wzt/yolov5/MainActivity.java#L561C2-L561C2
想要实现其它的需要会一点点开发的基础。

@plmoknhhh
Copy link
Author

十分感谢大佬的回复,在532行后面清除了原始的相机图像像素,也实现了相同的效果。
canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants