Skip to content

Instantly share code, notes, and snippets.

@Roger8
Roger8 / heatmap.md
Last active July 19, 2019 01:37
heatmap 热点图
heatmap 热点图
package com.manager.heatmap;

import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Point;
import android.support.annotation.NonNull;
import android.util.Log;
@Roger8
Roger8 / 3drotation.md
Created July 17, 2019 03:07
根据人脸3d landmarks 大概计算人脸方向

(code)[https://gist.github.com/zalo/71fbd5dbfe23cb46406d211b84be9f7e]

            # Construct a "rotation" matrix (strong simplification, might have shearing)
            rotationMatrix = np.empty((3,3))
            # 脸颊两点连线为x轴
            rotationMatrix[0,:] = (centered[16] - centered[0])/np.linalg.norm(centered[16] - centered[0])
            # 下巴眉心两点连线为y轴
            rotationMatrix[1,:] = (centered[8] - centered[27])/np.linalg.norm(centered[8] - centered[27])
            # 上面两条线所在平面的法向量为z轴( 所以用叉乘)
 rotationMatrix[2,:] = np.cross(rotationMatrix[0, :], rotationMatrix[1, :])
@Roger8
Roger8 / windows_cmd_notes.html
Created July 2, 2019 09:48
windows 常用命令
<div id="main">
<div id="post_detail">
<div class="post">
<h2>
<a id="cb_post_title_url" href="https://www.cnblogs.com/kekec/p/3662125.html">windows常用命令</a>
</h2>
<div id="cnblogs_post_body" class="blogpost-body"><p>打开"<strong><span style="color: rgb(255, 0, 0); --darkreader-inline-color:#cf1514;" data-darkreader-inline-color="">运行</span></strong>"对话框(<strong><span style="color: rgb(0, 128, 0); --darkreader-inline-color:#197517;" data-darkreader-inline-color="">Win+R</span></strong>),输入<span style="color: rgb(128, 0, 0); --darkreader-inline-color:#6e1110;" data-darkreader-inline-color="">cmd</span>,打开控制台命令窗口...</p>
<p>也可以通过<span style="color: rgb(255, 102, 0); --darkreader-inline-color:#d9681c;" data-darkreader-inline-color="">cmd /c 命令</span>&nbsp;和&nbsp;<span style="color: rgb(255, 102, 0); --darkreader-inline-color:#d9681c;" data-darkreader-inline-color="">cmd /k 命令</span>的方式来直接运行命令</p>
<p><span style="background-color: rgb(128, 128, 128); --darkreader-inline-bgcolor:#7e7c77;" data-dark
@Roger8
Roger8 / faceantispoofing.md
Last active September 12, 2021 05:51
face anti spoofing topics

github

  1. Implementation of "Learn Convolutional Neural Network for Face Anti-Spoofing" paper github
  2. Code for 2nd Place Solution in Face Anti-spoofing Attack Detection Challenge @ CVPR2019, https://github.com/SeuTao/CVPR19-Face-Anti-spoofing
  3. Face Anti-spoofing demo to detect replay, video and mask attack, https://github.com/lbf4616/Face-Anti-spoofing
  4. This is a C++ code for face anti-spoofing methods based on color texture features. https://github.com/wuyongchn/Face-Spoofing-Detection-or-Face-Liveness-Detection
  5. Single Shot Face Anti-spoofing. https://github.com/JinghuiZhou/awesome_face_antispoofing
  6. Face Anti-Spoofing 集合, https://github.com/ChanChiChoi/awesome-Face_Recognition#face-anti-spoofing

research

1.Research:Deep Tree Learning for Zero-shot Face Anti-Spoofing ,Face De-Spoofing: Anti-Spoofing via Noise Modeling ,Learning Deep Models for Face Anti-Spoofing: Binary or Auxiliary Supervision ,http://w

@Roger8
Roger8 / ffmpeg_notes.md
Last active February 22, 2019 10:36
ffmpeg notes

视频转gif

ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif

@Roger8
Roger8 / linux_operate.md
Created February 14, 2019 09:55
linux 安装程序后软链接
删除之前的软链接并重新创建软链接

[root@thatsit FFmpeg-n3.1.2]# which ffmpeg
/usr/local/bin/ffmpeg
[root@thatsit FFmpeg-n3.1.2]# cd /usr/local/bin/
[root@thatsit bin]# ll|grep ff
lrwxrwxrwx 1 root root 28 Oct 22 2015 ffmpeg -> /usr/local/ffmpeg/bin/ffmpeg
[root@thatsit bin]# rm -f ffmpeg
[root@thatsit bin]# ln -s /usr/local/ffmpeg_3.1.2/bin/ffmpeg .
@Roger8
Roger8 / notes_numpy.md
Created January 24, 2019 02:27
numpy 多条件查找
#numpy 多条件查找
np.where((log[:,1]==3) | (log[:,1]==4))
#或者
np.logical_or(log[:,1]==3 , log[:,1]==4)