Can anyone please help with the implementation of a custom camera action. I have to make my bot take picture of a document in between the conversation via the webcam.
Thank you in advance.
Can anyone please help with the implementation of a custom camera action. I have to make my bot take picture of a document in between the conversation via the webcam.
Thank you in advance.
Hi @IDKYamHere,
You can use OpenCV
The below code will help you take a snapshot from your webcam
from cv2 import *;
def cameratest():
cam = VideoCapture(0)
s, img = cam.read()
if s:
namedWindow("test")
imshow("cam-test", img)
waitKey(0)
destroyWindow("cam-test")
imwrite("Append the directory name", img)
More reference you can get here
-Murali