Commit a498e383 authored by William Michalski's avatar William Michalski
Browse files

petites modifs

parent 183440c4
......@@ -81,14 +81,14 @@ def affiche_trajectoire(signaux, image):
# [1, 2, 3, 4, 5, 6, 9, 8, 7],
# ])
sig = np.load("sig.npy")
# affiche_signaux(sig)
img = np.zeros((480, 480, 3), np.uint8)
cv2.rectangle(img, (0,0), (480,480), (255, 255, 255), cv2.FILLED)
image = cv2.imread("visuLaby.jpg")
affiche_trajectoire(sig, img)
# sig = np.load("sig.npy")
# # affiche_signaux(sig)
#
# img = np.zeros((480, 480, 3), np.uint8)
# cv2.rectangle(img, (0,0), (480,480), (255, 255, 255), cv2.FILLED)
#
# image = cv2.imread("visuLaby.jpg")
#
# affiche_trajectoire(sig, img)
......@@ -4,6 +4,7 @@ Created on Sat Apr 24 11:29:26 2021
@author: thomas
"""
import numpy as np
# Fonctions pour l'asservissement
......
......@@ -127,7 +127,7 @@ time.sleep(1) # Pour la synchronisation des communications
camera = init_camera()
print("Prise d'une photo et resolution du labyrinthe...")
#camera.capture(img,'bgr')
img = camera.capture(img,'bgr')
#img = cv2.imread("visuLaby.jpg")
#img = img[530:2175,550:1885]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment