Tracking implementation based on red-green square color bars

Source: Internet
Author: User

 

Tracking implementation based on red-green square color bars

Tracking is a basic problem in computer vision. There are also many algorithms, such as meanshift, camshift,
And so on, but there are not many really robust, and the tracking has a lot to do with the characteristics of the target,
In the study, I found that, based on color segmentation, certain features are added to the tracking target, such as red-green matching,
Then, based on this feature search, the red-green square feature is identified in space, so it is easy to obtain good robustness.
The procedure is as follows:

1. Use the HSV space to separate the red space and the Green space
2. Measure the color block distribution of the red space and the green space.
3. Record a red block and the adjacent green block as a couple to recursively obtain all the couples
4. Analyze all the couples and calculate the neighboring couple weights.
5. Set the Domain value to clear the lower couple of the neighbor counter.
6. The mean value for couples with high similarity is the position of the Tracking target. :)

However, the disadvantage is that the tracing Based on the red or green background cannot be achieved, because the division fails completely.

The effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.