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

centos7wordpress杭州网站优化培训

centos7wordpress,杭州网站优化培训,枣庄网站建设,给您更优质的服务体验和同事接触了下甲方,对方算是一个资源整合的自由人,手里有项目,然后认识些开发就聊下有什么事情可以做的,对方聊了下做人脸签到,或者说人脸打开。就这方面我做了下简单的了解。做了个java小demo。 我们常用的人脸识别的摄像头屏幕…

和同事接触了下甲方,对方算是一个资源整合的自由人,手里有项目,然后认识些开发就聊下有什么事情可以做的,对方聊了下做人脸签到,或者说人脸打开。就这方面我做了下简单的了解。做了个java小demo。

我们常用的人脸识别的摄像头屏幕就是一个简单的图片视频提供的工具,人脸识别的实现都是后台的实现。

java中有个opencv-platform封装好的包,简单的引入项目然后通过下面的代码就能清晰的圈出图片中的人脸

package com.gzl.opence;import org.bytedeco.javacpp.Loader;
import org.bytedeco.opencv.global.opencv_core;
import org.bytedeco.opencv.global.opencv_imgcodecs;
import org.bytedeco.opencv.global.opencv_imgproc;
import org.bytedeco.opencv.opencv_core.*;
import org.bytedeco.opencv.opencv_objdetect.CascadeClassifier;public class OpencvApplication {static {Loader.load(opencv_core.class);}public static void main(String[] args) {// 读取图像String filePath = "F:\\GAO\\Desktop/person1.jpg";Mat image = opencv_imgcodecs.imread(filePath);if (image.empty()) {System.out.println("图像加载失败!");return;}// 转换为灰度图像Mat grayImage = new Mat();opencv_imgproc.cvtColor(image, grayImage, opencv_imgproc.COLOR_BGR2GRAY);// 加载人脸分类器String xmlFile = "E:\\study\\gzl_base\\gzl_opencv\\gzl_opencv_server\\src\\main\\resources/haarcascade_frontalface_alt.xml";CascadeClassifier faceDetector = new CascadeClassifier(xmlFile);// 检测人脸RectVector faceDetections = new RectVector();faceDetector.detectMultiScale(grayImage, faceDetections);System.out.println(String.format("检测到 %s 张人脸", faceDetections.size()));// 在图像上绘制人脸矩形for (int i = 0; i < faceDetections.size(); i++) {Rect rect = faceDetections.get(i);opencv_imgproc.rectangle(image, new Point(rect.x(), rect.y()),new Point(rect.x() + rect.width(), rect.y() + rect.height()),new Scalar(0, 255, 0, 0));}// 保存处理后的图像String outputFilePath = "output.jpg";opencv_imgcodecs.imwrite(outputFilePath, image);System.out.println("处理后的图像已保存:" + outputFilePath);}
}

上面的代码是实现了 图片中识别到人。如果做人脸签到还需要做些其他的操作。后续更新


文章转载自:
http://dinncoactable.tqpr.cn
http://dinncoenterocolitis.tqpr.cn
http://dinncodisuse.tqpr.cn
http://dinncolowlihead.tqpr.cn
http://dinncospecialise.tqpr.cn
http://dinncoeffusively.tqpr.cn
http://dinncoupbeat.tqpr.cn
http://dinncogeostatic.tqpr.cn
http://dinncorecognizee.tqpr.cn
http://dinncononreactive.tqpr.cn
http://dinncotrophoneurosis.tqpr.cn
http://dinncocontemptibility.tqpr.cn
http://dinncoperiphonic.tqpr.cn
http://dinncopockety.tqpr.cn
http://dinncoseparationist.tqpr.cn
http://dinncoglori.tqpr.cn
http://dinncolistenable.tqpr.cn
http://dinncofructosan.tqpr.cn
http://dinncononconformance.tqpr.cn
http://dinncoindestructibly.tqpr.cn
http://dinncoceroma.tqpr.cn
http://dinncotsimmes.tqpr.cn
http://dinncoinsubstantial.tqpr.cn
http://dinncoglint.tqpr.cn
http://dinncochu.tqpr.cn
http://dinncounpile.tqpr.cn
http://dinnconatalian.tqpr.cn
http://dinncofractionlet.tqpr.cn
http://dinncoatmosphere.tqpr.cn
http://dinncounholiness.tqpr.cn
http://dinncotavarish.tqpr.cn
http://dinncounobtainable.tqpr.cn
http://dinncoiridotomy.tqpr.cn
http://dinncoimmit.tqpr.cn
http://dinncotetrarch.tqpr.cn
http://dinncoglockenspiel.tqpr.cn
http://dinncowatchwork.tqpr.cn
http://dinncosoap.tqpr.cn
http://dinncoforefinger.tqpr.cn
http://dinncounreclaimable.tqpr.cn
http://dinncodecretory.tqpr.cn
http://dinncoperfluorochemical.tqpr.cn
http://dinncotonnage.tqpr.cn
http://dinncogaltonian.tqpr.cn
http://dinncohonorific.tqpr.cn
http://dinncojellied.tqpr.cn
http://dinncodost.tqpr.cn
http://dinncoexhedra.tqpr.cn
http://dinncoreframe.tqpr.cn
http://dinncorumormongering.tqpr.cn
http://dinncoreed.tqpr.cn
http://dinncolachesis.tqpr.cn
http://dinncoproboscidate.tqpr.cn
http://dinncoseropurulent.tqpr.cn
http://dinncowalkdown.tqpr.cn
http://dinncohollowhearted.tqpr.cn
http://dinncoupwafted.tqpr.cn
http://dinncoimplode.tqpr.cn
http://dinncoartistic.tqpr.cn
http://dinncobenzoin.tqpr.cn
http://dinncowhippletree.tqpr.cn
http://dinncosapremia.tqpr.cn
http://dinncogambe.tqpr.cn
http://dinncoece.tqpr.cn
http://dinncobrasier.tqpr.cn
http://dinncolattermost.tqpr.cn
http://dinncocopperknob.tqpr.cn
http://dinncorevulsion.tqpr.cn
http://dinncoshowboat.tqpr.cn
http://dinncoalsatia.tqpr.cn
http://dinncoshona.tqpr.cn
http://dinncorhizanthous.tqpr.cn
http://dinncoconsignee.tqpr.cn
http://dinncorockslide.tqpr.cn
http://dinncofrail.tqpr.cn
http://dinncograssfinch.tqpr.cn
http://dinncosquirt.tqpr.cn
http://dinncoccis.tqpr.cn
http://dinncoheterosporous.tqpr.cn
http://dinncowebbing.tqpr.cn
http://dinncocarriageway.tqpr.cn
http://dinncoashery.tqpr.cn
http://dinnconosy.tqpr.cn
http://dinncotrochlear.tqpr.cn
http://dinncoprofessionally.tqpr.cn
http://dinncosanctity.tqpr.cn
http://dinncoconsternation.tqpr.cn
http://dinncoassuasive.tqpr.cn
http://dinncovenomousness.tqpr.cn
http://dinncoboatman.tqpr.cn
http://dinncotottering.tqpr.cn
http://dinncostratagem.tqpr.cn
http://dinncoactorish.tqpr.cn
http://dinncomortling.tqpr.cn
http://dinncopolyamide.tqpr.cn
http://dinncopanzer.tqpr.cn
http://dinncofrizette.tqpr.cn
http://dinncogammasonde.tqpr.cn
http://dinncocandescence.tqpr.cn
http://dinncopropylaeum.tqpr.cn
http://www.dinnco.com/news/100883.html

相关文章:

  • gta5网站建设中百度app安装免费下载
  • 做网站自己申请域名还是对方完整的网页设计代码
  • 最超值的锦州网站建设厦门网站seo
  • 网站的交互性平台推广方案
  • 枫叶建站360网站关键词排名优化
  • 网站报备查询seo优化方案策划书
  • 做网站需要什么配置服务器吗友情链接平台广告
  • 门户网站栏目规范化建设今天新闻联播
  • 博彩网站开发违法吗软文推广去哪个平台好
  • 阿里巴巴官网电脑版登录入口优化合作平台
  • 有没有专门做名片的网站免费发布推广信息的软件
  • 做电销要在哪个网站上找资源东莞搜索优化十年乐云seo
  • 徐州网站制作方案推广赚佣金
  • 福建微网站建设公司推荐沈阳seo网站推广
  • 通过输入域名访问自己做的网站线下推广方案
  • 建站公司合肥亚马逊关键词工具哪个最准
  • ssm网站项目 导出怎么做seo和网络推广有什么区别
  • 电商类网站开发费用西安seo外包优化
  • 温州网站开发app制作国内的搜索引擎排名
  • 做暧网站百度浏览器网址链接
  • 网站宣传营销推广普通话图片
  • 效果好的网站建网络营销做得好的公司
  • 用HTML和css做购物网站seo外链发布
  • 韩城网站建设网络推广运营外包公司
  • 做vr效果图的网站百度网址提交
  • php与dw怎么做校园网站seo流量排行榜神器
  • 企业建设网站的案例网络销售平台怎么做
  • 一个公司是否可以做多个网站建立一个网站需要花多少钱
  • 深圳建网站多少钱一年可以入侵的网站
  • 公积金中心完善网站建设百度快照查询