Skip to content

Update dependencies, modernize some bits of code - #47

Merged
Dominic-DallOsto merged 12 commits into
masterfrom
jsp-bugfixes
Oct 4, 2024
Merged

Dominic-DallOsto merged 12 commits into
masterfrom
jsp-bugfixes

Conversation

@jasper-tms

Copy link
Copy Markdown
Member

Closes #43

@jasper-tms
jasper-tms marked this pull request as ready for review September 24, 2024 10:59
This seems to have been necessary during the change from using an Axes3D
object to `plt.add_subplot(111, projection='3d')`. Before this commit,
the 3D video would be a bit more zoomed out than it should have been,
presumably because `tight_layout` wasn't working.
@jasper-tms

Copy link
Copy Markdown
Member Author

Hi @Dominic-DallOsto I'd be ready to merge these changes. I've confirmed that the results videos that this branch produces (running updated versions of python and many packeges) are visually identical to the ones generated by the master branch (running old versions of things).

Comment thread df3d/core.py
def expand_videos(self):
"""expands video camera_x.mp4 into set of images camera_x_img_y.jpg"""
for vid in glob.glob(os.path.join(self.input_folder, "camera_*.mp4")):
for vid in glob.glob(os.path.join(self.input_folder, "camera_?.mp4")):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this limits us to only using up to 10 cameras, but from what I could tell that we use 7 cameras is quite baked in so I think this makes sense

@Dominic-DallOsto

Copy link
Copy Markdown
Contributor

Looks good!

I'm trying to setup automated testing so just to check how you went about manually testing: you ran the code on the sample data using the current master and this branch, and compared if they looked the same?

@jasper-tms

Copy link
Copy Markdown
Member Author

Yep. And I've been running this branch on "real" data and getting reasonable/expected results on it.

@Dominic-DallOsto
Dominic-DallOsto merged commit 1ab46b8 into master Oct 4, 2024
@Dominic-DallOsto
Dominic-DallOsto deleted the jsp-bugfixes branch October 4, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update scipy / opencv / matplotlib / numpy versions

3 participants