This file is a function interface designed for PSENet. Since the original author Whai's open source code on GitHub does not provide an input-output image interface, I rewrote it according to the source code provided by the author. Display.py is the interface code I rewrote.
-
Firstly , copy the code of the original author PSENET address
-
Place the file display.py in the same directory as test.py and train.py. (test.py and train.py are located in the PSENet directory)
-
Call the Visualize function on display.py.
本文件是针对psenet设计的一个函数接口,由于在原作者whau在 github 开源的源代码没有提供输入到输出的图像接口,所以我根据作者提供的源代码改写了一下,display.py为我改写的接口代码。
-
首先把原作者的代码拷贝下来 psenet地址
-
把 display.py 文件放到与 test.py 和 train.py 同一目录底下。(test.py 和 train.py在PSENet目录底下)
-
调用 display.py 里面的 visualize 函数即可。