v0.2.0: Interactive masking and more
What's Changed
Interactive masking editor and more:
interactive_mask.mp4
Breaking changes:
om.video.resize: parameters are nowshapeorscale, instead ofnewx,newy- All
saveandexportfunctions now expect the filename first, e.g.save(filename, value, ...)instead ofsave(value, filename, ...). The deprecatedsave(value, filename, ...)order will raise a warning but still work. om.load_video: RaisesFileNotFoundErrorinstead ofValueErrorif file not found- MacOS 12+ is now required
New functionality & other changes
Python 3.12 is now supported.
optimap.image:
- Added
interactive_mask(): Create a mask interactively by drawing on an image. - Added
load_mask()function show_mask(): only show True values in overlay. If no image passed show a black border around mask. Addedalpha,color,cmapparameters- Fixed
load_mask() - Added
collage()function to arrange list of images in a grid - Added
resize(),rotate_left(),rotate_right(),flip_left_right(),flip_up_down(),crop(),pad()functions analogous to theom.videoequivalents - Fixed
smooth_gaussian()for RGB(A) images
optimap.video:
- Added
om.video.export_video_collage()to arrange a list of videos in a grid and save to a media file om.video.load_image_folder()function is now public API in addition to theload_video()wrapperom.video.InteractivePlayerclass is now public APIom.video.MultiRecorderImporter: addedget_frametimes()function to load the frametimings (if supported by MultiRecorder camera plugin)export_video(),export_video_with_overlay(): addprogress_barparameterresize: addinterpolationparameter for the different OpenCV interpolation methods
optimap.trace:
show_positions(): add size, cmap, vmin, vmax and kwargs parameters- Fixed
random_positions() - Add
collage_positions()as equivalent toimage.collage()orvideo.export_video_collage()
Full Changelog: v0.1.4...v0.2.0