Skip to content

Instantly share code, notes, and snippets.

View bookjan's full-sized avatar

Johnson Jan Su bookjan

View GitHub Profile
@bookjan
bookjan / IndicatorWrapContentExample.js
Created August 8, 2019 04:20
Indicator Wrap Content Example by react-native-tab-view@2.10.0
/* @flow */
import * as React from 'react';
import {
StyleSheet, Text
} from 'react-native';
import {
TabBar, TabView
} from 'react-native-tab-view';
import Animated from 'react-native-reanimated';
@bookjan
bookjan / face-detection.py
Last active January 18, 2022 08:02
Using python opencv to detect face and send the frames to FFmpeg to create HLS(HTTP Live Streaming)
import numpy as np
import cv2
import sys
cap = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('<PATH_TO_CASCADES_FOLDER>/haarcascade_frontalface_default.xml')
while(True):
# Capture frame-by-frame