라벨이 numpy인 게시물 표시

Image Processing #10 - Zoom in animation

이미지
 I like to make various effects using OpenCV. If I knew how to use image processing programs such as video editing programs and Photoshop, I would probably have used these programs. But I am a programmer and I can hardly use these programs. So I enjoy using OpenCV to implement the effects I want. Zoom in Suppose you want to zoom in to a specific area in the original high-resolution image as shown below.   The final image area is marked with a box. And the display will use images of this box size. If you zoom in while maintaining the original resolution of image, the resolution will be much lower because you will need to zoom in on the gradually smaller image. This method is also possible, but I don't want the image resolution to be lowered. So at first, we will start zooming in by reducing the original image to the size of the box image. During zoom-in, the size of the image will gradually become similar to the size of the box, and the final image will be the box image. T...

Image transfer over the ethernet

이미지
You can download the source codes here( https://github.com/raspberry-pi-maker/OpenCV ) In this post, I'll show you how to display an image you've created or read from a file using OpenCV, on another computer. As a protocol for transmitting image data to another computer via Ethernet, UDP or TCP can be selected. We will use UDP here. The reason for this is as follows. In the same subnet, even if UDP communication is used, packet loss or duplication does not occur.  It's faster and lighter than TCP, so it's even better if you need to transfer multiple images per second, such as video. prerequisite There are several protocols for transferring images, but in this post, I will send uncompressed image data directly in the form of numpy arrays. Numpy over network The most important part of numpy data transfer and recovery is byte sorting of numpy data. The sender sorts bytes using the numpy tobytes () function. The receiver then creates a one-dimensional ...