当前位置:网站首页>Labelme labels circular objects [tips]
Labelme labels circular objects [tips]
2022-07-28 22:41:00 【It's too simple】
problem
labelme When labeling , Missing for “ Annular ” Operation of object processing , Only through the following processing , For example, the following left one / Situation of left two , The first on the right is the effect after processing .
![]() | ![]() | ![]() |
solve
This situation can be summarized as marking different colors for different objects , Need to be right labelme Source file modification of program operation , See reference 1,2 strip . What I need is a true value grayscale , Operation idea Is to give two closed rings different colors , Use different colors to assign values to pixels and convert them into grayscale images in the subsequent processing code , The code is as follows , Replace with the code in the third reference .
if data[:, :, 2][i][j] > 0 and data[:, :, 0][i][j] == 0 and data[:, :, 1][i][j] == 0:
data[:, :, 2][i][j] = 255 #Red
data[:, :, 1][i][j] = 255 #Green
data[:, :, 0][i][j] = 255 #Blue
elif data[:, :, 2][i][j] == 0 and data[:, :, 0][i][j] > 0 and data[:, :, 1][i][j] == 0:
data[:, :, 2][i][j] = 0 # Red
data[:, :, 1][i][j] = 0 # Green
data[:, :, 0][i][j] = 0 # BlueReference resources
Mark different colors for different objects ( Different versions labelme The running code is different , Let's follow the blog version )
install labelme4.2.9
Labelme Installation and usage guide _Marlowee The blog of -CSDN Blog _labelme install
json File transfer png picture ( In this paper, the Operation idea )
边栏推荐
- 775. Inverted words
- Sword finger offer II 052. flatten binary search tree (simple binary search tree DFS)
- Winserver operation and maintenance technology stack
- Sword finger offer II 053. Medium order successor in binary search tree (medium binary search tree DFS)
- redis相关
- Target segmentation learning
- imx6q gpio复用
- Common commands of NPM
- Container configuration starts redis cluster single machine 6 nodes 3 Master 3 slave
- NPM switch Taobao source (NPM source)
猜你喜欢

STM32 - systick timer (cubemx configures systick)

Netease Yunxin 2022q2 product supply station, come and get your product supply plan!

6K6w5LiA5qyh5pS75Ye75YiG5p6Q
![[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN](/img/7f/c49fd8c2cbe21585a080852833dcb4.png)
[connect your mobile phone wirelessly] - debug your mobile device wirelessly via LAN

c语言实现字符串逆序排列

基于Ernie-3.0 CAIL2019法研杯要素识别多标签分类任务

JMeter installs third-party plug-ins plugins Manager
How do we do full link grayscale on the database?

Sword finger offer II 053. Medium order successor in binary search tree (medium binary search tree DFS)

LVS+KeepAlived高可用部署实战应用
随机推荐
Chrome encountered a problem when debugging the code. After modifying and saving the code in vscode, chrome did not update after refreshing
ES6, deep copy, shallow copy
Wechat applet uses canvas drawing, round avatar, network background, text, dotted line, straight line
771. The longest consecutive character in a string
Solve Jupiter: the term 'Jupiter' is not recognized as the name of a cmdlet, function, script file
MySQL command (add, delete, check and modify)
Sword finger offer II 054. Sum of all values greater than or equal to nodes (medium binary search tree DFS)
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login
Awk blank line filtering
20-09-27项目迁移到阿里折腾记录(网卡顺序导致服务无法通过haproxy连接到db)
Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
STM32 - DMA direct memory access controller (cubemx configures DMA)
Excel-vba quick start (XIII. Common usage of date)
Mysql8.0 cannot authorize users or prompt you are not allowed to create a user with grant
Research cup element recognition multi label classification task based on ernie-3.0 cail2019 method
职场pua但有道理
How to install WiFi correctly
PC side web page special effects (offset series, obtain the coordinates of the mouse in the box, pop-up drag effect, magnifying glass effect)
STM32 -- program startup process
ngx+sql环境离线安装日志(rpm安装)


