ICode9

精准搜索请尝试: 精确搜索
  • Halcon 算子 min_max_gray 决定区域内最小最大灰度值2021-02-23 15:04:03

    函数原型: min_max_gray( Regions, Image : : Percent : Min, Max, Range)   函数作用:决定区域内最小最大灰度值 注:如果Percent是50,Min = Max = Median,如果Percent是0,将没有直方图被代入计算为了提高运算速度。  参数列表:Regions(in):输入区域Image(in):灰度图像Percent(in):小于(大于)绝

  • Halcon Image相关操作2021-02-23 14:01:05

    1.创建空白图像 创建单通道图像 gen_image_const( : Image : Type, Width, Height : ) 创建一个具有特定灰度值的图像 gen_image_proto(Image : ImageCleared : Grayval : ) 2.合并通道 1 gen_image_const(Image,'byte',512,512) 2 gen_image_proto(Image,ImageCleared1,25

  • 使用飞桨模型生成情话情诗2021-02-17 13:59:17

    飞桨官网地址:https://www.paddlepaddle.org.cn/hubdetail?name=ernie_gen_lover_words&en_category=TextGeneration ERNIE-GEN 是面向生成任务的预训练-微调框架,首次在预训练阶段加入span-by-span 生成任务,让模型每次能够生成一个语义完整的片段。在预训练和微调中通过填充式生

  • gnome-terminal无法启动的问题解决2021-02-12 10:03:20

    gnome-terminal无法启动情况描述 Gnome桌面默认的终端模拟器是gnome-terminal 执行如下更新系统命令,然后重启计算机后出现的gnome-terminal终端无法启动情况 sudo pacman -Syyu 原因 显然gnome-terminal 在启动时,试图读取本地计算机的语言环境。 而后发现语言环境并没有正

  • Jittor实现Conditional GAN2021-02-10 07:33:10

    Jittor实现Conditional GAN Generative Adversarial Nets(GAN)提出了一种新的方法来训练生成模型。然而,GAN对于要生成的图片缺少控制。Conditional GAN(CGAN)通过添加显式的条件或标签,来控制生成的图像。本文讲解了CGAN的网络结构、损失函数设计、使用CGAN生成一串数字、从头训练CGA

  • STATA 语法格式2021-02-02 10:58:51

    STATA 语法格式 1.选项 sysuse nlsw88,clear 【注意】一个语句只能有一个裸露在外的逗号 #注意下面语句里的第二个逗号是在括号里,不算裸露在外 twoway line close date, title("收盘价", place(left)) 2. 变量引用 通配符:*,?,- #多个连续变量的两种引用方式 #方法1:一一列举 su

  • go的grpc环境源码编译安装2021-01-17 10:32:40

    go的grpc环境安装 参考grpc-go官方文档:https://grpc.io/docs/languages/go/quickstart/ 视频教程:https://www.bilibili.com/video/BV1zi4y1L7Sf 环境 golang的docker image $ docker run -it golang:alpine 简单准备 # go env -w GO111MODULE=on //重要:添加代理,参考:https://gop

  • 1388:家谱(gen)2021-01-08 11:33:41

    http://ybt.ssoier.cn:8088/problem_show.php?pid=1388 方法一:普通模拟,时间复杂度O(50000*1000)只能拿40分 1 #include<bits/stdc++.h> 2 using namespace std; 3 string s; 4 string pep[50010];//存放名字 5 int fa[50010];//记录他的祖先,默认值为0时本人就是祖先 6 7

  • yield函数生成器2021-01-01 23:32:35

    在python中,有yield的函数是生成器函数 def gen(para): while True: yield para print(next(gen(8))) print(next(gen(88))) print(next(gen(888))) print("--------------------------------") def gen2(): l=["This","is","gen

  • Day 13 生成器,函数补充2021-01-01 08:32:38

    一.三元表达式 Ternary operator Ternary operators also known as conditional expressions are operators that evaluate something based on a condition being true or false. It was added to Python in version 2.5. It simply allows to test a condition in a single lin

  • 2020-12-102020-12-10 09:59:43

    第一题是rsa_gen,给p q e求d,第二题是rsa_enc, z是10位数,e是四位数,找一个d乘以z写出d的值,第三题是hack,第四题是解释你写的enc,matlab的局限以及你最后怎样实现,第五个时指出加密过程中的问题以及如何透过这个问题破解 求求大家了

  • 推荐一款 SpringBoot + Mybatis + Vue的代码生成器2020-12-09 11:30:13

    简介 一款代码生成工具,可自定义模板生成不同的代码,支持MySQL、Oracle、SQL Server、PostgreSQL。 只需要一个Java8环境,下载后即可运行使用。 步骤简单,只需配置一个数据源,然后勾选模板即可生成代码。 默认提供了通用的实体类、mybatis接口、mybatis配置文件模板,可以快速开发my

  • 关于grpc、go、protoc的踩坑实录2020-12-09 11:29:37

    本文仅记录本菜鸡在实际项目配置环境中的遇到的一些问题 dokcer和docker compose安装 由于手上只有一台win10,又怕虚拟机连不上内网,所以搞了个WSL,关于WSL的安装配置可以参考其他博客,写的都挺好 环境准备 protoc和grpc gate-way 以下代码一套安装 go install \ github.c

  • es6中generator通俗理解2020-12-08 22:34:39

    一、yield可以传参:  function* show() { console.log('a'); let a = yield 123; // a被gen.next(5)传入5 console.log(a); console.log('b'); return 23456; } let gen = show(); a = gen.next(12); // 返回 { value: 123, done: false }

  • 生成器2020-11-30 19:00:29

    生成器 能以一种一致的方式对序列进行迭代(比如列表中的对象或文件中的行)是Python的一个重要特点。这是通过一种叫做迭代器协议(iterator protocol,它是一种使对象可迭代的通用方式)的方式实现的,一个原生的使对象可迭代的方法。比如说,对字典进行迭代可以得到其所有的键: some_dict

  • golang-grpc示例2020-09-28 10:02:09

    原文链接 1. 环境配置 go环境配置(略) 1.1 protoc-gen-go cd $GOPATH/src/github.com/golang/ git clone https://github.com/golang/protobuf.git cd protobuf/protoc-gen-go go build #生成protoc-gen-go go install . #or cp protoc-gen-go $GOHOME/bin/ 1.2 protoc-gen-go-grp

  • Younger Americans feel their voting weight2020-09-07 07:31:27

    Younger Americans feel their voting weight After years of elder-power, a new generation may well decide the election Sep 6th 2020 THIS HAS been a year of the young. The protesters against racial injustice have mostly been in their 20s. The average age of

  • goroutine上下文contxt语法2020-08-26 11:00:31

    // gen generates integers in a separate goroutine and // sends them to the returned channel. // The callers of gen need to cancel the context once // they are done consuming generated integers not to leak // the internal goroutine started by gen. //gen在一个

  • WPF ListView渲染性能优化2020-08-24 17:01:06

    ListView有时加载个几百条数据都要好几秒钟。 1.ItemsPanelTemplate中用的StackPanel,改成VirtualizingStackPanel。   <ListView ItemsSource="{Binding WOList}" > <ListView.ItemsPanel> <ItemsPanelTemplate > <StackPanel

  • Xlua对c#的vector3等结构体的优化2020-08-15 15:00:47

    目录:​Xlua源码学习​  参考文章:: https://www.jianshu.com/p/07dc38e85923 https://gameinstitute.qq.com/community/detail/111993 https://gameinstitute.qq.com/community/detail/125117 一、lua如何操作Vector3,中间做了什么操作? 1.获取Vector3对象 由于Vector3的方法、属性

  • Generator函数2020-08-09 16:00:49

    Generator 函数是一个状态机,封装了多个内部状态。 执行 Generator 函数会返回一个遍历器对象。   最简单的例子 function * loop () { for (let i = 0; i < 5; i++) { yield console.log(i) } } let l = loop() l.next() l.next() l.next()012   yield 表达式  的结

  • yield基础用法2020-07-27 19:00:44

    yield 是产出的意思,就是返回一个值,这一点有点像return,但是不会结束函数的执行。那它什么时候继续执行呢?等待下一次迭代器被调用时候返回上次中断的地方, 利用这个特性可以实现range函数: def my_range(max_num): i = 0 while i < max_num: yield i # 从此出产出i,下

  • grpc 安装2020-07-18 12:35:21

    安装请参考官方资料-快速开始,安装gRPC需要安装Go、protocol buffer、protoc-gen-go、gRPC等。 1.安装Go,grpc是用Golang开发的,所以需要安装Go; 2.下载protocol buffer,这是gRPC的协议编译工具,写好proto之后,需要用这个编译。windows下直接下载编译好的包,然后将bin目录加到环境变量 查

  • 16 | 脑洞大开:GUI测试还能这么玩(Page Code Gen + Data Gen + Headless)?2020-07-11 09:35:58

    介绍页面对象自动生成、GUI 测试数据自动生成、无头浏览器 页面对象自动生成 页面对象(Page Object)模型的不足 页面对象模型,是以 Web 页面为单位来封装页面上的控件以及控件的部分操作,而测试用例基于页面对象完成具体操作。最典型的模式就是:XXXPage.YYYComponent.ZZZOperation。基

  • 一次使用IDEA编写JDK动态代理Class数组中有关泛型的问题2020-06-12 23:54:49

    在一次使用idea工具进行jdk动态代理方法编写的时候,出现了一个[rawtypes]的编译错误,见下图:      经过多次调试和搜集网上的资料,终于发现了问题的原因:      因为jdk动态代理需要传入一个Class数组,虽然这样写Class[] classes = new Class[]{IndexService.class};编辑器不会报

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有