自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 BFS寻路算法 c++

#include <iostream>#include <vector>#include <queue>#include <algorithm> using namespace std;struct Node { int x; int y;};class Solution {public: vector<Node> shortestPathBinaryMatrix(vector<vector<.

2020-08-29 21:22:25 322

原创 leetcode 4. Median of Two Sorted Arrays (c++)

思路中位数为两个数组顺序合并后第(m+n+1)/2, (m+n+2)/2个数的均值该题思路转变为,求两个以排序数组的第k位数,定义i,j分别为两个数组的起始位该函数为递归函数,递归思路为,反之也是如此代码如下 int findKth(vector<int>& nums1, int i, vector<int>& num...

2019-11-27 11:17:02 169

原创 leetcode 3. Longest Substring Without Repeating Characters (c++)

思路定义一个hashset,两个指针分别指向子串的首尾,hashset存放指针内字符class Solution {public: int lengthOfLongestSubstring(string s) { int start_pointer=0; int end_pointer=0; int output=0; ...

2019-11-23 19:44:24 166

原创 leetcode 2. Add Two Numbers (c++)

思路同时遍历两个链表,顺序加和进位/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {...

2019-11-21 14:54:44 200

原创 leetcode 1. Two Sum (c++)

思路先排序,在查找class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { vector<pair<int,int>> total; for(int i=0;i<nums.size();...

2019-11-20 15:07:19 181

原创 技术面试总结(一)

cisco (software engineer):一面死锁产生原因,具体如何破坏? static_cast和dynamic_cast区别? new对象如何保证释放?(智能指针),哪一个智能指针? 算法题,一个乱序数组(0~100以内),通过排序实现,前段0~60,后段60~100? python和c++区别? 快排,归并排序,时间复杂度,最坏时间复杂度? hash表查询,时间复杂...

2019-11-08 20:24:37 240

原创 读源码google目标检测

object_detection/core定义各种class类,anchor_generator,box_coder,loss,detectionModelobject_detection/build该文件夹目的是根据config参数build相应的class类的参数object_detection/protos定义配置参数的可选范围object_detection/met...

2018-11-07 15:02:30 342

原创 tensorflow前馈神经网络

# -*- coding: utf-8 -*-"""Created on Tue Jul 25 14:31:19 2017@author: dell"""import tensorflow as tfimport scipy.io as scioimport numpy as npdata=scio.loadmat('train.mat')data_1 = data['tra

2017-07-25 17:13:08 643

原创 opencv教程(五)c++

opencv教程(五)行驶车辆识别c++Blob.h#ifndef BLOB_H //先测试BLOB_H是否被宏定义过#define BLOB_H //如果x没有被宏定义过,定义x,并编译程序段#include<opencv2/core/core.hpp>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highg

2017-07-15 23:24:32 2057 1

原创 opencv教程(四)c++

opencv教程(四)凸包检测c++凸包(Convex Hull)是一个计算几何图形学中的概念,在二维欧几里得空间中,凸包可想象为一条刚好包住所有点的橡皮圈。 对于给定二维平面上的点集,凸包就是将最外层的点连接起来构成的凸多边形。物体的凸包检测常常应用在物体识别,手势识别及边界检测等领域。 C++: void convexHull(InputArray points, OutputArray h

2017-07-15 18:26:33 1093

原创 opencv教程(三)c++

opencv教程(三)轮廓检测c++边缘检测函数 1)c++:void findContours( InputOutputArray image, OutputArrayOfArrays contours,int mode, int method, Point offset = Point()); 2)c++:void findContours( InputOutputArray image,

2017-07-15 15:28:17 4423

原创 opencv教程(二)c++

opencv教程(二)c++视频处理 VideoCapture类常用的函数 VideoCapture::open 打开视频文件或视频获取装置 VideoCapture::isOpened 判断视频文件读取是否正确,返回true则正确 VideoCapture::release 关闭视频流文件 VideoCapture::grab 抓住下一帧的视频文件或捕获设备 VideoCa

2017-07-14 16:29:43 932

翻译 opencv教程(一)(c++)

opencv教程3.1.0(一)(c++)opencv包含以下几个模块,每个模块中包含一些共享或者静态的库 1.core:一个定义基本数据结构的模块,包括密集的多维数组Mat和所有其他模块使用的基本功能。 2.Image processing:包括线性和非线性图像滤波,几何图像变换(调整大小,仿射和透视扭曲,通用的基于表的重新映射),色彩空间转换,直方图等的图像处理模块。 3.video:视频

2017-07-12 16:27:22 5990 1

原创 opencv人脸识别(c++)

opencv人脸识别(c++)配置环境 opencv3.1+vs2013 配置方法 How to install OpenCV 3.1 with visual studio 2013新建faceredetect.cpp,并把图片(obama.jpg)和haarcascade_frontalface_alt2.xml(或者haarcascade_frontalface_alt.xml)放在cpp

2017-07-12 10:40:06 2857

翻译 深度学习——keras

keras入门(一)利用keras一步一步实现你的第一个神经网络。(python) Keras是一个强大的易于使用的Python库,用于开发和评估深度学习模型。 keras包含两个高效的计算库,Theano and TensorFlow,利用少量的代码及可以实现神经网络模型。步骤 1.加载数据. 2.定义模型. 3.编译模型. 4.训练模型. 5.评估模型. 6.完整代码. 配置:

2017-07-10 16:41:56 695

空空如也

空空如也

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

TA关注的人

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