Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 5

Answer by Kirill Kornyakov for Hi all!i would like to thank whoever that read this thread first! :D Let's go into details...i have done all tracking purposes for my project, thresholding, canny, getting my center coordinates for my tracking object. But there is one big hurdle that i am facing for a long period of time, it is how do you Record those constantly refreshing points into note pad?i have tried, ostream. but my output has only one coordinate! not more. is there any way i can constantly record the ever changing of coordinates point?Thanks a lot! Regards Colin

$
0
0
Sorry if I still don't understand your problem, but here is what I usually do. You create an std::vector (or several) of required type and push_back there measurements from every iteration. Then, when you have significant amount of data (i.e. 1000 measurements), you can dump it to the filesystem. C++ provides you with several ways to do so. You can even try to keep ALL data in the memory till the very end, if its size is small. But usually it is better to dump it periodically. You simply open a text file, append your data to the end, then close it until you have another potion.

Viewing all articles
Browse latest Browse all 5

Trending Articles