halcon深度学习的标注工具运行后,要打开浏览器访问 http://localhost:8000
但是你运行dltool.exe后,cmd命令行会报一个错误:
image.png
C++
C:\Users\Administrator>C:\Users\Administrator\Desktop\
检测例程detection\detection\1_标注工具\dltool.exe
MVTec Package Loader and Manager 0.1
© 2019 MVTec Software GmbH
[ windows x64-win64 ]
listening on http://localhost:8000
<ctrl>-c to shutdown server
2020/05/27 21:10:43 listen tcp 127.0.0.1:8000: bind: An attempt was made to
access a socket in a way forbidden by its access permissions.
这个错误提示是说:你访问套接字是无权限的。
因为这个原因,在浏览器端你将看到网页无法显示。
这个问题是因为8000端口可能被什么应用给占用了,因此勇哥在cmd中输入命令:
C++
netstat -ano
结果如下:
C#
活动连接
协议 本地地址 外部地址 状态 PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1228
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 8784
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:843 0.0.0.0:0 LISTENING 13028
TCP 0.0.0.0:902 0.0.0.0:0 LISTENING 5128
TCP 0.0.0.0:912 0.0.0.0:0 LISTENING 5128
TCP 0.0.0.0:1433 0.0.0.0:0 LISTENING 7468
TCP 0.0.0.0:1947 0.0.0.0:0 LISTENING 4020
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 1492
TCP 0.0.0.0:5040 0.0.0.0:0 LISTENING 8228
TCP 0.0.0.0:7000 0.0.0.0:0 LISTENING 13156
TCP 0.0.0.0:8000 0.0.0.0:0 LISTENING 13028
TCP 0.0.0.0:9064 0.0.0.0:0 LISTENING 5976
TCP 0.0.0.0:19531 0.0.0.0:0 LISTENING 4008
TCP 0.0.0.0:20831 0.0.0.0:0 LISTENING 5136
TCP 0.0.0.0:28000 0.0.0.0:0 LISTENING 7624
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING 908
TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING 1760
TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING 1796
TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING 3056
TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING 4860
TCP 0.0.0.0:49669 0.0.0.0:0 LISTENING 4560
TCP 0.0.0.0:49670 0.0.0.0:0 LISTENING 980
TCP 0.0.0.0:49675 0.0.0.0:0 LISTENING 132
TCP 0.0.0.0:49732 0.0.0.0:0 LISTENING 10080
TCP 0.0.0.0:55355 0.0.0.0:0 LISTENING 14184
TCP 127.0.0.1:1434 0.0.0.0:0 LISTENING 7468
TCP 127.0.0.1:4012 0.0.0.0:0 LISTENING 5332
TCP 127.0.0.1:4013 0.0.0.0:0 LISTENING 5332
TCP 127.0.0.1:4301 0.0.0.0:0 LISTENING 3664
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 11944
TCP 127.0.0.1:5354 0.0.0.0:0 LISTENING 4208
TCP 127.0.0.1:8307 0.0.0.0:0 LISTENING 8784
TCP 127.0.0.1:10000 0.0.0.0:0 LISTENING 12552
TCP 127.0.0.1:28317 0.0.0.0:0 LISTENING 5184
TCP 127.0.0.1:49809 127.0.0.1:49810 ESTABLISHED 13156
TCP 127.0.0.1:49810 127.0.0.1:49809 ESTABLISHED 13156
TCP 127.0.0.1:49811 127.0.0.1:49812 ESTABLISHED 13156
TCP 127.0.0.1:49812 127.0.0.1:49811 ESTABLISHED 13156
TCP 127.0.0.1:50175 0.0.0.0:0 LISTENING 5996
TCP 127.0.0.1:51706 0.0.0.0:0 LISTENING 7428
TCP 169.254.32.76:139 0.0.0.0:0 LISTENING 4
TCP 169.254.163.197:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.3:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.3:49729 120.92.76.73:10001 ESTABLISHED 8572
TCP 192.168.1.3:49768 183.232.64.24:1028 ESTABLISHED 13028
TCP 192.168.1.3:49787 58.254.145.54:80 ESTABLISHED 13028
TCP 192.168.1.3:49801 52.139.250.253:443 ESTABLISHED 13196
TCP 192.168.1.3:49846 36.248.8.203:80 CLOSE_WAIT 5184
TCP 192.168.1.3:49847 36.248.8.203:80 CLOSE_WAIT 5184
TCP 192.168.1.3:49879 112.90.242.20:80 ESTABLISHED 13028
TCP 192.168.1.3:49924 52.139.250.253:443 ESTABLISHED 5160
TCP 192.168.1.3:51474 121.9.212.145:80 CLOSE_WAIT 8572
TCP 192.168.1.3:51482 36.249.73.240:80 CLOSE_WAIT 8572
TCP 192.168.1.3:51505 64.233.189.188:5228 ESTABLISHED 8648
TCP 192.168.1.3:51622 121.9.212.145:80 CLOSE_WAIT 13728
TCP 192.168.1.3:51660 23.196.225.29:443 CLOSE_WAIT 12064
TCP 192.168.1.3:51682 223.167.84.139:8080 ESTABLISHED 7580
TCP 192.168.1.3:51779 58.250.143.80:443 CLOSE_WAIT 3664
TCP 192.168.1.3:51780 58.250.143.85:80 CLOSE_WAIT 3664
TCP 192.168.1.3:51787 58.251.106.205:443 CLOSE_WAIT 3664
TCP 192.168.1.3:51815 58.250.136.72:443 CLOSE_WAIT 3664
TCP 192.168.1.3:51858 119.39.80.43:443 CLOSE_WAIT 3664
TCP 192.168.1.3:51944 120.52.90.109:443 CLOSE_WAIT 8572
TCP 192.168.1.3:52011 157.255.76.52:80 ESTABLISHED 13028
TCP 192.168.1.3:52020 220.249.244.122:443 CLOSE_WAIT 3664
TCP 192.168.1.3:52049 203.208.50.64:443 ESTABLISHED 8648
TCP 192.168.1.3:52052 163.177.222.2:443 ESTABLISHED 8648
TCP 192.168.1.3:52068 163.177.90.84:443 CLOSE_WAIT 3664
TCP 192.168.1.3:52081 47.98.154.65:80 CLOSE_WAIT 8648
TCP 192.168.1.3:52087 157.255.243.94:8080 ESTABLISHED 3664
TCP 192.168.1.3:52094 221.5.75.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52095 221.5.75.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52096 221.5.75.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52099 163.177.151.109:443 ESTABLISHED 8648
TCP 192.168.1.3:52101 163.177.151.109:443 ESTABLISHED 8648
TCP 192.168.1.3:52102 163.177.151.109:443 ESTABLISHED 8648
TCP 192.168.1.3:52107 163.177.151.109:443 ESTABLISHED 8648
TCP 192.168.1.3:52121 163.177.151.109:443 ESTABLISHED 8648
TCP 192.168.1.3:52124 111.202.114.107:443 ESTABLISHED 8648
TCP 192.168.1.3:52125 111.202.114.107:443 ESTABLISHED 8648
TCP 192.168.1.3:52126 58.254.150.38:443 ESTABLISHED 8648
TCP 192.168.1.3:52127 58.254.150.38:443 ESTABLISHED 8648
TCP 192.168.1.3:52128 58.254.150.38:443 ESTABLISHED 8648
TCP 192.168.1.3:52129 58.254.150.38:443 ESTABLISHED 8648
TCP 192.168.1.3:52134 36.250.245.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52139 36.250.245.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52143 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52144 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52145 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52146 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52147 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52148 112.80.255.252:443 ESTABLISHED 8648
TCP 192.168.1.3:52150 221.5.75.35:443 ESTABLISHED 8648
TCP 192.168.1.3:52151 111.206.208.5:443 ESTABLISHED 8648
TCP 192.168.1.3:52152 163.177.151.86:443 ESTABLISHED 8648
TCP 192.168.1.3:52154 163.177.151.132:443 ESTABLISHED 8648
TCP 192.168.1.3:52159 120.83.183.48:443 TIME_WAIT 0
TCP 192.168.1.3:52162 120.83.183.48:443 TIME_WAIT 0
TCP 192.168.1.3:52167 111.202.114.81:443 ESTABLISHED 8648
TCP 192.168.1.3:52169 163.177.151.109:443 FIN_WAIT_1 8572
TCP 192.168.1.3:52171 116.181.3.49:80 TIME_WAIT 0
TCP 192.168.1.3:52173 23.208.144.148:80 ESTABLISHED 8072
TCP 192.168.1.3:52174 163.177.151.109:443 FIN_WAIT_1 8572
TCP 192.168.1.3:52175 52.114.77.164:443 TIME_WAIT 0
TCP 192.168.1.3:52176 172.217.160.106:443 SYN_SENT 8648
TCP 192.168.1.100:139 0.0.0.0:0 LISTENING 4
TCP [::]:135 [::]:0 LISTENING 1228
TCP [::]:443 [::]:0 LISTENING 8784
TCP [::]:445 [::]:0 LISTENING 4
TCP [::]:1433 [::]:0 LISTENING 7468
TCP [::]:1947 [::]:0 LISTENING 4020
TCP [::]:3389 [::]:0 LISTENING 1492
TCP [::]:28000 [::]:0 LISTENING 7624
TCP [::]:49664 [::]:0 LISTENING 908
TCP [::]:49665 [::]:0 LISTENING 1760
TCP [::]:49666 [::]:0 LISTENING 1796
TCP [::]:49667 [::]:0 LISTENING 3056
TCP [::]:49668 [::]:0 LISTENING 4860
TCP [::]:49669 [::]:0 LISTENING 4560
TCP [::]:49670 [::]:0 LISTENING 980
TCP [::]:49675 [::]:0 LISTENING 132
TCP [::]:49732 [::]:0 LISTENING 10080
TCP [::1]:1434 [::]:0 LISTENING 7468
TCP [::1]:8307 [::]:0 LISTENING 8784
TCP [::1]:28000 [::1]:49736 ESTABLISHED 7624
TCP [::1]:49734 [::1]:49735 ESTABLISHED 10080
TCP [::1]:49735 [::1]:49734 ESTABLISHED 10080
TCP [::1]:49736 [::1]:28000 ESTABLISHED 10080
UDP 0.0.0.0:500 *:* 4528
UDP 0.0.0.0:1947 *:* 4020
UDP 0.0.0.0:3389 *:* 1492
UDP 0.0.0.0:4024 *:* 3664
UDP 0.0.0.0:4500 *:* 4528
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8648
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 2532
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5353 *:* 8064
UDP 0.0.0.0:5355 *:* 2532
UDP 0.0.0.0:8000 *:* 13028
UDP 0.0.0.0:9000 *:* 13028
UDP 0.0.0.0:9063 *:* 5976
UDP 0.0.0.0:50169 *:* 5284
UDP 0.0.0.0:56683 *:* 3664
UDP 0.0.0.0:57102 *:* 4208
UDP 0.0.0.0:59941 *:* 4020
UDP 127.0.0.1:1900 *:* 13708
UDP 127.0.0.1:54826 *:* 3664
UDP 127.0.0.1:54827 *:* 3664
UDP 127.0.0.1:54828 *:* 3664
UDP 127.0.0.1:54829 *:* 3664
UDP 127.0.0.1:54830 *:* 3664
UDP 127.0.0.1:54831 *:* 3664
UDP 127.0.0.1:56839 *:* 13708
UDP 127.0.0.1:57101 *:* 4536
UDP 169.254.32.76:137 *:* 4
UDP 169.254.32.76:138 *:* 4
UDP 169.254.32.76:1900 *:* 13708
UDP 169.254.32.76:5353 *:* 4208
UDP 169.254.32.76:56838 *:* 13708
UDP 169.254.163.197:137 *:* 4
UDP 169.254.163.197:138 *:* 4
UDP 169.254.163.197:1900 *:* 13708
UDP 169.254.163.197:5353 *:* 4208
UDP 169.254.163.197:56837 *:* 13708
UDP 192.168.1.3:137 *:* 4
UDP 192.168.1.3:138 *:* 4
UDP 192.168.1.3:1900 *:* 13708
UDP 192.168.1.3:5353 *:* 4208
UDP 192.168.1.3:56836 *:* 13708
UDP 192.168.1.100:137 *:* 4
UDP 192.168.1.100:138 *:* 4
UDP 192.168.1.100:1900 *:* 13708
UDP 192.168.1.100:5353 *:* 4208
UDP 192.168.1.100:56835 *:* 13708
UDP [::]:500 *:* 4528
UDP [::]:1947 *:* 4020
UDP [::]:3389 *:* 1492
UDP [::]:4500 *:* 4528
UDP [::]:5353 *:* 8064
UDP [::]:5353 *:* 8648
UDP [::]:5353 *:* 8064
UDP [::]:5353 *:* 2532
UDP [::]:5353 *:* 8064
UDP [::]:5353 *:* 8648
UDP [::]:5353 *:* 8064
UDP [::]:5353 *:* 8648
UDP [::]:5353 *:* 8648
UDP [::]:5355 *:* 2532
UDP [::]:57103 *:* 4208
UDP [::1]:1900 *:* 13708
UDP [::1]:56834 *:* 13708
UDP [fe80::31ac:71de:4844:a3c5%19]:546 *:* 1688
UDP [fe80::31ac:71de:4844:a3c5%19]:1900 *:* 13708
UDP [fe80::31ac:71de:4844:a3c5%19]:5353 *:* 4208
UDP [fe80::31ac:71de:4844:a3c5%19]:56832 *:* 13708
UDP [fe80::44f0:3d3c:e866:defc%21]:1900 *:* 13708
UDP [fe80::44f0:3d3c:e866:defc%21]:56830 *:* 13708
UDP [fe80::4cbc:70a4:8d98:204c%8]:546 *:* 1688
UDP [fe80::4cbc:70a4:8d98:204c%8]:1900 *:* 13708
UDP [fe80::4cbc:70a4:8d98:204c%8]:5353 *:* 4208
UDP [fe80::4cbc:70a4:8d98:204c%8]:56833 *:* 13708
UDP [fe80::7531:21d9:70a5:7be8%11]:1900 *:* 13708
UDP [fe80::7531:21d9:70a5:7be8%11]:56831 *:* 13708
从列表中可以看到8000端口果然被一个pid为13028的程序占用。
C++
TCP 0.0.0.0:8000 0.0.0.0:0 LISTENING 13028
打开任务管理器,看到居然酷狗音乐的一个服务程序在占用8000端口。
这个结果勇哥真是很意外哦。
这个KGService.exe是关闭不了的,勇哥只能把酷狗音乐退出。
再运行指令netstat -ano, 你会发现8000端口已经无人再占用了。
好了,现在标注工具已经可以正确运行了,如下:
这个画面只是个安装界面,点击安装后,将在线下载深度学习标注工具。
勇哥在在线安装完成后,这个工具却仍然报下面的错误,真是祸不单行哦。
这个问题网上无解。勇哥觉得可能是halcon的版本问题。
这个标注工具,可能并不支持halcon19.11。不知道halcon18.11是否支持。为了验证想法,勇哥在虚拟机中安装halcon18.11试试。
但是,halcon18.11安装在虚拟机是没办法跑深度学习的,因此它需要物理显卡的支持。
因此只能把本机的halcon19删除,安装个halcon18试试了。
果然,换成halcon18.11后,可以正常使用标注工具dltool了!
那问题来了,halcon19下如何使用dltool.exe呢?
难道有新的版本可以适配halcon19?
这个暂时不得而知了。
另外,下面两个版本有什么区别呢?
Deep Learning Tool - Early Adopter
Deep Learning Tool
这个工具可以标注三种类型的深度学习,即“分类”,“对象检测”,“分割”。
下图是“对象检测”时做的标注,可以看到香烟分为10类,原始图片有30张。
这个工作量还是蛮大的。
作者:hackpig
来源:www.skcircle.com