ligerbots / ligerbots/VisionServer

Create small class for the contour info

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Right now, we use a dictionary to hold a bunch of things about a contour, such as bounding box values, area, etc. This is done so that we don't calculate these values multiple times.

We should create a small class to handle this. For each value, it can see if it has it, if not calculate it, and then return it.

Also, the class can hold extra info such as the reason that contour was cut (eg see 2021 galactic_search).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing dictionary used to store contour values and tracing its callers. Identify the values currently cached and how contours are cut, then define the class around those uses. The work is done when callers use the class, values are calculated only when needed, and cut-reason information can be retained.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.