-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Intelligent scissors with OpenCV javascript #2689
Conversation
@alalek , do you think we can place information about the integration somewhere on OpenCV site? For example, tutorial or demo page? Let's say a statement like "the feature is integrated into CVAT annotation tool and you can try it online on cvat.org". |
} | ||
|
||
public async initialize(onProgress: (percent: number) => void): Promise<void> { | ||
const response = await fetch(`${baseURL}/opencv/opencv.js`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider it as server API and add into server-proxy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
@bsekachev , build bs/opencv and got the following error: |
|
Most works really fine, but have some thoughts.
|
@nmanovic Forgot to setup server & proxy, fixed. |
Fixed.
Ideally it should be configurated in UI, but it would be difficult to unify UI for all possible thresholds with different tools from OpenCV. Now we also do not have thresholds for automatic annotation, maybe it will be done in the future.
I am not sure I understand you correct |
@bsekachev , an alternative way to implement the feature https://www.photoshopessentials.com/basics/selections/magnetic-lasso-tool/. What do you think? Looks like it is a polygon feature with "shift" pressed but you don't need move the mouse along the boundary precisely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Server part looks good for me. I think we can merge it as is for now.
Okay, let's merge it as an initial version and look how we can improve it in the future patches. |
@bsekachev @nmanovic Hi guys, I have these two suggestions:
Thanks again for your work. |
Motivation and context
Integration of OpenCV.js library into CVAT. Now Intelligent Scissors have been added (resolved #336), but we expect more functions in the future.
Threshold maintenance using
ctrl + mousewheel
How has this been tested?
Manual testing
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.