-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for defining and using regions-of-interest (ROIs) #377
Comments
We should brainstorm the core features that RoIs need to have - this will enable us to design the class skeleton from this. Features that are critical for RoIs to have that I can think of off the top of my head (and further discussion is welcome):
We should also investigate existing (mature) libraries that support representations of geometric data. I had a quick play with As a suitable roadmap:
|
Had a play with Main difficulty is that |
Thanks for outlining this plan Will, I fully agree with it. |
Overarching theme
One of the key elements of the project's long-term vision is:
Having a representation for ROIs is crucial for many useful and popular metrics such as:
Specific aims
To support this goal, users should be able to define ROIs either by passing coordinate values, or ideally, by drawing them on top of the video/frame.
On the Python API side, users should be able to define objects such as points, lines, polygons (and maybe also circles, ellipses, and rectangles, for convenience) by passing vertex coordinates or the geometric parameters of each shape (e.g. for the circle this could be centre + radius).
Ideally, we should rely on existing mature solutions as much as possible, for example, the Shapely Geometry classes, with thin convenience wrappers on top of them (if and as needed).
Additional context
Related to #368 and #370.
This issue is meant to track the data structures and API interface for ROIs.
The drawing of the ROIs via a graphical user interface is a separate issue #378.
The text was updated successfully, but these errors were encountered: