ligerbots / ligerbots/VisionServer
Create small class for the contour info
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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