Skip to content

Commit

Permalink
fix transforms py example
Browse files Browse the repository at this point in the history
  • Loading branch information
jungerm2 committed Jun 9, 2024
1 parent 4254953 commit b29302e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If this is your first time compiling a rust project, this may take a few minutes
### Library Usage (Python)

```python
from photoncube2video import PhotonCube
from photoncube2video import PhotonCube, Transforms

PhotonCube.convert_to_npy(
# Directory containing `.bin` files
Expand Down Expand Up @@ -62,7 +62,7 @@ pc.save_images(

# Make video preview instead, but transform frames first, and invert the SPAD
# response, and normalize to a 95% quantile, for better low-light performance
pc.set_transforms(["Rot90", "FlipUD"])
pc.set_transforms([Transforms.Rot90, Transforms.FlipUD])
pc.set_quantile(0.95)
pc.save_video(
"output.mp4", fps=24,
Expand Down

0 comments on commit b29302e

Please sign in to comment.