Skip to content
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

No module named grabcut #1

Closed
hellocatfood opened this issue Mar 17, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@hellocatfood
Copy link

commented Mar 17, 2019

I tried running this script and got the following error.

[INFO   ] [Logger      ] Record log in /home/hellocatfood/.kivy/logs/kivy_19-03-17_3.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v2.7.15+ (default, Oct  2 2018, 22:12:08) 
[GCC 8.2.0]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
 Traceback (most recent call last):
   File "main.py", line 11, in <module>
     import grabcut
 ImportError: No module named grabcut

I can't find a module named grabcut in pip or Ubuntu repositories

@yang-han

This comment has been minimized.

Copy link
Owner

commented Mar 18, 2019

Sorry for the inconvenience caused.
Actually, this is just a demo kivy frontend code for grabcut. So the grabcut model needs to be implemented by yourself and import to this code.
By the way, I will not recommend you to use this code in any case. The codes can be seen as a practice of writing simple UI. So forget about this repo.

And OpenCV has already provided a grabcut implementation of grabcut with UI. You may refer to that and run it instead of this repo.

Sorry again.

@yang-han yang-han closed this Mar 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.