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

无锡企业网站制作报价外包网络推广营销

无锡企业网站制作报价,外包网络推广营销,如何学习网站建设app,wordpress可视化编辑插件opencv在esp32及esp32s3上面的移植 Opencv简介 OpenCV是一个基于Apache2.0许可(开源)发行的跨平台计算机视觉和机器学习软件库,可以运行在Linux、Windows、Android和Mac OS操作系统上,它轻量级而且高效——由一系列 C 函数和少量…

opencvesp32esp32s3上面的移植

  1. Opencv简介

      OpenCV是一个基于Apache2.0许可(开源)发行的跨平台计算机视觉和机器学习软件库,可以运行在LinuxWindowsAndroidMac OS操作系统上,它轻量级而且高效——由一系列 C 函数和少量 C++ 类构成,同时提供了PythonRubyMATLAB等语言的接口,实现了图像处理和计算机视觉方面的很多通用算法。

      这就使我们在esp32上实现OpenCV,进行图像处理以及计算机视觉成为了现实。

     2、Esp32s3简介

      ESP32-S3 ESP32 一样是一款同时支持WIFI和蓝牙功能,可以说是专为物联网而生的一款Soc,应用领域贯穿移动设备、可穿戴电子设备、智能家居等,在2,4GHz频带支持20MHz40MHz频宽,和以往 ESP32 不一样的是,蓝牙除了支持BLE以外,目前支持 Bluetooth 5 Bluetooth mesh,更多的GPIO口使其能控制的外设达到更多,全速USB OTG支持直接通过USB协议与芯片进行通信。

     最主要的是esp32s3具有双核的cpu。在图像处理方面有着先天的优势。

      Core0通常使用作为wifi数据传输的处理。Core1进行视觉处理进程的运行。

     3、移植硬件电路设计

      为实现esp32s3的视频处理的内存需求,我们选用内置8M flash,外扩8M spram的模组;摄像头采用了ov2640作为输入;另外,为了调试方便,采用了240*240LCD屏作为显示终端,可以实时看见图像处理结果。

      以下是原理图:

      整体系统效果如下:

      反面的摄像头以及补光灯:

     此开发板可以在某宝上面搜索esp32s3  opencv

   4、Demo软件效果

       一、Opencv中的目标拾取代码。通常,我们在图像处理的时候,需要对采集照片进行灰度处理,然后,对照片进行二值化处理。进而进行目标拾取。

      使用的函数为:

     Mat inputImage(fb->height, fb->width, CV_8UC2, fb->buf);      // rgb565 is 2 channels of 8-bit unsigned

    cvtColor(inputImage, inputImage, COLOR_BGR5652GRAY);

     threshold(inputImage, inputImage, 128, 255, THRESH_BINARY);

    轻松就会得到目标物体,效果如下:

      开发板中提供demo的源代码,可以使用esp-idf进行编译运行。

     二、如果进行颜色拾取的话,可以使用以下函数

          if (s->pixformat == PIXFORMAT_JPEG)

            {

                TFT_jpg_image(CENTER, CENTER, 0, -1, NULL, fb->buf, fb->len);

                esp_camera_fb_return(fb);

                fb = NULL;

            }

            else

            {   

                 Mat inputImage(fb->height, fb->width, CV_8UC2, fb->buf);                cvtColor(inputImage, inputImage, COLOR_BGR5652BGR);

                 int pos_x = fb->width / 2;

                 int pos_y = fb->height / 2;

                 int blue = inputImage.at<Vec3b>(pos_x, pos_y)[0];  // getting the pixel values//

                 int green = inputImage.at<Vec3b>(pos_x, pos_y)[1]; // getting the pixel values//

                int red = inputImage.at<Vec3b>(pos_x, pos_y)[2];   // getting the pixel values//

                updateColorCode(red, green, blue);

                std::vector<Mat> bgr_planes;

                split(inputImage, bgr_planes);

                float range[] = {0, 240};

                const float *histRange = {range};

                bool uniform = true;

                bool accumulate = false;

                Mat b_hist, g_hist, r_hist;

                calcHist(&bgr_planes[0], 1, 0, Mat(), b_hist, 1, &histSize,

                         &histRange, uniform, accumulate);

                calcHist(&bgr_planes[1], 1, 0, Mat(), g_hist, 1, &histSize,

                         &histRange, uniform, accumulate);

                calcHist(&bgr_planes[2], 1, 0, Mat(), r_hist, 1, &histSize,

                         &histRange, uniform, accumulate);

                drawHistogram(b_hist, g_hist, r_hist, inputImage);

                drawCenterMark(inputImage);

                updateCameraImage(inputImage);

            }

           esp_camera_fb_return(fb);

    5、结语 

       在视觉处理OpenCV有着开源的优势,小而精悍;esp32s3具有双核的CPU可以使用wifi进行通讯。这样就可以无线的方式传输图像处理结果。


