Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
From: Francis Bolduc <fbolduc@gmail.com>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: galene@lists.galene.org
Subject: [Galene] Re: Blur background
Date: Sun, 5 May 2024 15:35:31 -0400	[thread overview]
Message-ID: <CAHpL4=j3Adh4nF-HpNZyR7i=qC0aZKJQBUYTg=qCRuCyG2MPzg@mail.gmail.com> (raw)
In-Reply-To: <87msp4dqaj.wl-jch@irif.fr>

Juliusz,

Yes, loading 3rdparty libraries is conceptually insecure. I initially
tried to download the Javascript libraries and wasm modules to serve
them via Galene, but failed because they refer to each other via full
URL instead of relative paths when you load them. I also tried to
download their source code and build them myself, but my head exploded
when I saw the kind of build system those libraries have. So I
resorted to this hack for my own purposes, knowing full well that it
would not be merged.

> >  async function start() {
> > +
> > +    offscreen = new OffscreenCanvas(1920, 1080);
> > +
> > +    segmenter = await bodySegmentation.createSegmenter(
> > +        bodySegmentation.SupportedModels.MediaPipeSelfieSegmentation,
> > +        {
> > +            runtime: 'mediapipe',
> > +            solutionPath:
> > 'https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation',
> > +            modelType: 'general'
> > +        }
> > +    );
>
> This should be done lazily, in the filter, not at startup.

Not sure what you mean. How would you do this?

  reply	other threads:[~2024-05-05 19:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-05 18:56 [Galene] " Francis Bolduc
2024-05-05 19:14 ` [Galene] " Juliusz Chroboczek
2024-05-05 19:35   ` Francis Bolduc [this message]
2024-05-05 20:47     ` Juliusz Chroboczek
2024-05-05 21:49       ` Francis Bolduc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHpL4=j3Adh4nF-HpNZyR7i=qC0aZKJQBUYTg=qCRuCyG2MPzg@mail.gmail.com' \
    --to=fbolduc@gmail.com \
    --cc=galene@lists.galene.org \
    --cc=jch@irif.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox