Example #1
0
def checkCorners(x, y, z):
	anomaly = []
	url = urlmakers.urlMaker(x, y, z, histogramglob)
	try:
		data = urlmakers.processURL(url)
		anomaly = anomalyDetection.anomalyDetector(data)
	except ValueError:
		pass
	#BOOLEAN T/F based if anamoly found
	
	return anomaly
Example #2
0
def checkSelectedCorners(x1, x2, y1, y2, z):

	anomaly = []
	url = urlmakers.urlBoxMaker(x1, x2, y1, y2, z, histogramglob)
	#print url
	try:
		data = urlmakers.processURL(url)
		anomaly = anomalyDetection.anomalyDetector(data)
	except ValueError:
		pass
		
	return anomaly
Example #3
0
def runPolygonSelection(coordslist, histogram):

	global histogramglob
	histogramglob = histogram

	url = urlmakers.urlPolygonMaker(coordslist, histogram)
	#print url
	anomaly = []
	try:
		pass
		data = urlmakers.processURL(url)
		anomaly = anomalyDetection.anomalyDetector(data)
	except ValueError:
		pass
	#print anomaly

	return anomaly