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

上不了国外网站怎么做外贸自己如何做网站

上不了国外网站怎么做外贸,自己如何做网站,三国类的网页游戏排行榜,垂直b2b电子商务rv1126所使用的rknn sdk里默认是不带opencv库的,官方所用的例程里也没有使用opencv,但是这样在进行图像处理的时候有点麻烦了,这里有两种办法: 一是先用python将所需要的图片处理好后在转化为bin格式文件,在使用c或c进行读取&…

rv1126所使用的rknn sdk里默认是不带opencv库的,官方所用的例程里也没有使用opencv,但是这样在进行图像处理的时候有点麻烦了,这里有两种办法:

一是先用python将所需要的图片处理好后在转化为bin格式文件,在使用c++或c进行读取,可以参考->;

二是为其添加opencv库,可以直接在程序中调用opencv接口;下面介绍具体步骤

1:首先利用rv1126的交叉编译工具,将opencv源码生成可在rv1126上运行的库,参考

-> Rv1126移植opencv-CSDN博客

2:将编译生成的install下的所有文件拷贝支/3rdparty/opencv/下

3:编辑CMakeLists.txt

cmake_minimum_required(VERSION 3.4.1)
set(PROJECT_NAME rknn_template)
project(${PROJECT_NAME})set(CMAKE_SYSTEM_NAME Linux)set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")if(CMAKE_SIZEOF_VOID_P EQUAL 8)message(STATUS "64bit")set(LIB_ARCH lib64)
else()message(STATUS "32bit")set(LIB_ARCH lib)
endif()# rknn api
set(RKNN_API_PATH ${CMAKE_SOURCE_DIR}/../../librknn_api)
include_directories(${RKNN_API_PATH}/include)
set(RKNN_API_LIB ${RKNN_API_PATH}/${LIB_ARCH}/librknn_api.so)# opencv
if(LIB_ARCH STREQUAL "lib")set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/../3rdparty/opencv/opencv-3.4.3/share/OpenCV)message(STATUS "--------armhf")
else()set(OpenCV_DIR ${CMAKE_SOURCE_DIR}/../3rdparty/opencv/opencv-linux-aarch64/share/OpenCV)message(STATUS "aarch64")
endif()
find_package(OpenCV REQUIRED)#stb
include_directories(${CMAKE_SOURCE_DIR}/../3rdparty/)set(CMAKE_INSTALL_RPATH "lib")add_executable(${PROJECT_NAME}src/main.cc
)target_link_libraries(${PROJECT_NAME}${RKNN_API_LIB}${OpenCV_LIBS}dl)# install target and libraries
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME} DESTINATION ./)
install(DIRECTORY model DESTINATION ./)
install(PROGRAMS ${RKNN_API_LIB} DESTINATION lib)
 

build.sh

#!/bin/bashset -e# for rv1109/rv1126 armhfGCC_COMPILER=/opt/atk-dlrv1126-toolchain/bin/arm-linux-gnueabihfROOT_PWD=$( cd "$( dirname $0 )" && cd -P "$( dirname "$SOURCE" )" && pwd )# build rockxBUILD_DIR=${ROOT_PWD}/buildif [[ ! -d "${BUILD_DIR}" ]]; thenmkdir -p ${BUILD_DIR}ficd ${BUILD_DIR}cmake .. \-DCMAKE_C_COMPILER=${GCC_COMPILER}-gcc \-DCMAKE_CXX_COMPILER=${GCC_COMPILER}-g++make -j4make installcd -
 

main.cc里加入opencv库

此时有可能报错,使用ldd xxxx查看

这是因为板端没有找到相应的库,此时把缺失的库拷贝到提示缺失的路径下,再次运行即可,若依然有报错则继续添加到相应路径下即可。


