We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
imageAnalysis.setAnalyzer(Executors.newSingleThreadExecutor(), image -> { if (isAnalyze && !isAnalyzeResult && mAnalyzer != null) { mAnalyzer.analyze(image, mOnAnalyzeListener); } image.close(); });
The text was updated successfully, but these errors were encountered:
startCamera
activity
Sorry, something went wrong.
imageAnalysis.setAnalyzer(Executors.newSingleThreadExecutor(), image -> { if (isAnalyze && !isAnalyzeResult && mAnalyzer != null) { mAnalyzer.analyze(image, mOnAnalyzeListener); } image.close(); }); 没记错的话这段代码应该是 startCamera 方法中的一段; startCamera 方法一般也只在activity初始化之后调用一次,你怎么会认为是每次都分配一个线程池的? 提问提错地方了,这段代码属于 CameraScan
不好意思,我是从studio去跟踪代码,没留意。你多次打开这个页面不就会创建多个么?实际开发中这个页面不是首页吧
No branches or pull requests
imageAnalysis.setAnalyzer(Executors.newSingleThreadExecutor(), image -> {
if (isAnalyze && !isAnalyzeResult && mAnalyzer != null) {
mAnalyzer.analyze(image, mOnAnalyzeListener);
}
image.close();
});
The text was updated successfully, but these errors were encountered: