Hallo Jungs unten ist mein Code und ich bekomme Fehler in create (const String & TrackerMIL), ich bekomme Fehler wie in diesem Link genau https://pastebin.com/0x52tJL6, bitte helfen, für Sie alle zu wissen Ich habe zusätzliches Modul opencv_contrib in opencv3 hinzugefügt. bitte hilf den Jungs. DankFehler mit MIL-Tracker und Tracking-Header
#include <opencv2/opencv.hpp>
#include <opencv2/tracking/tracking.hpp>
using namespace cv;
using namespace std;
int main(int argc, char **argv)
{
// Set up tracker.
// Instead of MIL, you can also use
// BOOSTING, KCF, TLD, MEDIANFLOW or GOTURN
Ptr<Tracker> Tracker::create(const String& TrackerMIL);
// Read video
VideoCapture video("videos/chaplin.mp4");
// Check video is open
if(!video.isOpened())
{
cout << "Could not read video file" << endl;
return 1;
}
// Read first frame.
Mat frame;
video.read(frame);
// Define an initial bounding box
Rect2d bbox(287, 23, 86, 320);
// Uncomment the line below if you
// want to choose the bounding box
// bbox = selectROI(frame, false);
// Initialize tracker with first frame and bounding box
tracker->init(frame, bbox);
while(video.read(frame))
{
// Update tracking results
tracker->update(frame, bbox);
// Draw bounding box
rectangle(frame, bbox, Scalar(255, 0, 0), 2, 1);
// Display result
imshow("Tracking", frame);
int k = waitKey(1);
if(k == 27) break;
}
return 0;
}
ich korrigierte dieses Problem mit create(); aber jetzt ist es dieses :(https://pastebin.com/0kP3zzfi –
, selbst wenn ich meine Bibliotheken als opencv2_tracking, usw. nicht funktioniere, bin ich auf Eklipse .. und seine alle in/usr/local/enthalten –
sein done ,, build finished ,, jetzt, wo ich renne ./tracker .. es wirft mich ./tracker: Fehler beim Laden shared libraries: libopencv_tracking.so.3.2: Shared-Objekt-Datei kann nicht geöffnet werden: Keine solche Datei oder Verzeichnis –