duangsues.is_a? SaltedFish
60 subscribers
609 photos
6 videos
91 files
562 links
🌶🐔🐟 duangsuse 的日常
尤其喜欢发些奇奇怪怪的东西
和转载别人的东西
Download Telegram
Forwarded from ag
这个 APP服务器进程起 起来,别人就可以请求这个进程
Forwarded from ag
里面有检测代理技术,用了代理就瘫痪自己
Forwarded from ag
A(应用层) B(安全服务器,拥有转发请求的功能,自身App客户单)C(真正的服务器)
Forwarded from ag
A 请求B 是用localhost
Forwarded from ag
B 拥有检测代理的技术,发现就瘫痪自己,不是代理就发送请求给C
Forwarded from ag
但是我侥幸破了
Forwarded from ag
它是个安全SDK,它被人使用
Forwarded from ag
使用这个SDK的人 就是拿大宝剑的小孩
Forwarded from ag
我把小孩打死了,就不怕大宝剑了
两百斤麦子,十里山路不换肩
满脸喷粪啊,满脸是粪
一天游泳一千米
中国人均国内生产总值接近八千万美元
中国一不输出革命,二不输出饥饿和贫困,三不去折腾你们,还有什么好说的
PM二百五
最近咧嘴了吧?吃一堑长一智,今后经验就多了,不要老侥幸,运气好不出事,哪一天你出了事那就倒大霉
那些错误执行者,他也是有一本账的,这个账是记在那儿的。一旦他出事了,这个账全给你拉出来了。别看你今天闹得欢,小心今后拉清单,这都得应验的。不要干这种事情。头上三尺有神明,一定要有敬畏之心。
我急得像热锅上的蚂蚁
做到12点,就不做了睡大觉,第二天重新来过
基础不牢,地动山摇
鲜(xiǎn)克有终
轻关易道,通商宽衣(yī)
岿(kuī)然不动
萨格尔王
“精甚细腻”的工笔画
不以追求贸易逆差为目标
狂风骤雨可以掀翻小池塘,但不能掀翻大海
不同意的请举手…没有、没有、没有!
金科律玉的教科书、颐使气指的教师爷
天行健,君子以不强自自强不息
波(pō)涛汹涌
我亲自指挥、亲自部署
现在防疫还不能麻痹(pì)大意
Two hundred catties of wheat, Shili Mountain Road does not change shoulders
Spraying dung all over the face, all over the face is dung
One thousand meters a day
China's GDP per capita is close to 80 million US dollars
China does not export revolution, second does not export hunger and poverty, and third does not toss you, what is there to say
PM two hundred and five
Have you grinned recently? Eat a bit and grow a wise, you will have more experience in the future.
Those erroneous performers, he also has an account, this account is recorded there. Once he has an accident, this account will be pulled out for you. Don't look at your troubles today, be careful to pull the list in the future, this will be fulfilled. Don't do this kind of thing. There are gods three feet above the head, and there must be awe.
I'm anxious like an ant on a hot pot
If you do it at 12 o'clock, you won't sleep, and you will come back the next day
The foundation is not strong, the ground moves
Fresh
Easy to pass, easy to trade, wide clothing (yī)
岿 (kuī) still does not move
King Sagar
"Exquisite" paintings
Do not aim to pursue a trade deficit
Strong winds and rain can overturn a small pond, but not the sea
Raise your hand if you don't agree ... No, no, no!
Jin Keluyu's textbooks, the teacher's master
Tian Xingjian, gentleman insists on self-improvement
Waves (pō)
I personally direct and personally deploy
Now the epidemic prevention cannot be paralyzed
#China #bear
# font, font_size, scale, spacing; key_color
class Montage:
def __init__(self, cfg, size):
self.font = cfg.font; self.scale = cfg.scale; self.spacing = cfg.spacing
self.text = cfg.text
self.key_color = cfg.key_color; self.calc_draw_color = cfg.calc_draw_color

self.newSize = tuple(int(sz*cfg.scale) for sz in size)
self.refreshLayout()
def refreshLayout(self):
if len(self.text) == 0: return
self.layout = solveItemLayout(self.newSize, self.font.getsize(self.text[0]), self.scale, self.spacing)

def runOn(self, image):
areas = solveItemColors(image, self.layout)
newImage = Image.new(image.mode, self.newSize, self.key_color)
drawTextMontage(newImage, areas, cycle(self.text), self.font, self.calc_draw_color)
return newImage

#Python #code 总的弄了一个 MontagerunOn,目的是复用 refershLayout 可提供的信息
runOn 的逻辑很简单,就是新建一个 mode 一样的 image,然后求颜色、作画。

calc_draw_color 也被合并到 cfg 动态对象里去了
def mapUMatWithPillow(mat:UMat, transform) -> UMat:
img = Image.fromarray(array(mat))
return UMat(array(transform(img)))

def cv2VideoInfo(cap):
props = [cv2.CAP_PROP_FPS, cv2.CAP_PROP_FRAME_COUNT, cv2.CAP_PROP_FRAME_WIDTH, cv2.CAP_PROP_FRAME_HEIGHT]
return tuple(int(cap.get(p)) for p in props)


这两个属于 OpenCV 可复用操作,mapUMatWithPillow 负责把 UMat 用处理 Image 的程序处理
cv2VideoInfo 可以拿到 (fps, count, width, height) 信息
(如果要 (w,h) size 则是 cv2VideoInfo(cap)[2:]

还有 key_color 颜色模糊匹配的:

def isColorNearTo(key_color, key_thres, color):
diff = map(lambda c: abs(c[0] - c[1]), zip(color, key_color) )
return sum(diff) < key_thres


然后就没啥好说的了,VideoCapture 和 VideoWriter 都是 routine。
#CG #drawing 下面转发一些大佬的谈论 🤔
(至今不理解Android脏区域计算原理)
Forwarded from Catten Linger
去研究一下 littlevGL
Forwarded from Catten Linger
过段日子把公司的事情弄好了我就腾几天时间出来继续研究 GUI 显示技术了。。
(LittleVGL太强了,能砍到64k)
Forwarded from Catten Linger
它结构不复杂,是个合适的研究对象。
Forwarded from Catten Linger
不是,是类似 Chrome 的 DOM 下面那层 compositor 和 raster
Forwarded from Catten Linger
我看了 Chrome 下面那层觉得现在的应用技术这么扭曲,真的是被 HTML 拖累了