mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.69k stars 353 forks source link

Overlay on video #1868

Open ariekraakjr opened 5 months ago

ariekraakjr commented 5 months ago

Is your feature request related to a problem? Please describe

For the alignment of my IDEX toolheads I mounted usb cam under the bed. for easy alignment of the nozzles is want to use a transparent overlay on my video output. Schermafdruk van 2024-05-02 15-10-08

Describe the solution you'd like

create options like:

overlay_image: /path/to/overlay.png
overlay_h_align: left|center|right
overlay_v_align: top|center|bottom 

Describe alternatives you've considered

I now use an esp32cam with some own code to do the overlay. It works, but i like it more integrated on the machine.(no second wifi device)

Additional information

No response

mryel00 commented 5 months ago

Crowsnest just starts some backends. We do not reencode any image data in Crowsnest and therefore it's impossible to add an overlay through Crowsnest. This FR would fit better on either the backends (I don't think ustreamer will add something like that, maybe camera-streamer will do) or your WebUI of your printer (Mainsail/Fluidd). In theory we could add something like that to the ustreamer-www files but that would only be available with ustreamer and directly on the port then, therefore it's not planned, as it wouldn't show up through the stream url.

mryel00 commented 5 months ago

Worth mentioning here is #1557

ariekraakjr commented 5 months ago

Thanks for the info.

mryel00 commented 5 months ago

I moved the FR to the Mainsail Repo. So I'm gonna reopen it, to keep track of this FR.

filamonkey commented 1 month ago

I think this would be really useful for IDEX, dual nozzle and tool changers. My proposal would be a simple overlay with styling on the cameras dashboard view and be able to use the toolhead controls to align both nozzles and obtain the offset form their relative positions. Mainsail_Crosshair