Skip to content

Instantly share code, notes, and snippets.

@y1255018
y1255018 / face_detect.py
Created April 29, 2020 12:30
face detect by opencv
import cv2
import math
from lib.ev3 import EV3
def decode_fourcc(v):
# https://amdkkj.blogspot.com/2017/06/opencv-python-for-windows-playing-videos_17.html
v = int(v)
return "".join([chr((v >> 8 * i) & 0xFF) for i in range(4)])
cap = cv2.VideoCapture(0)
@y1255018
y1255018 / 9_silent_PLA.profile
Last active March 28, 2020 11:21
flashforge adventurer3 Silent Slice Parameter with PLA
[General]
machineId=9
profileName=silent_PLA
materialId=1
supportMaterialId=-1
varLHeightEnable=false
layerHeight="@Variant(\0\0\0\x87=\xf5\xc2\x8f)"
firstHeight=@Variant(\0\0\0\x87>L\xcc\xcd)
varZHeights=
baseSpeed=@Variant(\0\0\0\x87\x42 \0\0)