All Projects → timfeirg → Fourier Descriptors

timfeirg / Fourier Descriptors

OpenCV project for my image processing course, horribly bad work.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Fourier Descriptors

Mocr
Meaningful Optical Character Recognition from identity cards with Deep Learning.
Stars: ✭ 19 (-32.14%)
Mutual labels:  opencv
Hadoop Pot
A scalable Apache Hadoop-based implementation of the Pooled Time Series video similarity algorithm based on M. Ryoo et al paper CVPR 2015.
Stars: ✭ 8 (-71.43%)
Mutual labels:  opencv
Anonymize Video
Replace faces in a video with imaginary persons generated by a progressive GAN deep neural network
Stars: ✭ 15 (-46.43%)
Mutual labels:  opencv
Skydetector
A Python implementation of Sky Region Detection in a Single Image for Autonomous Ground Robot Navigation (Shen and Wang, 2013)
Stars: ✭ 23 (-17.86%)
Mutual labels:  opencv
Camodet
Lightweight Simple CAmera MOtion DETection application.
Stars: ✭ 26 (-7.14%)
Mutual labels:  opencv
Raspberryrobot
基于树莓派的智能机器人
Stars: ✭ 11 (-60.71%)
Mutual labels:  opencv
Neuralsuperresolution
Real-time video quality improvement for applications such as video-chat using Perceptual Losses
Stars: ✭ 18 (-35.71%)
Mutual labels:  opencv
Facetracker
Real time deformable face tracking in C++ with OpenCV 3.
Stars: ✭ 944 (+3271.43%)
Mutual labels:  opencv
Facerec Lock
Face recognition to control servo lock using Raspberry Pi and OpenCV
Stars: ✭ 7 (-75%)
Mutual labels:  opencv
Docker Opencv
OpenCV image for Docker based on Ubuntu.
Stars: ✭ 14 (-50%)
Mutual labels:  opencv
Pytesseractid
使用 pytesseract ocr 识别 18 位身份证号
Stars: ✭ 23 (-17.86%)
Mutual labels:  opencv
Jpegrtspcamera
Sample RTSP server streaming MJPEG video from PC camera
Stars: ✭ 25 (-10.71%)
Mutual labels:  opencv
Surf Opencv Inclination
Indentify an object by SURF algorithm using OpenCV and calculate the rotatinal angle of the object
Stars: ✭ 12 (-57.14%)
Mutual labels:  opencv
Ncappzoo
Contains examples for the Movidius Neural Compute Stick.
Stars: ✭ 902 (+3121.43%)
Mutual labels:  opencv
Facerecognition2
Mediante el uso de un script con OpenCV aprenderemos las caras que nos interesen y con otro script arrancaremos la función de reconocimiento. Control de acceso al laboratorio con reconocimiento facial.
Stars: ✭ 20 (-28.57%)
Mutual labels:  opencv
Prlib
Pre-Recognition Library - library with algorithms for improving OCR quality.
Stars: ✭ 18 (-35.71%)
Mutual labels:  opencv
Idcardgenerator
身份证图片生成工具 generate an id card picture
Stars: ✭ 862 (+2978.57%)
Mutual labels:  opencv
Enhanced Image Colour Transfer
An Enhanced Implementation of the Colour Transfer Method Proposed by E Reinhard et al.
Stars: ✭ 28 (+0%)
Mutual labels:  opencv
Kinectwithopencvforunityexample
Kinect with OpenCV for Unity Example
Stars: ✭ 20 (-28.57%)
Mutual labels:  opencv
Reproject Image To 3d
Comparing a OpenCV's reprojectImageTo3D to my own
Stars: ✭ 13 (-53.57%)
Mutual labels:  opencv

Really horrible work from college. Sorry, internet.

The Computation Of Fourier Descriptors And Several Classifiers

This is the final project for my Digital Image Processing course, written in python. Everything including error estimation are included in the code, run using python 2.x with OpenCV and Numpy will produce roughly the same result as shown below.

The project is merely Laboratory Projects for Digital Image Processing by Gonzalez and Woods, project 12 (中文版) , go take a look.

Summary

In a word, I'm trying to compute the fourier descriptors of an arbitrary shape (the shape must be white on black BTW), and reconstruct the contour of the image using the minimum number of descriptors. And based on these descriptors that I've selected I try to construct SVM classifier, Bayers classifier, and minimum distance classifier using descriptors contaiminated by gaussian noise.

I took a long time accepting the fact that the classifiers works too well to believe, in all three cases the classifiers gives a success rate of 100%, I managed to explain within the program.

The result

As mentioned, for all three classifiers the success rate are 100%, you can play with the noise, that ought to make a difference. The following screenshot is the result using 18 descriptors.

result

The program, and the traps

  • when you're truncating, say, 20 from the fourier descriptors, it's vital that these 20 frequencies should be zero symmetric, or else you'd reconstruct weird shape.
  • 2 descriptors are enough for 100% success rate, print the training set and you'll know why.

Reference

The text book was somehow difficult to understand, I basically learn everything based on internet, so the approach I use may not be accurately the same as what it's like in the text book.

Minimum distance classifier

Bayers classifier

Misc

Check out all the other stuff inside this repository to see if there's anything helpful, there're all sorts of pdf files for reading.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].