×ðÁú¿­Ê±

ÉèÖÃLinuxϵͳÒÔÖ§³ÖǶÈëʽͼÏñ´¦Öóͷ£ÓëÅÌËã»úÊÓ¾õ¿ª·¢

ÉèÖÃlinuxϵͳÒÔÖ§³ÖǶÈëʽͼÏñ´¦Öóͷ£ÓëÅÌËã»úÊÓ¾õ¿ª·¢

ÔÚǶÈëʽͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õ¿ª·¢ÁìÓò £¬Linuxϵͳ¾ßÓÐÆÕ±éµÄÓ¦Óá£Í¨¹ýÉèÖÃLinuxϵͳ £¬ÎÒÃÇ¿ÉÒÔΪ¿ª·¢ÕßÌṩһ¸öÇ¿Ê¢µÄ¿ª·¢ÇéÐÎ £¬´Ó¶øʵÏÖÖÖÖÖͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õËã·¨µÄ¿ª·¢ºÍµ÷ÊÔ¡£±¾ÎĽ«ÏÈÈÝÔõÑùÉèÖÃlinuxϵͳÒÔÖ§³ÖǶÈëʽͼÏñ´¦Öóͷ£ÓëÅÌËã»úÊÓ¾õ¿ª·¢ £¬²¢ÌṩһЩ´úÂëʾÀý¡£

×°ÖÃLinuxϵͳ

Ê×ÏÈ £¬ÎÒÃÇÐèҪѡÔñÒ»¸öÊʺÏǶÈëʽ¿ª·¢µÄLinux¿¯Ðаæ £¬²¢½«Æä×°ÖÃÔÚǶÈëʽװ±¸ÉÏ¡£³£¼ûµÄLinux¿¯Ðаæ°üÀ¨Ubuntu¡¢DebianºÍCentOSµÈ¡£Ñ¡ÔñÒ»¸ö¾­ÓÉÑéÖ¤µÄÎȹ̰汾 £¬²¢Æ¾Ö¤×°±¸µÄÓ²¼þÉèÖÃÑ¡ÔñºÏÊʵİ汾¡£×°ÖÃÀú³Ì¿ÉÄÜÒò×°±¸²î±ð¶øÓÐËù²î±ð¡£Ò»Ñùƽ³£À´Ëµ £¬ÎÒÃÇÐèÒª½«LinuxϵͳװÖÃÔÚ×°±¸µÄ´æ´¢½éÖÊÉÏ £¬²¢ÉèÖúÏÊʵÄÖ¸µ¼Ñ¡Ïî¡£

×°Öÿª·¢¹¤¾ß

ÔÚÉèÖúÃLinuxϵͳ֮ºó £¬ÎÒÃÇÐèҪװÖÃһЩ¿ª·¢¹¤¾ßÒÔÖ§³ÖͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õ¿ª·¢¡£Õâ°üÀ¨C/C++±àÒëÆ÷¡¢Í¼Ïñ´¦Öóͷ£¿âºÍÅÌËã»úÊÓ¾õ¿âµÈ¡£¿ÉÒÔʹÓÃapt-get»òyumµÈ°ü¹ÜÀíÆ÷À´×°ÖÃÕâЩ¹¤¾ß¡£ÒÔUbuntuΪÀý £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî×°Öÿª·¢¹¤¾ß£º

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install libopencv-dev

µÇ¼ºó¸´ÖÆ

Õ⽫װÖÃbuild-essential°ü £¬Ëü°üÀ¨ÁËһЩ»ù±¾µÄ±àÒ빤¾ß £¬ÒÔ¼°libopencv-dev°ü £¬ËüÊÇOpenCVÅÌËã»úÊÓ¾õ¿âµÄ¿ª·¢°æ±¾¡£

ÉèÖý»Ö¯±àÒëÇéÐÎ

