OpenCV 5: Transformations
Read in images and import both numpy and cv2: Translation Rotation Flipping
又一个WordPress站点
又一个WordPress站点
Read in images and import both numpy and cv2: Translation Rotation Flipping
Import Open CV and choose a picture to read in to be used later on. Gray Scale Blur Edge Cascade Dilating Image Eroding Image Resize Crop
The OpenCV can also allow us to edit the images by drawing on them or writing texts on them. Create Blank Image: We can draw and write on an existing image file or create a blank image and edit it. To create a blank image, we need to use the “np.zeros((500,500,3), dtype=’uint8′)” np.zeros((500,500,3), dtype=’uint8′): This […]
The size or scale of the image or video may sometimes be too big not as desired, we can fix the problem by changing the width and height of the file. To rescale an image or video, we need to create a function which I named it rescaleFrame. Two parameters need to be passed in, […]
I decided to start learning how to use the OpenCV library in Python! The OpenCV library is a popular computer vision library for beginners to use, it can be used for jobs like detecting objects and processing videos. By combining this library with Raspberry Pi, I will be able to achieve more applications. Reading Image: […]
The purpose of this is to realize the basic function of taking photos by programming and applying the camera module. Basic information about this camera: Number of Pixels Five million Resolution 2592×1944 Size 25 x 24 x 9 mm How to install the camera on the the Raspberry Pi? The installation of the Raspberry PI […]
An ultrasonic sensor is a sensor that measures distance. The idea is to utilize the property of sound waves of reflection to receive the reflected signal upon striking obstructions, and then use the speed at which the waves travel through the air to calculate distance. There are four pins on the sensor they are for 5V Supply, […]
It is very common to use human body detecting sensors – the infrared sensors in indoor security applications. The principle is that the detection element will detect the infrared radiation of the human body, and convert it into a weak voltage signal, which is amplified and output. In order to improve the detection sensitivity of […]
Temperature and humidity are also very common indicators in our daily lives, and I used the DHT11 digital temperature and humidity sensors on my Raspberry Pi. This is the wiring diagram of the DHT11 on the PiHAT, and we can see that the DHT11 is connected to pin 19 of the Raspberry PI, which can […]
DS18B20 is a commonly used digital temperature sensor, its output is a digital signal, small size, strong anti-interference ability, and high precision. It can measures temperatures from -55°C to +125°C (-67°F to +257°F) with an accuracy of ±0.5°C GND: Ground DQ: Data input and output VDD: Digital power supply The Raspberry PI is connected to […]