I am currently fooling around with the idea of accessing a webcam through Renpy (the thought is that the characters can "see" you when your webcam is enabled).
To do this, I've been trying to utilize the cv2 module (https://opencv.org/) and have been trying to activate it using the 3rd party python modules as described here: https://www.renpy.org/doc/html/python.h ... d-packages
My code looks like this:
Code: Select all
A "Can I see you? Just for a little?"
menu:
"Yes":
python hide:
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
if cap.isOpened():
print("You're so gorgeous!")
else:
print("Stop hiding from me!")
# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()
"No":
A "Oooh."
I suspect that I've installed cv2 incorrectly (I've downloaded it into the games/python-packages folder, but am not sure where/how to run the command
Code: Select all
pip install --target game/python-packages requests
Can anyone help? (This isn't a necessary feature, but I do love the idea of the characters being able to "see" the player, if that makes any sense. Not to mention, being able to import additional Python modules is always super helpful!)