ÓÉÓÚǶÈëʽװ±¸µÄ´¦Öóͷ£ÄÜÁ¦ÓÐÏÞ £¬Í¨³£ÐèÒªÔÚ¿ª·¢ÅÌËã»úÉϾÙÐн»Ö¯±àÒë £¬È»ºó½«ÌìÉúµÄ¿ÉÖ´ÐÐÎļþ¸´ÖƵ½Ç¶Èëʽװ±¸ÉÏÔËÐС£ÎªÁËÉèÖý»Ö¯±àÒëÇéÐÎ £¬ÎÒÃÇÐèҪװÖý»Ö¯±àÒëÆ÷ºÍµ÷ÊÔ¹¤¾ß¡£ÒÔARM¼Ü¹¹ÎªÀý £¬ÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî×°Öý»Ö¯±àÒëÇéÐΣº

sudo apt-get install g++-arm-linux-gnueabihf
sudo apt-get install gdb-multiarch

µÇ¼ºó¸´ÖÆ

Õ⽫װÖÃARM¼Ü¹¹µÄ½»Ö¯±àÒëÆ÷ºÍµ÷ÊÔ¹¤¾ß¡£

±àдʾÀý´úÂë

ÉèÖúÿª·¢ÇéÐÎÖ®ºó £¬ÎÒÃÇ¿ÉÒÔ±àдʾÀý´úÂëÀ´²âÊÔͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õËã·¨¡£ÒÔÏÂÊÇÒ»¸ö¼òÆÓµÄʾÀý´úÂë £¬ËüʹÓÃOpenCV¿â¼ÓÔØÒ»ÕÅͼƬ²¢¾ÙÐлҶȻ¯´¦Öóͷ££º

#include <opencv2/opencv.hpp>

int main(int argc, char** argv)
{
    cv::Mat image = cv::imread(argv[1], CV_LOAD_IMAGE_COLOR);
    if (image.empty())
    {
        std::cerr << "Failed to open image file!" << std::endl;
        return -1;
    }

    cv::Mat gray;
    cv::cvtColor(image, gray, CV_BGR2GRAY);

    cv::imshow("Gray Image", gray);
    cv::waitKey(0);

    return 0;
}

µÇ¼ºó¸´ÖÆ

½«ÒÔÉÏ´úÂëÉúÑÄΪgray.cpp £¬²¢Ê¹Óý»Ö¯±àÒëÆ÷±àÒëÌìÉú¿ÉÖ´ÐÐÎļþ£º

arm-linux-gnueabihf-g++ -o gray gray.cpp `pkg-config --libs opencv`

µÇ¼ºó¸´ÖÆ

½«ÌìÉúµÄ¿ÉÖ´ÐÐÎļþ¸´ÖƵ½Ç¶Èëʽװ±¸ÉÏ £¬²¢ÔËÐУº

./gray image.jpg

µÇ¼ºó¸´ÖÆ

Õ⽫»áÔÚ×°±¸ÉÏÏÔʾ»Ò¶È»¯´¦Öóͷ£ºóµÄͼƬ¡£

×ܽá

ͨ¹ýÉèÖÃLinuxϵͳ £¬ÎÒÃÇ¿ÉÒÔΪǶÈëʽͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õ¿ª·¢ÌṩǿʢµÄ¿ª·¢ÇéÐΡ£±¾ÎÄÏÈÈÝÁËÔõÑù×°ÖÃLinuxϵͳ¡¢ÉèÖÿª·¢¹¤¾ß¡¢ÉèÖý»Ö¯±àÒëÇéÐÎ £¬²¢ÌṩÁËÒ»¸ö¼òÆÓµÄʾÀý´úÂ롣ϣÍûÕâƪÎÄÕ¹ØÓÚÓÐÐËȤ¾ÙÐÐǶÈëʽͼÏñ´¦Öóͷ£ºÍÅÌËã»úÊÓ¾õ¿ª·¢µÄ¶ÁÕßÓÐËù×ÊÖú¡£

ÒÔÉϾÍÊÇÉèÖÃLinuxϵͳÒÔÖ§³ÖǶÈëʽͼÏñ´¦Öóͷ£ÓëÅÌËã»úÊÓ¾õ¿ª·¢µÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