Skip to content

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

TypeScript

anipose fixes

aaroncherian6110b3b96cc8
diff --git a/freemocap/fmc_anipose.py b/freemocap/fmc_anipose.py
index 34734800..d052462e 100644
--- a/freemocap/fmc_anipose.py
+++ b/freemocap/fmc_anipose.py
@@ -658,7 +658,7 @@ class CameraGroup:
points_ransac, undistort=undistort, min_cams=min_cams, progress=progress
)
- @jit(nopython=True, parallel=True, forceobj=True)
+ @jit(parallel=True, forceobj=True)
def reprojection_error(self, p3ds, p2ds, mean=False):
"""Given an Nx3 array of 3D points and an CxNx2 array of 2D points,
where N is the number of points and C is the number of cameras,
@@ -887,7 +887,7 @@ class CameraGroup:
error = self.average_error(p2ds)
return error
- @jit(nopython=True, parallel=True, forceobj=True)
+ @jit(parallel=True, forceobj=True)
def _error_fun_bundle(self, params, p2ds, n_cam_params, extra):
"""Error function for bundle adjustment"""
good = ~np.isnan(p2ds)
@@ -1312,7 +1312,7 @@ class CameraGroup:
return self.optim_points(points, p3ds, **kwargs)
- @jit(nopython=True, forceobj=True, parallel=True)
+ @jit(forceobj=True, parallel=True)
def _error_fun_triangulation(
self,
params,
diff --git a/requirements.txt b/requirements.txt
index ac192d34..47c948df 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,4 @@
-aniposelib~=0.4.1
-numba~=0.50.1
+
h5py>=3.1.0
imutils~=0.5.4
matplotlib~=3.1.3
diff --git a/runme_FreeMoCap.py b/runme_FreeMoCap.py
index 53da9f66..454c2241 100644
--- a/runme_FreeMoCap.py
+++ b/runme_FreeMoCap.py
@@ -3,5 +3,5 @@ import freemocap as fmc
#fmc.RunMe(useOpenPose = False, useMediaPipe=True, stage = 5, sessionID ='sesh_2021-09-13_14_34_12', recordVid=False)
-fmc.RunMe()
+fmc.RunMe(sessionID = 'sesh_2021-08-29_17_55_45',stage = 3)