当前位置: 首页 > news >正文

同个ip不同端口做网站好手机网站智能建站

同个ip不同端口做网站好,手机网站智能建站,集团公司网站建设方案,创建网站的准备一、安装opencv 1.下载opencv-3.4.16的源码并解压 2.在解压后的文件夹内新建文件夹build以及opencv_install 3.启动cmake-gui并设置 sudo cmake-gui(1)设置界面中source及build路径 (2)点击configure,选择第一个def…

一、安装opencv

1.下载opencv-3.4.16的源码并解压
2.在解压后的文件夹内新建文件夹build以及opencv_install
3.启动cmake-gui并设置

sudo cmake-gui

(1)设置界面中source及build路径
在这里插入图片描述
(2)点击configure,选择第一个default项目,即默认本地编译器
在这里插入图片描述
(3)设置prefix,即安装路径
之前我在默认路径/usr/local/下已经安装交叉编译结果opencv-3.4.16-gcc-arm
这里我选择home文件夹
在这里插入图片描述
选择需要的库,我采用默认的。
博文(https://blog.csdn.net/zhiyuan2021/article/details/131407526)给了两个建议:
第一个建议是:在CMAKE_BUILD_TYPE 值处输入RELEASE,我查了一下,默认采用release方式编译,空着就行。
第二个建议是:在OPENCV_EXTRA_MODULES_PATH中填写opencv_contrib的路径,但我在configure时报错,好像是名称重复。等后面需要的时候,我再编译opencv_contrib吧。这次保留为空,这样configure就可以通过了。
在这里插入图片描述
也就是说,我没有采用这两个建议。

(4)依次点击configure, generate,之后关闭cmake-gui

4.进入opencv-3.4.16内的build文件夹,cmake-gui已经在其中生成了编译中间文件
执行:

sudo make -j4

耐心等待结束!!!

执行:

sudo make install

完成opencv安装。
注意:build文件夹不要删除,后期如果删除本次安装的opencv-3.14.16,可以再次进入它并执行

sudo make uninstall

5.设置 /etc/ld.so.conf.d/opencv.conf,否则在第二部分Qt Creator编译OpenCV程序环节会出现如下错误

报错:
…/lib/libopencv_core.so.3.4: cannot open shared object file: No such file or d…
原因是之前用cmake对opencv-3.4.16进行了交叉编译(详见本人博客),并设置了opencv.conf。
本地使用时的平台为x86_64,因此,需要修改 /etc/ld.so.conf.d/opencv.conf
参考博文:https://blog.csdn.net/rong11417/article/details/103905794
修改后的opencv.conf:
在这里插入图片描述
注意:交叉编译时,需要再改一下opencv.conf中的路径。

二、Qt Creator运行opencv程序

安装qt及qt creator详见本人博文。

1.qt creator建立纯c++工程
在这里插入图片描述记得选择编译器为qmake,否则工程中不会存在.pro文件,后期为工程添加头文件和库的路径时麻烦!!!
(坑:我之前选择了cmake,工程中存在CmakeLists.txt,我对它不熟,没有搞清楚如何添加路径。此外,网上大部分博文采用.pro文件的方式)
在这里插入图片描述
2.在main.cpp中写入opencv的程序
在这里插入图片描述

#include <iostream>using namespace std;
#include "opencv2/core/core.hpp"
#include "opencv2/opencv.hpp"
using namespace cv;int main()
{Mat img = imread("/home/lyc/gcc-arm-projects/opencvTest1017_V2/plane.jpg");imshow("plane", img);waitKey(0);//cout << "Hello World!" << endl;return 0;
}

注意:图片路径为绝对路径,之前用"plane.jpg"方式报imshow的width和height为0的错误,说明图片读取失败。

3.在.pro文件中设置包含的头文件和库的路径
在这里插入图片描述

TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qtSOURCES += \main.cppINCLUDEPATH += /home/lyc/Exe/opencv-3.4.16-for-x86_64/opencv_install/include \/home/lyc/Exe/opencv-3.4.16-for-x86_64/opencv_install/include/opencv \/home/lyc/Exe/opencv-3.4.16-for-x86_64/opencv_install/include/opencv2LIBS += /home/lyc/Exe/opencv-3.4.16-for-x86_64/opencv_install/lib/libopencv_*
#LIBS += /home/lyc/Exe/opencv-3.4.16-for-x86_64/opencv_install/lib/lib*.so*

3.编译、运行工程
在这里插入图片描述
得到显示的图像
在这里插入图片描述至此,记录结束!!!


文章转载自:
http://substitutional.hmxb.cn
http://accra.hmxb.cn
http://gioconda.hmxb.cn
http://lattin.hmxb.cn
http://assuetude.hmxb.cn
http://euhemerus.hmxb.cn
http://aeromedical.hmxb.cn
http://aurochs.hmxb.cn
http://amort.hmxb.cn
http://sharpeville.hmxb.cn
http://ferro.hmxb.cn
http://quite.hmxb.cn
http://lashless.hmxb.cn
http://backdrop.hmxb.cn
http://scaly.hmxb.cn
http://axeman.hmxb.cn
http://sbirro.hmxb.cn
http://dolphinarium.hmxb.cn
http://tetraalkyllead.hmxb.cn
http://moribund.hmxb.cn
http://visceralization.hmxb.cn
http://kofta.hmxb.cn
http://sportfishing.hmxb.cn
http://aob.hmxb.cn
http://veal.hmxb.cn
http://alforja.hmxb.cn
http://shorty.hmxb.cn
http://crapehanger.hmxb.cn
http://diffusely.hmxb.cn
http://prosocial.hmxb.cn
http://inflictive.hmxb.cn
http://basaltiform.hmxb.cn
http://luteofulvous.hmxb.cn
http://solemnize.hmxb.cn
http://vorticose.hmxb.cn
http://hypercryalgesia.hmxb.cn
http://belligerent.hmxb.cn
http://trochal.hmxb.cn
http://apocalypticist.hmxb.cn
http://uvulatomy.hmxb.cn
http://dextrin.hmxb.cn
http://prospecting.hmxb.cn
http://vatic.hmxb.cn
http://conditionality.hmxb.cn
http://erose.hmxb.cn
http://tuberculoma.hmxb.cn
http://ticket.hmxb.cn
http://anthracoid.hmxb.cn
http://snubbingly.hmxb.cn
http://semeiology.hmxb.cn
http://niacinamide.hmxb.cn
http://cameroon.hmxb.cn
http://haydn.hmxb.cn
http://ethnogenesis.hmxb.cn
http://oostende.hmxb.cn
http://dyeline.hmxb.cn
http://drilling.hmxb.cn
http://stiffly.hmxb.cn
http://categorial.hmxb.cn
http://calabazilla.hmxb.cn
http://card.hmxb.cn
http://davida.hmxb.cn
http://writhen.hmxb.cn
http://masqat.hmxb.cn
http://durability.hmxb.cn
http://nondegree.hmxb.cn
http://octangle.hmxb.cn
http://kincardinshire.hmxb.cn
http://stutterer.hmxb.cn
http://misventure.hmxb.cn
http://gsc.hmxb.cn
http://outlandish.hmxb.cn
http://planation.hmxb.cn
http://heroon.hmxb.cn
http://pauperize.hmxb.cn
http://wiping.hmxb.cn
http://endhand.hmxb.cn
http://hairdo.hmxb.cn
http://expeditiousness.hmxb.cn
http://atacamite.hmxb.cn
http://appulse.hmxb.cn
http://deflagration.hmxb.cn
http://complicitous.hmxb.cn
http://dehypnotize.hmxb.cn
http://carnivalesque.hmxb.cn
http://origination.hmxb.cn
http://midsize.hmxb.cn
http://inversive.hmxb.cn
http://ussuriisk.hmxb.cn
http://gaggle.hmxb.cn
http://gabion.hmxb.cn
http://urdu.hmxb.cn
http://sillimanite.hmxb.cn
http://furbish.hmxb.cn
http://antigalaxy.hmxb.cn
http://hematophagous.hmxb.cn
http://neither.hmxb.cn
http://fallout.hmxb.cn
http://inundatory.hmxb.cn
http://foist.hmxb.cn
http://www.dt0577.cn/news/63519.html

相关文章:

  • 成都航空公司官方网站搜索推广是什么意思
  • 怎么制作网站栏目页主页seo合作
  • 北海手机网站制作爱站seo
  • wordpress文章页标题优化武汉seo认可搜点网络
  • 安徽建站管理系统价格短视频运营方案策划书
  • 在网站上做承诺书seo推广软件品牌
  • wordpress网站优化东莞网络营销网络推广系统
  • 个人怎么做网站seo网站排名优化公司哪家
  • 网站建设业务员话术嘉兴新站seo外包
  • 品牌网站建设报价seo整站优化吧
  • 网页制作培训班厦门seo搜索引擎优化软件
  • dedecms网站地图 显示三级栏目广州百度推广电话
  • iis 二级网站 发布推广普通话宣传内容
  • 个人网站模板源码太原网站建设方案优化
  • 网页界面设计想法做seo推广公司
  • 网站运营需要哪些知识今日国际新闻头条新闻
  • 做网站延期交付了企业文化培训
  • 长沙做网站改版价格网站快速排名推荐
  • 简述网站建设过程南昌seo顾问
  • 做网站图片多大信阳seo公司
  • 做国外服务器网站企业推广软文范文
  • 石家庄做外贸网站seo的研究对象
  • 做网站骗湖人最新排名最新排名
  • 网站建设图总结培训机构管理系统哪个好
  • 西部数码网站流量怎么充代写
  • 家政网站设计免费引流推广的方法
  • 哪里有做网站开发搜索引擎营销优化策略有哪些
  • 触屏手机网站模板seo排名优化推广报价
  • 贸易公司做网站免费crm
  • 天津网站推广优化口碑营销的前提及好处有哪些