I got the point.
This is caused by my environment. Maybe I didn’t install opencv correctly, cv2.imresize() leads to this problem.
But it’s weird that cpu consumption becomes normal when I comment astype operation, too.