why image format(1b2e2eb9-5a0f-4875-9fb9-27da545fc711.png) cannot processing in pyrealsense2 with opencv -python
cv2.imwrite(f'{_username / Path(str(uuid.uuid4()))}.png', face_resize) this method gives the output of image in (1b2e2eb9-5a0f-4875-9fb9-27da545fc711.png) this format. in face recognition process using LPBH unable to read the image file but the same LPBH reads the image name in the following format(image_r_00000.png) using the following method
cv2.imwrite('dataset/revathi/image_r_{}.png'.format(str(i).zfill(5)), face_resize).-
Hi Revathi This complexity of filename generation is somewhat outside of my programming experience. Looking at your code though, it seems to be generating a filename from the uuid ID successfully. I would therefore focus first on whether the path is the problem. For example, you could simplify it by removing _username / or trying closing up the spaces either side of '/'
Please sign in to leave a comment.
Comments
2 comments