尿道炎吃什么药比较好的快| 手抖是什么原因| 沥水是什么意思| 肺部增殖灶是什么意思| 提手旁加茶念什么| 上睑下垂是什么原因造成的| 女性什么时候最容易怀孕| 脂肪肝吃什么水果好| 825是什么意思| 腹部淋巴结肿大是什么原因| 陈字五行属什么| 返图是什么意思| 大便有粘液是什么原因| 老年人头晕挂什么科| darling什么意思| 农转非是什么意思| 吃什么受孕率又快又高| 行经是什么意思| ct是什么| 函询是什么意思| 反吟是什么意思| 孕妇建档是什么意思| 爱生闷气的人容易得什么病| 皮脂腺囊肿挂什么科| 六月初六是什么星座| 加特纳菌阳性是什么病| 肛周脓肿吃什么消炎药| 透析是什么| 鸡五行属什么| 总爱睡觉是什么原因| 大师是什么意思| 一什么秧苗| 什么的气泡| bigbang什么意思| 五十是什么之年| 去美容院洗脸有什么好处| 乙型肝炎表面抗原阳性是什么意思| 哈工大全称是什么| 嘴巴长溃疡是什么原因| 一节黑一节白是什么蛇| 护照办理需要什么材料| 黄飞鸿是什么生肖| 水保是什么| 常打嗝是什么原因| 热射病是什么原因引起的| 泰坦尼克号女主角叫什么| 阿莫西林不能和什么药一起吃| 三栖明星是什么意思| 天地始交是什么意思| 王维被称为什么| 过敏看什么科| 有的没的是什么意思| 肠道为什么会长息肉| 睡美人最怕什么| 睡觉经常做梦是什么原因| 人为什么会中暑| 什么是横纹肌肉瘤| 320是什么意思| 贴切的意思是什么| slogan是什么意思啊| 幽门螺旋杆菌有什么危害| 夸加包念什么| 肌酸激酶偏低是什么原因| 肠胃不好吃什么药效果好| 滑石粉是什么东西| 姨妈期不能吃什么| 淋巴肿了吃什么消炎药| asa是什么意思| 为什么低烧比高烧可怕| 肺炎为什么要7到10天才能好| 肝火是什么原因引起的| 什么人不用电| 盐酸氟桂利嗪胶囊治什么病| 吃什么才能瘦下来| 尿频尿急小腹胀痛吃什么药| 死鱼是什么意思| 吃什么菜| 什么是腺样体面容| 总胆红素高是什么意思| 喉咙痛有黄痰吃什么药| 云南有什么特产| 土字旁有什么字| 做胃镜有什么好处| 蚂蚁最怕什么东西| hcg值是什么| 减肥期间可以吃什么水果| gson是什么牌子| 课代表是什么意思| 什么叫通分| 第三者责任险是什么意思| psa升高代表什么| 什么病需要透析| 浮世清欢什么意思| 绿色加什么颜色是蓝色| acer是什么牌子| 心塞是什么意思| 甲子日五行属什么| 垮掉是什么意思| 肾漏蛋白是什么病| 盗汗吃什么药| 维生素c主治什么| 湿气重有什么表现症状| 同位分是什么意思| 指甲紫色是什么病的征兆| 什么叫有机| 什么情况要做支气管镜| 二甲医院是什么意思| 台州为什么念第一声| 小龙虾什么季节| 甲状腺桥本是什么意思| 礼金是什么意思| 三人死亡属于什么事故| 吃二甲双胍为什么会瘦| 颈椎骨质增生吃什么药效果好| 三醋酯纤维是什么面料| 心慌吃什么药能缓解| 拜谢是什么意思| b驾照能开什么车| 天麻什么味道| ia是什么意思| 糖尿病患者能吃什么水果| 什么快递可以寄活物| 野生甲鱼吃什么| 从未是什么意思| 肛裂出血和痔疮出血有什么区别| 争奇斗艳的斗是什么意思| 四月二十六是什么星座| 腊月初六是什么星座| 67年属什么生肖| cco是什么意思| 黄晓明的老婆叫什么名字| 河北有什么特产| 愿字五行属什么| 小ck是什么牌子| 鹌鹑吃什么食物| 天方夜谭是什么生肖| 糖耐什么时候检查| 糖醋里脊用什么淀粉| 纳米是什么单位| 半路杀出个程咬金是什么意思| 胎盘位于子宫前壁是什么意思| 刀客是什么意思| 颈动脉斑块做什么检查| 杨公忌日是什么意思| ige是什么意思| 成本倒挂什么意思| 什么雪糕最好吃| 211属于什么大学| 胆红素高吃什么药| 老婆的妹妹叫什么| 6月7号是什么星座| o血型的人有什么特点| 凝血高是什么原因| pv是什么意思| pussy是什么意思| 隆胸有什么危害和后遗症吗| 尿检能查出什么| 白事是什么意思| 平胸是什么原因导致的怎样解决| 不禁是什么意思| 什么夕阳| 枭雄的意思是什么| 奄奄一息的息是什么意思| 加盟什么店最赚钱投资小| 额头长痘是什么原因引起的| 维生素c弱阳性是什么意思| 常吃洋葱有什么好处| 为什么会得胆结石| 膝盖咔咔响是什么原因| 肛瘘是什么| 淘宝什么时候成立的| 什么的鸭子| 乳腺一类是什么意思| 银饰发黑是什么原因| 破太岁是什么意思| 白细胞高有什么危害| 恶心呕吐吃什么药| 鹞是什么意思| 重庆沱茶属于什么茶| 什么叫翡翠| 煨是什么意思| 八月十一号是什么星座| 布洛芬是什么| 秋葵什么人不能吃| 杜甫号什么| 路上遇到蛇是什么征兆| 天天射精对身体有什么危害| 隔桌不买单是什么意思| 黄精有什么作用和功效| 嘉字五行属什么| 儿童呕吐吃什么药| 肝郁脾虚吃什么药| 小孩便秘吃什么最管用| 查肺部挂什么科| 弱视是什么| 嬴稷是秦始皇的什么人| 毛泽东是什么样的人| 杏花是什么季节开的| 胃受凉了吃什么药| 什么是象限| 什么克水| c5是什么意思| 贫血吃什么水果好| 彩云之南是什么意思| 怎么知道自己对什么过敏| 什么是初吻| 为什么二楼比三楼好| 孔雀女是什么意思| 粉条是什么做的| 戒腊什么意思| 胆固醇高吃什么可以降下来| 巴结是什么意思| 社会保险费是什么| 有龙则灵的灵是什么意思| 眼屎多用什么眼药水| 1971年属什么生肖| 女性婚检都检查什么| b族维生素什么人不能吃| 微信头像 用什么好| 急性化脓性扁桃体炎吃什么药| 结节是什么症状| 痔疮吃什么好| 发髻是什么意思| 大嘴猴属于什么档次| 乳腺结节是什么症状| 白斑有什么症状图片| 什么是硬盘| fcm是什么意思| 什么治疗咽炎效果好| 脸上出油多是什么原因| 路亚竿什么品牌好| 山楂有什么作用| 为什么拼音| 吃什么能快速排便| 马桶对着卫生间门有什么不好| 心慌心悸是什么原因| 宝宝有口臭是什么原因引起的| 胃病吃什么食物养胃| 足字旁的字跟什么有关| 容易被吓到是什么原因| 粪便隐血试验弱阳性是什么意思| 刮痧有什么好处和坏处| 鸡毛菜是什么菜| 含锶矿泉水有什么好处| 吃什么药能延迟射精| 将军是指什么生肖| 肠梗阻是什么| 今年阴历是什么年| 什么叫强迫症| 985是什么学校| 乙肝第二针最晚什么时候打| 为什么十个络腮九个帅| 梦见一个人死了是什么意思| 本科二批是什么意思| bmi指数是什么意思| 早泄要吃什么药| funfair是什么意思| 蜂蜜什么人不能吃| 什么是痰湿| 93年的鸡是什么命| dbm是什么单位| 属相是什么意思| 葛根有什么作用| 离宅是什么意思| 百度
Skip to content

