简体   繁体   English

FaceDetection的OpenCV示例未运行

[英]OpenCV Example of FaceDetection does not run

I'm using OpenCV for Android. 我正在使用适用于Android的OpenCV。 The default example mentioned on the OpenCV website does not run. OpenCV网站上提到的默认示例无法运行。 console says... { 22:16:40 ** Auto Build of configuration Default for project OpenCV Sample - face-detection ** "\\ndk-build.cmd" Cannot run program "\\ndk-build.cmd" (in directory "C:\\Users\\Parth Sane\\workspace\\OpenCV Sample - face-detection"): CreateProcess error=2, The system cannot find the file specified 控制台说... {22:16:40 **配置的自动生成OpenCV示例项目的默认设置-面部检测** “ \\ ndk-build.cmd”无法运行程序“ \\ ndk-build.cmd”(在目录中“ C:\\ Users \\ Parth Sane \\ workspace \\ OpenCV示例-人脸检测”):CreateProcess错误= 2,系统找不到指定的文件

Error: Program "\\ndk-build.cmd" not found in PATH PATH=[C:/Program Files/Java/jdk1.7.0_07/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_07/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_07/bin/../jre/lib/amd64;C:\\Program Files (x86)\\AMD APP\\bin\\x86_64;C:\\Program Files (x86)\\AMD APP\\bin\\x86;C:\\Program Files\\Java\\jdk1.7.0_07\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;D:\\WinSCP\\;C:\\Program Files (x86)\\FAHClient;C:\\Users\\Parth Sane\\Desktop\\eclipse;] 错误:在路径PATH中找不到程序“ \\ ndk-build.cmd” PATH = [C:/ Program Files / Java / jdk1.7.0_07 / bin /../ jre / bin / server; C:/ Program Files / Java / jdk1.7.0_07 / bin /../ jre / bin; C:/ Program Files / Java / jdk1.7.0_07 / bin /../ jre / lib / amd64; C:\\ Program Files(x86)\\ AMD APP \\ bin \\ x86_64; C:\\ Program Files(x86)\\ AMD APP \\ bin \\ x86; C:\\ Program Files \\ Java \\ jdk1.7.0_07 \\ bin; C:\\ WINDOWS \\ system32; C:\\ WINDOWS; C:\\ WINDOWS \\ System32 \\ Wbem; C:\\ WINDOWS \\ System32 \\ WindowsPowerShell \\ v1.0 \\; D:\\ WinSCP \\; C:\\ Program Files(x86)\\ FAHClient; C:\\ Users \\ Parth Sane \\ Desktop \\ eclipse;]

22:16:40 Build Finished (took 410ms) } 22:16:40构建完成(耗时410ms)}

The Mixed processing example gives similar a similar error... 混合处理示例给出了类似的类似错误...

Help!! 救命!! Other samples run well... 其他样品运行良好...

Go to your OpenCV Sample face detection project in Eclipse, go to Project Properties, and then open "C/C++ Build" tab on the left-hand-side list. 在Eclipse中转到您的OpenCV Sample人脸检测项目,转到“项目属性”,然后在左侧列表中打开“ C / C ++ Build”选项卡。 There you'll see a default builder configuration. 在那里,您将看到默认的构建器配置。 It will be pointing to: 它将指向:

${NDKROOT}/ndk-build.cmd 

You have to either change this entry right there to point to where your ndk-build script is, or define NDKROOT environmental variable pointing to the root of your Android NDK install. 您必须在此处更改此条目以指向ndk-build脚本所在的位置,或者定义NDKROOT环境变量以指向Android NDK安装的根目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM