Skip to content

Instantly share code, notes, and snippets.

View marques576's full-sized avatar
🎯
Focusing

Marques576 marques576

🎯
Focusing
View GitHub Profile
@marques576
marques576 / face-detection.py
Created September 13, 2022 15:16 — forked from hiorws/face-detection.py
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
@marques576
marques576 / optimus710m.md
Last active May 25, 2022 23:02 — forked from fwyzard/optimus.md
Configure Optimus for Ubuntu

Install Nvidia Geforce 710m Drivers on Optimus Laptop

Disable GPU Manager

GPU Manager will overwrite the X configuration at each reboot, so the first step is to disable it.

According to various posts it can be disabled adding nogpumanager to the boot options e.g. in GRUB. Edit /etc/default/grub and add nogpumanager to the GRUB_CMDLINE_LINUX option.

For example, if /etc/default/grub had