Skip to content

Tasswon/opencv_apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Opencv Apps

Histogram Equalization

Gui Library: PyQt5
Image Library: OpenCV

The function coordinates with a class variable holding an image location. The initial check verifies that the image contains a value and is the correct type. Once this is verified, it displays the image prior to performing the actual histogram equalization. Three arrays, 256 indices in size (0 -255) are setup to coordinate RGB values.

Image Morph

Gui Library: PyQt5
Delaunay Library: scipy.spatial.Delaunay
Image Library: OpenCV

The images do not need to be the same size, however they must have the same number of manually selected key points. This is verified prior to performing the actual triangulation between the two sets of points. Additionally, the key points should be in the same relative position, to avoid unexpected shifts.

An issue with this task is related to the actual functions utilized in opencv itself. The affine transformation is applied to the entire image, whereas the purpose is to apply it to the individual triangles. The original function applied a simple methodology, however it requires many key points to smooth out the result. Therefore, cropping the image with a bounding box was used to efficiently mitigate this problem.

Classifier

Image Library: OpenCV Object Detector: Vitamin D Pill Bottle

The program was trained to detect a Vitamin D pill bottle using a haar cascade classifier. The program opens a webcam and then a bounding box will appear around and follow the bottle upon entering the frame.

About

Basic opencv programs made with a PyQt5 gui.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages