A frog can jump up one step or two at a time.Find out how many jumping methods the frog can use to jump up an n-step.
class Solution: def jumpFloor(self, number): # write code here if number==1 :return 1 if number==2 :return 2 a,b=1,2 for i in range(3,number+1): c=a+b a=b b=c return c
There was a problem with yum install today. It took half a day to find a feasible solution.
fastestmirror is an acceleration plug-in of yum. Here is the plug-in hint that the plug-in is not available.
Don't use it if it can't be used. Disable it and let yum talk about it first.
1. Modify the configuration file of the plug-in
# vi /etc/yum/pluginconf.d/fastestmirror.conf
= 1//changed from 1 to 0 to disable the plug-in
3.4 C+++Arithmetic Operator You may still remember the arithmetic exercises done by inside in school, and you can have the same fun on the computer.C++ uses arithmetic operators to operate.It provides several operators to complete the basic arithmetic operations in 5: addition, subtraction, multiplication, division and modulo.Each operator uses two values (operands) to calculate the result.Operators and their operands form expressions.For example, in the following statement: int wheels = 4
Android Face Recognition II (Call Open Source Face Recognition Algorithm seetaface Detection) https://github.com/seetaface/SeetaFaceEngine (official address of Seetaface)If necessary, you can study this algorithm yourself. I got it from the Internet by encapsulating open source c++ into so files through NDK and calling through JNI.https://www.zhihu.com/question/50631245 Detection speed: Each picture is about 1700 milliseconds (MI note as testing machine)Several Points to Pay Attention to There is only so under armeabi-v7a, so it
C# Code calling C++, Opencv can be managed or unmanaged
The form of non-dragging pipe is the form of [DllImport], which can only call C++ functions.
Managed form is ref and methods in C++ classes can be called
The following unmanaged form is preferred:
1, unmanaged form without parameter passing
(1). that "win32 project" establish in C++is an application program in dll format
(2). new cpp program add.cpp
1、MTCNN_face_detection_alignmentSource: Self-recommendation ProjectAddress: https://github.com/kpzhang93/MTCNN_face_detection_alignment Project Description: MTCNN from https://kpzhang93.github.io/MTCNN_face_detection_alignment/, a 2016 ECCV paperPaper/spl.pdf has been successfully applied in industrial applications at present. Many company detection modules use MTCNN or its accelerated version. MTCNN trains face detection and key point detection by using a model as a MultiTasks method. When inference, it can get both face frame information and key point information recommendation reasons: face detection is a very classic work in the field.
unsigned char * result _ buffer//buffer, which must be 0x20000 bytes in size.buffer memory for storing face detection results, !!its size must be 0x20000 Bytes!!Unsignedchar * gray _ image _ data//single channel gray image (y in YUV data)Intwidth//width of single-channel gray imageIntheight//height of single-channel gray imageIntstep//the step parameter of the single-channel gray image is the same as the width of the single-channel gray image, inputimage, itmustbegray (single-channel) image!Float scale//The scale