aws-samples / aws-panorama-samples

This repository has samples that demonstrate various aspects of AWS Panorama device and the Panorama SDK
https://docs.aws.amazon.com/panorama/
MIT No Attribution
82 stars 59 forks source link

b and r channels reversed in tutorial #36

Open cliveaws opened 2 years ago

cliveaws commented 2 years ago

In people_detection_tutorial.ipynb, the preprocess function uses cv2.split() to extract the individual rgb channels from the image:

r, g, b = cv2.split(img)

however openCV uses BGR format so it should be:

b, g, r = cv2.split(img)