RSS
 

Archive for the ‘Computer’ Category

Third Year Robotics Project

19 Nov

This was a project at the University of Warwick, the task was to make the robot autonomously navigate around a block of buildings.
It was achieved this by using a LiDAR for wall following and a GPS for navigating around the open areas.
The video is running at 2x.

httpvh://www.youtube.com/watch?v=tZo0-6XdmVA

 
No Comments

Posted in Computer

 

Closing gaps in image

18 Nov

This an example on how to use morphological operator in OpenCV to close gaps.

int main(int argc, char* argv[])
{
IplImage *image;
IplImage *dilated_image;
IplImage *eroded_image;
image = cvLoadImage ("triangle.jpg");

dilated_image = cvCloneImage (image);
eroded_image = cvCloneImage (image);

cvNamedWindow ("Original", 1);
cvNamedWindow ("Dilated", 1);
cvNamedWindow ("Eroded", 1);

cvShowImage ("Original", image);

cvDilate (image, dilated_image, 0, 7);
cvShowImage ("Dilated", dilated_image);

cvErode (dilated_image, eroded_image, 0, 6);
cvShowImage ("Eroded", eroded_image);

cvWaitKey ();

cvReleaseImage (&image);
cvDestroyWindow ("Original");
cvReleaseImage (&dilated_image);
cvDestroyWindow ("Dilated");
cvReleaseImage (&eroded_image);
cvDestroyWindow ("Eroded");

return 0;
}

 
1 Comment

Posted in OpenCV

 

Equation editor

18 Nov

I found a very good online service to edit equation and recieve them as a picture ready to put in your document or your web page.

 
 

Circle detection

16 Nov

This a source code for sircle detection.

void findCircles( IplImage* img, CvMemStorage* storage ){
CvSeq* circles;
IplImage* cpy = cvCreateImage(cvGetSize(img),8,1);
int i;
float* circ;
cvCvtColor(img,cpy,CV_RGB2GRAY);
circles =
cvHoughCircles(cpy,storage,CV_HOUGH_GRADIENT,2,cpy->height/4,200,100);
for(i=0;i < circles->total;i++){
CvSeq
circ=(float*)cvGetSeqElem(circles,i);

cvCircle(img,cvPoint(cvRound(circ[0]),cvRound(circ[1])),cvRound(circ[2]),CV_RGB(255,255,255),1,8,0);
}
cvReleaseImage(&cpy);

}
 
No Comments

Posted in OpenCV

 

On-line Identity photos

08 Nov

Don’t miss anymore your identity photos. IdPhotoLand is the tool that you need. While being completely free, you will appreciate his ergonomics and its functionalities. It will remain you to print them on your photo printer, on any self-service digital photo kiosk or by online digital photo developing service.

* – Easy cropping compliant to the ISO/IEC 19794-5 standard
* – Choice of the final photo size
* – Resolution control
* – Red-eye removal
* – Brightness, contrast and saturation adjustments
* – Photo quantity on the board settings
* – Possibility of taking part in the gallery contests
* – Saving file of the board in jpeg format
* – Completely Free use

# – No subscribe needed
# – No software installation
# – No cookie needed
# – No javascript needed
# – No Java use
# – The pictures uploaded in the application remain confidential and are immediately deleted of our server
# – Only the photos to the gallery destination become public on your request