Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

update readme

Jondbf9dc954370
diff --git a/README.md b/README.md
index e3e72e0b..6cb200f1 100644
--- a/README.md
+++ b/README.md
@@ -2,25 +2,26 @@
https://user-images.githubusercontent.com/15314521/124694557-8069ea00-deaf-11eb-9328-3be27a4b1ea4.mp4
# This is all very much a work in progress! More to come!
-## (As of March 2022) We're currently working on building a proper API with documentation, but for now enjoy this pile of semi-spaghettified code and sloppy ReadMe πŸ˜…
+## (As of May 2022) We're currently working on building a proper API with documentation, but for now enjoy this pile of semi-spaghettified code and sloppy ReadMe πŸ˜…
___________________________________
___
## Prerequisites -
**Required**
-* Windows only for now (sorry! Mac and Linux support coming very soon!πŸ˜…)
+* Windows only for now (sorry! Mac and Linux support coming very soon! πŸ˜… )
* A Python 3.7 environment -
* We recommend installing Anaconda from here (https://www.anaconda.com/products/individual#Downloads) to create your Python environment.
* Two or more USB webcams attached to viable USB ports
* ~~USB hubs typically don't work~~ I think they do now?
- * Note that two cameras is the minimum reuired for 3d reconstruction. However, with just two views, many points will be occluded/not visible to both cameras. For better performance, use three or four cameras
+ * Note that two cameras is the minimum required for 3d reconstruction. However, with just two views, many points will be occluded/not visible to both cameras. For better performance, use three or four cameras
* Each recording must (for now) an unobstructed view of a Charuco board within the first few seconds of recording (See below).
____
____
# Installation
-Open an Anaconda-enabled command prompt or powershell window and perform the following steps:
+
+0) Open an Anaconda-enabled command prompt (on Windows - press the Windows key and search 'Anaconda Prompt') window and perform the following steps:
1) Create a Python3.7 Anaconda environment
```
@@ -85,19 +86,20 @@ This two-line script is a copy of the `freemocap_runme_script.py` file, which ca
```
(freemocap-env)$ ipython
```
-### 4) Within the `ipython` console, import the `freemocap` package as `fmc`
+### 4) Within the `ipython` console, import the `freemocap` package:
```Python
-[1]: import freemocap as fmc
+[1]: import freemocap
```
-### 5) Execute the `fmc.RunMe()` command (with default parameters, see [#runme-input-parameters](#runme-input-parameters) for more info)
+### 5) Execute the `freemocap.RunMe()` command (with default parameters, see [#runme-input-parameters](#runme-input-parameters) for more info)
```python
-[2]: fmc.RunMe() #<-this is where the magic happens!
+[2]: freemocap.RunMe() #<-this is where the magic happens!
```
### 6) Follow instructions in the Command window and pop-up GUI windows!
+
---βœ¨πŸ’€βœ¨---.
---
@@ -105,12 +107,13 @@ ___
## HOW TO REPROCESS A PREVIOUSLY RECORDED `FreeMoCap` RECORDING SESSION
-You can re-start the processing pipeline from any of the following processing stages (defined below)by specifying the `SessionID` desired `stage` in the call to `fmc.RunMe()`
+You can re-start the processing pipeline from any of the following processing stages (defined below)by specifying the `SessionID` desired `stage` in the call to `freemocap.RunMe()`
So to process the session named `sesh_2021-11-21_19_42_07` starting from stage 3, run:
+
```python
-import freemocap as fmc
-fmc.RunMe(sessionID="sesh_2021-11-21_19_42_07", stage=3)
+import freemocap
+freemocap.RunMe(sessionID="sesh_2021-11-21_19_42_07", stage=3)
```
Note - if you leave `sessionID` unspecified but set `stage` to a number higher than 1, it will attempt to use the last recorded session
@@ -125,7 +128,7 @@ ___
- **Stage 2 - Synchronize Videos**
- Use recorded timestamps to re-save raw videos as synchronized videos (same start and end and same number of frames). Videos saved to
- - Synchronized Videos saved to `FreeMoCap_Data/[Session Folder]/SynchedVideos`
+ - Synchronized Videos saved to `FreeMoCap_Data/[Session Folder]/SyncedVideos`
- **Stage 3 - Calibrate Capture Volume**
@@ -140,7 +143,7 @@ ___
- Save to `/DataArrays` folder (e.g. `openPoseSkel_3d.npy`)
- NOTE - you might think it would make sense to separate the 2d tracking and 3d reconstruction into different stages, but the way the code is currently set up it's cleaner to combine them into the same processing stage Β―\\\_(ツ)_/Β―
-- **Stage 5 - Use Blender to generate output data files (EXPERMENTAL, optional, requires [Blender](https://blender.org) installed. set `fmc.RunMe(useBlender=False)` to skip)**
+- **Stage 5 - Use Blender to generate output data files (EXPERMENTAL, optional, requires [Blender](https://blender.org) installed. set `freemocap.RunMe(useBlender=False)` to skip)**
- Hijack a user-installed version of [Blender](https://blender.org) to format raw mocap data into various other formats, including `.blend`, `.fbx`, `.usd`, `.gltf`, etc.
- Save each filetype to main session folder
- NOTE - This is a new feature and still in a active development (as of 2021-11-28). It is still experimental and will be updating soon!
@@ -154,9 +157,9 @@ ___
____
____
-## `fmc.RunMe()` Specify recording session paramters
+## `freemocap.RunMe()` Specify recording session parameters
___
-The `fmc.RunMe()` function takes a number of parameters that can be used to alter it's default behavior in important ways. Here are the default parameters along with a followed by a brief description of each one.
+The `freemocap.RunMe()` function takes a number of parameters that can be used to alter its default behavior in important ways. Here are the default parameters along with a followed by a brief description of each one.
### RunMe - Default parameters
@@ -253,7 +256,7 @@ def RunMe(sessionID=None,
- `reconstructionConfidenceThreshold`
- [Type] - float in range(0,1),
- - [Default] - .7
+ - [Default] - .5
- Threshold 'confidence' value to include a point in the 3d reconstruction step
- `charucoSquareSize`
@@ -262,8 +265,8 @@ def RunMe(sessionID=None,
- The size of a side of a black square in the Charuco board used in this calibration. The default value of 36 is approximately appropriate for a print out on an 8 in bu 10 in paper (US Letter, approx A4)
- `calVideoLength`
- - [Type] = int, float in range (0,1), or [int, int]
- - [Default] = .5,
+ - [Type] = `int`, `float` in range (0,1), or `[int, int]`
+ - [Default] = 1,
- What portion of the videos to use in the Anipose calibration step in `stage=3`. `-1` uses the whole recording, a number between 0 and 1 defines a proprotion of the video to use, and a tuple of two numbers defines the start and end frame