ATHARVA MOHITE UR THE BEfrom IPython.display import display, Javascript from google.colab.output import eval_js from base64 import b64decode def take_photo(filename='photo.jpg', quality=0.8): js = Javascript(''' async function takePhoto(quality) { const div = document.createElement('div'); const capture = document.createElement('button'); capture.textContent = 'Capture'; div.appendChild(capture); const video = document.createElement('video'); video.style.display = 'block'; const stream = await navigator.mediaDevices.getUserMedia({video: true}); document.body.appendChild(div); div.appendChild(video); video.srcObject = stream; await video.play(); // Resize the output to fit the video element. google.colab.output.setIframeHeight(document.documentElement.scrollHeight, true); // Wait for Capture to be clicked. await new Promise((resolve) => capture.onclick = resolve); const canvas = document.createElement('canvas'); canvas.width = video.videoWidth; canvas.height = video.videoHeight; canvas.getContext('2d').drawImage(video, 0, 0); stream.getVideoTracks()[0].stop(); div.remove(); return canvas.toDataURL('image/jpeg', quality); } ''') display(js) data = eval_js('takePhoto({})'.format(quality)) binary = b64decode(data.split(',')[1]) with open(filename, 'wb') as f: f.write(binary) return filename and then create a new code area from IPython.display import Image try: filename = take_photo() print('Saved to {}'.format(filename)) # Show the image which was just taken. display(Image(filename)) except Exception as err: # Errors will be thrown if the user does not have a webcam or if they do not # grant the page permission to access it. print(str(err))
Thank you so much for your comments they mean the world It was quite challenging attempting to 1:1 the track instead of making the usual "Epic Version" although I'm really glad it turned out half decent in the production!
Very cool. I really liked the piano at the beginning and vocals crazy good. I just wish there was slightly more build up before first drop in the music, it felt kinda flat.
ATHARVA MOHITE UR THE BEfrom IPython.display import display, Javascript
from google.colab.output import eval_js
from base64 import b64decode
def take_photo(filename='photo.jpg', quality=0.8):
js = Javascript('''
async function takePhoto(quality) {
const div = document.createElement('div');
const capture = document.createElement('button');
capture.textContent = 'Capture';
div.appendChild(capture);
const video = document.createElement('video');
video.style.display = 'block';
const stream = await navigator.mediaDevices.getUserMedia({video: true});
document.body.appendChild(div);
div.appendChild(video);
video.srcObject = stream;
await video.play();
// Resize the output to fit the video element.
google.colab.output.setIframeHeight(document.documentElement.scrollHeight, true);
// Wait for Capture to be clicked.
await new Promise((resolve) => capture.onclick = resolve);
const canvas = document.createElement('canvas');
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
canvas.getContext('2d').drawImage(video, 0, 0);
stream.getVideoTracks()[0].stop();
div.remove();
return canvas.toDataURL('image/jpeg', quality);
}
''')
display(js)
data = eval_js('takePhoto({})'.format(quality))
binary = b64decode(data.split(',')[1])
with open(filename, 'wb') as f:
f.write(binary)
return filename
and then create a new code area
from IPython.display import Image
try:
filename = take_photo()
print('Saved to {}'.format(filename))
# Show the image which was just taken.
display(Image(filename))
except Exception as err:
# Errors will be thrown if the user does not have a webcam or if they do not
# grant the page permission to access it.
print(str(err))
ok nerd
wtf
Anyone call the fire department because this song is fire! 🔥🔥🔥
WOAHHH VERY COOL COLLAB YOU BOTH DID AMAZING!! The mix sounds so gooood
Can't wait for this game to release
Thank you so much for your comments they mean the world
It was quite challenging attempting to 1:1 the track instead of making the usual "Epic Version" although I'm really glad it turned out half decent in the production!
This is so sick! You absolutely nailed it, great work you two!!
Thank you so much for the kind words!
Bro can't just put in words how amazing the cover is! Kudos to vocals and production!
Thank you so much! I tried my best for this since I'm not well versed in electronic music
this should get more attention
Thank you!
This is SO GOOD, you kill it every time!! 🔥
You Killed it on the Vocals!!
Perfect
Killed it! Love the new ideas ❤❤❤
banger
Amazing cover! Gave me goosebumps
Awesome work. Its sounds so smoothly
Thank you!
Very cool. I really liked the piano at the beginning and vocals crazy good. I just wish there was slightly more build up before first drop in the music, it felt kinda flat.
Thank you the Feedback I'll improve upon it in future productions!
Wow! So amazing! I like how you guys able cover this song so beautifully! 😍😍
can't get enough of this! puts me in such a perfect mood while doing creative work.
its sooooooo gooooood! Beautiful
Wow i think i love this better!! This is giving me goosebumps cuz its so good!!! 🔥🔥🔥
omg... this is so cool!! you two are G.O.A.T (anyway nice vocal mix there)
Thank you so much! This is probably my second vocal mix ever as I'm still quite a beginner at moxing vocals hope to get better overtime!
That's some good vocal and Beat ..
Thank you so much. I was looking for this song ever since the trailer 😭🔥🔥🔥
Cool
Epic , masterpiece
Good job
Thanx for making this 🕊️
Glad you like it!
Song here sounds clearer than in the trailer.
HOLY SHIT
👏👏👏
Song of genshin killer
The 1st minute is so good. The rest feels off to follow.
Still waiting for Liyue battle theme (Rapid as Wildfire's) epic version ^^
I've not forgotten it's on the list!
when will it come to spotify
Will be out soon!
There's little edit to the vocal compare to the original, but this is good.
1:10
1:31
1:49
2:20
2:35
😎😎😎
Game looks promising! Music is good!...
Good lord. Another gacha game?...Well ah uh..