Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #24 from LimaoC/mitch-opencv2-pi-driver
Browse files Browse the repository at this point in the history
docs: added raspberry pi driver information to test-posture-tracker n…
  • Loading branch information
MitchellJC authored Aug 19, 2024
2 parents 8eab099 + 459546d commit faae8a2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions notebooks/test-posture-tracker.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,45 @@
"%autoreload 2"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**STEP FOR PI:**\n",
"To ensure opencv can detect the pi camera, activate the following driver which comes included with\n",
"the raspberry Pi OS.\n",
"\n",
"REF:\n",
"\n",
"- https://stackoverflow.com/questions/27950013/i-am-trying-make-the-raspberry-pi-camera-work-with-opencv\n",
"- https://github.com/thenaran/linux-rpi/blob/master/Documentation/video4linux/bcm2835-v4l2.txt\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!sudo modprobe bcm2835-v4l2"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Then to check driver is activated.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!ls -ltrh /dev/video*"
]
},
{
"cell_type": "code",
"execution_count": 2,
Expand Down

0 comments on commit faae8a2

Please sign in to comment.