【发布时间】:2022-01-16 21:20:48
【问题描述】:
我正在尝试进行镜头校正,但我遇到了第一道障碍。运行以下代码后,我收到此错误...
#Install required packages
!pip install opencv-python
import cv2
import numpy as np
import pathlib
!pip install chessboard
from chessboard import calibrate_chessboard
from utils import load_coefficients, save_coefficients
KeyError Traceback (most recent call last)
<ipython-input-19-0a40b3424bef> in <module>()
6 import pathlib
7 get_ipython().system('pip install chessboard')
----> 8 from chessboard import calibrate_chessboard
9 from utils import load_coefficients, save_coefficients
2 frames
/usr/local/lib/python3.7/dist-packages/chessboard/benchmark.py in Benchmark()
105 ('machine', platform.machine()),
106 # CPU.
--> 107 ('cpu_vendor', cpu_info['vendor_id']),
108 ('cpu_model', cpu_info['brand']),
109 ('cpu_freq_actual', cpu_info['hz_actual'][0]),
KeyError: 'vendor_id'
有人可以帮忙吗?
【问题讨论】:
标签: python google-colaboratory keyerror