• Stars
    star
    408
  • Rank 105,632 (Top 3 %)
  • Language
    Ruby
  • Created almost 7 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Use Baidu OCR API to covert your clipboard image to text.

Alfred Clipboard OCR

一个对剪贴板中的图片内容调用百度云 API 做 OCR 识别的 Alfred 工作流。不喜欢百度?试试基于有道的同类工作流

演示动画

感谢:V2EX, Firefox, Snipaste, CotEditor 在上图中的出场(排名不分先后)

安装方法

  1. 下载 workflow 并使用 Alfred 安装
  2. 百度云控制台 申请一个文字识别的应用,并记下 API Key 和 API Secret
    在这里需要顺便领取免费资源,否则会遇到 API 额度不足的问题
  3. 打开 Alfred 设置,找到这个 workflow 并打开变量控制面板 变量控制面板的位置
  4. 将第二步中获得的 API Key 和 API Secret 填入对应的变量中 添加变量的示意图

使用说明

首先,使用任意一个截图软件将想要识别的区域截取下来。你也可以复制图片内容(而非图片文件)到剪贴板中。

在 Alfred 中输入 ocr 并回车,稍等片刻,即可获得识别的文字。

识别后的文字会自动复制到你的剪贴板中。识别并复制成功后,Alfred 会弹出桌面通知提醒你。

常见问题

开了代理就报错

常见的错误有:

  • Bad URI
  • Method Not Allowed
  • Request Failed

遇到此类问题请先尝试关闭代理确认是否为代理问题。若确认是代理问题而又不希望关闭代理软件的,可以在 Workflow Environment Variables 一栏增加两个变量如下:

Name Value Don't Export
HTTP_PROXY 空字符串 NO
http_proxy 空字符串 NO

重试即可。

授权协议

AGPLv3

开源软件使用许可

pngpaste

图标授权 (Icon Credit)

Icon made by Freepik from www.flaticon.com.

More Repositories

1

bpcs_uploader

百度pcs上传脚本
PHP
517
star
2

WinMTR

WinMTR - 中国改进版 // 并不会再更新了
C++
342
star
3

Slash

Read your documents cross platform.
CoffeeScript
121
star
4

telegram-archive-server

Archive and search server for Telegram, adds missing CJK support for Telegram search using MeiliSearch.
TypeScript
50
star
5

node-telegram-bot

Create your own Telegram bot in minutes with the official Bot API
CoffeeScript
50
star
6

docker-novnc

tigervnc, websokify, novnc and Nginx with s6-overlay in a docker image.
Dockerfile
34
star
7

SeiChat

全平台微信客户端
JavaScript
30
star
8

proxy-proxy

Advanced proxy rules for Firefox
JavaScript
27
star
9

tdlib-json-cli

A CLI Wrapper of TdLib
Ruby
27
star
10

SMSPoster

a simple sms poster app
Java
22
star
11

SpammersGoAway

Spammers Go Away ! 用高大上的方法屏蔽垃圾评论 (for typecho)
PHP
22
star
12

askme

AskMe! is a PHP powered, self hosted anonymous marshmallow-qa or peing alternative
PHP
21
star
13

CommentMailPlus

typecho下mailgun评论提醒插件
PHP
19
star
14

RoughlyEnoughCharacters

为 Minecraft 增加拼音搜索,Just Enough Charcaters 的 Fabric 版本
Java
18
star
15

boatfriday

我将在此演示如何移除手游的 SSL Pin
TypeScript
10
star
16

coolq-wine

Using CoolQ on wine
Shell
7
star
17

sklanding

「森空岛」数据提取装置
Vue
6
star
18

pdf-server

simple chrome headless html to pdf micro service powered by docker
JavaScript
6
star
19

csucnetlogin

中国电信数字中南自动登录脚本
Python
6
star
20

oddqc

A MIT-licensed PHP SDK for QingCloud
PHP
6
star
21

rime_config

My rime w/ Squirrel config files
Shell
5
star
22

userscripts

my userscripts
JavaScript
4
star
23

rawlab

Serves raw files from gitlab, with correct MIME types.
Go
3
star
24

subdomain

一个简单的域名转发系统
PHP
3
star
25

CCLogin

ChinaNet-CSU login script for OpenWrt or other low-end devices written in lua.
Lua
3
star
26

node-pandan

[WIP] 熊猫 TV 直播弹幕抓取 node.js 实现
JavaScript
2
star
27

certdeploy

All-in-one BYOC solution for CDN services, bring your own certificates onto cloud!
Go
2
star
28

install-vc-redist-online

Batchfile
2
star
29

sbipc

State-of-art BYOD IP Camera
Go
2
star
30

parcel-plugin-eft

Add ef.js template support for parcel bundler.
JavaScript
2
star
31

qqmsg

a qq msg viewer on php server , use it as your own risk
PHP
2
star
32

gamecloud

云中商城
PHP
1
star
33

dalaba

TypeScript
1
star
34

ribaoreborn

简单的知乎日报网页版
PHP
1
star
35

knowledge

个人知识库
Shell
1
star
36

image-meta-loader

Import image meta for webpack
JavaScript
1
star
37

coffeesp

make express like PHP
CoffeeScript
1
star
38

seinit

personal init script for vps
Shell
1
star
39

firefox-history-viewer

Browse your places.sqlite
PHP
1
star
40

shitenv

shift envs
Shell
1
star
41

node-mbdpay

面包多Pay Node.js SDK
TypeScript
1
star
42

onionwall

简单的通用微博墙,可以自由扩展数据来源。
PHP
1
star
43

in3words

三言三语 - 博客开源
TypeScript
1
star
44

oott123

1
star
45

wxwork-oauth-server

TypeScript
1
star
46

webadb-usb-reproduce

JavaScript
1
star