opencv cv2.calibrateCamera error

时间:2018-05-06 17:11:21

标签: python opencv

I am trying to calibrate my camera on opencv. I have try this code that works fine and recognize the points on the CHessboard, but i have an error occuring when trying to calibrate the camera.Im am using python 3.6

I get this error:

def appointments(request, id):
    barb = Barber.objects.get(id=id)
    dates = barb.date_set.all()
    return render(request, 'appointments.html', {'dates': dates})

This is my code :

@Component({
  template: '<p *ngFor="let character of initialCharacters">{{ character }}</p>',
})
export class TestComponent {
  public characters = ['a', 'b', 'c'];
  public initialCharacters = this.characters.slice();
}

Do you have any idea about it? I do not have hairs anymore because of it. Thanks.

1 个答案:

答案 0 :(得分:0)

我添加了objpoints.append(objp)和imgpoints.append(corner)来给它们赋值。现在,该功能正确地返回了相机矩阵和所有其他信息。我的错误消息已经消失。