足球场线检测

时间:2018-11-15 08:59:01

标签: computer-vision masking hough-transform houghlinesp straight-line-detection

我想创建一个可以检测罚球区域场线的模型。 通过更改一些超参数,我设法为一个特定的图像获得了理想的结果,但是相同的代码不适用于另一幅图像。 即该代码是特定于图片的。 如果我想让代码适用于每张图片,我应该进行哪些更改。

我拍摄的输入图像之一是here 图像的输出为here 我在执行代码时遇到图像失败的情况之一是here

此代码专用于上面提供的图像,不适用于其他图像。 请让我知道如何改善我的代码。

 class FirstClass
   def process 
       thing = SecondClass.new('string argument', third_class, 2) 
    end 

   def third_class 
       ThirdClass.new('another string argument',)
   end
 end

0 个答案:

没有答案
相关问题