Bonjour,

J'utilise processing sur linux mint 17 mate 64 bits, j'ai installé la lib openCV, mais seulement quand je veut faire tourner un programme de base qui utilise opencv pour faire la différence entre deux images il me met une erreur sur la lib :

A library used by this sketch is not installed properly : A library relies on native code that's not available. Or only works properl when the sketch is run as a 32-bit application.

voici le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
 import gab.opencv.*;
 
 OpenCV opencv;
 PImage before, after, grayDiff;
 //PImage colorDiff;
 void setup() {
   before = loadImage("before.jpg");
   after = loadImage("after.jpg");
   size(before.width, before.height);
 
  opencv = new OpenCV(this, before);               ==> il s'arrête sur cette ligne, sur le constructeur d'opencv
  opencv.diff(after);
  grayDiff = opencv.getSnapshot();
 
// opencv.useColor();
// opencv.loadImage(after);
// opencv.diff(after);
// colorDiff = opencv.getSnapshot();
 
}
 
void draw() {
  pushMatrix();
  scale(0.5);
  image(before, 0, 0);
  image(after, before.width, 0);
// image(colorDiff, 0, before.height);
  image(grayDiff, before.width, before.height);
  popMatrix();
 
  fill(255);
  text("before", 10, 20);
  text("after", before.width/2 +10, 20);
  text("gray diff", before.width/2 + 10, before.height/2+ 20);
 
// text("color diff", 10, before.height/2+ 20);
}
Comment je peut résoudre le problème, on ma parlé de faire tourner l'application en 32 bit, mais je ne voit pas comment lancer processing en 32-bit, alors qu'il est en 64 bits, j'ai prit la version 32 bit de processing, mais je ne peut pas la lancer.