当前位置: 首页 > news >正文

企业网站建设在国内现状关键词优化系统

企业网站建设在国内现状,关键词优化系统,张家界百度seo,网站建设指南 读书心得设计并实现了一个图片增强的组件,具体功能如下: 图片数据增强,包括且不限于:图片旋转、比例增强、高斯噪声、饱和度变换等若图片包含对应标注boundingbox,也支持对应变换,保证圈选内容的不变性实现多种方式…

设计并实现了一个图片增强的组件,具体功能如下:

  • 图片数据增强,包括且不限于:图片旋转、比例增强、高斯噪声、饱和度变换等
  • 若图片包含对应标注boundingbox,也支持对应变换,保证圈选内容的不变性
  • 实现多种方式random组合,增加增强效果

具体依赖

import cv2
import numpy as np
import copy
import random
from PIL import Image
import os

数据增强方法

@classmethod
def resize_image(cls, image, mode: str = "img", notes: [[dict]] = None, scale_percent: int = None):if scale_percent is None:scale_percent = random.randrange(30, 80)width = int(image.shape[1] * scale_percent / 100)height = int(image.shape[0] * scale_percent / 100)resized_image = cv2.resize(image, (width, height))if mode == 'notes' and notes is None:raise ValueError("When mode is set to 'notes', you must provide notes data.")elif mode == 'notes':points = [i.get('points') for i in notes]resized_points = []for box in points:resized_box = []for point in box:x = int(point[0] * scale_percent / 100)y = int(point[1] * scale_percent / 100)resized_box.append([x, y])resized_points.append(resized_box)resized_notes = copy.deepcopy(notes)for i in range(len(resized_notes)):resized_notes[i]['points'] = resized_points[i]return resized_image, resized_noteselif mode == 'img':return resized_image
@classmethod
def add_gaussian_noise(cls, image, mode: str = "img", notes: [[dict]] = None, mean=70, std=20):noise = np.random.normal(mean, std, image.shape).astype(np.uint8)noisy_image = cv2.add(image, noise)if mode == 'notes' and notes is None:raise ValueError("When mode is set to 'notes', you must provide notes data.")elif mode == 'notes':gaussian_notes = copy.deepcopy(notes)return noisy_image, gaussian_noteselif mode == 'img':return noisy_image

完整代码

source

http://www.hkea.cn/news/687298/

相关文章:

  • 给企业做网站的公司品牌整合营销传播
  • 互联网技术应用学什么杭州优化建筑设计
  • 重庆网站建设要点襄阳seo优化排名
  • 哪个网站用织梦做的seo站长工具查询系统
  • 本地wordpress 上传搜索引擎优化简历
  • 个人创业做网站软文营销怎么写
  • wordpress相册点击弹出框金华seo全网营销
  • 郑州手机网站建设搜狗网站收录提交入口
  • 清风网站建设抖音推广方式有哪些
  • 工作室网站开发广东网站seo营销
  • 广州正佳广场攻略深圳债务优化公司
  • 如何自己免费建网站seo网站有哪些
  • 南昌网站建设案例如何制作自己的链接
  • wordpress大流量专业的网站优化公司
  • 做进口零食批发网站百度站长管理平台
  • 网站栏目建设存在的问题关键词简谱
  • 网站备案怎么那么麻烦google chrome 网络浏览器
  • 小米手机做网站服务器nba东西部最新排名
  • 做写字楼用哪个网站更好郑州seo代理外包
  • 做网站 淘宝营销策划思路
  • 网页设计要用到什么软件聊城seo优化
  • 用wordpress做网站百度推广管理
  • 一个空间可以放两个网站吗html模板网站
  • 做试用网站的原理网站推广优化平台
  • 软件工程培训机构学费亚马逊seo什么意思
  • 做恶搞网站软件有哪些苏州seo怎么做
  • 怎么做微信小说网站企业网络营销策划方案
  • 网站后台上传图片失败百度下载免费安装最新版
  • 镇江做网站需要多少钱企业网站模板设计
  • 西安seo优化系统网页seo