Skip to content

Instantly share code, notes, and snippets.

@ValYouW
ValYouW / cvmat.py
Last active July 29, 2020 21:40
OpenCV Python utils to visualize Mat while debugging in Xcode
import sys
sys.path=sys.path + ["/Library/Python/3.7/site-packages"]
import lldb
import errno
import time
import struct
import tempfile
from subprocess import call
from time import strftime
@ValYouW
ValYouW / blaze_face_detect.py
Last active November 10, 2019 10:35 — forked from ogl4jo3/blaze_face_detect.py
Demo BlazeFace model.
import cv2
import time
import math
import numpy as np
import tensorflow as tf
class SsdAnchorsCalculatorOptions:
def __init__(self, input_size_width, input_size_height, min_scale, max_scale
, num_layers, feature_map_width, feature_map_height
, strides, aspect_ratios, anchor_offset_x=0.5, anchor_offset_y=0.5
@ValYouW
ValYouW / mongo.js
Created July 3, 2017 07:31
A mongoose connection manager
var config = require('core-api').config,
logger = require('core-api').logger.fork('api/storage/mongo'),
mongoose = require('mongoose');
// mongoose is using a polyfill - need to override it
mongoose.Promise = Promise;
var MONGO_OPTS = {
autoReconnect: true,
reconnectTries: 1e6

Javascript Property Grid

Create a simple property grid to display and edit an object properties. Currently supports text/number/color/checkbox

A Pen by ValYouW on CodePen.

License.