-凯发k8国际

`
zw7534313
  • 浏览: 1231030 次
  • 性别:
  • 来自: 北京
博主相关
  • 博客
  • 微博
  • 相册
  • 收藏
  • 社区版块
    • ( 0)
    • ( 21)
    • ( 1)
    存档分类
    最新评论
    文章列表
      博客分类:
    • java
     java.text.decimalformat   void setmaximumfractiondigits(int newvalue)            设置某个数的小数部分中所允许的最大数字位数。   void setminimumfractiondigits(int newvalue)            设置某个数的小数部分中所允许的最小数字位数。    string retvalue = null;   decimalformat df = new decimalformat();   df.setminimumfractiondigits(3);   df. ...
    1 )执行命令:tar -zxvf jakarta-linux tomcat-5.0.19.tar.g解压后得到目录jakarta-linux tomcat-5.0.19 2)设置环境变量vi /etc/profile加入如下内容:linux tomcat_home=foo/linux tomcat export linux tomcat_home 3)进入 /usr/local/jakarta-linux tomcat-5.0.19/bin,执行:./startup.sh start启动linux tomcat服务器 4)测试是否安装成功 用浏览器浏览http://localhost:8 ...

    15.grabcut区域分割

     
    mat image = imgcodecs.imread("2023.jpg");         mat mask = new mat();         // 创建前景和背景模型         mat bgmodel = new mat();         mat fgmodel = new mat();         // 指定前景的矩形区域         rect rect = new rect(new point(1500, 1000), new point(2400, 1800)); //        mat imageroi = new mat(im ...
     
    mat image = imgcodecs.imread("2023.jpg"); // 将rgb图像转换为hsv图像         mat hsvimage = new mat();         imgproc.cvtcolor(image, hsvimage, imgproc.color_bgr2hsv);         // 计算蓝色的比例         double blueratio = 0;         for (int y = 0; y < hsvimage.rows(); y ) {             for (int x = 0 ...

    12.背景替换

     
    mat image = imgcodecs.imread("face.jpg");         mat mask = new mat();         // 创建前景和背景模型         mat bgmodel = new mat();         mat fgmodel = new mat();         // 创建grabcut的输入参数         //rect rect = new rect(new point(50, 50), new point(100, 100)); // 指定前景的矩形区域         rect rect = n ...
     
    特征匹配器 bfmatcher matcher = bfmatcher.create(norm_l2, false); matofkeypoint keypoints2 = new matofkeypoint(); featuredetector.detectandcompute(img2, new matofrect(), keypoints2, descriptors2); list mlist = new arraylist<>();*/ 匹配特征 mat matches = matcher.match(keypoints1, descriptor ...
     
    mat src = imgcodecs.imread("2023.jpg");         // 创建simpleblobdetector对象         simpleblobdetector detector = simpleblobdetector.create();         // 检测关键点         matofkeypoint keypoints = new matofkeypoint();         detector.detect(src, keypoints);         mat descriptors = new mat(); ...
     
    要识别车牌字符,前提是先进行车牌字符的正确分割与提取。字符分割的任务是把多列或多行字符图像中的每个字符从整个图像中切割出来成为单个字符。车牌字符的正确分割对字符的识别是很关键的。传统的字符分割算法可以归纳为以下三类:直接分割法、基于识别基础上的分割法、自适应分割线类聚法。 // 读取车牌图像         mat image = imgcodecs.imread("2023-plate2.jpg");         // 转换为灰度图像         mat gray = new mat();         imgproc.cvtcolor(image, gray, ...

    4.haar人脸识别

     
    // 加载haar分类器         cascadeclassifier facedetector = new cascadeclassifier("haarcascade_frontalface_alt.xml");         // 加载待检测的图像         mat image = imgcodecs.imread("face.jpg");         // 将图像转换为灰度图像         mat gray = new mat();         imgproc.cvtcolor(image, gray, imgproc ...

    使用bfmatcher进行匹配

     
    除了使用模板匹配进行字母识别,还有许多其他方法可以用于字母识别,包括但不限于以下几种: (1)基于特征提取的方法:可以使用各种图像处理技术,如边缘检测、霍夫变换等,从字母图像中提取特征,然后使用这些特征进� ...

    2.图片剪切矩形

     
    rect rect = imgproc.boundingrect(contours.get(0)); // 剪切矩形区域 mat croppedimage = new mat(image, rect); imgcodecs.imwrite("2023-2.jpg", croppedimage);
    // 读取图像         mat image = imgcodecs.imread("2023.jpg");         // 将图像转换为hsv格式         mat hsv = new mat();         imgproc.cvtcolor(image, hsv, imgproc.color_bgr2hsv);         // 定义颜色范围(例如:蓝色)         scalar lowerblue = new scalar(100, 50, 50);         scalar upperblue = new scalar(130, ...
    往网页分批推送数据:boundary=end,总头-->分头-->body @getmapping("/test")     public void testjpg(httpservletresponse response) throws ioexception{         response.setcontenttype("multipart/x-mixed-replace;boundary=end");         // set the content type based on the file type you need t ...
    1.java -jar zipkin-server-2.23.18-exec.jar --storage_type=mysql --mysql_host=127.0.0.1 --mysql_tcp_port=3306 --mysql_db=zipkin --mysql_user=user --mysql_pass=1000 --rabbit_addresses=127.0.0.1:5672 --rabbit_user=guest --rabbit_password=guest 2.创建数据库 create database `zipkin`         use zipkin; creat ...
    1.seata-server1.5.2下载 https://seata.io/zh-cn/blog/download.html 在你的mysql数据库中创建名为seata的库 /script/server/db/mysql.sql 2.在你的参与全局事务的数据库中加入undo_log这张表 create table if not exists `undo_log` (     `branch_id`     bigint(20)   not null comment 'branch transaction id',     `xid`           varchar(100) not nu ...
    global site tag (gtag.js) - google analytics
    网站地图