Jump to content
Ultimaker Community of 3D Printing Experts

Octoprint Cura Plugin - Adjust Camera Size


Recommended Posts

Posted · Octoprint Cura Plugin - Adjust Camera Size

I recently upgraded my UM2+ to work with Octoprint with a RaspPi + PiCamera. The Cura integration turned out to be extremely useful and everything is just so much more convenient.

 

The only thing right now that could be better is the size of the camera window in Cura. I prefer to just leave Cura open to monitor a print but the cam size is pretty small. I'm on a 4k Screen so maybe this is just an oversight in cura itself and has nothing to do with the Octorint plugin. Many apps still don't scale properly in 4k but if there is a simple fix to this I would gladly like to know it. In the octoprint webinterface this isn't an issue btw.

 

This is how it currently looks on my monitor with Cura in Fullscreen:

 

CuraCamMonitor.jpg

  • Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size

    Good point. The camera image is shown at "real size", unless it is too big to fit into the window, in which case it is scaled down. It currently isn't scaled up.

     

    I'll implement a fix to make sure the display dpi is taken into account.

  • Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size
    6 minutes ago, ahoeben said:

    Good point. The camera image is shown at "real size", unless it is too big to fit into the window, in which case it is scaled down. It currently isn't scaled up.

     

    I'll implement a fix to make sure the display dpi is taken into account.

    Thanks that would be awesome.

     

    That would be great. So normally it would just take any resolution until it's too big and scale it down? Would it be possible to make it scale the image up to fill out the Cura window but maybe implement a scaling value to manually modify? Lets say I want it to always fill the available space to 75% (0.75 scaling) or something?

  • Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size
    5 minutes ago, ahoeben said:

    Upscaling generally looks ugly

    Well if you do it too much. But yeah maybe upscaling to fill out the whole window would be too much, but 2x the size should be fine and would make it much easier to monitor the print. I think in this case a clean image isn't as important as being able to easily see the print.

  • Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size

    Could you do a quick test for me?

     

    Go to Help -> Show configuration folder, and locate the folder plugins/OctoPrintPlugin/OctoPrintPlugin. In that folder there should be a file named MonitorItem.qml. Replace that file with this one:

    https://raw.githubusercontent.com/fieldOfView/OctoPrintPlugin/3.2/MonitorItem.qml

    • Thanks 1
    Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size
    15 hours ago, ahoeben said:

    Could you do a quick test for me?

     

    Go to Help -> Show configuration folder, and locate the folder plugins/OctoPrintPlugin/OctoPrintPlugin. In that folder there should be a file named MonitorItem.qml. Replace that file with this one:

    https://raw.githubusercontent.com/fieldOfView/OctoPrintPlugin/3.2/MonitorItem.qml

    Okay I just got around testing it. It looks perfect now. I'd say it's as big as it should be now, any more and the quality would make it look too bad.

     

    Thank you very much for such hyperspeed support :)

  • Link to post
    Share on other sites
    Posted · Octoprint Cura Plugin - Adjust Camera Size

    This is great, I was looking for a way to resize the camera monitor and found this post. I followed the steps and I am very happy with the results. Thanks

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...