Package Details: linux-fake-background-webcam-opt-git r131.4fbb74b-2

Git Clone URL: https://aur.archlinux.org/linux-fake-background-webcam-opt-git.git (read-only, click to copy)
Package Base: linux-fake-background-webcam-opt-git
Description: Utility for replacing the background of a webcam for video conferencing. Installs dependencies to /opt/.
Upstream URL: https://github.com/fangfufu/Linux-Fake-Background-Webcam
Licenses: GPL3
Submitter: CodingKoopa
Maintainer: None
Last Packager: CodingKoopa
Votes: 2
Popularity: 0.000000
First Submitted: 2021-02-16 04:04 (UTC)
Last Updated: 2021-02-19 18:39 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Pinned Comments

CodingKoopa commented on 2021-02-16 04:13 (UTC) (edited on 2021-06-24 01:42 (UTC) by CodingKoopa)

THIS PACKAGE DOESN'T CURRENTLY WORK - NEEDS TO BE UPDATED FOR UPSTREAM CHANGES


GENERAL USAGE INFORMATION:

  • This package installs the bodypix and fakecam binaries.
  • akvcam support is untested.
  • For support for using bodypix as a systemd service, and using system dependencies, use this package instead of this one.

USING GPU ACCELERATION (NVIDIA ONLY):

Tensorflow requires an older version of CUDA, 10.0, and, by extension (due to package requirements), cuDNN.

sudo pacman -U https://archive.org/download/archlinux_pkg_cuda/cuda-10.0.130-2-x86_64.pkg.tar.xz https://archive.org/download/archlinux_pkg_cudnn/cudnn-7.4.2.24-1-x86_64.pkg.tar.xz
  • Edit /etc/pacman.conf to prevent the packages from being upgraded:
IgnorePkg = cuda cudnn

Latest Comments

CodingKoopa commented on 2021-06-24 01:41 (UTC) (edited on 2021-06-24 01:42 (UTC) by CodingKoopa)

Hi everyone! Sorry for the wait, I'm looking into the changes now. It looks like upstream removed support for bodypix, and moved to a different library - I'm gonna see if there is still a benefit to using the bodypix version with GPU, as the new library doesn't seem to have GPU acceleration.

If there is reason to use both versions, then I split off this package into one that uses latest master, and another which supports the "legacy" bodypix version.


For anyone else having issues with bodypix dying with error:

Will fix if this issue is still present.

v4l2loopback should be optional, akvcam is a complete v4l2loopback fork and replacement.

Will fix after the first issue is addressed.

This needs python-pip to build.

Ditto.

but how are we meant to use the /opt dependencies instead?

The way it's meant to work is that I made a small Python launcher script that should prioritize those dependencies. I'll investigate this when I can.


Thanks for the feedback all!

Rhinoceros commented on 2021-06-04 08:21 (UTC)

This needs python-pip to build. I also had to install the missing python dependencies, but how are we meant to use the /opt dependencies instead? I also needed linux-headers so that the v4l2loopback DKMS module was installed. I could run bodypix fine, but fakecam still failed with the following.

[ERROR:0] global /build/opencv/src/opencv-4.5.2/modules/videoio/src/cap.cpp (160) open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.5.2) /build/opencv/src/opencv-4.5.2/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): ./.decrypt/chromium/Default/Extensions/cjpalhdlnbpafiamejdnhcphjbkeiagm/1.35.2_0/background.html in function 'icvExtractPattern'

I'm not even sure why it's looking in that directory!

shaybox commented on 2021-05-23 22:18 (UTC)

v4l2loopback should be optional, akvcam is a complete v4l2loopback fork and replacement.

markkuit commented on 2021-03-16 17:23 (UTC)

For anyone else having issues with bodypix dying with error:

/opt/linux-fake-background-webcam-opt-git/bodypix/node_modules/@tensorflow/tfjs/node_modules/@tensorflow/tfjs-core/dist/engine.js:542
                out = _this.tidy(function () { return forwardFunc(_this.backend, saveFunc_1); });
                                                      ^

