webdevRefinery Forum: alexdavey - Viewing Profile - webdevRefinery Forum

Jump to content

Reputation: 60 Excellent
Group:
Members
Active Posts:
1099 (1.18 per day)
Most Active In:
General Discussion (240 posts)
Joined:
05-November 10
Profile Views:
5369
Last Active:
User is offline May 20 2013 12:58 PM
Currently:
Offline

My Information

Member Title:
Bringing XKCD to a post near you
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Male Male
Location:
London
Expertise:
HTML
CSS
PHP
Javascript

Contact Information

E-mail:
Private
Website URL:
Website URL  http://www.filebox.me
Skype:
Skype  alexdavey0

Topics I've Started

  1. [C++] Declaring variables in header files

    08 February 2013 - 10:13 AM

    I'm trying to write a wrapper for opencv cameras, but I get the error:
    ‘VideoCapture’ in namespace ‘cv’ does not name a type
    . I assume it is because I am not declaring
    left
    and
    right
    correctly in the header file?

    stereo.h:
    #ifndef _GUARD_STEREO_GUARD_
    #define _GUARD_STEREO_GUARD_
    
    #include "cv.h"
    
    class Stereo {
    
    public:
    	Stereo(int, int);
    	cv::Mat getLeft();
    	cv::Mat getRight();
    
    private:
    	cv::VideoCapture left;
    	cv::VideoCapture right;
    
    };
    
    #endif
    


    stereo.cpp
    #include "cv.h"
    #include <iostream>
    
    #include "stereo.h"
    
    using namespace cv;
    
    Stereo::Stereo(int leftId, int rightId) {
    	left(leftId);
    	right(rightId);
    
    	if (!left.opened() || !right.opened()) {
    		std::cerr << "Could not open camera!" << std::endl;
    	}
    }
    
    Mat Stereo::getLeft() {
    	Mat frame;
    	left >> frame;
    	return frame;
    }
    
    Mat Stereo::getRight() {
    	Mat frame;
    	right >> frame;
    	return frame;
    } 
    


    Thanks. Forgive my crappy C++ ;)
  2. Need a long list of urls...

    14 August 2012 - 03:41 PM

    Does anyone know where I would be able to find a long (5000+) list of urls?
    It doesn't matter what the urls are as long as they are valid. A text file with one url per line would be preferred.

    Thanks

Comments

alexdavey has no profile comments yet. Why not say hello?


Enter your sign in name and password


Sign in options
  Or sign in with these services