This file contains hidden or 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
from abc import ABCMeta,abstractmethod | |
class Display: | |
__metaclass__ = ABCMeta | |
#TODO add text for adjusting image size to fit | |
""" | |
**SUMMARY** |
This file contains hidden or 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
from IPython.core.display import Javascript as JS | |
str = """ | |
window = window.open('http://simplecv.org/sites/all/themes/kalypso/images/SM_logo_color.png','simplecv','width=500,height=500') | |
""" | |
JS(str) |
This file contains hidden or 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
from time import sleep | |
from SimpleCV import Image | |
class Example: | |
def __init__(self): | |
pass | |
while(True): | |
l = Example() |
This file contains hidden or 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
img = Image('abc.png') | |
img.show() # should open a new qt window to show the image | |
#this call should not block, and should reutrn immediately to allow the user to do further image processing | |
#additional image processing | |
img.toGray() | |
img.whatever() |
This file contains hidden or 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
from SimpleCV import Image | |
from SimpleCV.DisplayNew import GtkDisplay | |
from socket import setdefaulttimeout | |
setdefaulttimeout(None) | |
d1 = GtkDisplay(title = "Resize to fit", fit = GtkDisplay.RESIZE) | |
d2 = GtkDisplay(title = "Crop to fit", fit = GtkDisplay.CROP) | |
img = Image('lenna') | |
fs = img.findLines() |
This file contains hidden or 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
from SimpleCV import Image | |
from SimpleCV import Display,Camera | |
from socket import setdefaulttimeout | |
import SimpleCV as scv | |
setdefaulttimeout(None) | |
cam = Camera() | |
d1 = Display(title = "Resize to fit", fit = scv.RESIZE) | |
d2 = Display(title = "Crop to fit", fit = scv.SCROLL) |
This file contains hidden or 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
/** | |
Program to simlulate Log Normal Shadowing | |
Program generates data in "plot.dat" file which can be plottes using gnuplot | |
*Compile with | |
g++ lns.cpp -o lns -std=c++11 | |
*Plot with | |
plot "plot.dat" ;set xlabel "Seperation";set ylabel "Path Loss" |
This file contains hidden or 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
l = [1,2,3,4] | |
for x in l: | |
x = 10 | |
print l |
This file contains hidden or 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
from SimpleCV import * | |
import time | |
cam = Camera(threaded = True) | |
c = 0 | |
time.sleep(1) | |
while True: | |
cam.getImage().show() | |
print c | |
c +=1 |
This file contains hidden or 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
from ..Base import Display | |
from ..Base.Display import DisplayBase | |
from tornado.web import Application | |
import tornado | |
from IPython.core.display import Javascript as JS | |
from IPython.core.display import display | |
import os | |
import threading | |
import tempfile |
OlderNewer