personalrobotics / feeding_web_interface

Web interface for the robot-assisted feeding system
1 stars 0 forks source link

Revamp Bite Selection Visualization #108

Closed amalnanavati closed 11 months ago

amalnanavati commented 11 months ago

Describe this pull request. Link to relevant GitHub issues, if any.

In our pilot study, we found the following issues with bite selection:

  1. Sometimes SegmentFromPoint segmented two food items together, and it was hard for the user to realize that the fork would skewer the middle.
  2. Sometimes SegmentFromPoint would mask the entire plate as one of the masks. Because we ensured all masks we equal size, this resulted in the other masks being very small and hard to see.

This PR addresses both of these as follows:

  1. Renders a small red dot in the middle of the image to display the center. Note that this is the center of the roi, not the center of mass of the mask. Although these are close, they aren't quite the same, so even this rendered point will be slightly off.
  2. Allows each mask to be scaled differently to fill up the button.

Screenshot 2023-12-21 at 10 40 38 AM The above image shows what Bite Selection looked like before this PR.

Screenshot 2023-12-21 at 10 35 48 AM The above image shows what Bite Selection looks like now.

Screenshot 2023-12-21 at 10 52 54 AM The above image illustrates the benefit of this approach.

Explain how this pull request was tested, including but not limited to the below checkmarks.


Before creating a pull request

Before merging a pull request