We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03e4b3a + 5f3da94 commit 2867533Copy full SHA for 2867533
python/pandaset/sensors.py
@@ -313,8 +313,12 @@ def _load_intrinsics_structure(self) -> None:
313
self._intrinsics_structure = intrinsics_file
314
315
def _load_data_file(self, fp: str) -> JpegImageFile:
316
- return Image.open(fp)
317
-
+ # solve this bug: https://github.com/python-pillow/Pillow/issues/1237
+ img = Image.open(fp)
318
+ image = img.copy()
319
+ img.close()
320
+ return image
321
+
322
def _load_intrinsics(self) -> None:
323
with open(self._intrinsics_structure, 'r') as f:
324
file_data = json.load(f)
0 commit comments