Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
ucacaxm committed Nov 20, 2024
1 parent 4df3607 commit 826d129
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
data/taichi1
*_pycache_*
src/_pycache_*
3 changes: 1 addition & 2 deletions src/DanceDemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pickle
import sys

import tp
from VideoSkeleton import VideoSkeleton
from VideoSkeleton import combineTwoImages
from VideoReader import VideoReader
Expand All @@ -19,7 +18,7 @@ class DanceDemo:
The animation/posture from self.source is applied to character define self.target using self.gen
"""
def __init__(self, filename_src, typeOfGen=2):
self.target = VideoSkeleton( "tp/dance/data/taichi1.mp4" )
self.target = VideoSkeleton( "data/taichi1.mp4" )
self.source = VideoReader(filename_src)
if typeOfGen==1: # Nearest
print("Generator: GenNeirest")
Expand Down
2 changes: 1 addition & 1 deletion src/Skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def draw_reduced(skr, image):
if __name__ == '__main__':
s = Skeleton()
print("Current Working Directory:", os.getcwd())
image = cv2.imread("tp/dance/test.jpg")
image = cv2.imread("data/test.jpg")
if image is None:
print('Lecture de l\'image a échoué.')
#image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
Expand Down
2 changes: 1 addition & 1 deletion src/VideoReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __del__(self):

if __name__ == '__main__':
print("Current Working Directory:", os.getcwd())
video = VideoReader("tp/dance/data/taichi1.mp4")
video = VideoReader("data/taichi1.mp4")
for i in range(video.getTotalFrames()):
image = video.readFrame()
cv2.imshow('Image', image)
Expand Down

0 comments on commit 826d129

Please sign in to comment.