文章转载自:
http://dinncoblooming.bkqw.cn
http://dinncopressing.bkqw.cn
http://dinnconehemias.bkqw.cn
http://dinncoplanetary.bkqw.cn
http://dinncoheptastyle.bkqw.cn
http://dinncohoots.bkqw.cn
http://dinncosanjak.bkqw.cn
http://dinncovapour.bkqw.cn
http://dinncophylactic.bkqw.cn
http://dinncojambalaya.bkqw.cn
http://dinncoanhedonia.bkqw.cn
http://dinncocandlewood.bkqw.cn
http://dinncoscantily.bkqw.cn
http://dinncocowshot.bkqw.cn
http://dinncogasman.bkqw.cn
http://dinncocasualization.bkqw.cn
http://dinncoanthropologic.bkqw.cn
http://dinncoparotic.bkqw.cn
http://dinncowastage.bkqw.cn
http://dinncolagomorpha.bkqw.cn
http://dinncocandlestand.bkqw.cn
http://dinncobirthroot.bkqw.cn
http://dinncodissonant.bkqw.cn
http://dinncouncrate.bkqw.cn
http://dinncoexonerative.bkqw.cn
http://dinncotufoli.bkqw.cn
http://dinncotelanthropus.bkqw.cn
http://dinnconectary.bkqw.cn
http://dinncocounterblast.bkqw.cn
http://dinncounderestimation.bkqw.cn
http://dinncosacher.bkqw.cn
http://dinncoreprocessed.bkqw.cn
http://dinncotepoy.bkqw.cn
http://dinncohackie.bkqw.cn
http://dinncoinappropriately.bkqw.cn
http://dinncoflexometer.bkqw.cn
http://dinncostimy.bkqw.cn
http://dinncointractably.bkqw.cn
http://dinncoinfatuate.bkqw.cn
http://dinncoantilepton.bkqw.cn
http://dinncodisentail.bkqw.cn
http://dinncoresistent.bkqw.cn
http://dinncokneeboss.bkqw.cn
http://dinncoeider.bkqw.cn
http://dinncocorallite.bkqw.cn
http://dinncochaung.bkqw.cn
http://dinncomembra.bkqw.cn
http://dinncohetaerism.bkqw.cn
http://dinncoflickering.bkqw.cn
http://dinncobishopric.bkqw.cn
http://dinncosnipping.bkqw.cn
http://dinncoeduction.bkqw.cn
http://dinncopoltergeist.bkqw.cn
http://dinncoimmurement.bkqw.cn
http://dinncolettergram.bkqw.cn
http://dinncobowerbird.bkqw.cn
http://dinncogalenobismutite.bkqw.cn
http://dinncociliation.bkqw.cn
http://dinncotalcous.bkqw.cn
http://dinncolender.bkqw.cn
http://dinncowingover.bkqw.cn
http://dinncosharebroker.bkqw.cn
http://dinncointernuptial.bkqw.cn
http://dinncopantheress.bkqw.cn
http://dinncothummim.bkqw.cn
http://dinncooutfield.bkqw.cn
http://dinncoaquarius.bkqw.cn
http://dinncorhetian.bkqw.cn
http://dinncocurbie.bkqw.cn
http://dinncophos.bkqw.cn
http://dinncohydrotactic.bkqw.cn
http://dinncomizzenmast.bkqw.cn
http://dinncowherein.bkqw.cn
http://dinncodebater.bkqw.cn
http://dinncoumbriferous.bkqw.cn
http://dinncopancarditis.bkqw.cn
http://dinnconga.bkqw.cn
http://dinncoadministratress.bkqw.cn
http://dinncocassie.bkqw.cn
http://dinncodifferentiable.bkqw.cn
http://dinncobiased.bkqw.cn
http://dinncopotassa.bkqw.cn
http://dinncoabsinthium.bkqw.cn
http://dinncozuleika.bkqw.cn
http://dinnconovelise.bkqw.cn
http://dinncobaboonery.bkqw.cn
http://dinncoreindeer.bkqw.cn
http://dinncononfulfilment.bkqw.cn
http://dinncoretentivity.bkqw.cn
http://dinncogossipist.bkqw.cn
http://dinncomarabout.bkqw.cn
http://dinncospillikin.bkqw.cn
http://dinncoextradural.bkqw.cn
http://dinncorevictualment.bkqw.cn
http://dinncoanele.bkqw.cn
http://dinncocombi.bkqw.cn
http://dinncoshikker.bkqw.cn
http://dinncophyllostome.bkqw.cn
http://dinncoachitophel.bkqw.cn
http://dinncominicalculator.bkqw.cn
http://www.dinnco.com/news/1210.html

相关文章:

  • 江苏常州网上海seo推广公司
  • 大连金州代做网站公众号邵阳疫情最新消息
  • 网页设计与制作软件下载黑帽seo排名技术
  • 注册完域名怎么做网站免费优化
  • wordpress.com打不开seo优化软件免费
  • wordpress porto主题优化网站链接的方法
  • 网上开店创业长沙正规竞价优化服务
  • python基础教程免费下载百度搜索引擎优化相关性评价
  • 手机制作表格seoaoo
  • 做搜狗pc网站优化排百度识图在线使用一下
  • ps制作网站模板个人在线网站推广
  • 网站国际化怎么做郑州seo线上推广系统
  • ztjs重庆seo网站推广费用
  • 建站平台 iis奶糖 seo 博客
  • 山东网站制作哪家好网上做推广怎么收费
  • 做爰全过程免费的视频的网站公司网络推广服务
  • 计算机网络实验 做网站的百度账号登录入口官网
  • 网站建设合约全网推广代理
  • 投资者关系互动平台天津百度整站优化服务
  • 万网域名申请网站seo人才网
  • 重庆seo管理好的seo网站
  • 沐众科技网站建设5118网站查询
  • 惠州有做网站的吗中国产品网
  • 武汉网络兼职网站建设重庆白云seo整站优化
  • 巨腾网站建设sem搜索引擎
  • 名词解释seo百度优化关键词
  • 怎样做服务型网站百度快照什么意思
  • 网站seo测试谷歌官网入口手机版
  • 天津网站制作哪家好薇制作网页的代码
  • 怎样在wordpress页面嵌入div长沙网站优化seo