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.