Giter VIP home page Giter VIP logo

opencvhandguesture's People

Contributors

jujojujo2003 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencvhandguesture's Issues

Issues while running make command

Below are the errors faced while running the make command.Pls help resolve the issues

ashok@ashok:~/Downloads/OpenCVHandGuesture-master$ make
rm -rf a.out
g++ pkg-config --libs opencv -lX11 main.cpp
/tmp/cc3ht5yT.o: In function mouseClick()': main.cpp:(.text+0x498): undefined reference toXOpenDisplay'
main.cpp:(.text+0x58d): undefined reference to XQueryPointer' main.cpp:(.text+0x627): undefined reference toXQueryPointer'
main.cpp:(.text+0x658): undefined reference to XSendEvent' main.cpp:(.text+0x68c): undefined reference toXFlush'
main.cpp:(.text+0x69b): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In functionmouseRelease()':
main.cpp:(.text+0x6e0): undefined reference to XOpenDisplay' main.cpp:(.text+0x7cb): undefined reference toXQueryPointer'
main.cpp:(.text+0x865): undefined reference to XQueryPointer' main.cpp:(.text+0x8a7): undefined reference toXSendEvent'
main.cpp:(.text+0x8db): undefined reference to XFlush' main.cpp:(.text+0x8ea): undefined reference toXCloseDisplay'
/tmp/cc3ht5yT.o: In function mouseTo(int, int)': main.cpp:(.text+0x919): undefined reference toXOpenDisplay'
main.cpp:(.text+0x977): undefined reference to XWarpPointer' main.cpp:(.text+0x987): undefined reference toXFlush'
main.cpp:(.text+0x993): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In functionmain':
main.cpp:(.text+0xa10): undefined reference to cv::VideoCapture::VideoCapture(int)' main.cpp:(.text+0xa1f): undefined reference tocv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2()'
main.cpp:(.text+0xa38): undefined reference to cv::Algorithm::set(char const*, int)' main.cpp:(.text+0xa51): undefined reference tocv::Algorithm::set(char const_, bool)'
main.cpp:(.text+0xa8f): undefined reference to cv::namedWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text+0xaeb): undefined reference tocv::namedWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
main.cpp:(.text+0xb27): undefined reference to cv::VideoCapture::operator>>(cv::Mat&)' main.cpp:(.text+0xb5f): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xb78): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text+0xba0): undefined reference tocv::BackgroundSubtractorMOG2::operator()(cv::_InputArray const&, cv::_OutputArray const&, double)'
main.cpp:(.text+0xbc2): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xbdb): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xbff): undefined reference to cv::BackgroundSubtractorMOG2::operator()(cv::_InputArray const&, cv::_OutputArray const&, double)' main.cpp:(.text+0xc18): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xc31): undefined reference to cv::BackgroundSubtractorMOG2::getBackgroundImage(cv::_OutputArray const&) const' main.cpp:(.text+0xc81): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xc9a): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xcb3): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xcef): undefined reference to cv::erode(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)' main.cpp:(.text+0xd52): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xd6b): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xd84): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xdc0): undefined reference tocv::dilate(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)' main.cpp:(.text+0xe14): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xe3e): undefined reference tocv::findContours(cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)' main.cpp:(.text+0xeb2): undefined reference to cv::contourArea(cv::_InputArray const&, bool)'
main.cpp:(.text+0xf18): undefined reference tocv::noArray()' main.cpp:(.text+0xf74): undefined reference to cv::OutputArray::OutputArray(cv::Mat&)'
main.cpp:(.text+0xfb7): undefined reference tocv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)' main.cpp:(.text+0x10e7): undefined reference to cv::InputArray::InputArray(cv::Mat const&)'
main.cpp:(.text+0x1107): undefined reference tocv::convexHull(cv::_InputArray const&, cv::_OutputArray const&, bool, bool)' main.cpp:(.text+0x1186): undefined reference to cv::InputArray::InputArray(cv::Mat const&)'
main.cpp:(.text+0x11a6): undefined reference tocv::convexHull(cv::_InputArray const&, cv::_OutputArray const&, bool, bool)' main.cpp:(.text+0x11c9): undefined reference to cv::noArray()'
main.cpp:(.text+0x1225): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0x1268): undefined reference to cv::drawContours(cv::OutputArray const&, cv::InputArray const&, int, cv::Scalar const&, int, int, cv::InputArray const&, int, cv::Point)'
main.cpp:(.text+0x12b3): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text+0x12cc): undefined reference tocv::minAreaRect(cv::InputArray const&)'
main.cpp:(.text+0x1354): undefined reference to cv::RotatedRect::points(cv::Point_<float>_) const' main.cpp:(.text+0x143d): undefined reference to cv::line(cv::Mat&, cv::Point
, cv::Point
, cv::Scalar
const&, int, int, int)'
main.cpp:(.text+0x14e7): undefined reference tocv::convexityDefects(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)' main.cpp:(.text+0x1ced): undefined reference to cv::circle(cv::Mat&, cv::Point, int, cv::Scalar const&, int, int, int)'
main.cpp:(.text+0x1d8e): undefined reference to cv::circle(cv::Mat&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' main.cpp:(.text+0x231b): undefined reference tocv::line(cv::Mat&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)'
main.cpp:(.text+0x2535): undefined reference to cv::putText(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)' main.cpp:(.text+0x2570): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0x25b3): undefined reference to cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' main.cpp:(.text+0x25ea): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0x262d): undefined reference to cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' main.cpp:(.text+0x2655): undefined reference tocv::waitKey(int)'
main.cpp:(.text+0x2698): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x26a7): undefined reference tocv::VideoCapture::~VideoCapture()'
main.cpp:(.text+0x2978): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x298c): undefined reference tocv::VideoCapture::~VideoCapture()'
/tmp/cc3ht5yT.o: In function cv::Mat::~Mat()': main.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference tocv::fastFree(void*)'
/tmp/cc3ht5yT.o: In function cv::Mat::release()': main.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference tocv::Mat::deallocate()'
/tmp/cc3ht5yT.o: In function cv::_InputArray::_InputArray<int>(std::vector<int, std::allocator<int> > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2IiEERKSt6vectorIT_SaIS3_EE[_ZN2cv11_InputArrayC5IiEERKSt6vectorIT_SaIS3_EE]+0x11): undefined reference tovtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In function cv::_OutputArray::_OutputArray<cv::Point_<int> >(std::vectorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > >, std::allocatorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > > > >&)': main.cpp:(.text._ZN2cv12_OutputArrayC2INS_6Point_IiEEEERSt6vectorIS4_IT_SaIS5_EESaIS7_EE[_ZN2cv12_OutputArrayC5INS_6Point_IiEEEERSt6vectorIS4_IT_SaIS5_EESaIS7_EE]+0x24): undefined reference to vtable for cv::_OutputArray'
/tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Point_<int> >(std::vectorcv::Point_<int, std::allocatorcv::Point_<int > > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EE[_ZN2cv11_InputArrayC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EE]+0x11): undefined reference to vtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Point_<int> >(std::vectorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > >, std::allocatorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > > > > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2INS_6Point_IiEEEERKSt6vectorIS4_IT_SaIS5_EESaIS7_EE[_ZN2cv11_InputArrayC5INS_6Point_IiEEEERKSt6vectorIS4_IT_SaIS5_EESaIS7_EE]+0x11): undefined reference to vtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In functioncv::Mat::Mat<cv::Point_<int> >(std::vectorcv::Point_<int, std::allocatorcv::Point_<int > > const&, bool)': main.cpp:(.text._ZN2cv3MatC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb[_ZN2cv3MatC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb]+0x20d): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text._ZN2cv3MatC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb[ZN2cv3MatC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb]+0x26a): undefined reference tocv::Mat::copyTo(cv::_OutputArray const&) const' /tmp/cc3ht5yT.o: In function cv::OutputArray::OutputArray<cv::Point >(std::vectorcv::Point<int, std::allocatorcv::Point >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2INS_6Point_IiEEEERSt6vectorIT_SaIS5_EE[_ZN2cv12_OutputArrayC5INS_6Point_IiEEEERSt6vectorIT_SaIS5_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_OutputArray::_OutputArray(std::vector<int, std::allocator >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2IiEERSt6vectorIT_SaIS3_EE[_ZN2cv12_OutputArrayC5IiEERSt6vectorIT_SaIS3_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_OutputArray::_OutputArray<cv::Vec<int, 4> >(std::vector<cv::Vec<int, 4>, std::allocator<cv::Vec<int, 4> > >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2INS_3VecIiLi4EEEEERSt6vectorIT_SaIS5_EE[_ZN2cv12_OutputArrayC5INS_3VecIiLi4EEEEERSt6vectorIT_SaIS5_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Vec<int, 4> >(std::vector<cv::Vec<int, 4>, std::allocator<cv::Vec<int, 4> > > const&)':
main.cpp:(.text._ZN2cv11_InputArrayC2INS_3VecIiLi4EEEEERKSt6vectorIT_SaIS5_EE[_ZN2cv11_InputArrayC5INS_3VecIiLi4EEEEERKSt6vectorIT_SaIS5_EE]+0x11): undefined reference to `vtable for cv::_InputArray'
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1

What do you need to run this?

You give no instructions on how to set this project up.

What dependencies are needed?

What version of opencv is this compatible with?

I install opencv, try to make, and get a ton of errors.

How to make work?

Header files?

I see two unfamiliar header files;

# include <X11/Xlib.h>
# include <X11/Xutil.h>

What are they? I never seen in OpenCV.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.