资源简介


资源截图

代码片段和文件信息

# coding=utf-8
# cv2解决绘制中文乱码
 
import cv2
import numpy
from PIL import Image ImageDraw ImageFont

class Font():
    def cv2ImgAddText(img text left top):  # 视频帧绘制中文
        img = Image.fromarray(cv2.cvtColor(img cv2.COLOR_BGR2RGB))
        draw = ImageDraw.Draw(img)
        fillColor = (255 0 0)
        fontstyle = ImageFont.truetype(“font/simsun.ttc“ 20 encoding=‘utf-8‘)
        draw.text((left top - 20) text font=fontstyle fill=fillColor)
        return cv2.cvtColor(np.asarray(img) cv2.COLOR_RGB2BGR)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-06-12 07:18  YOLOv3-Dishes-identification-master\
     文件        1201  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.gitignore
     目录           0  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\
     文件          47  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\.gitignore
     目录           0  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\inspectionProfiles\
     文件         174  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\inspectionProfiles\profiles_settings.xml
     文件         672  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\keras-yolo3-master.iml
     文件         204  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\misc.xml
     文件         288  2020-06-12 07:18  YOLOv3-Dishes-identification-master\.idea\modules.xml
     文件     1950356  2020-06-12 07:18  YOLOv3-Dishes-identification-master\Demo.gif
     文件        1064  2020-06-12 07:18  YOLOv3-Dishes-identification-master\LICENSE
     文件       18034  2020-06-12 07:18  YOLOv3-Dishes-identification-master\MainWindow_1.0.py
     文件       18018  2020-06-12 07:18  YOLOv3-Dishes-identification-master\MainWindow_2.0.py
     文件        4399  2020-06-12 07:18  YOLOv3-Dishes-identification-master\PriceDialog.py
     文件         524  2020-06-12 07:18  YOLOv3-Dishes-identification-master\README.md
     文件         338  2020-06-12 07:18  YOLOv3-Dishes-identification-master\SingalTest.py
     文件         553  2020-06-12 07:18  YOLOv3-Dishes-identification-master\addFont.py
     文件          22  2020-06-12 07:18  YOLOv3-Dishes-identification-master\coco.names
     文件        1323  2020-06-12 07:18  YOLOv3-Dishes-identification-master\coco_annotation.py
     文件       10093  2020-06-12 07:18  YOLOv3-Dishes-identification-master\convert.py
     文件        5707  2020-06-12 07:18  YOLOv3-Dishes-identification-master\darknet53.cfg
     目录           0  2020-06-12 07:18  YOLOv3-Dishes-identification-master\font\
     文件      127344  2020-06-12 07:18  YOLOv3-Dishes-identification-master\font\FiraMono-Medium.otf
     文件        4432  2020-06-12 07:18  YOLOv3-Dishes-identification-master\font\SIL Open Font License.txt
     文件    10500792  2020-06-12 07:18  YOLOv3-Dishes-identification-master\font\simsun.ttc
     文件        3482  2020-06-12 07:18  YOLOv3-Dishes-identification-master\kmeans.py
     文件        9582  2020-06-12 07:18  YOLOv3-Dishes-identification-master\mainUI.py
     目录           0  2020-06-12 07:18  YOLOv3-Dishes-identification-master\model_data\
     文件          22  2020-06-12 07:18  YOLOv3-Dishes-identification-master\model_data\coco_classes.txt
     文件          50  2020-06-12 07:18  YOLOv3-Dishes-identification-master\model_data\tiny_yolo_anchors.txt
     文件          22  2020-06-12 07:18  YOLOv3-Dishes-identification-master\model_data\voc_classes.txt
............此处省略16个文件信息

评论

共有 条评论