Install OpenCV 4.1.2 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
word_to_id = imdb.get_word_index() | |
word_to_id = {k: (v+3) for k, v in word_to_id.items()} | |
id_to_word = {value: key for key, value in word_to_id.items()} | |
id_to_word[0] = "" # Padding | |
id_to_word[1] = "" # Start token | |
id_to_word[2] = "�" # Unknown | |
id_to_word[3] = "" # End token | |
def decode(word): |
Install OpenCV 4.1.2 on Raspbian Buster
$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install
import sys | |
from collections import OrderedDict | |
PY2 = sys.version_info[0] == 2 | |
_internal_attrs = {'_backend', '_parameters', '_buffers', '_backward_hooks', '_forward_hooks', '_forward_pre_hooks', '_modules'} | |
class Scope(object): | |
def __init__(self): | |
self._modules = OrderedDict() |