打开CV进行处理-错误 [英] open CV with processing - Error

查看:185
本文介绍了打开CV进行处理-错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用openCV库.我不断收到错误消息(我尝试同时安装32位和64位处理程序,并按照在线上的确切说明进行操作).这是我要运行的代码(我认为是最基本的代码):

I'm trying to work with the openCV library. I keep getting errors (I've tried to install both 32-bit and 64-bit processing, and followed the exact instructions online). This is the code I'm trying to run (the most basic one i think):

import hypermedia.video.*;        //  Imports the OpenCV library
OpenCV opencv;                    //  Creates a new OpenCV Object

void setup()
{

  size( 320, 240 );

  opencv = new OpenCV( this );    //  Initialises the OpenCV object
  opencv.capture( 320, 240 );     //  Opens a video capture stream

}

void draw()
{

  opencv.read();                  //  Grabs a frame from the camera
  opencv.absDiff();               //  Calculates the absolute difference
  image( opencv.image(), 0, 0 );  //  Display the difference image

}

void keyPressed()
{
  opencv.remember();              //  Remembers a frame when a key is pressed
}

这是我得到的错误:库依赖于不可用的本机代码.或仅当草图作为64位应用程序运行时才能正常工作.

This is the error I get: A library relies on native code that's not available. Or only works properly when the sketch is run as a 64-bit application.

任何帮助将不胜感激!,谢谢

Any help would be appreciated!, thanks

推荐答案

取决于所使用的OpenCV版本,超媒体库不适用于处理2.0 如果要继续执行该代码,则需要获取Processing 1.0,但我建议更新OpenCV库.

Depends on what version of OpenCV you are using, the library hypermedia doesn't work for processing 2.0 If you want to continue with that code you need to get Processing 1.0 but I recommend to update the OpenCV library.

这篇关于打开CV进行处理-错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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