Python learning--face detection and labeling using dlib and opencv

Reference from https://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/ If you want to learn more, you can pay attention to the article of Mr. Wu Ke. This article does not cover the training section on face detection (although I will send related articles later as I learn more), it is just a simple wheel.   Today we will us ...

Added by xenophobia on Fri, 17 May 2019 17:19:37 +0300

Python knows it: Classethod and Staticmethod methods

Explain one Generally speaking, to use a method of a class, you need to instantiate an object before calling a method.  Using @static method or @class method, you can call directly the class name. method name () without instantiation.  This is good for organizing the code, putting some functions that should belong to ...

Added by DanielStead on Fri, 17 May 2019 14:34:58 +0300

hue Upgrade Document

First, identify our two installation packages: hue.zip (This package can also be downloaded from our git repository, and I'll send you a link) huetool.zip Then stop hue's service at the CDH's management interface: 1, Enter hue 2, Select an instance 3, select Hue Server 4, select Action -> Stop this Hue Server After stopping the hu ...

Added by MrKaraokeSteve on Fri, 17 May 2019 10:36:05 +0300

Python's 22 programming skills, please accept!

1. Exchange two digits in situ Python provides an intuitive way to assign and exchange (variable values) in a single line of code. See the following example: x,y= 10,20 print(x,y) x,y= y,x print(x,y) #1 (10, 20) #2 (20, 10) A new tuple is formed on the right side of the assignment and unpack on the left side to the variables < a > and & ...

Added by jdeer0618 on Fri, 17 May 2019 05:37:59 +0300

Hand handle Ubuntu 16.04+cuda9.0+cudnn 7.1+Anaconda+tensorflow-gpu+keras

  It's all tear and blood. Notes after reinstalling the system (Note that I didn't check it, the graphics card settings can refer to other posts) Install CUDA Download address, official website or Baidu cloud, Baidu cloud address https://pan.baidu.com/s/1ZjI3LDlLpRf_NSVsrj7WSw iqqx Official website download failed, not to ...

Added by wafawj on Fri, 17 May 2019 03:09:42 +0300

My way to self-study Python (Phase 2 Day8)

1. Some Usages of Decorators and Functions from functools import wraps def wrapper(func): @wraps(func) def inner(): func() return inner @wrapper def func1(): '''jisfhsdkfkd''' print('ddf') print(func1.__name__) func1() print(func1.__doc__) # def index(): # '''This is a homepage information.''' # print('from ...

Added by euph on Fri, 17 May 2019 02:25:58 +0300

python Tripartite Library requests - Quick Start

Based on 2.21.0 Send request Send GET requests: r = requests.get('https://api.github.com/events') Send POST request: r = requests.post('https://httpbin.org/post', data={'key':'value'}) Other request interfaces are identical to HTTP request types, such as PUT, DELETE, HEAD, OPTIONS, etc. Using parameters in URL query strings Pass a dictionary ob ...

Added by Herk on Thu, 16 May 2019 18:33:00 +0300

Python exceptions and files in the Python Learning Manual

In the last article, we introduced Python's functions and modules, and now we introduce exceptions and files in Python. To view the previous article, please click: https://www.cnblogs.com/dustman/p/9963920.html Exceptions and documents abnormal Exceptions are also called exceptions. You've seen exceptions in previous articles. When program runn ...

Added by melittle on Thu, 16 May 2019 13:10:13 +0300

s21day30 python notes

I. Content Review and Supplement Brief description of three handshakes and four waves The three handshake accept accepts connections waiting for clients in the process connect client initiates a syn link request If you get the server-side response ack, you will also receive a syc link request from the server-side. After the client responds ...

Added by sherrilljjj on Thu, 16 May 2019 04:42:17 +0300

Python 3 Eurasian Plan Problem 84 Millionaire

EulerProject.png For more questions, see: https://www.jianshu.com/p/8c3ec805433d 84. Monopoly The standard chessboard of the moneybags is roughly as follows: Monopoly.png _Starting from the square marked with GO, throw two six-sided dice, and take the sum of the points as the number of steps forward in this round. If n ...

Added by gurhy on Thu, 16 May 2019 04:38:54 +0300