Chalkaat augmented reality laser [closed]

asked 2017-09-23 21:52:22 -0500

updated 2017-09-23 22:07:30 -0500

I found this awesome augmented reality laser cnc laser cutter engraver that has got a serious grip on me. The only problem is that I am not a coder. I have installed opencv 2.3 I think and visual studio 2017. I donwloaded the source code from an instrucable here:

http://www.instructables.com/id/ChalK...) Specifically cutting.cpp

When I build the included code I get 23 errors and I don't know how to fix it. I have ordered a couple of books to learn c++ And opencv to learn to program. That's how serious I am. I have never wanted to build something more in my life but I need some serious help. Please help me http://answers.opencv.org, you're my only hope. The first error message says Node is ambiguous. I really desperately want to figure this out. It has consumed my thoughts for weeks.

I hope you don't mind I have included some if the code below. The first error says node is ambiguous. If anymore info is needed from me I will happily reply asap.

include <iostream>

include <vector>

include "cv.h"

include "highgui.h"

include <iostream>

include <fstream>

using namespace cv;

class Node { public: Node* parent; Node* child; int x, y;

Node(int, int);
Node();

};

Node::Node() { this->x = -1; this->y = -1; parent = NULL; child = NULL; } Node::Node(int x, int y) { this->x = x; this->y = y; parent = NULL; child = NULL; }

std::vector<node*> paths;

Node* generatePath(IplImage* img, int x, int y) {

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by berak
close date 2017-09-23 22:24:18.087969

Comments

whatever you're trying -- NOT with that code. you MUST not use opencv's dead, deprecated c-api.

also, opencv2.3 was a thing in 2011

mate, all you got is mould. wake up.

berak gravatar imageberak ( 2017-09-23 21:57:40 -0500 )edit

What's wrong with the code? Should I use a later version of opencv? Is there a better place to put the whole source code?

Mycplusplusacct gravatar imageMycplusplusacct ( 2017-09-23 22:11:19 -0500 )edit

it's dead beef, along with your install. noone cares. do not try to fix it. throw it away.

berak gravatar imageberak ( 2017-09-23 22:13:38 -0500 )edit

So that sounds like a yes for a later version of opencv. It sounds like you don't like the source code from the site either. You have any useful suggestions to move this thing forward?

Mycplusplusacct gravatar imageMycplusplusacct ( 2017-09-23 22:16:19 -0500 )edit

The internet yields either no results or no helpful results. I was hoping someone here might throw me a bone but I guess I'll just rtfm and do it myself. So I guess thanks for the replis.

Mycplusplusacct gravatar imageMycplusplusacct ( 2017-09-23 22:22:13 -0500 )edit

I guess I spoke too soon. Thanks for the help.

Mycplusplusacct gravatar imageMycplusplusacct ( 2017-09-23 22:26:54 -0500 )edit

even if you fix that shit , it still won't run. it's just too old, and was never maintained properly

berak gravatar imageberak ( 2017-09-24 02:53:02 -0500 )edit

You went above and beyond with your explanation. You're a solid guy. I'll have my nose in the books for a while.

Mycplusplusacct gravatar imageMycplusplusacct ( 2017-09-24 07:56:44 -0500 )edit