Make drawing functions available externally
This commit is contained in:
parent
e6de4b1e37
commit
add5e2a256
|
@ -12,6 +12,6 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from .paddlestructure import PaddleStructure
|
from .paddlestructure import PaddleStructure, draw_result, to_excel
|
||||||
|
|
||||||
__all__ = ['PaddleStructure']
|
__all__ = ['PaddleStructure', 'draw_result', 'to_excel']
|
||||||
|
|
|
@ -145,4 +145,4 @@ def main():
|
||||||
for item in result:
|
for item in result:
|
||||||
logger.info(item['res'])
|
logger.info(item['res'])
|
||||||
save_res(result, save_folder, img_name)
|
save_res(result, save_folder, img_name)
|
||||||
logger.info('result save to {}'.format(os.path.join(save_folder, img_name)))
|
logger.info('result save to {}'.format(os.path.join(save_folder, img_name)))
|
|
@ -43,7 +43,7 @@ setup(
|
||||||
package_dir={'paddlestructure': ''},
|
package_dir={'paddlestructure': ''},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
entry_points={"console_scripts": ["paddlestructure= paddlestructure.paddlestructure:main"]},
|
entry_points={"console_scripts": ["paddlestructure= paddlestructure.paddlestructure:main"]},
|
||||||
version='2.0.6',
|
version='1.0',
|
||||||
install_requires=requirements,
|
install_requires=requirements,
|
||||||
license='Apache License 2.0',
|
license='Apache License 2.0',
|
||||||
description='Awesome OCR toolkits based on PaddlePaddle (8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embeded and IoT devices',
|
description='Awesome OCR toolkits based on PaddlePaddle (8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embeded and IoT devices',
|
||||||
|
|
Loading…
Reference in New Issue