Recognizing QR codes and barcodes with OpenCV and Python
Computer vision expert Adrian roserock recently shared how to write a scanning program that can recognize QR code and bar code in real time with the help of OpenCV and Zbar. Finally, he deployed it on raspberry pie and successfully made a practical bar code & QR code scanning device.
Recently, a friend asked me if there are any modul ...
Posted by gullit on Wed, 27 Oct 2021 15:35:59 -0700
day13 package and file operations
Principle of import module
1. Introduction principle
When the code is executed to the import module, the system will automatically enter the specified module and execute all the codes in the module; If the same module is imported multiple times in the same program, the corresponding code will be executed only once.
# import test
# import tes ...
Posted by twooton on Wed, 27 Oct 2021 05:05:45 -0700
Python implementation of CART decision tree algorithm (detailed comments)
1, Introduction to CART decision tree algorithm
CART (Classification And Regression Trees) algorithm is a tree construction algorithm, which can be used for both classification tasks and regression. Compared with ID3 and C4.5, which can only be used for discrete data and classification tasks, CART algorithm has a much wider application. It can ...
Posted by elklabone on Wed, 27 Oct 2021 00:59:01 -0700
Function understanding of Python
Function: in short, it is a code block that encapsulates functions.
Functions: 1. Structured programming is the most basic encapsulation of code, which generally organizes a piece of code according to function 2. The purpose of encapsulation is to reuse and reduce redundant code 3. The code is more concise, beautiful and readable
Function def ...
Posted by ereimber on Tue, 26 Oct 2021 23:51:07 -0700
How does Python interact with C code in microphoton
1. Python code and C code character association
This section describes how Python characters are associated with C characters (such as module name, class name, variable name, function name, etc.) during module expansion? Take the ADC class name symbol as an example to illustrate the following association process:
C code character ADC
STATI ...
Posted by StormS on Tue, 26 Oct 2021 23:08:14 -0700
Routing management of flash framework
preface
Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection
Therefore, I dev ...
Posted by Sako on Tue, 26 Oct 2021 21:56:56 -0700
Basic operations of Index object Index and Index
pandas notes 004
4, Basic operations of Index object Index and Index
import pandas as pd
import numpy as np
1. Index object index
1.1 Series and DataFrame
Indexes in Series and DataFrame are Index objects.
Series:
pd1 = pd.Series(range(5),index = ['A','B','C','D','E']) #Create a Series index from the list and specify the index name ...
Posted by kaze on Tue, 26 Oct 2021 06:47:50 -0700
Python samples according to discrete probability distribution
1, Probability list + sample list
Task description: we often have a probability list and a sample list to represent the probability that each sample is selected, and in the probability list, the sum of the probabilities is 1. For example, [0.7, 0.2, 0.1] and ['iron man', 'Captain America', 'Thor'], the elements in ...
Posted by project168 on Tue, 26 Oct 2021 06:27:52 -0700
Watermelon selection (decision tree implementation)
1, Decision tree
Decision Tree (Decision Tree) is a decision analysis method that calculates the probability that the expected value of net present value is greater than or equal to zero by forming a Decision Tree on the basis of knowing the occurrence probability of various situations, evaluates the project risk and judges its feasibility ...
Posted by Aretai on Tue, 26 Oct 2021 04:53:39 -0700
State retention, exception handling and request hook
catalogue
1, State retention
1. HTTP protocol
2. cookie status hold
Set cookie return
Save Cookies
Not saved
Saved
3. session state hold
You need to set the secret key before storing the session
4. Exception handling
Custom 500
Custom 404
5. Hook function
Before being accessed for the first time, the hook function
H ...
Posted by Biocide on Tue, 26 Oct 2021 04:29:58 -0700