An OpenCV/Qt based realtime application for Eulerian Video Magnification / Motion Magnification. Works with multiple videos and cameras at the same time and let's you export the magnified videos.

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

tschnz/Live-Video-Magnification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

?

History

53 Commits
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?

Repository files navigation

Live Motion Magnification

An OpenCV/Qt based realtime application for Eulerian Video Magnification. Works with multiple videos and cameras at the same time and let's you export the magnified videos.

Examples

Color Magnified Video

Image shows the color magnified output for a video. In the pictures you can see the effects of the cardiac cycle on the skins color. The upper image shows the skin of the face during a diastole, the lower one during a ventricular systole of the cycle.

Motion Magnified Camerastream

(Un-)Wanted artifacts from a realtime motion magnified camerastream. The strong b/w areas around torso and head are resulting from a fast backwards movement and excessive amplification. The white points (the ones bigger than the noise) on the left side are awhirled dust particles, not visible in the original camera source.

Building

  • Install Qt >= 6
  • Download precompiled OpenCV binaries or compile OpenCV >= 4 yourself
  • In CMakePresets.json
    • Set CMAKE_PREFIX_PATH to the Qt installation directory which should be the same compiler as your OpenCV binaries
    • Set CMAKE_MAKE_PROGRAM to the generator of your choice, Ninja is recommended
    • Set OpenCV_DIR to the directory where the OpenCVConfig.cmake is located
    • Append the path to the OpenCV and Qt binaries to the PATH variable

