Octolapse: Add horizontal and vertical flip option for camera.

Created on 25 Mar 2018  Â·  14Comments  Â·  Source: FormerLurker/Octolapse

If this is a feature request describe it here


Horizontal and vertical flip option for camera exists in the regular camera option but not in octolapse. I do use pi camera mounted upside down and a flip setting would be interesting (to avoid post processing of the video to put it at 180°).

Version of Octolapse


Octolapse Version: v0.2.2

Version of OctoPrint


OctoPrint Version: 1.3.7rc2

enhancement

All 14 comments

I second this. Many of the (popular) raspberry pi camera mounts for the Prusa on Thingiverse mount the camera with the ribbon cable coming out the top, which makes the image upside down by default.

Thanks for the suggestion!

I am using the Pillow module, which I think supports rotation. I think this belongs in the camera profiles. Would it make sense to add the following option:

Rotation Angle (0-365, where 0 and 365 are equivalent)

or would it be better to keep it consistent with the rendering settings and have the following

Flip Horizontal (true/false)
Flip Vertical (true/false)
Rotate 90 Degrees (true/false)

I think the rotation angle would be more powerful (and easier to implement), but is unfortunately different than the rendering settings.

I have a few bugs to work on right now, so there is time to ponder this for a bit.

Either way, I think it makes sense to keep it in increments of 90 degrees, so image quality doesn't change due to interpolation. It looks like Pillow's transpose method can do everything we'd need:
https://pillow.readthedocs.io/en/3.1.x/reference/Image.html#PIL.Image.Image.transpose

You're probably right. If someone needs 15 degrees of correction it's probably best to adjust the camera itself.

Since this is a pretty easy thing to implement I'll probably have it in the next release, which should be out very soon.

This has been implemented and is in the master branch. Enjoy!

Works great. Thank you!

I have set my to flip Top and Bottom, tested also 180 that would be the same but the test/thumbnail on the Octolaps tab do not show the change.

Are you sure it has taken a new thumbnail snapshot since you changed the setting? Immediately after changing (to rotate 180) the thumbnail was still upside down for me, but was clearly a stale image - as soon as I started a print it updated and has been fine since.

You'er right it worked fine when I started to print.

where do i get the code

@karthik-KSK, I'm not sure what you are asking for exactly, but if you're looking to rotate/flip your snapshots, just install the latest version of the plugin via the OctoPrint plugin manager and check the camera profile settings for the image transformation drop down. Let me know if you have any problems.

@FormerLurker

just install the latest version of the plugin via the OctoPrint plugin manager

Perhaps I'm missing the obvious, but what is the name of the plugin?

Never mind, I didn't realize in the settings page.

Click the Wrench>Scroll to Features> Webcam & Timelapse>Clickh the check box.

@icancwhatusay, what are you trying to accomplish exactly? I think you might have intended to comment on the OctoPrint repository. This is the OctoLapse repository (a timelapse plugin for OctoPrint). If I'm misunderstanding you, I apologize, but if you have a problem with Octolapse I want to help!

Hi,

Thanks for the reply but I actually figured out my issue. I couldn't find
the "flip the image" buttons. I didn't realize they would be in the
settings page instead of on the Controls page. Thanks for your help though!

Regards,
Brian Janiszewski

-

On Fri, Sep 7, 2018 at 1:31 PM FormerLurker notifications@github.com
wrote:

@icancwhatusay https://github.com/icancwhatusay, what are you trying to
accomplish exactly? I think you might have intended to comment on the
OctoPrint repository. This is the OctoLapse repository (a timelapse plugin
for OctoPrint). If I'm misunderstanding you, I apologize, but if you have a
problem with Octolapse I want to help!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FormerLurker/Octolapse/issues/92#issuecomment-419511289,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGCD40JYVXpWzICgrCip0L2dZ3pfOHZlks5uYq1hgaJpZM4S6EQY
.

Was this page helpful?
0 / 5 - 0 ratings