自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 FaceNet算法

人脸检测:人脸检测就是获取图像中所有人脸的位置,并对人脸进行对齐。由于原始图像中的人脸可能存在姿态、位置上的差异,我们需要在获取人脸位置后,检测人脸中的关键点,根据这些关键点将人脸统一校准,以消除姿势不同带来的误差。这方面代表性的算法是MTCNN算法。人脸识别:输入一张人脸,判断其属于人脸数据集中的哪一个人。这方面的代表算法是facenet。具体来说,就是使用深度卷积网络,将输入的人脸图像转换为一个向量,然后与数据集中各个人脸的向量计算两个向量之间的欧氏距离,对于同一个人的人脸图像,对应的两个向量之间的

2020-07-30 15:37:16 868

原创 MTCNN

1、简介计算机视觉方面一直在疯狂地追求更大更硬更强的神经网络模型。但有时候,更大更硬更强并不是件好事,模型太大,显存不够放不进去,很麻烦,更别提应用到移动设备上了。模型不够大就不够强,不够小就不够快。而MTCNN,就是在计算机视觉人脸检测和矫正中,兼顾小而准的代表作品。也就是利用滑动窗口的方法,在图片当中将小框框每次向右移动一定的长度,然后获得下一个框框,当框框移动到第一行的最后的时候,则第一行取完了 之后向下平移,此时当做第二行。简单总结就是将框框按照一定的长度平移,遍历整张图片,.

2020-07-29 22:13:46 987

转载 Python Socket 网络编程

http://www.cnblogs.com/hazir/p/python_socket_programming.html

2018-04-10 20:03:07 141

原创 Invitation Cards POJ - 1511

题意:计算从1到各个点的最小花费和从各个点到1的最小花费总和题解:因数据量太大,不能用Bllmen-Ford,Dijkstra,Floyd算法,故用Spaf算法。和Dijkstra算法有优先队列和队列的区别注意:计算从各个点到1的最小花费时,可以把路径都倒过来,转变成单源最短路径问题#include #include#include#include#include#i

2017-07-25 11:35:23 247

转载 SPFA算法

http://www.61mon.com/index.php/archives/196/

2017-07-24 17:16:44 169

原创 Subway POJ - 2502

题意:首先给予家和学校的坐标,接下来是诺干条地铁线,也由诺干个坐标组成,步行10km/h,坐地铁40km/h,输出从家到学校的最短距离思路:考虑用地铁的时候就用subwey,不能用地铁的时候用walk,剩下的就是求最短路径#include #include#include#include#include#include#include#include#include

2017-07-23 16:02:38 337

原创 并查集总结

并查集是一种管理元素分组的数据结构,是使用树形结构实现的作用:   1、查询元素a,b是否属于同一组   2、合并元素a,b所在的组(只能进行合并,无法进行分割)注意:   为避免退化发生,需进行以下操作:       1、对于每棵树,记录数的高度rank       2、合并时如果两棵树的rank不同,从rank小的向rank大的连边   通过find可以路径压缩

2017-07-23 10:02:59 148

原创 汉诺塔问题

题目描述 Description汉诺塔问题(又称为河内塔问题),是一个大家熟知的问题。在A,B,C三根柱子上,有n个不同大小的圆盘(假设半径分别为1-n吧),一开始他们都叠在我A上(如图所示),你的目标是在最少的合法移动步数内将所有盘子从A塔移动到C塔。游戏中的每一步规则如下:1. 每一步只允许移动一个盘子(从一根柱子最上方到另一个柱子的最上方)2. 移动的过程中,你必须保证大

2016-03-12 16:12:44 307

原创 蛇形矩阵

题目描述 Description小明玩一个数字游戏,取个n行n列数字矩阵(其中n为不超过100的奇数),数字的填补方法为:在矩阵中心从1开始以逆时针方向绕行,逐圈扩大,直到n行n列填满数字,请输出该n行n列正方形矩阵以及其的对角线数字之和.输入描述 Input Descriptionn(即n行n列)输出描述 Output Description

2016-03-12 14:31:48 228

原创 3n+1问题

题目描述 Description 3n+1问题是一个简单有趣而又没有解决的数学问题。这个问题是由L. Collatz在1937年提出的。克拉兹问题(Collatz problem)也被叫做hailstone问题、3n+1问题、Hasse算法问题、Kakutani算法问题、Thwaites猜想或者Ulam问题。问题如下:(1)输入一个正整数n;(2)如果n=1则结束;(3)如

2016-03-05 11:27:58 851

原创 递归第一次

