[Feature]: May I ask how to achieve an effect similar to the segment-anything demo through the API, click on the relevant area to display the place that can be cut?
Bruce337f opened this issue · 4 comments
Expected behavior
For example,https://github.com/facebookresearch/segment-anything/tree/main/demo
The core prerequisite is to click on the image. In API, I provide the entry point to enter the coordinates on the image. You may want to write your own click logic, which requires a substantial knowledge of front end/javascript.
Thank you for your reply, I need to try again, but in the demonstration of the demo, the mouse hover can display the divisible image area, can it only be realized through the front end, or through the entry point of the input coordinates generated by mouse click ?
Also, is this the entry point for the generated input coordinates you mentioned, but it seems like there must be the prompt word "dino_text_prompt", otherwise an image is generated?
for example,sam_positive_points: List[List[float]] = []
thx your project
thx you advise!