# 3D Vision Bro — a mathematics-first personal learning blog

An original 12-week static learning site with 60 textbook-style chapters (approximately 22,800 words including practice questions), 210 offline-rendered mathematical equations, 60 parameter sweeps, geometric sketches for selected concepts, 180 additional worked practice questions, 60 numerical self-tests, 60 interview questions, 60 Python scripts, 12 weekly project briefs and 3 integrated project implementations. The blog is intended for personal 3D vision job preparation. The resource library links to free-to-read books, videos, slides and code; it does not reproduce third-party book or lecture text. References are recommended reading, not claims of direct quotation or line-by-line source mapping.

## Start studying

Extract this archive. From the extracted `3d-vision-bro` directory run:

```sh
python -m http.server 8000
```

Open http://localhost:8000 in your browser. You can also open `index.html` directly, but file-URL storage behavior varies by browser. No backend, build or network is necessary for the lessons and labs. Internet is needed for external reading. The sliders use numerical samples computed offline from the same Python experiments. They do not execute arbitrary Python in the browser.

Progress, notes, numerical-test flags and project completion are saved in localStorage under `geometry-course-v2`. Export a JSON backup before changing browsers, devices, origins or clearing site data. The 60-lesson progress format is preserved from Geometry Lab 2.0. If publishing at a different browser origin, export the old JSON and import it here. The older 36-lesson format is not compatible. Browser progress is self-assessed and not a credential.

## Publish on GitHub Pages

Create a repository such as `3d-vision-bro`. Copy the **contents** of `3d-vision-bro/` into the repository root (including `.nojekyll`), commit/push, then Settings > Pages > Deploy from a branch > main > /(root). The address is typically `https://YOUR-USERNAME.github.io/3d-vision-bro/`. No GitHub Actions or secret keys required. Your progress is browser-local and not published to GitHub.

## Run the Python examples

```sh
python -m venv .venv
# Activate the virtual environment using your OS's command.
python -m pip install -r requirements.txt
python python/01_units__ratios_and_scale.py
```

Each lesson offers its exact script download and contains a default-value regression check. The project scripts are larger end-to-end examples. No real dataset is needed. Edit `p` to vary the parameters. Most lessons use NumPy; some use SciPy rotations and optimization. The code focuses on mathematical understanding, not production-ready SLAM or calibration.

## Edit the website

- `index.html`, `style.css`, `app.js`: website structure, layout and logic.
- `course.txt`: authored lesson source, one pipe-separated record per lesson.
- `walkthrough.js`: 60 code explanations, in the same order as lessons.
- `build.py`: reads lesson source, validates expected values, creates `course.js` and downloadable scripts. After edits, update expected values if necessary and run `python build.py`.
- `course.js`: generated curriculum and parameter data, committed for static hosting.
- `python/`, `projects/`: runnable examples.
- `book/chapters.txt`: editable long-form original chapter text and worked questions.
- `book/equations.tex`, `book/examples.tex`: LaTeX source for display equations.
- `book/book.js`: pre-rendered SVG equations and chapter HTML; no CDN or font downloads required.
- `book/reading.js`: chapter-specific reading links.
- `book/build_book.cjs`: regenerate chapters with `npm install mathjax-full@3.2.2` then `node book/build_book.cjs`. Build dependencies are not needed to read or deploy the site. MathJax is used at build time (Apache-2.0).

The repository name is a suggestion: GitHub repositories are scoped to the owner. No domain, trademark, or specific account availability is guaranteed.

## Verification and limitations

The build checked all 60 independently specified default outputs and 4,891 finite parameter samples. The three larger project scripts ran successfully. JavaScript syntax was checked with Node. In this edition the build generated 60 chapters, 210 typeset equations and 180 worked questions; all 60 lesson templates, 12 weekly pages, the notation guide, home page and 240-entry interview/practice question bank passed Node template smoke tests. Full Chromium navigation was blocked by the environment's browser policy; real browser interaction and persistence could not be confirmed end to end here. Some complex topics use simplified scalar experiments, 2D sketches or numerical plots rather than full 3D simulation. PnP, calibration, VIO and SLAM require further reading and implementation practice. External resources were selected from official sources; not every link was individually tested. This is an expanded original study guide, not an exhaustive replacement for the referenced university textbooks, and not a certified course. The name was chosen after an informal public search, not a legal clearance.

## Version 5 — visual and OpenCV edition

This revision preserves the previous 12 chapter articles, 60 lesson pages, offline equation SVGs, questions, Python scripts, project briefs and the `geometry-course-v2` progress key. It replaces the repetitive sampled sensitivity charts in both reading modes with 60 lesson-specific SVG scenes synchronized to the existing sampled numerical calculations. Some related subjects intentionally share a visual family, such as grid deformation, epipolar lines and camera rays. They are teaching diagrams, not a full simulation for every algorithm. Each includes step, play/pause and reset controls. The existing multi-parameter matrix, rotation, camera and stereo labs appear only in the relevant core lesson, and an additional staged SVD lab is provided.

New professional navigation: top-level Mathematics and 3D Vision menus, OpenCV handbook, lab index, project directory, progress page and desktop article contents. Each lesson has an ordered reading/watching/practice sequence; some video resources are collections rather than exact individual videos. Inline OpenCV reference cards and image examples link to the implementation handbook.

The OpenCV handbook contains **29 API entries**, with Python signatures extracted from OpenCV **4.13.0**, original parameter explanations and official documentation links. **10 synthetic pipelines** were executed in Python and produced **25 PNG output images**. These include image filtering, warps, projection, lens distortion, checkerboard detection and calibration, robust pose estimation, SIFT matching, epipolar geometry/triangulation, stereo and optical flow. No externally sourced photographs are included; all output images are generated by `opencv/examples.py` and may be reproduced using the instructions below. The tutorial excerpts on the site share setup and variables from that script. The full script is runnable; the excerpts are not standalone. The API cards are introductory, not exhaustive parameter/default/overload documentation. The official links are authoritative for full signatures and constraints.

### Run the website and examples

From this folder:

```sh
python -m http.server 8000
# open http://localhost:8000
python -m pip install -r requirements.txt
python opencv/examples.py
python opencv/reference.py
python opencv/site.py
node tests/visuals.cjs
```

`opencv/reference.py` extracts signatures from the installed version. If you regenerate using another version, recheck the parameter explanations for that version. `opencv/site.py` rebuilds the demo descriptions and result/code display using the output of `examples.py`. Deploy the folder contents to the root of a GitHub Pages repository, with `.nojekyll` included. For migration, export your prior progress before replacing the site; storage is scoped to browser origin. The same localStorage key and lesson IDs remain in use, but cross-origin migration requires the import tool.

### Tests and limits

- 4,891 sampled inputs across all 60 lesson visualizations returned nonempty SVG scenes and no NaN/Infinity/undefined tokens (`tests/visuals-results.txt`). This is a structural/numeric smoke test, not proof of geometric correctness of every illustration.
- The OpenCV synthetic pipeline ran successfully with assertions for projection agreement, calibration, pose, matching, triangulation, stereo and optical flow. See `tests/opencv-results.txt` and `assets/outputs/results.json`.
- Chromium inlined-script smoke test passed the 12 chapter routes, 60 lesson routes, selected API and index routes, slider changes, in-memory mastery and API search. A mobile-width smoke test returned 390 px for a 390 px viewport. See `tests/browser-inline-results.txt`. Browser navigation to localhost was blocked by the environment (`tests/browser-results.txt`), so actual HTTP hosting, localStorage across reloads and live GitHub Pages deployment are not verified. The inlined test did not load external image URLs.
- Original lesson material and progress features are retained, but this is not the full master-specification implementation. Remaining work includes exhaustive OpenCV overload/default coverage, a complete real-image dataset curriculum, full production-quality 3D simulators for all advanced topics, notebooks, browser Python, every individual resource/video link and timestamps, deep content expansion to the 100k–180k word target, and comprehensive accessibility and deployment testing.
