Questions tagged [bodypix]

22 questions
7
votes
2 answers

BodyPix: Real-time Person Segmentation

BodyPix is an open-source machine learning model which allows for person and body-part segmentation in the browser with TensorFlow.js. I will like to convert the model to a .pb frozen graph in order to use it on Python. How can I do it? I try to…
Aitul
  • 2,982
  • 2
  • 24
  • 52
3
votes
1 answer

this.util.TextEncoder is not a constructor only in electron app (works in chrome)

I am creating a body segmentation app using tensorflow bodypix model. It works fine in the browser. I am using webpack to use its modules(see below) import * as wasm from "@tensorflow/tfjs-backend-wasm"; import * as tf from…
hemant kumar
  • 545
  • 6
  • 19
2
votes
1 answer

tensorflow.js bodypix model not working and not giving any error

I am creating a simple body segmenting html following this I have tried:
2
votes
0 answers

Bodypix: using wasm for SIMD + multithreading

We are trying to use the WASM + SIMD + multithreading described here for bodypix. The sample web page linked to the article showed my MacBook Pro 2018 using both SIMD + multithreading. However, we are having trouble trying to use it for our purposes…
Terry C
  • 31
  • 3
1
vote
0 answers

How to extract keypoints from BodyPix model in React?

I need help on this matter. I am trying to extract the keypoints from BodyPix to be saved in a JSON file. I can see the keypoints in the console whenever I inspect it from the browser. I also want to save the keypoints into an array or a variable…
Selim
  • 11
  • 1
1
vote
2 answers

Most efficient ways to compare arrays in numpy?

Background: I'm playing around with Google's body segmentation API for Python. Since it's a library originally written for js (tensorflow.js), the python equivalent seems to be quite limited. So the only way to get body segmentation appears to be…
Luis Cruz
  • 1,488
  • 3
  • 22
  • 50
1
vote
1 answer

Person body parts segmentation using python (BodyPix)

I need to segment person body parts, and I found BodyPix segmentPersonPart to be very helpful, but Its not included in the python implementation of it. I am just wondering if there are any other similar functions as i didn't find any.
sanjep
  • 65
  • 6
1
vote
3 answers

TensorFlowJS Canvas Size Error - How to get image displaying?

I am trying to use BodyPix/Tensorflow to blur the background fo my webcam. I'm trying to follow this guide. https://github.com/vinooniv/video-bg-blur . It obviously works for them since they have a live example. Here's my code: ngOnInit(): void { …
Michael S
  • 166
  • 2
  • 7
1
vote
0 answers

How to stop/destroy bodypix

I'm using react with TensorFlow + bodypix for blur background on live video. For video streaming, I use Vonage (TokBox). How I blur background function segmentBodyInRealTime() { async function bodySegmentationFrame() { const…
Vadim
  • 68
  • 6
0
votes
0 answers

BodyPix Model Offline

So I am aiming to load a BodyPix model offline, however I am having trouble understanding what is needed to do that. I have already successfully used the bodypix model from tensorflow.js to do what I needed online. However, when I looked up what is…
Myw1005
  • 3
  • 2
0
votes
0 answers

How to interpret output of body-segmentation (ImageData)

I am looking to better understand how the output of how body-segmentation works https://github.com/tensorflow/tfjs-models/tree/master/body-segmentation. I have the code working and am seeing an ImageData. How would I use this to know where specific…
Sabin
  • 25
  • 5
0
votes
0 answers

How to pipe tensorflow BodyPix output to Video track?

I use HTML5 getUserMedia to retrieve webcam live stream. Then through bodyPix I retrieve bokeh effect successfully.I also draw it on a canvas on my local browser. Below is the snippet which draws the filtered stream. Instead of drawing modified…
desperado06
  • 372
  • 3
  • 14
0
votes
1 answer

in react-native how to use body-pix

import { Camera, CameraType } from 'expo-camera'; import React, { useRef } from "react"; // import logo from './logo.svg'; import * as tf from "@tensorflow/tfjs"; import * as bodyPix from "@tensorflow-models/body-pix"; import { useState } from…
0
votes
0 answers

ModulesNotFoundError: No module named 'gi' and as a result gstreamer not working

I was having issues getting started with some computer vision related tasks. Right off the bat let me provide a link to the GitHub repo I went to in order to clone my project from: Link to GitHub Repo for Cloning. I was following their README in…
0
votes
1 answer

Detect hardware acceleration in browser using javascript

Is there any library or inbuilt javascript using which we can check that the current browser has Hardware Acceleration feature ON or OFF? Right now I'm using Bodypix to set virtual background with chime meeting using react.js which needs hardware…
Dhara Charola
  • 332
  • 2
  • 12
1
2