[Python data visualization] Matplotlib learning notes

[Python data visualization] Matplotlib learning notes (1) Introduction: Matplotlib is a Python 2D drawing library, which generates publishing quality graphics in various hard copy formats and cross platform interactive environments. With Matplotlib, developers can generate graphs, histograms, power ...

Posted by jwilley on Sat, 22 Feb 2020 06:33:43 -0800

(Python 3) opencv camera calibration

Preface The process of mapping coordinate points (in meters) in 3D world to 2D image plane (in pixels) can be described by a geometric model. There are many kinds of models, the simplest of which is called pinhole model. In order to get a good imaging effect, we add a lens in front of the camera. Th ...

Posted by guido88 on Sun, 16 Feb 2020 05:10:09 -0800

Introduction to Python neural network (handwritten digit recognition)

1.1 personal records ① Using Python 3.7 ② The editor is pycharm (I don't think it's easy to use, many libraries will fail directly, and print can't save - complaints of lazy cancer), the solution. For example, scipy, please download pip install scipy in cmd. imshow () does not show the problem of imag ...

Posted by David Rech on Sat, 08 Feb 2020 09:07:01 -0800

python machine learning practice -- decision tree algorithm in algorithm chapter (learning process and learning route are suitable for beginners)

Traditional machine learning has a lot of algorithms. The KNN that I sorted out in my last article is a kind of algorithm. The decision tree that I will talk about in this article is also a very important algorithm. Of course, it should be explained in advance that these algorithms also have a lot of sm ...

Posted by iantresman on Fri, 07 Feb 2020 06:46:08 -0800

Solve the problem that the installed module cannot be import ed

System: windows 10 Tools: python 3.7, pycharm, anaconda Problem: numpy cannot import First, check where the environment corresponding to your pycharm s interpreter is and whether there is any numpy package installed in it. Here I am in the base environment. In the anaconda prompt window, enter ...

Posted by enoyhs on Sun, 02 Feb 2020 22:45:58 -0800

How to solve the minimum triple distance in 8python

Title Description: Given three ascending integer arrays a[l], b[m], c[n], please find an element in each of the three arrays to minimize the distance between the triples. The definition of triple distance is: suppose a[i], b[j], c[k] is a triple, then the distance is: Distance=max(| a[i] - b[j] |,| a[ ...

Posted by metkat on Wed, 29 Jan 2020 05:06:26 -0800

Python Basics - day 5

10- iteration What objects in Python support for loops (or traversal)? Answer: iteratable objects, or objects that implement the iterator protocol, support traversal or looping. (e.g. list, tuple, dictionary, file). The feature is the internal implementation of the \. Example: f = open('hello.txt', en ...

Posted by Skull on Sun, 26 Jan 2020 21:14:00 -0800

Light reptile + OCR part I

The first reptile in life (python3) Preface This blog is used to record the first gadget written by Xiaobai in python. It takes more than a day. In addition, I am still learning. This blog is my opinion and notes. There will be many mistakes and shortcomings. I hope you can give me some advice. This ...

Posted by johnnyk on Fri, 24 Jan 2020 02:34:11 -0800

Making a screen recording tool with Python

1, Write in front As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn. 2, Effect display ...

Posted by Monkee Of Evil on Fri, 17 Jan 2020 07:09:22 -0800

Knight program DAY02

01 while loop while infinite loop while True: # Dead cycle print('Incantations of the Great Mercy') print('Two tigers') print('Great prince') print('Pick me up please,you skilled driver!') while Structure of the cycle: ''' while condition: //Circulatory body ''' # How to termin ...

Posted by iamtheironman on Thu, 16 Jan 2020 03:38:19 -0800