Commit a400fe73 authored by Ahmed Diab's avatar Ahmed Diab

balls are being tracked!

parent 9ca74dff
Pipeline #271204 failed with stage
in 23 seconds
rm -rf target
java -jar embedded-montiarc-math-generator-0.1.16-SNAPSHOT-jar-with-dependencies.jar -m src/main/emam/ -r ba.ballTracking -o target -flag-generate-cmake
cd target
sed -i 's/cube/Cube<unsigned char>/g' ba_ballTracking.h
cd ..
rm -rf build
mkdir build && cd build
......
......@@ -3,8 +3,6 @@
#include <opencv2/highgui/highgui.hpp>
#include <armadillo>
using namespace arma;
using std::string;
......@@ -46,7 +44,7 @@ int main(int argc, const char** argv) {
ballT_Object.lineTypeIn = 4;
//cv::namedWindow("w", 1);
cv::namedWindow("w", 1);
for ( ; ; ) {
capture >> frame;
......@@ -56,10 +54,10 @@ int main(int argc, const char** argv) {
ballT_Object.execute();
cv::Mat output_frame = to_cvmat<unsigned char>(ballT_Object.modImageOut);
cv::flip(output_frame, output_frame, 0);
// cv::flip(output_frame, output_frame, 0);
//video.write(output_frame);
cv::imshow("w", output_frame);
cv::waitKey(1);
cv::waitKey(30);
}
cv::waitKey(0);
}
\ No newline at end of file
}
......@@ -10,6 +10,7 @@ find_package(OpenCV REQUIRED)
set(INCLUDE_DIRS ${INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OpenCV_LIBS})
target_link_libraries(BallTracking ba_balltracking ${LIBS} -lblas -lopenblas)
target_include_directories(BallTracking PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(BallTracking ba_ballTracking ${LIBS} -lblas -lopenblas)
export(TARGETS BallTracking FILE BallTracking.cmake)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment