{"id":24599811,"url":"https://github.com/JeffersonLab/CamStream","last_synced_at":"2025-10-05T20:31:34.934Z","repository":{"id":246411768,"uuid":"820982656","full_name":"JeffersonLab/CamStream","owner":"JeffersonLab","description":"Code base of 2024 JLab High School Honors Program DACERI project","archived":false,"fork":false,"pushed_at":"2025-02-05T20:05:23.000Z","size":818,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T18:29:05.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JeffersonLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-27T15:09:17.000Z","updated_at":"2025-02-12T21:37:39.000Z","dependencies_parsed_at":"2024-06-27T21:25:29.154Z","dependency_job_id":"22a42b6d-5b80-4b2d-8048-02be38ecffe9","html_url":"https://github.com/JeffersonLab/CamStream","commit_stats":null,"previous_names":["cissieab/camstream","jeffersonlab/camstream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JeffersonLab/CamStream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FCamStream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FCamStream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FCamStream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FCamStream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeffersonLab","download_url":"https://codeload.github.com/JeffersonLab/CamStream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FCamStream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278513240,"owners_count":25999430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-24T13:17:33.387Z","updated_at":"2025-10-05T20:31:34.296Z","avatar_url":"https://github.com/JeffersonLab.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DACERI\n\n## Python Env Setup\nOn Raspberry PI, after cloning this repo, setup a Python virtual environment at the root.\n\n```bash\n$ python -m venv .venv # setup a Python virtual environment whose name is \".venv\". Use `ls -a` to find the .venv repo\n$ source .venv/bin/activate  # activate the virtual environment\n\n## Virtual environment .venv\n (.venv)$ pip install -r requirements.txt # install the packages\n\n## Clone the repository\n  git clone --recurse-submodules https://github.com/cissieAB/CamStream.git\n```\n\n\n## Theraml Camera and IMX477 (HD Camera) Setup\n\n### Thermal camera\nOnce you have all the Python dependency ready, follow the below steps to set up the thermal camera.\n1. Update the system config file at `/boot/firmware/config.txt`.\n\n    ```bash\n    $ sudo nano /boot/firmware/config.txt\n\n    ## Find the line with dtparam_arm = on and update it to:\n    dtparam_arm = on, arm_baudrate = 400000\n    ```\n    Confirm the camera is connected with command `sudo i2cdetect -y 1`. You should see a matrix with number \"33\" as [this picture](https://images.squarespace-cdn.com/content/v1/59b037304c0dbfb092fbe894/1591722759211-V68N42XVLZG96DG448BA/i2c_detect_mlx90640.png?format=2500w) shows.\n\n 2. Make sure the basic Python package `adafruit_mlx90640` is working with [detect_thermalcam.py](./scripts/detect_thermalcam.py).\n    ```bash\n    (.venv)$ python scripts/detect_thermalcam.py\n    ```\n    You should be able to see the raw temperature array printed out on the screen.\n\n3. Tricks to make the submodule [PiThermalCam](https://github.com/tomshaffner/PiThermalCam) working.\n\n    A. Find the Python dependency files at `\u003c.venv path\u003e/lib/python3.11/site-packages/`.\n      - Update `cmapy.py`:\n        - Replace `matplotlib.cm.get_cmap()` with `matplotlib.pyplot.get_cmap()`;\n        - At the top of the file, add `import matplotlib.pyplot`.\n      - [Optional] Update `adafruit_mlx90640.py`:\n        - Line 160: Replace `if cnt \u003e 4` to `if cnt \u003e 400`.\n\n    B. Run the camera test to check if there is any error.\n\n    ```bash\n    (.venv)$ python PiThermalCam/examples/cam_test.py\n    ```\n### IMX477 HD Camera\n\nFollow the [guide](./doc/IMX477_configuration.md) to update the system configuration file and test with `libcamera`.\n\nAs the system config file `/boot/firmware/config.txt` is updated twice, we save [a backup copy](./scripts/config_bk.txt) in this repo.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJeffersonLab%2FCamStream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJeffersonLab%2FCamStream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJeffersonLab%2FCamStream/lists"}