TypeError: forwardFunc is not a function

The issue is being discussed on GitHub, along with a temporary quick fix.

CodingKoopa commented on 2021-02-20 05:58 (UTC) (edited on 2021-02-20 06:09 (UTC) by CodingKoopa)

Oh! Yes, I had that at one point too. You will be needing to install the gcc7 AUR package. That's cool that you were able to feed the package URL directly to Pacman like that; I updated the instructions with both of those things.

asix commented on 2021-02-20 00:49 (UTC) (edited on 2021-02-20 00:49 (UTC) by asix)

Advice on the "cuda downgrade"? Getting this:

sudo pacman -U https://archive.org/download/archlinux_pkg_cuda/cuda-10.0.130-2-x86_64.pkg.tar.xz
[sudo] password for anders: 
 cuda-10.0.130-2-x86_64                                                                                                                                           1316.9 MiB  1279 KiB/s 17:34 [########################################################################################################################] 100%
 cuda-10.0.130-2-x86_64.sig                                                                                                                                        566.0   B  0.00   B/s 00:00 [########################################################################################################################] 100%
loading packages...
resolving dependencies...
warning: cannot resolve "gcc7-libs", a dependency of "cuda"
warning: cannot resolve "gcc7", a dependency of "cuda"
:: The following package cannot be upgraded due to unresolvable dependencies:
      cuda

:: Do you want to skip the above package for this upgrade? [y/N] 

CodingKoopa commented on 2021-02-19 17:51 (UTC) (edited on 2021-02-19 17:51 (UTC) by CodingKoopa)

This is intentional. Rather than depending on the Arch packages for these Python libraries and potentially dealing with API breakage down the road, this package bundles the exact library versions in /opt/. If you're not a fan of this, you can use the other package mentioned in the first comment.

Kortekaasy commented on 2021-02-19 11:49 (UTC)

It seems like several python dependencies are missing, such as aio-http, cv2, pyfakewebcam, and requests_unixsocket. Could these be added as dependencies to the package?

CodingKoopa commented on 2021-02-16 04:13 (UTC) (edited on 2021-06-24 01:42 (UTC) by CodingKoopa)

THIS PACKAGE DOESN'T CURRENTLY WORK - NEEDS TO BE UPDATED FOR UPSTREAM CHANGES


GENERAL USAGE INFORMATION:

  • This package installs the bodypix and fakecam binaries.
  • akvcam support is untested.
  • For support for using bodypix as a systemd service, and using system dependencies, use this package instead of this one.

USING GPU ACCELERATION (NVIDIA ONLY):

Tensorflow requires an older version of CUDA, 10.0, and, by extension (due to package requirements), cuDNN.

sudo pacman -U https://archive.org/download/archlinux_pkg_cuda/cuda-10.0.130-2-x86_64.pkg.tar.xz https://archive.org/download/archlinux_pkg_cudnn/cudnn-7.4.2.24-1-x86_64.pkg.tar.xz
  • Edit /etc/pacman.conf to prevent the packages from being upgraded:
IgnorePkg = cuda cudnn

CodingKoopa commented on 2021-02-16 04:08 (UTC) (edited on 2021-02-16 04:09 (UTC) by CodingKoopa)

I've been meaning to make this package for some time, and started doing so last month - at which point there was no package like this. I finished this package today, and checked again, and sure enough, somebody else has made a package, and submitted it just yesterday! (https://aur.archlinux.org/packages/fake-background-bodypix-git/)

However, there are some key differences between this package and that one:

  • This package bundles all of the Node.js and npm dependencies in /opt/ (along with the program itself). I did this in fear of the Python (and Node) packages in the Arch repos being updated to where they become incompatible with this tool.
  • The other package bundles a nice systemd service.
  • This package includes both bodypix and fakecam in one, whereas the other package splits them into different packages.