Implementation of simple opencv program on the mini2440 Platform

Source: Internet
Author: User

In the course of learning, I learned a lot from the knowledge achievements of online experts. Today, I finally succeeded in writing a simple program, which is a small summary of my learning. I also want to share my achievements with you.

During the transplantation of opencv to PC Linux and ARM Linux, we mainly learned the writing process of these two experts. Link:

Http://hi.baidu.com/guzhou_diaoke/item/4ea3e431fcb2e0b2633afff7#713670-baidu-1-12972-a19db458d50b3e9d45067067b6ce7d52

Http://blog.chinaunix.net/uid-28613314-id-3627661.html

This process is implemented on the basis of detailed reading and understanding.

Then, I wrote a very simple program. Tested.

#include <cv.h>#include <cxcore.h>#include 

Program compilation is executed in PC Linux, arm-Linux-G ++-I/usr/local/opencv-arm/include-L/usr/local/opencv-arm/lib-lopencv_core-lopencv_imgproc-lopencv_highgui-lopencv_ml- lopencv_video-lopencv_features2d-lopencv_calib3d-lopencv_objdetect-lopencv_contrib-lopencv_legacy
-Lopencv_flann-lpthread-LRT cannytest. cpp-O cannytest

Copy the generated execution file cannytest to ARM Linux and run./cannytest.(中,, image_bmp exists in arm, and the program will generate an outputimage.bmp image, which will be passed back to the Windows computer to see the result .)
 

See image_bmp.

This picture contains outputimage.bmp.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.