无法加载OpenCL运行时-OpenCV3 Python [英] Failed to load OpenCL runtime - OpenCV3 Python

查看:160
本文介绍了无法加载OpenCL运行时-OpenCV3 Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序,该程序在Windows的OpenCV 2.4.9/python/中使用前景检测处理视频,并打包为使用py2exe的Windows可执行文件.我最近将opencv更新为opencv3,并重新打包了程序.当我在计算机上运行(在本地安装了opencv3)时,一切正常.

I have a program that processes videos using foreground detection in OpenCV 2.4.9/python/on windows and packaged for a windows executable using py2exe. I recently updated opencv to opencv3 and repackaged my program. When i run on my computer (with opencv3 installed locally) everything goes fine.

但是,当用户转到并下载程序并在另一台计算机上运行该程序时,他们会收到警告

However, when a user goes and downloads the program and runs it on another computer, they get the warning

Failed to load OpenCL runtime

这似乎只是一个警告,我无法检测到任何性能问题.

This just seems to be just a warning, and i can detect no performance issues.

我有两个选择.我可以在try语句中禁止显示此特定警告,或者可以以某种方式关闭计算机上的OpenCL来打包程序.关于这两种策略的建议将不胜感激.我忽略了什么?据我了解,OpenCL库用于使用GPU进行加速.

I have a couple options. I can just suppress this specific warning in a try statement, or i can somehow turn off the OpenCL on my computer for packaging the program. Suggestions on either strategy would be appreciated. Anything i am overlooking? To my understanding the OpenCL library is for acceleration using GPU.

谢谢

推荐答案

该解决方案将在不使用OpenCL的情况下编译OpenCV库,然后将它们链接到您的应用程序

the solution will be compiling the OpenCV libs without OpenCL and then link them to your application

这篇关于无法加载OpenCL运行时-OpenCV3 Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