fieldOfView / Cura-OctoPrintPlugin

Cura plugin which enables printing directly to OctoPrint and monitoring the process
GNU Affero General Public License v3.0
493 stars 74 forks source link

Flip camera horizontally/vertically not working #180

Closed JamieS01 closed 4 years ago

fieldOfView commented 4 years ago

The OctoPrint Connection plugin applies the same flips and rotation that is configured in OctoPrint. Is your camera showing in the right orientation in the OctoPrint webinterface?

JamieS01 commented 4 years ago

The OctoPrint Connection plugin applies the same flips and rotation that is configured in OctoPrint. Is your camera showing in the right orientation in the OctoPrint webinterface?

It shows correctly in the octoprint interface, but not in the plugin.

fieldOfView commented 4 years ago

Please visit http://[address of your octoprint instance]/api/settings?apikey=[your api key] and post the webcam section of the file you get, which looks like this:

image

JamieS01 commented 4 years ago
{
  "webcam": {
    "bitrate": "10000k",
    "ffmpegPath": "/usr/bin/ffmpeg",
    "ffmpegThreads": 1,
    "ffmpegVideoCodec": "mpeg2video",
    "flipH": true,
    "flipV": true,
    "rotate90": false,
    "snapshotSslValidation": true,
    "snapshotTimeout": 10,
    "snapshotUrl": "http://localhost:8080/?action=snapshot",
    "streamRatio": "4:3",
    "streamTimeout": 5,
    "streamUrl": "/webcam/?action=stream",
    "timelapseEnabled": true,
    "watermark": false,
    "webcamEnabled": true
  }
}
fieldOfView commented 4 years ago

I can't reproduce this with the current version of Cura. I refactored the camera handling to clean up the code and support multiple cameras a little while ago. Could you test this development snapshot? Download the file, and drop it onto the buildplate in Cura as if you were opening a 3d model through drag and drop.

JamieS01 commented 4 years ago

Seems to be working with that snapshot! Is there any other information that I can provide which may help? Screenshot (31)

fieldOfView commented 4 years ago

Seems to be working with that snapshot!

I See This as an Absolute Win

Well, it seems I am going in the right direction then. I will add a "fixed" label to this issue, but will keep the issue open until a version containing this fix is available in the Marketplace.