-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Currently, trainbot pieces slices of the moved train together. This works well when within the used crop rectangle the view is unobstructed, and the exposure/lighting is similar in the X axis.
Unfortunately, i have to deal with some obstruction from foliage:

One can kinda reduce this by narrowing the crop rectangle, but i am already quite limited.
But since we have each piece of the train exposed at least twice (with the current movement detection code, even three times), we can stack them together. Here is an example using a better camera, manual stacking of three frames in GIMP, and then enfuse for stacking:

compared to a single frame:

We could even pick out the parts that don't change between frames, and create a non-rectangular mask for picking only the unobstructed parts.
Possible implementation: We pretty much have all the pieces already, we'll just have to save each frame placed into a separate otherwise transparent image file, and then run enfuse over all the files.