Skip to content

Commit

Permalink
Remove extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavb authored Mar 24, 2019
1 parent 04dc3e9 commit ca968fd
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions frc2554_vision_final.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,6 @@ def run(self):
while True:
self.timestamp, self.img = self.cvSink.grabFrame(self.img)
pass


# ---------------------------------------- #
# End Our Code #
# ---------------------------------------- #


def main():
global configFile
Expand Down Expand Up @@ -586,10 +580,6 @@ def main():
outputStream.notifyError(cvSink.getError())
continue

# grip.process(frame)
# frame = cv2.resize(frame, (320, 240), 0, 0, cv2.INTER_CUBIC)
# new_image, shuffleboard_data = angleToTarget(frame, grip.filter_contours_output)

new_image, shuffleboard_data = vis.output

for name, data in shuffleboard_data.items():
Expand All @@ -599,11 +589,11 @@ def main():

outputStream.putFrame(new_image)

fps = 1/(time.time() - start)
fps = 1 / (time.time() - start)
if num_frames % 1000 == 0:
print(fps)
num_frames = 0
time.sleep(max(1.0/30.0 - (time.time() - start), 0))
time.sleep(max(1.0 / 30.0 - (time.time() - start), 0))

if __name__ == "__main__":
main()
Expand Down

0 comments on commit ca968fd

Please sign in to comment.