Following and replacing a marker in a real time video stream

﹥>﹥吖頭↗ 提交于 2019-12-11 07:56:35

问题


I want to create a program that can detect a marker in a real-time video stream an replace the marker with part of a picture i took before. I am using ARtoolKit to recognize the marker. First i will grab the video frame and save it as a jpg file then i will put the marker and let the video recognize the marker. After the program recognize the marker but pressing a keyboard key i will call a function hode marker() who receive the jpg and the coordenates of the marker. Maybe by using ImageMagick i will crop the image to feet the coordenates. Then i will maybe create a opengl plane with the croped image has texture. Need some help with how to code this.


回答1:


This is called tracking. There are many references on the Wikipedia page to get you started.



来源:https://stackoverflow.com/questions/8576417/following-and-replacing-a-marker-in-a-real-time-video-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!