modify the event pickle file
This commit is contained in:
BIN
utils/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
utils/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/augmentations.cpython-312.pyc
Normal file
BIN
utils/__pycache__/augmentations.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/autoanchor.cpython-312.pyc
Normal file
BIN
utils/__pycache__/autoanchor.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/dataloaders.cpython-312.pyc
Normal file
BIN
utils/__pycache__/dataloaders.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/downloads.cpython-312.pyc
Normal file
BIN
utils/__pycache__/downloads.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/general.cpython-312.pyc
Normal file
BIN
utils/__pycache__/general.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/getsource.cpython-312.pyc
Normal file
BIN
utils/__pycache__/getsource.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/metrics.cpython-312.pyc
Normal file
BIN
utils/__pycache__/metrics.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/plots.cpython-312.pyc
Normal file
BIN
utils/__pycache__/plots.cpython-312.pyc
Normal file
Binary file not shown.
BIN
utils/__pycache__/torch_utils.cpython-312.pyc
Normal file
BIN
utils/__pycache__/torch_utils.cpython-312.pyc
Normal file
Binary file not shown.
@ -300,7 +300,7 @@ class LoadImages:
|
||||
ret_val, im0 = self.cap.read()
|
||||
|
||||
self.frame += 1
|
||||
# im0 = self._cv2_rotate(im0) # for use if cv2 autorotation is False
|
||||
im0 = self._cv2_rotate(im0) # for use if cv2 autorotation is False
|
||||
s = f'video {self.count + 1}/{self.nf} ({self.frame}/{self.frames}) {path}: '
|
||||
|
||||
else:
|
||||
@ -329,12 +329,15 @@ class LoadImages:
|
||||
|
||||
def _cv2_rotate(self, im):
|
||||
# Rotate a cv2 video manually
|
||||
if self.orientation == 0:
|
||||
return cv2.rotate(im, cv2.ROTATE_90_CLOCKWISE)
|
||||
elif self.orientation == 180:
|
||||
# if self.orientation == 0:
|
||||
# return cv2.rotate(im, cv2.ROTATE_90_CLOCKWISE)
|
||||
# elif self.orientation == 180:
|
||||
# return cv2.rotate(im, cv2.ROTATE_90_COUNTERCLOCKWISE)
|
||||
# elif self.orientation == 90:
|
||||
# return cv2.rotate(im, cv2.ROTATE_180)
|
||||
if self.orientation == 270:
|
||||
return cv2.rotate(im, cv2.ROTATE_90_COUNTERCLOCKWISE)
|
||||
elif self.orientation == 90:
|
||||
return cv2.rotate(im, cv2.ROTATE_180)
|
||||
|
||||
return im
|
||||
|
||||
def __len__(self):
|
||||
|
Reference in New Issue
Block a user