(self, image_array: np.ndarray)
| 73 | self.len = 0 |
| 74 | |
| 75 | def write(self, image_array: np.ndarray): |
| 76 | if self.len <= self.num_frame: |
| 77 | try: |
| 78 | self.process.stdin.write(image_array.tobytes()) |
| 79 | self.len += 1 |
| 80 | except KeyboardInterrupt: |
| 81 | self.__del__() |
| 82 | |
| 83 | def __del__(self): |
| 84 | self.process.stdin.close() |
no test coverage detected