出ているエラー
cannot convert the series to <class 'int'>
データフレームや書いたコード
|path1|path2(前日のパス)|date|cameraCD|camera_name|
|:--|:--:|:--:|--:|
|'tomato.mp4(仮名)'|'paseri.mp4'|2019-07-30|camera1|0008|
|'retasu.mp4'|'tomato.mp4'|2019-07-31|camera2|0008|
||||
コード ↓
CAMERA = df.loc[df['camera_name']=='0008' ,"cameraCD"].unique()
for camera in CAMERA:
#画像を読み込む
img = cv2.VideoCapture(df.loc[df['cameraCD'] == camera, 'path'])
img2 = cv2.VideoCapture(df.loc[df['cameraCD'] == camera, 'path2'])
img = img.read()[1]
img2 = img2.read()[1]
変換が間違っている?のかと思うのですがどう変えたらいいのかがわかりません。。。
どなたかわかる方いらっしゃいますか。。
グーグルコラボレイトリーを使用しています。
パスはグーグルドライブに入れている動画のパスです!
回答1件
あなたの回答
tips
プレビュー