Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Rotate the webcam image 180 degrees

    Duet Web Control wishlist
    2
    3
    1139
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • digiex_chris
      digiex_chris last edited by

      I have to mount my webcam upside down, but my camera doesn't support rotating or flipping at the driver level. Octoprint provides a nice little feature that allows you to flip the image in both X and Y, which makes it correct again. I'd love to see this in the Duet Web Console as well.

      For now, I've just been putting this into my developer console:

      $("#img_webcam").css("transform","scaleX(-1) scaleY(-1)");

      1 Reply Last reply Reply Quote 0
      • gavatron3000
        gavatron3000 last edited by

        sorry to bring up an old thread but it'd be helpful to me as well to be able to rotate the webcam in the DWC. any luck with this digiex_chris? ive opened a request on github anyways

        1 Reply Last reply Reply Quote 0
        • gavatron3000
          gavatron3000 last edited by

          im using the pi for the webcam and got it to work finally. right way up now

          sudo killall mjpg_streamer
          ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -fps 30 -rot 180"
          
          

          the -rot parameter is adjustable of course

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA