MVEx Subject Crop:
The MVEx_SubjectCrop node is designed to crop a region around a masked subject from each frame of a video, ensuring that the entire batch of frames can be stacked into a single tensor. This node is particularly useful for maintaining consistency across frames, as it selects the position, size, and shape of the crop based on the entire video clip. This approach helps to stabilize the crop against mask jitter and ensures that it only follows sustained motion, rather than reacting to every minor movement. By doing so, it provides a smooth and coherent cropping experience, which is essential for tasks that require precise and consistent subject tracking across multiple frames.
MVEx Subject Crop Input Parameters:
mode
The mode parameter determines the complexity and behavior of the cropping operation. It offers three options: combined, tracked, and zoomed. The combined mode creates a single static crop with padding around the subject's entire movement path, ensuring that the subject remains within the frame throughout its travel. The tracked mode maintains a constant-size crop that remains stationary until the subject is about to exit the frame, at which point it moves minimally to keep the subject in view. The zoomed mode not only tracks the subject's position but also adjusts the crop size according to the subject's size, resampling each crop to a fixed output resolution. This parameter allows you to choose the level of dynamism and adaptability in the cropping process, depending on the specific requirements of your project.
MVEx Subject Crop Output Parameters:
CroppedFrames
The CroppedFrames output parameter provides the resulting frames after the cropping operation has been applied. Each frame is cropped according to the selected mode, ensuring that the subject is consistently framed across the entire video clip. This output is crucial for further processing or analysis, as it delivers a sequence of frames where the subject is prominently featured and stabilized, facilitating tasks such as video editing, analysis, or machine learning applications.
MVEx Subject Crop Usage Tips:
- To achieve a stable crop that minimizes unnecessary movement, use the
combinedmode, which provides a static crop with padding around the subject's entire travel path. - For dynamic scenes where the subject moves significantly, consider using the
trackedorzoomedmodes to ensure the subject remains in view without abrupt changes in the crop position or size.
MVEx Subject Crop Common Errors and Solutions:
Error: "Invalid mask input"
- Explanation: This error occurs when the mask provided does not match the expected format or dimensions required by the node.
- Solution: Ensure that the mask input is correctly formatted and matches the dimensions of the video frames being processed.
Error: "Crop size exceeds frame dimensions"
- Explanation: This error indicates that the calculated crop size is larger than the original frame dimensions.
- Solution: Adjust the crop settings or mode to ensure that the crop size remains within the bounds of the original frame dimensions.
