sudo apt update
sudo apt install mjpg-streamer-opencv-python
Create filter file. (/home/debian/opencv_filter.py)
import cv2
import numpy as np
| #!/bin/sh -eu | |
| LOCAL_PROJECT_PATH=${1-$PWD} | |
| BUILD_COMMAND=" | |
| shards build --static --release | |
| chown 1000:1000 -R bin | |
| " | |
| INSTALL_CRYSTAL=" | |
| echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories | |
| apk add --update --no-cache --force-overwrite \ |
| .origin 0 | |
| .entrypoint START | |
| // the number of times we blink the LED | |
| #define NUMBER_OF_BLINKS 10 | |
| #define GPIO_BANK1 0x4804c000 | |
| #define GPIO1_LED3BIT 1<<24 | |
| #define GPIO_SETDATAOUT 0x194 | |
| #define GPIO_CLEARDATAOUT 0x190 |
| obj-m += uio_pruss_shmem.o | |
| all: | |
| make -C /lib/modules/`uname -r`/build M=`pwd` V=1 ARCH=arm modules | |
| install: | |
| make -C /lib/modules/`uname -r`/build INSTALL_MOD_PATH=/lib/modules/`uname -r` M=`pwd` V=1 ARCH=arm modules_install | |
| cd /lib/modules/`uname -r` | |
| depmod -a | |
| /opt/scripts/tools/developers/update_initrd.sh |
sudo apt update
sudo apt install mjpg-streamer-opencv-python
Create filter file. (/home/debian/opencv_filter.py)
import cv2
import numpy as np
| #!/bin/sh | |
| [ -z "$PART_PREFIX" ] && PART_PREFIX='' | |
| DD_ARGS='status=progress conv=fsync' | |
| backup() { | |
| src="$1" | |
| dst="$2" | |
| sfdisk -d "${src}" > "${dst}-table.txt" |
| Contributor | Aryan Nanda |
| Organization | BeagleBoard.org |