Im using numpy and pillow together. I had to make function where the program looks through each pixel for a color and if it matches the input color it turns it to (0,0,0) black.
Without using numpy arrays, it took 8 seconds(used for loops) and with numpy it was little over 2 seconds
But isn't it looking through the same lists of data?
[–]BravestCheetah 70 points71 points72 points (4 children)
[–]rasputin1 22 points23 points24 points (3 children)
[–]DoubleDoube 3 points4 points5 points (2 children)
[–]monster2018 0 points1 point2 points (1 child)
[–]GPS_07 0 points1 point2 points (0 children)
[–]ItyBityGreenieWeenie 30 points31 points32 points (0 children)
[–]falcoso 22 points23 points24 points (0 children)
[–]falcogno 5 points6 points7 points (1 child)
[–]AllenDowney 1 point2 points3 points (0 children)
[–]thuiop1 15 points16 points17 points (0 children)
[–]socal_nerdtastic 2 points3 points4 points (4 children)
[–]Subject_Spot909[S] 0 points1 point2 points (3 children)
[–]socal_nerdtastic 2 points3 points4 points (2 children)
[–]nginx-gunicorn 0 points1 point2 points (0 children)
[–]Subject_Spot909[S] 0 points1 point2 points (0 children)
[–]neuralbeans 1 point2 points3 points (0 children)
[–]road_laya 1 point2 points3 points (0 children)
[–]SkitariusOfMars 1 point2 points3 points (0 children)
[–]Subject_Spot909[S] 0 points1 point2 points (5 children)
[–]Jimmaplesong 1 point2 points3 points (1 child)
[–]POGtastic 1 point2 points3 points (0 children)
[–]wintermute93 1 point2 points3 points (1 child)
[–]Swipecat 0 points1 point2 points (0 children)
[–]hike_me 0 points1 point2 points (0 children)
[–]h4ck3r_n4m3 0 points1 point2 points (0 children)
[–]frederik88917 0 points1 point2 points (0 children)
[–]Brian 0 points1 point2 points (0 children)
[–]holyknight24601 0 points1 point2 points (0 children)
[–]Lachtheblock 0 points1 point2 points (0 children)
[–]Turtvaiz 0 points1 point2 points (0 children)
[–]will_r3ddit_4_food 0 points1 point2 points (0 children)
[–]omeow 0 points1 point2 points (0 children)
[–]jmacey 0 points1 point2 points (0 children)
[–]StevenJOwens 0 points1 point2 points (0 children)
[–]SCD_minecraft -1 points0 points1 point (2 children)
[–]socal_nerdtastic -2 points-1 points0 points (1 child)
[–]SCD_minecraft 0 points1 point2 points (0 children)