| marp | false |
|---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import time | |
| CONFIDENCE_THRESHOLD = 0.2 | |
| NMS_THRESHOLD = 0.4 | |
| COLORS = [(0, 255, 255), (255, 255, 0), (0, 255, 0), (255, 0, 0)] | |
| class_names = [] | |
| with open("classes.txt", "r") as f: | |
| class_names = [cname.strip() for cname in f.readlines()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tensorflow as tf | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import functools | |
| from PIL import Image | |
| """ | |
| TensorFlow Data Augmentation Example | |
| Reference : https://github.com/tensorflow/models/blob/master/research/object_detection/core/preprocessor.py |
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Similar analysis:
- React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
- ESLint vs Oxlint: https://gist.github.com/tkrotoff/8e10c7d63f97b3480a98301af9e8a28e
After all those years maintaining this data (since 2018): React is still much more popular and continue to grow faster than alternatives; Vue dates back from 2014 and Svelte from 2016, they should have overthrown React by now.
Before you start, make sure ip command is available on your system. In modern Linux distributions, ip replaces older ifconfig command. If net-tools package (that includes ifconfig) is not installed and you prefer using it, you can install it via sudo apt-get install net-tools.
Use touch /home/pi/wifi-reconnect.sh to create a shell script file,
with the following content:
#!/bin/bashsudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig| C1 | C2 | C3 | C4 | |
|---|---|---|---|---|
| CV_8U | 0 | 8 | 16 | 24 |
| CV_8S | 1 | 9 | 17 | 25 |
- Download ngrok binary
- https://ngrok.com/download
- unzip to /opt/ngrok
- Create /etc/systemd/system/ngrok.service
- Create /opt/ngrok/ngrok.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| "gopkg.in/ldap.v2" | |
| ) | |
| const ( | |
| ldapServer = "ad.example.com:389" |