public
,build
,ocr
,Opencv
We use Pytesseract + OpenCV to build a simple ocr system on colab
This is for colab's simple ocr sample,please copy it or put it in your Google Drive than you can open it.
Clone from my github
git clone https://github.com/tingruikp0925/simpleocr.git
After you upload the picture for this sample You can Read/Resize/Flip/Rotate or cvtColor via use cv2 package.
Follow this information and change the config you need.
Read:cv2.imread(filename, flags)
Show:cv2.imshow(window_name, image)
Save:cv2.imwrite(save_filename, image)
Resize:cv2.resize(image, size, interpolation)
Flip:cv2.flip(image, flipCode)
Rotate: M = cv2.getRotationMatrix2D(rotate_center, rotate_angle, ratio) rot_img = cv2.warpAffine(image, M, size)
CvtGray: cv2.cvtColor(image, colorspace_num=7)
Source Code:https://github.com/tingruikp0925/simpleocr
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing