bbiscuit / SafetownSeniorRobot

0 stars 0 forks source link

Primitive center detection #2

Closed bbiscuit closed 11 months ago

bbiscuit commented 11 months ago

This still needs some work. Here are a list of issues present:

  1. A wacky center line will be given if we lose the right line. I'd prefer it if no center line were given in this scenario (if the right or center line is lost)
  2. The detection for the outside line contour is flawed. Right now I have it just choosing the largest contour, but this is a fundamentally flawed approach (what if the camera cuts through the contour? What if we lose the contour?). I'm opening an issue for this now; a better detection algorithm for this is my next step.