
916,60934
"Dreams are not those that we see while sleeping, dreams are those that don't let us sleep"-APJ Abdul Kalam
Jasmeeet Singh's instructables
Achievements
10K+
Views
Earned a bronze medal
1+
Featured Instructable
Earned a bronze medal
- Jasmeeet Singh followed tuenhidiy
- Jasmeeet Singh commented on Jasmeeet Singh's instructable Real Working Harry Potter Wand Using Computer Vision
- Jasmeeet Singh's instructable Arduino Becomes Talking Tom's weekly stats:
- Jasmeeet Singh commented on Jasmeeet Singh's instructable Making a Superman Wall MuralView Instructable »
Thank You!
- Jasmeeet Singh entered Arduino Becomes Talking Tom in the Audio Challenge 2020 contest
- Jasmeeet Singh's instructable Making a Superman Wall Mural's weekly stats:
- Jasmeeet Singh commented on Jasmeeet Singh's instructable DIY Cheap Arduino GameboyView Instructable »
Yes you can. You can build the whole circuit on a breadboard. The main reason for building this on a perf board was so that it could be placed inside a small box. But if that doesn't matter for you, you could build the project on a breadboard which won't require any soldering.
- Jasmeeet Singh commented on Jasmeeet Singh's instructable Making a Superman Wall Mural
- Jasmeeet Singh entered Making a Superman Wall Mural in the Fandom Contest contest
- Jasmeeet Singh completed the lessons Stomp Rockets and Tools + Supplies in the class Rockets Class
- Jasmeeet Singh's instructable Real Working Harry Potter Wand Using Computer Vision's weekly stats:
- Jasmeeet Singh commented on Jasmeeet Singh's instructable Real Working Harry Potter Wand Using Computer VisionView Instructable »
Glad you liked it!!
- Jasmeeet Singh entered Real Working Harry Potter Wand Using Computer Vision in the Fandom Contest contest
- Jasmeeet Singh completed the lessons Electricity and Soldering in the class Electronics Class
- Jasmeeet Singh completed the lessons Intro to Python , Intro to Sonic Pi and Playing Media and Navigate the Raspberry Pi's Software: Part 2 in the class Raspberry Pi Class
- Jasmeeet Singh's instructable DIY Glow in Dark Tape's weekly stats:
- Jasmeeet Singh completed the lessons Get Set Up and Navigating the Raspberry Pi's Software: Part 1 in the class Raspberry Pi Class
- Jasmeeet Singh entered DIY Glow in Dark Tape in the Tape Contest contest
- Jasmeeet Singh completed the lesson Getting Started With Electronics in the class Electronics Class
- Jasmeeet Singh completed the lesson What You'll Need & Learn in the class Raspberry Pi Class
- Jasmeeet Singh completed the lessons Welcome to Writing an Instructable, Documenting a Project , Writing an Instructable and Adding Photos, Publishing an Instructable and 1 other in the class How to Write an Instructable
- Show More Activities
Hello TimothyP31! First of all I apologise for the late response. After some debugging I guess this is the reason for the error you are getting:When the blob reaches inside the range of the starting point the tracing begins as the flag variable is set to 1. Then in the next iteration of the loop again the keypoints are detected and stored in the 'points_array' numpy array. After this the program encounters the following lines:if flag == 1:# Get coordinates of the center of blob from keypoints and append them in points listpoints.append(points_array[0]) # Draw the path by drawing lines between 2 consecutive points in points list for i in range(1, len(points)): cv2.line(frame_with_keypoints, tuple(points[i-1]), tuple(points[i]), (255, 255, 0), 3)This is where I guess the error …
see more »Hello TimothyP31! First of all I apologise for the late response. After some debugging I guess this is the reason for the error you are getting:When the blob reaches inside the range of the starting point the tracing begins as the flag variable is set to 1. Then in the next iteration of the loop again the keypoints are detected and stored in the 'points_array' numpy array. After this the program encounters the following lines:if flag == 1:# Get coordinates of the center of blob from keypoints and append them in points listpoints.append(points_array[0]) # Draw the path by drawing lines between 2 consecutive points in points list for i in range(1, len(points)): cv2.line(frame_with_keypoints, tuple(points[i-1]), tuple(points[i]), (255, 255, 0), 3)This is where I guess the error occurs because as the flag is 1 'flag==1' condition returns true and the program enters inside the if statement. It then tries to append the element at index 0 of points_array. But there is no kind of if statement here to check if the 'points_array' is empty or not. So if after the tracing begins and the blob gets undetected for some reason, the 'points_array' remains empty but the line inside the if statement: 'points.append(points_array[0])' still asks the program to append the element at 0 index of 'points_array' into points list. Since there is no element at that index it results in the 'tuple index out of range' error.As a solution I guess you should shift the statements inside 'if' on line 104 to the 'if' on line 114:if len(points_array) != 0:Do tell if this solution works out or if you have any further doubts. Good Luck!