zw7534313
- 浏览: 1231030 次
- 性别:
- 来自: 北京
社区版块
- ( 0)
- ( 21)
- ( 1)
最新评论
-
mike_eclipse:
hashtable是线程不安全的吗?好像是线程安全的吧?
多线程之集合类 -
july01:
推荐用stratoio打印控件,浏览器和系统的兼容性都很好,而 ...
lodop打印控件 -
xingcxb:
经过测试,假的,依旧会出现中文乱码!!!!store方法里面采 ...
java 读写properties文件,不会出现中文乱码 -
tiger20111989:
...
spring注解方式管理事务 -
zw7534313:
...
js 文字上下滚动 无间断循环显示
文章列表
java.text.decimalformat
void setmaximumfractiondigits(int newvalue) 设置某个数的小数部分中所允许的最大数字位数。
void setminimumfractiondigits(int newvalue) 设置某个数的小数部分中所允许的最小数字位数。
string retvalue = null;
decimalformat df = new decimalformat();
df.setminimumfractiondigits(3);
df. ...
- 2010-06-25 08:53
- 浏览 3029
- 分类:编程语言
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 ...
- 2010-05-28 07:31
- 浏览 5174
- 分类:操作系统
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 ...
- 2023-12-11 14:52
- 浏览 17
- 分类:编程语言
- 博客分类:
- opencv
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 ...
- 2023-12-11 14:51
- 浏览 5
- 分类:编程语言
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 ...
- 2023-12-11 14:50
- 浏览 11
- 分类:编程语言
- 博客分类:
- opencv
特征匹配器
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 ...
- 2023-12-11 14:49
- 浏览 7
- 分类:编程语言
- 博客分类:
- opencv
mat src = imgcodecs.imread("2023.jpg");
// 创建simpleblobdetector对象
simpleblobdetector detector = simpleblobdetector.create();
// 检测关键点
matofkeypoint keypoints = new matofkeypoint();
detector.detect(src, keypoints);
mat descriptors = new mat();
...
- 2023-12-11 14:49
- 浏览 7
- 分类:编程语言
- 博客分类:
- opencv
要识别车牌字符,前提是先进行车牌字符的正确分割与提取。字符分割的任务是把多列或多行字符图像中的每个字符从整个图像中切割出来成为单个字符。车牌字符的正确分割对字符的识别是很关键的。传统的字符分割算法可以归纳为以下三类:直接分割法、基于识别基础上的分割法、自适应分割线类聚法。
// 读取车牌图像
mat image = imgcodecs.imread("2023-plate2.jpg");
// 转换为灰度图像
mat gray = new mat();
imgproc.cvtcolor(image, gray, ...
- 2023-12-11 14:48
- 浏览 8
- 分类:编程语言
// 加载haar分类器
cascadeclassifier facedetector = new cascadeclassifier("haarcascade_frontalface_alt.xml");
// 加载待检测的图像
mat image = imgcodecs.imread("face.jpg");
// 将图像转换为灰度图像
mat gray = new mat();
imgproc.cvtcolor(image, gray, imgproc ...
- 2023-12-11 14:47
- 浏览 11
- 分类:编程语言
除了使用模板匹配进行字母识别,还有许多其他方法可以用于字母识别,包括但不限于以下几种:
(1)基于特征提取的方法:可以使用各种图像处理技术,如边缘检测、霍夫变换等,从字母图像中提取特征,然后使用这些特征进� ...
- 2023-12-11 14:46
- 浏览 29
- 分类:编程语言
rect rect = imgproc.boundingrect(contours.get(0));
// 剪切矩形区域
mat croppedimage = new mat(image, rect);
imgcodecs.imwrite("2023-2.jpg", croppedimage);
- 2023-12-11 14:45
- 浏览 30
- 分类:编程语言
// 读取图像
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, ...
- 2023-12-08 14:06
- 浏览 36
- 分类:编程语言
往网页分批推送数据: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 ...