michal2229 / image-align-and-average Goto Github PK
View Code? Open in Web Editor NEWPython (OpenCV, NumPy) application for image noise removal by aligning and averaging many images.
Python (OpenCV, NumPy) application for image noise removal by aligning and averaging many images.
Documentation suggests darkframe image is not optional, but code seems to need a darkframe image or it will crash.
Problem 1:
when video is shaking, there is different part of scene visible, so when stabilized, there will be missing part of scene on one side and on onther side of a frame there will be image cut.
Python 3.7.5 Windows 64, pure black darkframe provided:
get_darkframe(): loaded darkframe.
Traceback (most recent call last):
File "py_image_merger.py", line 358, in
main()
File "py_image_merger.py", line 274, in main
input_image_no_border = input_image_ - darkframe_image_no_border
ValueError: operands could not be broadcast together with shapes (2050,2500) (2050,2500,3)
Create a mask with counter which would indicate how many images were added to make particular pixel.
It would solve the problem of darker areas, where less images were averaged.
I am getting this error:
Traceback (most recent call last):
File "C:\...\ImageAverage.py", line 358, in <module>
main()
File "C:\...\ImageAverage.py", line 277, in main
input_image_no_border = cv2.resize(input_image_no_border, (0, 0), fx=RESIZE, fy=RESIZE, interpolation=cv2.INTER_LINEAR)
cv2.error: OpenCV(4.5.2) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-m8us58q4\opencv\modules\imgproc\src\resize.cpp:4051: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.