Skip to content

Instantly share code, notes, and snippets.

View yulu's full-sized avatar
✍️
Blogging

Yu Lu yulu

✍️
Blogging
View GitHub Profile
@yulu
yulu / index.html
Last active September 17, 2015 15:23
qOZjOP
<div class="spinner">
<div class="square1"></div>
<div class="square2"></div>
<div class="square3"></div>
</div>
@yulu
yulu / catch_result.py
Last active October 28, 2015 06:47
catch result
__author__ = 'yulu'
import json
import urllib
from PIL import Image
import urlparse
from libmproxy.protocol.http import decoded
import os
import random
@yulu
yulu / feature_homography.py
Created October 7, 2013 12:45
A modified version of feature_homography sample in OpenCV python
#!/usr/bin/env python
'''
Usage
----
feature_homography.py [<video source>]
Keys:
SPACE - pause video
{
"concept_group": "root",
"concepts": [
"root||appliances",
"root||automotive",
"root||baby_products",
"root||bag",
"root||book",
"root||clothing",
"root||electronics",
{
"concept_group": "root",
"concepts": [
"root||appliances",
"root||automotive",
"root||baby_products",
"root||bag",
"root||book",
"root||clothing",
"root||electronics",
{
"concept_group": "root",
"concepts": [
"root||appliances",
"root||automotive",
"root||baby_products",
"root||bag",
"root||book",
"root||clothing",
"root||electronics",
[
{
"concept": "red",
"value": {
"threshold": [...],
"precision": [...],
"recall": [...],
"f1-score": [...],
"FT": [...],
"FP": [...],
{
"overview": {
"concept_group_names": [
"category",
"sleeve_length",
"pattern"
]
},
"results": [
{
@yulu
yulu / gist:09c9d643c2ab266961e24fecacfc8d48
Created January 8, 2019 08:27
detection_confusion_matrix_with_support_data.json
{
"name": "confusion_matrix",
"concept_names": [
"long",
"medium",
"short"
],
"type": "array_2d",
"array_2d_value": {
"data": [