Giter Club home page Giter Club logo

realtimevideo's Issues

Memory alloc throwing an error

I pulled the latest source code with git clone and built it.
The first time I call:
vector RealTimeVideo::getSample(){

int end = pos ;
int st = pos - sampleLen;
if(st < 0)
st = 0;

cout << "st = " << st << endl;
cout << "end = " << end << endl;
//cout << "frameBuffer.begin()+st = " << frameBuffer.begin()+st << endl;
//cout << "frameBuffer.begin()+end = " << frameBuffer.begin()+end << endl;

vector ret(frameBuffer.begin()+st, frameBuffer.begin()+end);
return ret ;
}
Starting Processor Thread
calling getSample
st = 0

Launched Threads
end = -136425020
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

What is causing the end to be -136425020? The first time through causing the vector ret(frameBuffer.begin()+st, frameBuffer.begin()+end); to blow up?

Thanks, Ralph Waters
(email) [email protected]

cmake issue

/usr/bin/ld: CMakeFiles/respi.dir/realtime.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/respi.dir/build.make:231: recipe for target 'respi' failed
make[2]: *** [respi] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/respi.dir/all' failed
make[1]: *** [CMakeFiles/respi.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

PS: Adding -lpthread doesnt solve it.

waitKey want Main thread only [OpenCV 3.2.0]

Hello Rohan Raja,

I have issue with waitKey on OpenCV 3.2.0
respi[81117:10346319] [General] An uncaught exception was raised
respi[81117:10346319] [General] nextEventMatchingMask should only be called from the Main Thread!

2017-07-12 15 28 18

make Error

make
Scanning dependencies of target respi
[ 20%] Building CXX object CMakeFiles/respi.dir/main.cpp.o
[ 40%] Building CXX object CMakeFiles/respi.dir/respi.cpp.o
/Users/alpullu/Downloads/realtimevideo-master/respi.cpp:104:24: error: non-constant-expression cannot be
narrowed from type 'size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
int range[2] = {0, sample.size()};
^~~~~~~~~~~~~
/Users/alpullu/Downloads/realtimevideo-master/respi.cpp:104:24: note: insert an explicit cast to silence
this issue
int range[2] = {0, sample.size()};
^~~~~~~~~~~~~
static_cast( )
1 error generated.
make[2]: *** [CMakeFiles/respi.dir/respi.cpp.o] Error 1
make[1]: *** [CMakeFiles/respi.dir/all] Error 2
make: *** [all] Error 2

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.