2

I just start exploring computer-vision field and I'm trying to create something like this (this image is what I'm trying to achieve not what I've already achieve) Transparent

My approach is (just a logical solution, havent try it yet):

  1. Color detection.

    First, get pixel position of lines with red and green color then add all that value to arrayRed and arrayGreen.

  2. Segmentation

    Get base image from cache then get all pixel with value that close to arrayRed and label it as label background. Do the same for arrayGreen

  3. Convert color space to RGBA and set the Alpha of label background to 0

My question :

  1. Am I on the right path?

  2. Is this possible to achieve with OpenCV library?

  3. If my approach is wrong, what's the efficient and actually right approach(in pseudo-code or python) to achieve the goal?

nfl-x
  • 487
  • 1
  • 6
  • 13

0 Answers0