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

做家具有那个网站百度sem竞价推广电子书

做家具有那个网站,百度sem竞价推广电子书,自己做网站 需要哪些,网站建设全包设计并实现了一个图片增强的组件,具体功能如下: 图片数据增强,包括且不限于:图片旋转、比例增强、高斯噪声、饱和度变换等若图片包含对应标注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/963084/

相关文章:

  • 网站模板绑定域名培训班
  • coupang入驻条件2022台州关键词优化报价
  • 网站建设前景怎么样google优化师
  • 上海免费网站建设淘宝引流推广怎么做
  • 单位网站建设目的西安网站建设公司排行榜
  • 福州制作网站软件无人在线观看高清视频单曲直播
  • 建设银行卡网站百度账号登录个人中心
  • 网站显示500错误怎么解决方法seo网站推广排名
  • 广告免费设计在线生成网站排名优化
  • 余姚公司网站建设怎么建网址
  • 网站域名授权怎么做市场营销案例100例
  • kindeditor代码高亮 wordpressseo优化排名经验
  • 家乡介绍网页设计上海网站排名优化
  • 广州黄埔网站制作百度sem是什么意思
  • 网站流量分析网站网络推广营销网
  • 化妆品网站建设计划书网站维护是什么意思
  • 建设局网站公告宣传推广的形式有哪些
  • 网站基本架构设计的主要步骤什么软件可以排名次
  • 代做毕业设计网站多少钱网站推广交换链接
  • 苹果指争议广告lg广告北京seo公司网站
  • flash网站制作公司能打开各种网站的浏览器下载
  • 网站开发是叫系统吗站长工具seo排名查询
  • 站长之家html模板西安网站seo技术厂家
  • 重庆网站建设 渝seo交流论坛
  • 洛阳市网站建设宁波seo网络推广软件系统
  • 做网站用建站模版好还是定制好百度站点
  • 关注济南网站建设深圳市企业网站seo
  • 安溪县住房和城乡建设网站色盲
  • 合肥做英文网站今日头条国际军事新闻
  • 西安有哪些做网站的公司好邵阳疫情最新消息