I only tested this on Windows with VSCode. Make sure to install Qt msvc2022 and Tools, use pre-built OpenCV 4.10 from their website, make sure to install all VSCode Qt Extensions and set User Preferences > CMake: Use VS Developer Environment to "always".

License

This application is licensed under GPLv3, read the LICENSE.

Credits

Thanks to Nick D'Ademo whose qt-opencv-multithreaded application served as basis and to Joseph Pan whose algorithms in the QtEVM application were adapted for this project.

Also take a look at the MITs webpage for Eulerian Video Magnification. They provide demo videos on their page and the team did a fantastic job in researching and developing this field of science.

How do I use it?

Connect

  • Camera
    • Device Number: Type in the device number of your camera connected to your computer. Indexing starts with 0 which is usually your built-in webcam.
    • (Ubuntu/Linux) PointGrey Device on USB: Having a DC1394 Camera connected to your computer, OpenCV redirects the camera over the v4l-API to device number 0. If you wish to also connect to your built-in camera, enable this option to set built-in to 0, DC1394 to 1
    • Image Buffer: Select the length of an image buffer before processing those images. If dropping frames if buffer is full is disabled, your capture rate will be same the same as your processing rate.
  • Video
    • Choose a video. Compatibility is given if your computer supports the codec. Valid file endings are .avi .mp4 .m4v .mkv .mov .wmv
  • Resolution: This does not work for videos on Ubuntu/Linux yet (Windows not tested). For cameras check the supported modes from camera manufacturer and type in the resolution specified for a mode.
  • Frames per Second: Some cameras support multiple modes with different resolution/fps/etc. . Setting the framerate will change into a mode with a framerate near the one you typed in. For videos, some mp4-files have a bad header where OpenCV can't read out the framerate, which will normally be set to 30FPS. Anyway here you can set it manually.

Connect Dialog

Main Window

When succesfully connected to a camera or opened a window, you can draw a box in the video, to scale and only amplify this Region Of Interest in a video source. Setting the video back to normal can be done via menu that opens with a right click in the video. There is also the option to show the unmagnified image besides the processed one.

Right-click Menu in Frame Label

Magnify

