Skip to content

Instantly share code, notes, and snippets.

View sunzhuoshi's full-sized avatar

sunzhuoshi sunzhuoshi

  • Shanghai, China
View GitHub Profile
@p0wdrdotcom
p0wdrdotcom / converter.js
Created March 6, 2017 22:24
A converter from new opencv XML format for JSFeat for use with jsfeat.haar.detect_multi_scale
var XmlStream = require('xml-stream');
/**
* Constructor
*/
function ConverterJSFeat() {
if (!(this instanceof ConverterJSFeat))
return new ConverterJSFeat();
}
@joubertnel
joubertnel / gist:870190
Last active July 8, 2023 12:52
HTML5 Canvas - Rendering of Text on high-DPI screens
<html>
<head>
<script src='http://code.jquery.com/jquery-1.5.1.min.js'></script>
</head>
<body>
<h2>Naive canvas</h2>
<canvas id="naive" width="400" height="50"></canvas>
<h2>High-def Canvas</h2>