Free Motion Capture for Everyone πβ¨
TypeScript
Electon app builds :D
jonmatthis2b5acfdcebad
diff --git a/README.md b/README.mdindex a40b52b3..b7b591a8 100644--- a/README.md+++ b/README.md@@ -36,6 +36,13 @@- An Electron window should pop up with the FreeMoCap GUI+## Build the FreeMoCap application+(NOTE - This is not necessary for development, and does not handle the Python server yet)+1. Change directory to the `freemocap/freemocap-ui` folder+ - `npm run build`+ - The build will be in the `freemocap/freemocap-ui/releases` folder+---+---# STANDARD README CONTINUES BELOW______diff --git a/freemocap-ui/src/layout/routing/router.tsx b/freemocap-ui/src/layout/routing/router.tsxindex c7f1005f..88b0bf10 100644--- a/freemocap-ui/src/layout/routing/router.tsx+++ b/freemocap-ui/src/layout/routing/router.tsx@@ -16,8 +16,8 @@ export const Router = () => {<Route path={'/config'} element={<ConfigView/>}/><Route path={'/jontestplayground'} element={<BrowserCamerasView/>}/><Route path={'/pythonToJs'} element={<PythonToJsTest/>}/>- <Route path={'/charuco_board_detection'} element={<BoardDetection/>}/>- <Route path={'/skeleton_detection'} element={<SkeletonDetection/>}/>+ {/*<Route path={'/charuco_board_detection'} element={<BoardDetection/>}/>*/}+ {/*<Route path={'/skeleton_detection'} element={<SkeletonDetection/>}/>*/}<Route path={'/show_cameras'} element={<PythonCamerasView/>}/></Routes>)diff --git a/freemocap-ui/src/views/BoardDetection.tsx b/freemocap-ui/src/views/BoardDetection.tsxindex 5967634f..98d935d0 100644--- a/freemocap-ui/src/views/BoardDetection.tsx+++ b/freemocap-ui/src/views/BoardDetection.tsx@@ -4,14 +4,14 @@ import {CaptureType} from "../services/websocket-connection";import {useWebsocket} from "../hooks/use-websocket";export const BoardDetection = () => {- const [frameCapture, data] = useWebsocket(CaptureType.BoardDetection, 8080);- if (!data) {- return null;- }-- return (- <Box>- {!frameCapture.isConnectionClosed && <img src={frameCapture.current_data_url} alt={"video capture"}/>}- </Box>- )+ // const [frameCapture, data] = useWebsocket(CaptureType.BoardDetection, 8080);+ // if (!data) {+ // return null;+ // }+ //+ // return (+ // <Box>+ // {!frameCapture.isConnectionClosed && <img src={frameCapture.current_data_url} alt={"video capture"}/>}+ // </Box>+ // );}diff --git a/freemocap-ui/src/views/SkeletonDetection.tsx b/freemocap-ui/src/views/SkeletonDetection.tsxindex 5ffd1e81..cd5e13bb 100644--- a/freemocap-ui/src/views/SkeletonDetection.tsx+++ b/freemocap-ui/src/views/SkeletonDetection.tsx@@ -4,13 +4,13 @@ import {CaptureType} from "../services/websocket-connection";import {useWebsocket} from "../hooks/use-websocket";export const SkeletonDetection = () => {- const [frameCapture, data] = useWebsocket(CaptureType.SkeletonDetection, 8080,);- if (!data) {- return null;- }- return (- <Box>- {!frameCapture.isConnectionClosed && <img src={frameCapture.current_data_url} alt={"video capture"}/>}- </Box>- );+ // const [frameCapture, data] = useWebsocket(CaptureType.SkeletonDetection, 8080,);+ // if (!data) {+ // return null;+ // }+ // return (+ // <Box>+ // {!frameCapture.isConnectionClosed && <img src={frameCapture.current_data_url} alt={"video capture"}/>}+ // </Box>+ // );}