Configure_Webcams_and_Charuco_Board - kileyhartigan/freemocap GitHub Wiki

Step 1:

Open anaconda navigator and select the omcwebcam environment:

Step 2:

install then launch the cmd.exe within the anaconda navigator

install some packages pip install rich pip install aniposelib

Step 3:

pull most recent changes from git hub desktop -> if you get an error saying something is incompatible, try branch>discard all changes

Step 4 (start here) :

launch vscode from aniconda navigator

It should open up all the openmocap files:

Verify that the environment is the omcwebcam environment:

Step 5: Alter anipose code...only needs to be done once, ask Aaron.

Alter anipose code to pull out the charucco board data array (already done, shouldn't have to do it again)

Step 6: Run the thing that makes the webcams work.

Select the "runme_freemocap.py" file and run it (run>start debugging). See Configure vscode debugger if there's an issue with the debugger. You should see a little feather icon pop up on the programs bar at the very bottom of your computer:

clicking that brings up:

Step 7: Camera Setup

Select cameras and set up the settings:

Selecting the cameras and pressing "submit" will bring up this:

One of them will be the computers webcam camera. So, by selecting all of them and then clicking submit, video windows will pop up showing you what the cameras are seeing. You'll be able to find which one is the webcam on the computer itself. For me this time it was "camera 2". Press esc till all the camera windows disappear and then you'll see a little box pop up with a session name and the options to "proceed" or "quit".

If one of the cameras that's up is your computers physical webcam, you'll press "quit", rerun the runme.freemocap.py file, and make sure to not select the camera that represents the computers webcam (so I unselected camera 2). Submit -> double check none of the cameras are the computers physical webcam ->

Make sure the charuco board is in the frame of the cameras (like this):

press esc till all the camera viewing screens go away and you see that little box again:

Press proceed if you're happy with the camera views. Let the resulting videos run for about 5 seconds, then press esc again. You should see something like this:

Note: the data in this example isn't awesome. Press proceed.

This is what you should see pop up:

you can rotate it around with your mouse.

The first time I tried it, it didn't look like that, and I adjusted the exposure in the camera settings from -5 to -6 (see below). And that worked out.

Note: When I did this, 5/7/21, I got the right grid graph result but noticed I got this error too...

⚠️ **GitHub.com Fallback** ⚠️