HumanSignal / HumanSignal/label-studio
Previews/highlights for Brush Label regions are shifted when zoomed into the image
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
When using brush labels and zoomed into a task image, the highlighting/preview feature shifts the brush mask in non-ideal ways. This is especially problematic for complex images with multiple instances/regions of each class. The shifted masks will start to overlap, such that the highlight feature becomes unusable.
**To Reproduce**
Steps to reproduce the behavior:
1. Set up a project with brush labels.
2. Label a few regions.
3. Zoom into the image.
4. Mouse over each region/layer in the side-bar to see the shifted masks.
**Expected behavior**
Regardless of zoom, the highlight feature should simply highlight the region that corresponds to the annotation layer that your mouse is highlighting. There should be no shift in the region.
**Screencast**
https://user-images.githubusercontent.com/44240251/205409576-21bc8c9c-6d00-4903-8ef4-aa916043819c.mov
**Environment (please complete the following information):**
- OS: hosted on Linux VM, viewing on MacOS/Chrome.
- Label Studio Version
```
Label Studio version: 1.5.0.post0
{
"release": "1.5.0.post0",
"label-studio-os-package": {
"version": "1.5.0.post0",
"short_version": "1.5",
"latest_version_from_pypi": "1.6.0",
"latest_version_upload_time": "2022-09-27T17:09:34",
"current_version_is_outdated": true
},
"label-studio-os-backend": {
"message": "ci: Sync .github directory from develop (#2655)",
"commit": "8c657fce5928886f9da025ef271c96ececa6bbf4",
"date": "2022-07-13 16:05:08 +0400",
"branch": "release/1.5.0",
"version": "8c657fc+dirty"
},
"label-studio-frontend": {
"message": "fix: DEV-2777: remove lookbehind in regex for Safari (#730)",
"commit": "4331b56b6a7fb0ffaea2c8b010cb0b8cec6ad7dc",
"branch": "ls-release/1.5.0",
"date": "2022-07-01T16:44:40Z"
},
"dm2": {
"message": "fix: DEV-2526: Don't crash because of undefined LSF (#75)",
"commit": "5104ecf3227380649a7139b73a636c11b7a07ea9",
"branch": "ls-release/1.5.0",
"date": "2022-07-05T19:38:39Z"
},
"label-studio-converter": {
"version": "0.0.40"
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.