-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20f438c
commit e516da7
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
__author__ = 'Future Engineer' | ||
|
||
""" | ||
from: | ||
http://stackoverflow.com/questions/27873818/easygui-and-simplecv-typeerror-module-object-is-not-callable | ||
""" | ||
import sys | ||
|
||
sys.path.append('..') | ||
import code | ||
import easygui as eg | ||
from easygui import * | ||
from SimpleCV import * | ||
from cv2 import * | ||
from cv import * | ||
from PIL import * | ||
import time | ||
import sys | ||
|
||
# Set a breakpoint | ||
code.interact("Code paused. Hit ctrl-D when ready to continue", local=dict(globals(), **locals())) | ||
while True: | ||
eg.msgbox("""Welcome to my program!""", image = "pi.jpg") | ||
msgbox("Select img ") | ||
nam=fileopenbox(filetypes=['*']) | ||
print(nam) | ||
img=Image.open(nam) | ||
img1=img.convert('1') | ||
time.sleep(1) | ||
img1.save("result.png") | ||
msgbox("This is the result", image = "result.png") | ||
msg = "Do you want to continue?" | ||
title = "Please Confirm" | ||
if ccbox(msg, title): # show continue/cancle dialog | ||
print("okk") # user chose continue | ||
else: | ||
sys.exit(0) # user chose cancle |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.