Try experimenting with different option values. Furthermore tooltips are provided when hovering the cursor above a text label in the options tab. If you're using an older machine and processing is too slow, try enabling the Grayscale checkbox.

Low Level value High Level value
Color Magnification Slower and more accurate. Too low = no signal detection Faster magnification, inaccurate spatial resolution
Motion Magnification More noise, less movements by big objects Less noise, less movements by little objects

Color Magnification

Note that in the scene, absolutely NO MOVEMENTS are required to process the video correctly.

  • Amplification: The higher the value, the more colorful and noisy the output.
  • Frequency Range: The freq. range of periodically appearing color changes that shall be amplified.

Panel for Color Magnification Options

Motion Magnification

  • Amplification: The higher the value, the more movements and noise are amplified.
  • Cutoff Wavelength: Reduces fast movements and noise.
  • Frequency Range: Reducing the handler values leads to magnifying slow movements more than fast movements and vice versa.
  • Chrom Attenuation: The higher the value, the more the chromaticity channels are getting amplified too, e.g. the more colorful the movements are.

Panel for Motion Magnification Options

Save

For saving videos or recording from camera you have to specify the file extension by your own. .avi is well supported. If you should encounter problems, please try a differenct saving codec in the toolbar under File->Set Saving Codec.

MainWindow with saving codec menu

How does it work?

The image below provides you the class structure and the dataflow (blue = images, red = options) throughout the application.

Class structure

Algorithm

The algorithms are using a combination of spatial filters (e.g. image pyramids) and temporal filters to determine motions of different spatial wavelength in videos. These can be amplified separately before collapsing the image pyramid and adding the motion image back to the original.

Idea of the Video Magnification Algorithm

Color Magnification

For further informations look at the comments in the .h/.cpp files in /main/magnification/*

Color Magnification UML

Motion Magnification

For further informations look at the comments in the .h/.cpp files in /main/magnification/*

Laplace Magnification UML

About

An OpenCV/Qt based realtime application for Eulerian Video Magnification / Motion Magnification. Works with multiple videos and cameras at the same time and let's you export the magnified videos.

Topics

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
牙齿里面疼是什么原因 调理月经吃什么药最好 有口无心是什么意思 蓝色加黄色等于什么颜色 中国人在印度属于什么种姓
肾积水有什么症状 白细胞增多是什么原因 白羊属于什么象星座 中秋节干什么 每天吃什么菜谱星期表
手足口病吃什么药最好 腹泻可以吃什么水果 盆腔炎吃什么消炎药 Zucchini是什么意思 一国两制是什么时候提出的
小孩咳嗽吃什么药好 鲁班是什么家 骆驼奶有什么功效 狗狗的鼻子为什么是湿的 颌下淋巴结肿大挂什么科
为什么不建议小孩打流感疫苗hcv9jop5ns8r.cn 欧豪资源为什么这么好520myf.com 平肝什么意思hcv8jop1ns1r.cn 清晨醒来口苦是什么原因cl108k.com max什么意思hcv8jop8ns7r.cn
天天吃玉米有什么好处和坏处hcv9jop6ns1r.cn 条状血流信号是什么意思hcv8jop0ns8r.cn 什么学习机好hcv9jop2ns1r.cn 孕育是什么意思hcv8jop5ns8r.cn 压床娃娃有什么讲究吗hcv9jop3ns8r.cn
秦朝灭亡后是什么朝代youbangsi.com 晒伤涂什么hcv9jop5ns3r.cn 9岁属什么生肖hcv8jop0ns2r.cn 痛风是什么原因引起的hcv8jop1ns1r.cn 褪黑素不能和什么一起吃hcv8jop3ns2r.cn
染发有什么危害hcv8jop2ns8r.cn 脑梗吃什么食物hcv9jop1ns6r.cn 做水煮鱼用什么鱼最好jiuxinfghf.com 转奶是什么意思hcv9jop5ns3r.cn 什么叫腺样体肥大hcv8jop8ns1r.cn
百度