Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 9ea6f2e1 authored by Hachemin Pierre-Yves's avatar Hachemin Pierre-Yves

lab

parent f74d19a6
......@@ -94,7 +94,7 @@ def resizeVideo(vidIn, vidOut):
def meanImage(img): # Return the mean LAB array
res0 = [0, 0, 0]
res = [0, 0, 0]
lab = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
lab = cv2.cvtColor(img, cv2.COLOR_BGR2LAB)
for i in range(0, lab.shape[0]):
for j in range(0, lab.shape[1]):
res0 = res0 + lab[i][j]
......@@ -139,7 +139,7 @@ def imgSpectrum(vidPath, spectrumOut):
res2 = tableSpectrum(resizeVideo(vidPath, vidPath))
else:
res2 = tableSpectrum(vidPath)
output = cv2.cvtColor(res2, cv2.COLOR_LAB2BGR)
cv2.imwrite(spectrumOut, res2)
print()
print("--------------------------------------------------------")
......
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