我目前正在做一个运动检测程序。我已经设法在检测到运动时捕获图像。我希望照片在拍摄时上传到 Dropbox。它适用于前几张图像,但一段时间后停止工作。它显示以下错误
ApiError: ApiError('', UploadError(u'path', UploadWriteFailed(reason=WriteError(u'conflict', WriteConflictError(u'file', None)), upload_session_id=u'')))
这是我的代码
def TakePicUpload(avg):
Run Code Online (Sandbox Code Playgroud) I am currently doing a motion detection project that records down video when motion is detected. Right now there is no error when recording the video but when i check on the video, it is 0 bytes. Any help would be very much appreciated.
This is my code:
camera = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640, 480))
Run Code Online (Sandbox Code Playgroud)