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

조회 수: 4 (최근 30일)
Matthew Fall
Matthew Fall 2022년 5월 20일
답변: Matthew Fall 2022년 7월 6일
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