小编Apl*_*lin的帖子

上传图片时 Dropbox API 错误 (Python)

我目前正在做一个运动检测程序。我已经设法在检测到运动时捕获图像。我希望照片在拍摄时上传到 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)

python dropbox

3
推荐指数
1
解决办法
2101
查看次数

cv2.videowriter writes 0 bytes file (python) (opencv)

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)

python opencv video-recording

3
推荐指数
1
解决办法
1918
查看次数

标签 统计

python ×2

dropbox ×1

opencv ×1

video-recording ×1