Colab now writes code automatically using AI

MLBoy
Oct 16, 2023

--

Just type in the text and it will program it automatically.

It is now possible to generate and run programs using English sentences.

Below is the generated code


import cv2
import numpy as np
import time

img1 = cv2.imread('image1.jpg')
img2 = cv2.imread('image2.jpg')

img1 = cv2.resize(img1, (img2.shape[1], img2.shape[0]))

num_frames = 100

video = cv2.VideoWriter('cross_dissolve.mp4', cv2.VideoWriter_fourcc(*'mp4v'), 30, (img1.shape[1], img1.shape[0]))

for i in range(num_frames):
alpha = i / num_frames

cross_dissolve = cv2.addWeighted(img1, alpha, img2, 1 - alpha, 0)

video.write(cross_dissolve)

video.release()

cv2.destroyAllWindows()

The following is a video created by running the generated code.

It’s free to use.

🐣

I’m a freelance engineer.
Work consultation
Please feel free to contact us with a brief development description.
rockyshikoku@gmail.com

I am creating applications using machine learning and AR technology.

I send machine learning / AR related information.

GitHub

Twitter
Medium

--

--