当前位置:网站首页>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 )
边栏推荐
- Ngrok intranet penetration
- JS array merging, de duplication, dimensionality reduction (es6: extended operator, set)
- Static details of static members
- When can I sign up for the 2022 class I constructor examination?
- elment-plus图标input上面带的图标为什么不显示
- PUA in the workplace, but it makes sense
- What are the main functions and uses of LCR tester
- XXX port is already in use
- MySQL installation and configuration (super detailed, simple and practical)
- LeetCode刷题系列之-多数之和类型
猜你喜欢

STM32 - memory, I2C protocol

Vscode ROS configuration GDB debugging error record

Idea generate class diagram plug-in UML (super detailed)

【转载】token令牌在登录场景使用

105. Construct binary tree from preorder and inorder traversal sequence (medium binary tree DFS hash table binary tree)

Concise history of graphic technology
![[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login](/img/53/c578e0d1428ea569fb412a20019924.png)
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login

STM32 - external interrupt application (exti) (use cubemx to configure interrupts)

Baidu map usage

6K6w5LiA5qyh5pS75Ye75YiG5p6Q
随机推荐
NPM switch Taobao source (NPM source)
775. 倒排单词
[CVPR 2021] cylinder3d: cylindrical asymmetric 3D convolution network for LIDAR point cloud segmentation
近期bug总结
Use PCL to batch convert point cloud.Bin files to.Pcd
PC side web page effects (client series, scroll series, immediate function execution, sidebar effects)
软考网络工程师
Sword finger offer II 052. flatten binary search tree (simple binary search tree DFS)
Static details of static members
log4j漏洞 elk平台 处理方法 (logstah5.5.1)
Vscode ROS configuration GDB debugging error record
[Ruiji takeout project] Day5 - Chapter 6 mobile verification code login
Sword finger offer II 053. Medium order successor in binary search tree (medium binary search tree DFS)
Can the MySQL create statement be used to create a table structure and append new records
PUA in the workplace, but it makes sense
PC side special effects - animation function
What does GPRS network mean
JS convert numbers to letters
PaddleNLP基于ERNIR3.0文本分类:WOS数据集为例(层次分类)
Solve Jupiter: the term 'Jupiter' is not recognized as the name of a cmdlet, function, script file


