3월, 2020의 게시물 표시

Creating ClockClock24 using opencv

이미지
ClockClock24 Do you know ClockClock24? ClockClock24 is kinetic art by Humans since 1982. Twenty-four analog clocks form a large digital clock. Clever arrangement of the clock hands transforms the analog clocks into seven-segment displays. <captured from https://www.humanssince1982.com/clockclock24>  Here's an introduction video. This fantastic clock can also be purchased directly online Moma Design Store . But the price is not easy. The price is surprisingly 5,400 $ <Moma online store> I came across a page a few days ago that implemented Clock Clock 24 on the Raspberry Pi. The url is https://manu.ninja/clock-clock-24-on-a-raspberry-pi-using-web-technologies . This work is implemented on the web using Javascript. I wanted to implement this work in Python using OpenCV. ClockClock24 development using OpenCV ClockClock24 uses a total of 24 clocks of 3(H) X 8(W). And 2X8 clocks display one of the numbers from 0 to 9. The numbers 0...

Playing YouTube videos using OpenCV

이미지
So far, we have dealt with many examples of playing video files such as mp4, avi, or frames captured using an input device such as a webcam. In this post, we will learn how to play YouTube videos using OpenCV. You can download the source codes here( https://github.com/raspberry-pi-maker/OpenCV ) prerequisite You only need to install the papy, youtube-dl packages. pip3 install papy pip3 install --upgrade youtube-dl Pafy Objects and Stream Objects Pafy objects relate to videos hosted on YouTube. They hold metadata such as title, viewcount, author and video ID. Stream objects relate to individual streams of a YouTube video. They hold stream-specific data such as resolution, bitrate and url. Each Pafy object contains multiple stream objects. If you use papy, you can get information about youtube videos as follows. import pafy url = 'https://www.youtube.com/watch?v=M-UKXCUI0rE' video = pafy . new(url) #The author of the video (str) print(video . author...