xugaoxiang | 迷途小书童

Python implementation to determine whether a point in a plane is inside a polygon?

surroundings python 3.8 foreword During target tracking, it is often necessary to determine whether the target appears in a certain area. The essence of this problem is to determine whether the point in the plane is inside the polygon. ray casting The following picture is from Wikipedia and illustrates the basic principle of Ray-casting Algorithm

Python implementation to determine whether a point in a plane is inside a polygon? Read More »

Python utility module (30) python-docx

environment python 3.8 python-docx 0.8.11 foreword python-docx is a library that can create and update word , the Microsoft word processor. Official warehouse address: https://github.com/python-openxml/python-docx . Install python d-docx , you can use pip directly pip install python-docx use Let’s take a look at an example of document creation from docx import Document from docx.shared

Python utility module (30) python-docx Read More »