假设我有以下代码:
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<link href="style.css" rel="stylesheet" />
<script src="script.js"></script>
</head>
<body ng-app="myApp">
<form name="shareSelectionForm">
<div ng-controller="myCtrl">
<div>
Single email: <input type="email" class="form-control" required name="singleRecipientEmail" ng-model="singleRecipientEmail">
<div ng-show="shareSelectionForm.$submitted || shareSelectionForm.singleRecipientEmail.$touched">
<p class="error-mesg" ng-show="shareSelectionForm.singleRecipientEmail.$error.required">Email Address is not valid</p>
</div>
</div>
<div>
Single/Multiple email: <input type="text" class="form-control" multiple-emails required name="recipientEmail" ng-model="recipientEmail">
<div ng-show="shareSelectionForm.$submitted || shareSelectionForm.recipientEmail.$touched">
<p class="error-mesg" ng-show="shareSelectionForm.recipientEmail.$error.required">Single/Multiple Email Address is not valid</p>
</div>
</div>
<button class="btn btn-primary" type="button" ng-click="submitForm()">Submit</button>
</div>
</form>
</body>
</html>
问题是my_rect绘制的厚度仅为1像素!
如何增加直肠的厚度? 我在文档中找不到任何内容(我必须说的很缺少)。
谢谢!
答案 0 :(得分:0)
从根本上看overloads of add_overlay()方法,很明显它没有以厚度为参数。从文档-
add_overlay(自己:dlib.image_window,矩形:dlib.rectangles, 颜色:dlib.rgb_pixel = rgb_pixel(255,0,0))->无添加列表 image_window的矩形。它们将通过以下方式显示为红色框 默认设置,但可以传递颜色。
add_overlay(自己:dlib.image_window,矩形:dlib.rectangle,颜色: dlib.rgb_pixel = rgb_pixel(255,0,0))->无将矩形添加到 image_window。默认情况下,它将显示为红色框,但是 颜色可以传递。
add_overlay(自己:dlib.image_window,矩形:dlib.drectangle, 颜色:dlib.rgb_pixel = rgb_pixel(255,0,0))->无将矩形添加到 image_window。默认情况下,它将显示为红色框,但是 颜色可以通过。
add_overlay(自己:dlib.image_window,检测: dlib.full_object_detection,颜色:dlib.rgb_pixel = rgb_pixel(0,0,255)) ->无将full_object_detection零件添加到图像窗口。默认情况下,它们将显示为蓝线,但可以传递颜色。
add_overlay(self:dlib.image_window,line:dlib.line,color: dlib.rgb_pixel = rgb_pixel(255,0,0))->无将行添加到图像 窗口。
add_overlay(自己:dlib.image_window,对象:列表,颜色: dlib.rgb_pixel = rgb_pixel(255,0,0))->无