题目描述 Description 同学们在做题时常遇到这种函数f(x)=5 (x>=0)f(x)=f(x+1)+f(x+2)+1 (x下面就以这个函数为题做一个递归程序吧输入描述 Input Description 一个数表示f(x)中x值大家注意就一个数,前面代表样例编号输出描述 Output Description 一个数

2016-03-05 11:26:38 269

原创 数的计算

我们要求找出具有下列性质数的个数(包含输入的自然数n):先输入一个自然数n(n1.          不作任何处理;2.          在它的左边加上一个自然数,但该自然数不能超过原数的一半;3.          加上数后,继续按此规则进行处理,直到不能再加自然数为止.输入描述 Input Description 一个数n输出描述 Ou

2016-03-03 16:42:17 318

原创 Find The Multiple

DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater tha

2016-02-26 20:32:21 175

原创 The Best Gift

DescriptionEmily's birthday is next week and Jack has decided to buy a present for her. He knows she loves books so he goes to the local bookshop, where there aren books on sale from one of m

2016-02-26 16:48:38 260

原创 Factory

DescriptionOne industrial factory is reforming working plan. The director suggested to set a mythical detail production norm. If at the beginning of the day there werex details in the factory st

2016-02-26 16:47:37 247

原创 C- Expression

DescriptionPetya studies in a school and he adores Maths. His class has been studying arithmetic expressions. On the last class the teacher wrote three positive integersa, b,c on the blackboar

2016-02-26 16:46:26 362

原创 B-Queue on Bus Stop

DescriptionIt's that time of the year when the Russians flood their countryside summer cottages (dachas) and the bus stop has a lot of people. People rarely go to the dacha on their own, it's usua

2016-02-26 16:45:29 267

原创 A-Playing with Paper

DescriptionOne day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangulara mm  × b mm sheet of paper (a > b). Usually the first step in making an origami

2016-02-26 16:44:05 394

原创 Vitaly and Strings

DescriptionVitaly is a diligent student who never missed a lesson in his five years of studying in the university. He always does his homework on time and passes his exams in time.During the l

2016-02-26 16:41:55 219

原创 Link/Cut Tree

DescriptionProgrammer Rostislav got seriously interested in the Link/Cut Tree data structure, which is based on Splay trees. Specifically, he is now studying theexpose procedure.Unfortunately,

2016-02-26 16:40:54 167

原创 Simple Game

DescriptionOne day Misha and Andrew were playing a very simple game. First, each player chooses an integer in the range from1 to n. Let's assume that Misha chose numberm, and Andrew chose numb

2016-02-26 16:40:14 182

原创 Comparing Two Long Integers

DescriptionYou are given two very long integers a, b (leading zeroes are allowed). You should check what numbera or b is greater or determine that they are equal.The input size is very large s

2016-02-26 16:38:33 260

原创 Chewbaсca and Number

DescriptionLuke Skywalker gave Chewbacca an integer number x. Chewbacca isn't good at numbers but he loves inverting digits in them. Inverting digitt means replacing it with digit 9 - t. Hel

2016-02-26 16:37:46 228

原创 福利局

DescriptionBackgroundProfessor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of th

2016-02-26 16:34:59 470

原创 娱乐局

Description严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生经常彼此相通,一个学生可以同时加入几个小组。为了防止非典的传播,NSYSU收集了所有学生

2016-02-26 16:34:00 678

原创 Guess the Permutation

DescriptionBob has a permutation of integers from 1 to n. Denote this permutation as p. Thei-th element of p will be denoted aspi. For all pairs of distinct integersi, j between 1 and n,

2016-02-26 16:31:52 356

原创 Two Bases

DescriptionAfter seeing the "ALL YOUR BASE ARE BELONG TO US" meme for the first time, numbersX and Y realised that they have different bases, which complicated their relations.You're given a n

2016-02-26 16:30:45 252

原创 Pasha and Stick

DescriptionPasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and

2016-02-26 16:29:55 170

原创 USB Flash Drives

DescriptionSean is trying to save a large file to a USB flash drive. He has n USB flash drives with capacities equal to a1, a2, ..., an megabytes. The file size is equal tom megabytes. Fin

2016-02-26 16:27:19 411

原创 Duff and Meat

DescriptionDuff is addicted to meat! Malek wants to keep her happy for n days. In order to be happy in i-th day, she needs to eat exactlyai kilograms of meat.There is a big shop uptown and

2016-02-26 16:25:48 224

原创 Calculating Function

DescriptionFor a positive integer n let's define a functionf:f(n) =  - 1 + 2 - 3 + .. + ( - 1)nnYour task is to calculate f(n) for a given integern.InputThe single line contain

2016-02-26 16:24:35 473

原创 Gravity Flip

DescriptionLittle Chris is bored during his physics lessons (too easy), so he has built a toy box to keep himself occupied. The box is special, since it has the ability to change gravity.There a

2016-02-26 16:23:27 263

原创 Alternating Current

DescriptionMad scientist Mike has just finished constructing a new device to search for extraterrestrial intelligence! He was in such a hurry to launch it for the first time that he plugged in the

2016-02-26 16:21:24 271

原创 Insomnia cure

Description«One dragon. Two dragon. Three dragon», — the princess was counting. She had trouble falling asleep, and she got bored of counting lambs when she was nine.However, just counting drago

2016-02-26 16:20:20 354

原创 Two Substrings

DescriptionYou are given string s. Your task is to determine if the given strings contains two non-overlapping substrings "AB" and "BA" (the substrings can go in any order).InputThe

2016-02-26 16:18:37 217

原创 Face Detection

DescriptionThe developers of Looksery have to write an efficient algorithm that detects faces on a picture. Unfortunately, they are currently busy preparing a contest for you, so you will have to

2016-02-26 16:17:29 429

原创 Soldier and Badges

DescriptionColonel has n badges. He wants to give one badge to every of hisn soldiers. Each badge has a coolness factor, which shows how much it's owner reached. Coolness factor can be increas

2016-02-26 16:15:55 266

原创 Case of the Zeros and Ones

DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thought about a string of length n consisting of

2016-02-26 16:13:55 197

原创 Uncowed Forces

DescriptionKevin Sun has just finished competing in Codeforces Round #334! The round was 120 minutes long and featured five problems with maximum point values of 500, 1000, 1500, 2000, and 2500, r

2016-02-26 16:12:48 173

原创 Plate Game

DescriptionYou've got a rectangular table with length a and widthb and the infinite number of plates of radiusr. Two players play the following game: they take turns to put the plates on the t

2016-02-26 16:11:17 923

空空如也

空空如也

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

TA关注的人

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