Skip to content

How to save homography matrix (for video) #148

Discussion options

You must be logged in to vote

You could try something like this (not tested!):

from stitching import Stitcher
from stitching.images import Images

class VideoStitcher(Stitcher):

    def initialize_stitcher(self, **kwargs):
        super().initialize_stitcher(kwargs)
        self.cameras = None
        self.cameras_registered = False
		
    def stitch(self, images, feature_masks=[]):
        self.images = Images.of(
            images, self.medium_megapix, self.low_megapix, self.final_megapix
        )

        if not self.cameras_registered:
            imgs = self.resize_medium_resolution()
            features = self.find_features(imgs, feature_masks)
            matches = self.match_features(features)
            i…

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@earthscience2
Comment options

@lukasalexanderweber
Comment options

Answer selected by HugoDeCozar
Comment options

You must be logged in to vote
1 reply
@lukasalexanderweber
Comment options

Comment options

You must be logged in to vote
2 replies
@lukasalexanderweber
Comment options

@HugoDeCozar
Comment options

Comment options

You must be logged in to vote
1 reply
@lukasalexanderweber
Comment options

Comment options

You must be logged in to vote
1 reply
@deepConnectionism
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
faq content this topic or part of it could be moved into the faq section
6 participants