Bot De Telegram Para Cambiar Caras | En Videos Better

# Enviar el video resultante context.bot.send_video(chat_id=update.effective_chat.id, video=video)

bot = Bot(TOKEN)

updater.start_polling() updater.idle()

def video(update, context): video_file = update.message.video context.bot.send_message(chat_id=update.effective_chat.id, text='¡Video recibido! Seleccione la cara que desea cambiar')

# Cambiar la cara video = video.fl_image(lambda frame: cv2.putText(frame, cara, (10, 20), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (0, 0, 255), 2))

def start(update, context): context.bot.send_message(chat_id=update.effective_chat.id, text='¡Hola! Bienvenido a FaceSwapBot')

dp.add_handler(CommandHandler('start', start)) dp.add_handler(MessageHandler(Filters.video, video)) dp.add_handler(MessageHandler(Filters.text, seleccionar_cara)) dp.add_handler(MessageHandler(Filters.photo, cargar_imagen_reemplazo)) dp.add_handler(MessageHandler(Filters.video, procesar_video))

# Utilizar OpenCV y MoviePy para procesar el video video = VideoFileClip(video_file.file_id) cara = cv2.imread(cara_seleccionada) imagen_reemplazo = cv2.imread(imagen_reemplazo.file_id)

logging.basicConfig(level=logging.INFO)

bot de telegram para cambiar caras en videos better

6
0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.