自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(39)
  • 收藏
  • 关注

原创 jpg转NV21 python opencv

def jpg2nv21(jpg): yuv = cv2.cvtColor(jpg,cv2.COLOR_BGR2YUV_I420).flatten() y_end =int(len(yuv)/3*2) uv = yuv[y_end:] uv = uv.reshape((2,-1)) uv =uv.transpose((1,0)) uv =uv.flatten() yuv[y_end:] =uv return yuvjpg = cv2.i.

2020-11-03 15:52:09 1606 2

原创 【秋招复习——深度学习】MobileNet

原先模型小型化工作的焦点,放在模型尺度上。卷积核分解,使用1×N 和N×1的卷积核代替N×N的卷积核使用bottleneck 结构,以SqueezeNet为代表以低精度浮点数保存冗余卷积核剪枝以及哈夫曼编码depthwiseseparable convolutions的本质是冗余信息更少的稀疏化表达。在此基础上给出了高效模型设计的两个选择:宽度因子(width multi...

2018-08-10 20:52:36 502

原创 【秋招复习——深度学习】ResNet、DenseNet

随着cnn的发展,尤其是VGG网络提出以后,大家发现网络层数是网络的一个关键因素,似乎越深的网络效 果越好。 但是随着网络层数的增加,也出现了梯度消失或者发散。从而导致训练难以收敛。 随着normalized initialization && intermediate normalization layers的提出解决了这个问题。 但是于此同时,随着网络深度的...

2018-08-10 20:35:56 890

原创 【秋招复习——深度学习】GoogLeNet

Inception v1\v2\v3\v4创新点总结: Inception v1 (GoogleNet) 2014 Inception v2 (Batch Norm) 2015 Inception v3 (Factorization) 2015 Inception v4 (ResNet) 2016 一、GoogLeNet Incepetion V1为了解决...

2018-08-10 19:42:49 304

原创 ARtoolkit源码阅读(二) openvrml+simplevrml

思考一个问题,artoolkit可以利用opengl绘制的正方体、球形。那么我们是否可以用自己的三维模型去替代它们你? wrl文件是一种虚拟现实文本格式文件,也是VRML的场景模型文件的扩展名。将三维模型保存成wrl格式,在通过openVRML支持artoolkit 绘制三维模型。配置openVRML环境想要编译simplevrml.c 首先要 配置openVRML的...

2018-05-30 16:51:00 845 1

原创 ARtoolkit源码阅读(一) artoolkit框架simpletest.c

ARToolKit 框架ARToolKit 是基于opengl和DSVL的增强现实软件包。它遵循opengl的运行模式,基于帧循环实现3D渲染。 主要流程: 1. 初始化视频捕获arVideoCapStart()、读取文件的标记模式、相机参数 arVideoOpen(vconf) 2. 获取一帧输入视频 3. 在输入视频图像中 检测标识和注册的模板 4. 计算相机相对于检测到模板的位...

2018-05-27 17:52:10 989

原创 ARToolKit源码阅读 摄像头标定 calib_dist

calib_dist用于测量图像中心点坐标和镜头畸变参数,而程序calib_cparam用于测量摄像机实际焦距。 本文主要介绍 calib_dist 程序的源码 主要文件有 calib_dist.c、calib_dist.h、check_dist.ccalib_dist.cPart1 参数static ARUint8 *gARTImage =...

2018-05-24 04:09:34 642

原创 RCNN学习笔记(5)-You Only Look Once: Unified, Real-Time Object Detection

本文参考博客如下: yolo代码分析 You Only Look Once: Unified, Real-Time Object Detection 晓雷机器学习笔记-图解YOLO 视觉随笔-YOLO详解-赵丽丽 R-CNN 利用selective search 提出的 region proposals 结合卷积神经网络,通过R-CNN、SPP-net、Fast R-CNN

2017-10-09 19:59:23 521

原创 98. Validate Binary Search Tree

98. Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with keys less

2017-10-09 11:07:18 156

原创 RCNN学习笔记(4)-Faster R-CNN

Faster R-CNNEnd-to-End      首先要理解一下,什么是端对端。端对端的概念很简单,就是输入的是原始数据,输出的是最终的结果。且网络从头到尾是可导的       为什么会有端对端这个概念,在图像处理问题上,原先的输入端并不是直接的数据,因为原始数据像素点太多,数据维度过高,会产生维度灾难,所以在输入之前,先将原始数据提取特征值,进行降维。       特征提取的好坏异常关键

2017-10-08 19:31:07 590

原创 RCNN学习笔记(3)-Fast-RCNN

Faster-RCNNreference link: 晓雷机器学习笔记 xyy19920105博客——目标检测——从RCNN到Faster RCNN 串烧 RCNN、SPP-net的流程 上图分别为RCNN和SPP-net CNN提取特征的流程,在此之后都将通过SVM分类 以及 Bbox回归 所以可以看出,RCNN和SPP-net在训练pipeline是隔离的:提取proposal->cnn

2017-10-07 20:53:41 291

原创 84. Largest Rectangle in Histogram

84. Largest Rectangle in Histogram Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Abo

2017-10-07 15:28:04 139

原创 RCNN学习笔记(2)-SPPnet

reference link:https://zhuanlan.zhihu.com/p/24774302 reference link:http://blog.csdn.net/u011534057/article/details/51219959SPPnet

2017-10-06 21:46:01 350

原创 82.Remove Duplicates from Sorted List II

LeetCode82.Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1-

2017-10-06 16:56:34 167

原创 c++ vector

笔试题中vector 是很常用的存储器,而有些函数的细节总是一知半解。back() 与end() 的区别back():返回当前vector最后一个元素的引用; end():返回一个这项当前vector最后一个元素的下一个位置的迭代器。尾地址,不指向任何存储的元素,是标志vector的结束。补充:begin() 指向vector起始位置迭代器; rbegin() 指向末尾的下一位置,其存储的元素

2017-10-06 14:16:18 1723

原创 RCNN学习笔记(1)-RCNN-Rich feature hierarchies for accurate object detection and semantic segmentation论文

RCNN-Rich feature hierarchies for accurate object detectionreference link1:http://blog.csdn.net/wopawn/article/details/52133338 reference link2: http://blog.csdn.net/shenxiaolu1984/article/details/51066975

2017-10-03 23:49:19 310

原创 60. Permutation Sequence

题目: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the following sequence (ie, for n = 3): “123” “132” “

2017-10-03 21:37:58 153

原创 RCNN学习笔记(0)-RCNN->SPPnet->Fast RCNN->Faster RCNN

发展流程: RCNN->SPPnet->Fast-RCNN->Faster RCNN->YoLo RCNN: RCNN可以看做是 RegionProposal+CNN这一框架的开山之作,在imgenet/voc/mscoco上基本上所有top的方法都是这个框架。RCNN的主要缺点是重复计算。 SPPnet:MSRA的kaiming组的SPPnet 对RCNN重复计算的缺点,做出了相应

2017-10-02 21:14:17 342

原创 《Deep Self-Taught Learning for Weakly Supervised Object Localization》

本文提出依靠检测器自身不断改进训练样本质量,不断增强检测器性能的一种全新方法,破解弱监督目标检测问题中训练样本质量低的瓶颈。Weakly Supervised Objection Localization——弱监督目标定位 也就是说我们训练的图像只有针对图像的【注释】,没有包含物体的矩形框,入论文中的图片所示: 可以很显然的看出,这种无矩形框的弱监督学习要比有矩形框的学习 难很多。 本

2017-09-30 18:31:49 579

原创 LeetCode70.Climbing Stairs

70.Climbing Stairs

2017-09-29 17:37:47 148

原创 242. Valid Anagram

Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = "car", return false.【思路】 方法一  排序后 判断是否

2017-04-05 21:27:23 126

原创 274. H-Index

Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According to the definition of h-index on Wikipedia: "A

2017-04-05 21:09:50 147

原创 290. Word Pattern

Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter inpattern and a non-empty word in str.Examp

2017-04-05 20:55:55 235

原创 299. Bulls and Cows

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint t

2017-04-05 20:32:12 109

原创 336. Palindrome Pairs

Given a list of unique words, find all pairs of distinct indices(i, j) in the given list, so that the concatenation of the two words, i.e.words[i] + words[j] is a palindrome.Example 1:Given wo

2017-04-05 20:13:12 122

原创 350. Intersection of Two Arrays II

Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return[2, 2].Note:Each element in the result should appear as many ti

2017-03-30 18:52:37 119

原创 409. Longest Palindrome

Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.This is case sensitive, for example "Aa" is not con

2017-03-28 21:26:42 115

原创 438. Find All Anagrams in a String

Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase English letters only and the length of both strings s and p will not be lar

2017-03-28 20:50:52 146

原创 447. Number of Boomerangs

Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the distance between i and j equals the distance between i and k (the order of

2017-03-28 20:28:05 233

原创 454. 4Sum II

Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make problem a bit easier, all A, B, C, D have same l

2017-03-28 20:15:49 203

原创 525. Contiguous Array

Total Accepted: 4967 Total Submissions: 14341 Difficulty: Medium Contributors: bishwaGiven a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.Examp

2017-03-28 19:33:46 665

原创 349. Intersection of Two Arrays

Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2].Note:Each element in the result must be unique.The res

2017-03-27 21:37:00 297

原创 347. Top K Frequent Elements

Given a non-empty array of integers, return the k most frequent elements.For example,Given [1,1,1,2,2,3] and k = 2, return [1,2].Note: You may assume k is always valid, 1 ≤ k ≤ number

2017-03-27 21:31:38 141

原创 451. Sort Characters By Frequency

Given a string, sort it in decreasing order based on the frequency of characters.Example 1:Input:"tree"Output:"eert"Explanation:'e' appears twice while 'r' and 't' both appear once.So 'e'

2017-03-27 20:35:13 179

原创 389. Find the Difference

Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was

2017-03-27 20:16:49 175

原创 136. Single Number

Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without using ext

2017-03-27 19:52:13 151

原创 463. Island Perimeter

You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely

2017-03-24 17:16:00 134

原创 500. Keyboard Row

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.Example 1:Input: ["Hello", "Alaska", "

2017-03-24 16:29:28 182

原创 535. Encode and Decode TinyURL

Note: This is a companion problem to the System Design problem: Design TinyURL.TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and

2017-03-24 16:24:20 345

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除