copied all JAVACV code into streamactivity