Can I speed up the Image Labeler by skipping the thumbnails?

4 次查看(过去 30 天)
The imageLabeler app goes through the whole imageDatastore once at startup in order to create thumbnails of the images. This causes the startup to take a long time, especially if the imageDatastore has many files and/or each read operation takes a long time.
Is it possible to skip the thumbnail creation, or have it run some sort of faster preview function for the thumbnail creation?

采纳的回答

Matthew Fall
Matthew Fall 2022-7-6
I was able to do this by using dbstack in my imageDatastore readFcn to check
ismember('HorizontalImageStrip.createThumbnail', {dbstack().name})
This allowed me to check when the Image Labeler was calling my imageDatastore in order to create thumbnails. I then had my readFcn do something different (specifically, I made it return an image of the file name)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Computer Vision Toolbox 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by