Hello everyone, First of all I want to apologise for my english (I'm not a native speaker). I have a videofile and I want to perform logo detection on it. I want to do it like this:
  1. Read video with VideoReader object
  2. Convert video into frames
  3. Apply code from Matlab tutorial from topic Object Detection in a Cluttered Scene ( Here ) on every frame
  4. Every frame will have logo highlighted with a polygon
  5. Save each frame to another video
I want to ask if this aproach is good and can you give me some advice how to do that?

 채택된 답변

Image Analyst
Image Analyst 2017년 1월 2일

0 개 추천

The attached demo does all that except for your step #3.
For finding the logo you can use edge detection (because many video bugs are transparent, but it will work with opaque ones too), and then use the Hausdorff detection method as shown on this page: http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html Look where they find a matching set of edge lines in their jet example.

댓글 수: 4

Kamil Kalwa
Kamil Kalwa 2017년 1월 3일
Is there a way to do it in real time?
Image Analyst
Image Analyst 2017년 1월 3일
Yes. Just call getsnapshot() to grab a frame from the video feed and process it. How "real time" it is depends on how fast your algorithm can detect the logo.
Kamil Kalwa
Kamil Kalwa 2017년 1월 4일
And how do I display it in real time?
Image Analyst
Image Analyst 2017년 1월 4일
In the same live video axes, you can put up a box around it, or an outline, or you can extract the logo and display it in a second axes.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

질문:

2017년 1월 2일

댓글:

2017년 1월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by