Update joinus.png and uniform path in code
This commit is contained in:
parent
4eef8c178d
commit
e121b42415
|
@ -118,7 +118,7 @@ paddleocr --image_dir doc/imgs_words_en/word_308.png --det false --lang=en
|
||||||
* 检测预测
|
* 检测预测
|
||||||
|
|
||||||
```
|
```
|
||||||
paddleocr --image_dir PaddleOCR/doc/imgs/11.jpg --rec false
|
paddleocr --image_dir doc/imgs/11.jpg --rec false
|
||||||
```
|
```
|
||||||
|
|
||||||
结果是一个list,每个item只包含文本框
|
结果是一个list,每个item只包含文本框
|
||||||
|
@ -157,7 +157,7 @@ image = Image.open(img_path).convert('RGB')
|
||||||
boxes = [line[0] for line in result]
|
boxes = [line[0] for line in result]
|
||||||
txts = [line[1][0] for line in result]
|
txts = [line[1][0] for line in result]
|
||||||
scores = [line[1][1] for line in result]
|
scores = [line[1][1] for line in result]
|
||||||
im_show = draw_ocr(image, boxes, txts, scores, font_path='/path/to/PaddleOCR/doc/fonts/korean.ttf')
|
im_show = draw_ocr(image, boxes, txts, scores, font_path='doc/fonts/korean.ttf')
|
||||||
im_show = Image.fromarray(im_show)
|
im_show = Image.fromarray(im_show)
|
||||||
im_show.save('result.jpg')
|
im_show.save('result.jpg')
|
||||||
```
|
```
|
||||||
|
|
BIN
doc/joinus.PNG
BIN
doc/joinus.PNG
Binary file not shown.
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 103 KiB |
Loading…
Reference in New Issue