当前位置:网站首页>How can matlab obtain the truncated image in trainingimagelabeler
How can matlab obtain the truncated image in trainingimagelabeler
2022-04-23 20:21:00 【Install a sound 77】
I use 2021b Version of matlab, The interface is as shown in the figure :

trainingImageLabeler It's a matlab Its own annotation tool , As an adaptation tool , It should have been convenient and easy to use , however trainingImageLabeler After several updates , Instead, it's more Galla cross .

The output of your image is especially good , Finally, it will only be output as mat file , Although it can also pass through readtable Read training in this way , But there is no real graph , It's still uncomfortable , How could such a function be cut off .
In fact, this acquisition method is very simple ,
l as long as load Take a look at what you saved mat file , A... Will appear in the workspace gTruth, The path information of the file and the clipped square area are inside .
load('test.mat')

So write a script , pick up information , Then use the image imcrop Function to cut and save it .
The script is as follows :
clear all
clc
load('test.mat')
P = size(gTruth.LabelData);
P_size = P(1);
%1 Is the scope of ,2 Is the image location
list1=[];
list2=[];
for i = 1:P_size
react = gTruth.LabelData{i,1}{1,1};
pic_path=gTruth.DataSource.Source(i);
pic_path_str = cell2mat(pic_path);
list1=[list1;react];
list2=[list2;pic_path_str];
end
list1;
list2;
for j =1:30
I=imread(list2(j,:));
C=imcrop(I,list1(j,:));
C_last=imresize(C,[227 227]);
num = list2(j,:);
num_str = num(25:end)
imwrite(C_last,strcat('aaa/',num_str));
end
A rough script written temporarily , Hope to solve your problem .
版权声明
本文为[Install a sound 77]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210551491151.html
边栏推荐
- Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
- Numpy - creation of data type and array
- Paper writing 19: the difference between conference papers and journal papers
- Matlab analytic hierarchy process to quickly calculate the weight
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行1
- Es index (document name) fuzzy query method (database name fuzzy query method)
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
- selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
- Es error: request contains unrecognized parameter [ignore_throttled]
- Servlet learning notes
猜你喜欢

Sqoop imports tinyint type fields to boolean type

Development of Matlab GUI bridge auxiliary Designer (functional introduction)

Openharmony open source developer growth plan, looking for new open source forces that change the world!

Numpy Index & slice & iteration

DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
![[talkative cloud native] load balancing - the passenger flow of small restaurants has increased](/img/ba/4ccf0c2181572fed16bbc9c797d557.png)
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased

SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习

Commit and ROLLBACK in DCL of 16mysql

CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution

16MySQL之DCL 中 COMMIT和ROllBACK
随机推荐
Cadence Orcad Capture CIS更换元器件之Link Database 功能介绍图文教程及视频演示
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
Five minutes to show you what JWT is
Sqoop imports tinyint type fields to boolean type
Unity 模型整体更改材质
Click an EL checkbox to select all questions
Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
Investigate why close is required after sqlsession is used in mybatties
R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
【PTA】L1-002 打印沙漏
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
JDBC database addition, deletion, query and modification tool class
还在用 ListView?使用 AnimatedList 让列表元素动起来
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
Operation of numpy array
R语言ggplot2可视化分面图(facet_wrap)、使用lineheight参数自定义设置分面图标签栏(灰色标签栏)的高度