ITや趣味など気軽に投稿しています。
  • 2025年8月5日
  • 2025年8月5日

【Python】 Reading Images with OpenCV

What is OpenCV OpenCV is an open-source image processing library developed and published by Intel. It is currently being developed and is available in a variety of languages. Additionally, there are many programs available for object and person detection using OpenCV, which makes image recognition easy. OpenCV is developed in C++, but it can be used with a variety of languages, including Python, Java, and JavaScript. It also offers cross-platform support and can be used in various environments, including Windows, Linux, macOS, Android, and iOS. OpenCV Installation Note that, in the case of pip, it is OpenCV-Python, not OpenCV. The difference between OpenCV-Python and opencv-contrib is that OpenCV-Python only includes the main (core) module, whereas OpenCV-Contrib-Python includes the contrib (extra) module. OpenCV Practice Here is an example of working with OpenCV in Python. Importing OpenCV To import OpenCV, use the code below. Originally developed in C, it was called cv […]

  • 2025年8月4日
  • 2025年8月4日

【Docker】Building a Docker Desktop Environment on Windows

This article will explain how to build a Docker environment on Windows. Docker is essentially Linux-based, but it now also supports Windows. System requirements The system requirements for installing Docker on Windows are as follows: Docker is a Linux-based application. To run it on Windows, you must create a virtual Linux environment using either WSL2 or Hyper-V. If you use the current Docker Desktop installer, WSL2 will install alongside it. The default distribution is Ubuntu. If you want to use a Linux distribution other than Ubuntu with WSL2, you must install the distribution separately. Installing Docker Desktop Download installer First, download the installer from the official website. https://docs.docker.com/desktop/release-notes Select and download the Windows installer for your desired version. The Docker Desktop Installer.exe file will download and then, run it. After launching the installer, a window will appear. Check the box to put the Docker Desktop icon on your desktop, then […]

  • 2025年8月3日
  • 2025年8月3日

【Docker】 From Dockerfile Creation to Image Creation and Container Launch

Docker is a virtualization program that uses container technology. What is Docker? What is a container? We have previously explained what containers are. But how do you actually create and run one? This article will show you how to start the container. The relationship between Dockerfiles, images, and containers First, create the container and organize the necessary files. Dockerfile A Dockerfile is a file used to create containers in Docker. It defines the operating system, software, and programs used by the container. A Dockerfile is often regarded as a “design document” for a container. Docker Image A Docker image is generated from a Dockerfile, which can be built and executed by the Docker Engine. Docker Container A container is generated from a Docker image. Containers are processes that execute, or launch, the image. Since containers are processes, multiple containers can be started from a single image. Thus, stopping or deleting […]

  • 2025年8月3日
  • 2025年8月3日

【Docker】 Container operation using Docker Compose

This article will introduce container operations using Docker Compose. What is Docker Compose? Docker Compose is a tool that launches multiple Docker containers simultaneously. From a practical standpoint, it is likely that multiple containers will be used together. With Docker Compose, you can define the launch of multiple containers in a YAML file and launch them all together with a single command. Docker Compose Practice Practice using Docker Compose. It should have been installed with Docker. Run Docker Compose and verify that the help menu appears. This time, we will build a simple web server with Nginx + MySQL. Prepare the necessary files. This time, prepare the following file configurations: The docker-compose.yml file defines the containers to be launched. Each container is defined in the service. In this case, the web (Nginx) and database (MySQL) containers are defined. Since it is assumed that the two containers can communicate with each […]