1. C

    Python Request for help with basic statistics using NumPy

    Please see the attachments. I do not understand how to insert the required numbers. Many thanks in advance for any wisdom you may proffer.
  2. A

    Python How to binary encode this data

    What am trying to do is in each task I have elements and am going to randomly choose an element and create a matrix the same size as the data and put 1 for the selected element and 0 for the non-selected one The issues I have faced are that my data is not equal in length so that posed as a...
  3. Casm

    Python How to repair the corrupted image below using opencv, python, numpy and necessary libraries

    import cv2 damaged_image = cv2.imread("Corrupted.png") mask = cv2.imread("mask.png", 0) output = cv2.inpaint(damaged_image, mask, 1, cv2.INPAINT_TELEA) cv2.imshow('test', output) cv2.waitKey(0) cv2.destroyAllWindows() I couldn't generate mask with python, i have drawn the mask by using Paint...