Beispiel #1
0
        private IEnumerable <Image> GetAllImages()
        {
            var taggedImages   = GetImagesInBatch((batchSize, skip) => TrainingApi.GetAllTaggedImages(ProjectId, IterationId, take: batchSize, skip: skip));
            var untaggedImages = GetImagesInBatch((batchSize, skip) => TrainingApi.GetAllUntaggedImages(ProjectId, IterationId, take: batchSize, skip: skip));

            return(taggedImages.Concat(untaggedImages));
        }
Beispiel #2
0
        /// <summary>
        /// 获取所有有Tag的图片
        /// </summary>
        /// <param name="projectId"></param>
        /// <param name="take"></param>
        /// <returns></returns>
        public List <ImageModel> GetAllTaggedImages(Guid projectId, int take)
        {
            List <ImageModel> images = trainingApi.GetAllTaggedImages(projectId, null, null, take).ToList();

            return(images);
        }