MacBook is best for coding

Is an Apple MacBook Air core i5 good for Python programming and data scientist studies?


import cv2import sys

imagePath = sys.argv[1]cascPath = "haarcascade_pedestrian.xml"# cascPath = "pedestrian_another.xml"# cascPath = "haarcascade_fullbody.xml"

pedsCascade = cv2.CascadeClassifier(cascPath)

# Read the imageimage = cv2.imread(imagePath)gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

# detect pedestrian in pic

peds = pedsCascade.detectMultiScale( gray, scaleFactor=1.3, minNeighbors=9, minSize=(30, 30))

print("Found {0} pedestrian!".format(len(peds)))

# Draw a rectangle around the pedsfor (x, y, w, h) in peds: cv2.rectangle(image, (x, y), (x+w, y+h), (0, 255, 0), 2)

# cv2.imshow("Faces found", image)status = cv2.imwrite('peds_saved.jpg', image)print ("Image essay wring to file-system : ",status)

i am upset about mage pressing this code not run on apple MacBook Air core i3.

My Question is MacBook Air core i5 solve this issue or not , if not which

apple book helpful for me??



[Link Edited by Moderator]


Posted on Jun 29, 2019 2:37 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook is best for coding

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.