This commit is contained in:
@@ -51,10 +51,10 @@ set_led_state(False)
|
||||
|
||||
op_image(image, background, "subtract", float_result=True, in_place=True)
|
||||
|
||||
if RENDERER is None:
|
||||
if RENDERER is not None:
|
||||
RENDERER.setImage(None, image.getBufferedImage(), None)
|
||||
else:
|
||||
RENDERER = show_panel(image.getBufferedImage())
|
||||
else:
|
||||
RENDERER.setImage(None, image.getBufferedImage(), None)
|
||||
RENDERER.clearOverlays()
|
||||
|
||||
invert(image)
|
||||
@@ -73,15 +73,14 @@ for row in range (r.counter):
|
||||
x, y = int(r.getValue("XM", row)), int(r.getValue("YM", row))
|
||||
cx, cy = img.getCalibration().convertToAbsoluteX(x), img.getCalibration().convertToAbsoluteY(y)
|
||||
points.append([cx,cy])
|
||||
RENDERER.addOverlay(Crosshairs(Pen(java.awt.Color.MAGENTA), java.awt.Point(x,y), java.awt.Dimension(15,15)))
|
||||
if RENDERER is not None:
|
||||
RENDERER.addOverlay(Crosshairs(Pen(java.awt.Color.MAGENTA), java.awt.Point(x,y), java.awt.Dimension(15,15)))
|
||||
|
||||
|
||||
|
||||
#RENDERER.addOverlays(ovs)
|
||||
|
||||
clear_detection(block_id)
|
||||
detect_pucks(points, block_id)
|
||||
plot_base_plate(points, p=PLOT)
|
||||
if PLOT is not None:
|
||||
plot_base_plate(points, p=PLOT)
|
||||
|
||||
ret = get_puck_detection_dict(block_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user