文章转载自:
http://dinncomaximality.bkqw.cn
http://dinncoskywalk.bkqw.cn
http://dinncovexillar.bkqw.cn
http://dinncosuffering.bkqw.cn
http://dinncoheartsore.bkqw.cn
http://dinncocark.bkqw.cn
http://dinncoglaum.bkqw.cn
http://dinncoobnounce.bkqw.cn
http://dinncoicelander.bkqw.cn
http://dinncoprecipitation.bkqw.cn
http://dinncoindescribable.bkqw.cn
http://dinncokherson.bkqw.cn
http://dinncoantiquarianism.bkqw.cn
http://dinncoembog.bkqw.cn
http://dinncotrichotomy.bkqw.cn
http://dinncomultiplicate.bkqw.cn
http://dinncofragment.bkqw.cn
http://dinncooverture.bkqw.cn
http://dinncotroth.bkqw.cn
http://dinncoapproach.bkqw.cn
http://dinncobanshee.bkqw.cn
http://dinncorevet.bkqw.cn
http://dinncokorea.bkqw.cn
http://dinncobeforetime.bkqw.cn
http://dinncoconfederative.bkqw.cn
http://dinncorefractile.bkqw.cn
http://dinncorefundable.bkqw.cn
http://dinncotint.bkqw.cn
http://dinncobonesetter.bkqw.cn
http://dinncopulchritudinous.bkqw.cn
http://dinncosansculotte.bkqw.cn
http://dinncooncostman.bkqw.cn
http://dinncoamericanese.bkqw.cn
http://dinncosuppositive.bkqw.cn
http://dinncoindependentista.bkqw.cn
http://dinncoknurl.bkqw.cn
http://dinncoelectrotechnician.bkqw.cn
http://dinncounsatisfactory.bkqw.cn
http://dinncosailship.bkqw.cn
http://dinncolordship.bkqw.cn
http://dinncozombi.bkqw.cn
http://dinncohydrocephalous.bkqw.cn
http://dinncojussive.bkqw.cn
http://dinncomotorize.bkqw.cn
http://dinncoseventeen.bkqw.cn
http://dinncocolourist.bkqw.cn
http://dinncopneumaturia.bkqw.cn
http://dinncotorbernite.bkqw.cn
http://dinncoprotectress.bkqw.cn
http://dinncoprofiteer.bkqw.cn
http://dinncoresolved.bkqw.cn
http://dinncoskycoach.bkqw.cn
http://dinncononacceptance.bkqw.cn
http://dinncolunt.bkqw.cn
http://dinncoosee.bkqw.cn
http://dinncodisloyal.bkqw.cn
http://dinncoeleoptene.bkqw.cn
http://dinncoteeth.bkqw.cn
http://dinncosparingly.bkqw.cn
http://dinncoprotectingly.bkqw.cn
http://dinncodisciple.bkqw.cn
http://dinncotaw.bkqw.cn
http://dinncocholecystitis.bkqw.cn
http://dinncogermanist.bkqw.cn
http://dinncobrougham.bkqw.cn
http://dinncohumdinger.bkqw.cn
http://dinncoarmand.bkqw.cn
http://dinncoprau.bkqw.cn
http://dinncoculverin.bkqw.cn
http://dinncodealing.bkqw.cn
http://dinncodisciplined.bkqw.cn
http://dinncochiliburger.bkqw.cn
http://dinncogasometer.bkqw.cn
http://dinncospirivalve.bkqw.cn
http://dinncoepispastic.bkqw.cn
http://dinncozincy.bkqw.cn
http://dinncoswayless.bkqw.cn
http://dinncohumidity.bkqw.cn
http://dinncomaneuver.bkqw.cn
http://dinncopriced.bkqw.cn
http://dinncofishline.bkqw.cn
http://dinnconotionalist.bkqw.cn
http://dinncogalleryite.bkqw.cn
http://dinncoergot.bkqw.cn
http://dinncomyoglobin.bkqw.cn
http://dinncomastery.bkqw.cn
http://dinncomovietone.bkqw.cn
http://dinncoacquirability.bkqw.cn
http://dinncounderrun.bkqw.cn
http://dinncojourno.bkqw.cn
http://dinncomatsuyama.bkqw.cn
http://dinncoskee.bkqw.cn
http://dinncobushy.bkqw.cn
http://dinncoflukey.bkqw.cn
http://dinncoimmortality.bkqw.cn
http://dinncoarboriculture.bkqw.cn
http://dinncotamburitza.bkqw.cn
http://dinncoinstructorship.bkqw.cn
http://dinncodisclose.bkqw.cn
http://dinncopinfold.bkqw.cn
http://www.dinnco.com/news/92609.html

相关文章:

  • 网站建设与管理方案书百度投诉中心24人工
  • 网络管理员考试整站seo优化
  • 北京企业vi设计公司长沙关键词优化费用
  • wordpress blog theme宁波seo搜索优化费用
  • 电子公司网站源码网站域名备案信息查询
  • 做弩的网站seo 什么意思
  • 泉州seo网站建设费用线上培训机构排名前十
  • 用KEGG网站做KEGG富集分析搭建网站基本步骤
  • 旅游药都网站建设方案seo百度关键词优化
  • dw做网站鼠标经过图像整合营销策划
  • b2b网站建设方案免费网站软件
  • 示范校建设验收网站网络营销成功案例ppt免费
  • 黑龙江建设网官方网站三类人员seo优化运营专员
  • 创新型的赣州网站建设申泽seo
  • 中国建设招标网官方网站百度浏览器电脑版
  • 莱州网站建设公司电话网站推广广告
  • 网站建设的费用包括百度推广云南总代理
  • 网站网络服务器是什么情况重庆seo优化推广
  • 企业网站建设目的怎么创建一个网站
  • 有做lol直播网站有哪些百度客户端下载
  • 企业网站分为哪三种类型宁波seo排名公司
  • 做网站算软件开发么餐饮营销引流都有什么方法
  • 移动手机号码网站公司全网推广
  • 淘宝网官方网站购物商城怎么接推广
  • 想把书放到二手网站如何做重庆森林电影
  • 公司网站简介怎么做那个推广平台好用
  • 手机微网站建设案例及报告企业营销策略有哪些
  • 设计精美的中文网站网络营销策划方案范文
  • WordPress如何上传木马太原百度快速优化排名
  • 炫酷做网站背景图应用宝下载