opencap-core
opencap-core copied to clipboard
Bug ValueError: not enough values to unpack (expected 4, got 3)
We got this error when synchronizing keypoints, which invoked by the code below(in utilsChecker.py):
# Synchronize keypoints.
pointList, confList, nansInOutList,startEndFrameList = synchronizeVideoKeypoints(
pointList, confList, confidenceThreshold=confidenceThreshold,
filtFreqs=filtFreqs, sampleFreq=frameRate, visualize=False,
maxShiftSteps=2*frameRate, CameraParams=CamParamList_selectedCams,
cameras2Use=cameras2Use,
CameraDirectories=CameraDirectories_selectedCams, trialName=trialName)
We have found that in the function synchronizeVideoKeypoints
, if the condition if not np.any(overlapInds_clean)
(line 1015) is met, only 3 values are returned.