diff options
author | Hongmei Gou | 2019-09-19 17:40:26 -0500 |
---|---|---|
committer | Hongmei Gou | 2019-09-19 17:40:26 -0500 |
commit | 5be60aee8d013907a4d8a6cc8af35a517a33b49e (patch) | |
tree | 6f748d6395e3be8269605e030599ee55b90c620a | |
parent | 79f4db254eeffff7e0479cf4daa38ea22a389e34 (diff) | |
parent | 5da10b5085286bdd86acd44c50e230f6a7e56a7c (diff) | |
download | tiovx-app-5be60aee8d013907a4d8a6cc8af35a517a33b49e.tar.gz tiovx-app-5be60aee8d013907a4d8a6cc8af35a517a33b49e.tar.xz tiovx-app-5be60aee8d013907a4d8a6cc8af35a517a33b49e.zip |
* commit '5da10b5085286bdd86acd44c50e230f6a7e56a7c':
khronos_example: print out frame index along with the detection/tracking results
-rw-r--r-- | khronos_example/solution_exercise1.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/khronos_example/solution_exercise1.cpp b/khronos_example/solution_exercise1.cpp index 429a841..05330bf 100644 --- a/khronos_example/solution_exercise1.cpp +++ b/khronos_example/solution_exercise1.cpp | |||
@@ -521,6 +521,12 @@ int main( int argc, char * argv[] ) | |||
521 | sprintf( text, "Number of Corners: %d [tracking %d]", ( int )num_corners, ( int )num_tracking ); | 521 | sprintf( text, "Number of Corners: %d [tracking %d]", ( int )num_corners, ( int )num_tracking ); |
522 | gui->DrawText( 0, 36, text ); | 522 | gui->DrawText( 0, 36, text ); |
523 | gui->Show(); | 523 | gui->Show(); |
524 | |||
525 | //////// | ||
526 | // Print the frame index along with the results to the console | ||
527 | printf("Frame %d, Number of Corners: %d [tracking %d] \n", frame_index, ( int )num_corners, ( int )num_tracking ); | ||
528 | fflush(stdout); | ||
529 | |||
524 | if( !gui->Grab() ) | 530 | if( !gui->Grab() ) |
525 | { | 531 | { |
526 | // Terminate the processing loop if the end of sequence is detected. | 532 | // Terminate the processing loop if the end of sequence is detected. |