我是图像检测技术的新手.我正在使用java openCV来检测图像中的颜色.我能够检测出黄色和红色.我从命中和试用方法得到了价值,这些都很好.但我想从下面的手形图像中检测绿色,橙色和蓝色.

这是我的代码的一部分.
public class ObjectPositionDetect {
static int hueLowerR = 160; // for red
static int hueUpperR = 180;
// static int hueLowerR = 20; // for yellow
// static int hueUpperR = 31;
public static void main(String[] args) {
IplImage orgImg = cvLoadImage("3.JPG");
IplImage thresholdImage = hsvThreshold(orgImg);
cvSaveImage("test.jpg", thresholdImage);
Dimension position = getCoordinates(thresholdImage);
System.out.println("Dimension of original Image : " + thresholdImage.width() + " , " + thresholdImage.height());
System.out.println("Position of red spot : x : " + position.width + …Run Code Online (Sandbox Code Playgroud) 我在ASP.net中有以下代码,但这里有简单的HTML
<div id="site_content">
<div style="margin:0 auto;" class="middle">
<input id="Text1" type="text" />
<asp:Button ID="Button2" runat="server" Text="Search" />
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我希望class ="middle"的中间div 位于页面的中心.为什么不工作?