Browsed by
Category: Computer Vision

Out of the depth and disparity

Out of the depth and disparity

This post will cover the concepts of image processing to generate and display image disparity or depth of field. This topic has been covered in earlier posts in regards to anaglyph imaging and OpenCV disparity mapping. The purpose of this post is to expand on this topic by demonstrating some features and limitations. Let’s start by leaving flatland. Flatland & the 4th Dimension – Carl Sagan This image is of a stereo card from the Missouri History Museum that is…

Read More Read More

ESP-32 Cam Low Light Use

ESP-32 Cam Low Light Use

This post will cover some use cases of the ESP-32 Cam module in low or no light conditions. The software and hardware of the ESP-32 Cam module will modified for this purpose. Some additional hardware examples will be introduced as well. Lastly, the use of FFMpeg will be demonstrated to further enhance the images gathered from the ESP-32 cam module. What are some reasons for the ESP-32 Cam module to be used in low or no light environments? The more…

Read More Read More

Color Isolation with FFMpeg

Color Isolation with FFMpeg

I had written a post awhile back about color isolation using imagemagick. Here is a recap, but this time using FFMpeg. This turned out to be a good color pattern to do testing against. the reason I prefer this is because it contains white and black space to visually understand the results of the filter. Lets try this command. ffplay -i “color-pattern.jpg” -vf “colorhold=0xFF0000:similarity=0.25” Now our image shows only the defined color threshold, in this example it’s red. Here are…

Read More Read More

Software Gimbal

Software Gimbal

In this post I’ll demonstrate how to stabilize and enhance low resolution video using FFMpeg. I will also discuss the pros and cons of hardware options available. From there the discussion will show examples of software options that have supplanted hardware. Lastly, I will introduce some examples of AI that others have used. The Z51 660mm Below is a side by side comparison of video taken from one of my fixed wing remote control (RC) planes. Here is the script…

Read More Read More

Camera Angular Calibration

Camera Angular Calibration

These are a couple of resources that I’ve used for RC camera information that you may find useful, https://www.chucklohr.com/808/c16/ and https://oscarliang.com/how-to-use-808-16-keychain-camera-manual-and-wiki/. Those links are specific to the 808-16 key chain camera which I have used for bike rides as well as drone flights. There is mention about field of view measurements in the first link. It references methods used which I was not able to reliably validate. http://www.rcgroups.com/forums/showpost.php?p=22171449&postcount=6843 and https://www.rcgroups.com/forums/showpost.php?p=22446815&postcount=7732 both use the Pythagorean theorem. The camera and background are…

Read More Read More

Cleaning Up Underwater Video

Cleaning Up Underwater Video

Last summer was a chance for me and my family to do some water activities in the area. Snorkeling was a big favorite for my son. One of the locations had a fresh stock of fish that drew our attention. Unfortunately, the water in the lake grew cloudy due to our movement and it was a challenge to see. On a follow up visit, we brought one of my 808-16 video cameras. It’s a 720p camera and I wasn’t too…

Read More Read More

The Golden Plate

The Golden Plate

I saw these two videos about the Voyager spacecraft and the Golden Plate each of them contain and found they fit with the other material posted here. “That’s here. That’s home. That’s us. On it everyone you love, everyone you know, everyone you ever heard of, every human being who ever was, lived out their lives. The aggregate of our joy and suffering, thousands of confident religions, ideologies, and economic doctrines, every hunter and forager, every hero and coward, every…

Read More Read More

Cutting through the smoke with Retinex

Cutting through the smoke with Retinex

This year, most of August was unfit for bike riding due to wildfire smoke in the air. There was a 10 day stretch where the visibility scale reached zero. Standing on the shores at Shilshole, the smoke was so thick that land wasn’t visible across the Puget Sound. I wondered if land was still visible from a digital camera, even though I couldn’t see it. There is an imaging processing technique call Retinex that is used to enhance the dynamic…

Read More Read More

FFMpeg motion detection

FFMpeg motion detection

FFMpeg motion detection offers a way to create videos that are smaller and shorter becuase it only captures changed scenes. This post discussed the topic, https://superuser.com/questions/984841/ffmpeg-remove-parts-without-motion. Here is the command I used based off of this conversation. ffmpeg -i “http://viewr1:viewr1@192.168.6.184/mjpeg/stream.cgi?chn=0” -vf “select=gt(scene\,0.004),setpts=N/(25*TB)” IPCam4_Motion.mp4 The one thing I noticed was the timestamp in the video is being detected as a scene change, this introduces a higher noise floor. I found that my lowest scene value to be .004. This site, http://www.bogotobogo.com/FFMpeg/ffmpeg_thumbnails_select_scene_iframe.php…

Read More Read More

DVR Video from Images Captured from IP Cameras

DVR Video from Images Captured from IP Cameras

Working with thousands of image files captured from IP Cameras can be problematic. I’ve experienced issues with Caja hanging when simply browsing the folders that contain the captured images. To work around this, I compile video with FFMpeg from the image stock into a separate folder. First I’ll create a file list using this command ls /home/local/Videos/Security/IPCam3_20180726*.jpg > /home/local/Scripts/IPCam3_20180726.txt The results will then need to be processed so FFMpeg can use the file as a reference. Before – Not ready…

Read More Read More