2022-09-17
Opencv Corner Detection

fast algorithm for corner detection

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
img = cv.imread('blox.jpg',0) # `<opencv_root>/samples/data/blox.jpg`
# Initiate FAST object with default values
fast = cv.FastFeatureDetector_create()
# find and draw the keypoints
kp = fast.detect(img,None)
img2 = cv.drawKeypoints(img, kp, None, color=(255,0,0))
# Print all default params
print( "Threshold: {}".format(fast.getThreshold()) )
print( "nonmaxSuppression:{}".format(fast.getNonmaxSuppression()) )
print( "neighborhood: {}".format(fast.getType()) )
print( "Total Keypoints with nonmaxSuppression: {}".format(len(kp)) )
cv.imwrite('fast_true.png', img2)
# Disable nonmaxSuppression
fast.setNonmaxSuppression(0)
kp = fast.detect(img, None)
print( "Total Keypoints without nonmaxSuppression: {}".format(len(kp)) )
img3 = cv.drawKeypoints(img, kp, None, color=(255,0,0))
cv.imwrite('fast_false.png', img3)

Read More

2022-07-10
Beautify 美颜

opencv bilateral filter python

1
2
3
4
5
import cv2 as cv
img = cv.imread('image.jpg')
bilateral = cv.bilateralFilter(img, 15, 75, 75)
cv2.imwrite('img_bilateral.jpg', bilateral)

https://github.com/xujingzhou/VideoBeautify

python美颜瘦脸

https://github.com/Sharpiless/opencv-pyqt-makeup-software

https://github.com/geeklili/Opencv_PIL

https://github.com/PerpetualSmile/BeautyCamera

JavaScript 美颜

https://github.com/KikyoMiao/beauty

Read More

2022-05-11
Anime Smile Detection_ Segmentation

Anime smile detection/ segmentation

when an anime head is detected, cut it out and create dataset with labels. may augmented it with grayscale or edge detection.

segmentation using labeled data and train it on pretrained models. using anme head detection as double verification. no double heads.

ppse recognition may be applied without further training, or else.

我分析需要YOLO确定人物位置 CNN判断服装类型 人物性别 ocr识别字幕 音频分析识别语气 性别 音乐类型 再用seq2seq来把所有的输出概括成我的描述

或者看看有没有文字转关键词的模型

可以的话加上人物姿态估计 动漫人物的

关于光流算法:

熵就是梯度的标准差

一段范围的熵就是起始时间到末尾的熵的标准差

或者起始到末尾的梯度的标准差

Read More