You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Zulko. I was having trouble with getting good results from the freeze_region function when I specified a region. Specifying an outer_region gave exactly the expected response, but specifying a region positioned the region at 0,0 regardless of the values of x1 and y1.
The portion of the code that freezes a region currently reads:
if region is not None:
x1, y1, x2, y2 = region
freeze = (clip.fx(crop, *region)
.set_position((x1,y1))
.to_ImageClip(t=t)
.set_duration(clip.duration))
return CompositeVideoClip([clip, freeze])
However I get the correct results when I rewrote and tested the function by setting the position last instead of first like this:
if region is not None:
x1, y1, x2, y2 = region
freeze = (clip.fx(crop, *region)
.to_ImageClip(t=t)
.set_duration(clip.duration)
.set_position((x1,y1)))
return CompositeVideoClip([clip, freeze])
Thanks for building this amazing tool. 💜
The text was updated successfully, but these errors were encountered:
I was having trouble with getting good results from the freeze_region function when I specified a region. Specifying an outer_region gave exactly the expected response, but specifying a region positioned the region at 0,0 regardless of the values of x1 and y1. I get the correct results when I rewrote and tested the function by setting the position last instead of first (lines 38 - 40). Issue here: Zulko#146 (comment)
Hi Zulko. I was having trouble with getting good results from the freeze_region function when I specified a region. Specifying an outer_region gave exactly the expected response, but specifying a region positioned the region at 0,0 regardless of the values of x1 and y1.
The portion of the code that freezes a region currently reads:
However I get the correct results when I rewrote and tested the function by setting the position last instead of first like this:
Thanks for building this amazing tool. 💜
The text was updated successfully, but these errors were encountered: