asysbang

 找回密码
 立即注册
查看: 2542|回复: 0
打印 上一主题 下一主题

自定义扩展

[复制链接]

520

主题

2

好友

6551

积分

管理员

Rank: 80Rank: 80Rank: 80Rank: 80Rank: 80

最佳新人 活跃会员 热心会员 推广达人 宣传达人 灌水之王 突出贡献 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2019-9-4 10:48:27 |只看该作者 |倒序浏览
1.批处理多个文件

#!/bin/bash

echo "deal all png in this directory"

files=`ls`

for file in $files

do

    if [ -f "$file" ]; then
        extension="${file##*.}"
        res="${file%.*}"
        if [ $extension == 'png' ];then
            echo "should do $res"
            tesseract -l chi_sim $file $res
        fi
    fi
done

2.默认语言自动补全

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|aSys-帮 ( 京ICP备13033689号 )

GMT+8, 2026-1-28 20:36 , Processed in 0.042766 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部