SowVideo

SowVideo[frame]

specifies that frame should be collected by the nearest enclosing ReapVideo.

SowVideo[frame,n]

repeats frame n times when reaped.

Details

  • SowVideo can be used to specify interesting video frames to be "reaped" from an iterative expression evaluation.
  • SowVideo[frame,] returns frame, which can be a single image or graphics, or a list of them.
  • In SowVideo[frame,n], n can be given as a scalar specifying the number of frames or a time Quantity object.
  • In SowVideo[frame,n], if frame is a list, it gets resampled to n frames.

Examples

open allclose all

Basic Examples  (2)

Evaluate a sequence of expressions, "reaping" into a video the ones that have been "sown":

Sow video frames into a video using Table:

Scope  (4)

Sow an image once:

Sow an image 5 times:

Sow an image for 1 second:

Sow some Graphics objects:

Sow some colors and generate constant frames of that color:

Sow a mix of different objects:

Applications  (2)

Perform a nested pruning until no more pruning is done, then reap all frames into a video:

Sow frames of the video where at least one face is detected:

Wolfram Research (2024), SowVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/SowVideo.html.

Text

Wolfram Research (2024), SowVideo, Wolfram Language function, https://reference.wolfram.com/language/ref/SowVideo.html.

CMS

Wolfram Language. 2024. "SowVideo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SowVideo.html.

APA

Wolfram Language. (2024). SowVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SowVideo.html

BibTeX

@misc{reference.wolfram_2024_sowvideo, author="Wolfram Research", title="{SowVideo}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/SowVideo.html}", note=[Accessed: 04-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_sowvideo, organization={Wolfram Research}, title={SowVideo}, year={2024}, url={https://reference.wolfram.com/language/ref/SowVideo.html}, note=[Accessed: 04-November-2024 ]}