This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import cv2 | |
| import os | |
| from PIL import Image | |
| import tempfile | |
| from transformers import AutoProcessor, LlavaForConditionalGeneration | |
| import glob | |
| from tqdm import tqdm | |
| import math | |
| import torch | |
| import hashlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Remember to request permissions for picture gallery, image capture and audio recording | |
| @OptIn(ExperimentalForeignApi::class) | |
| @Composable | |
| fun VideoScreen() { | |
| var isRecording by remember { mutableStateOf(false) } | |
| val output = remember { AVCaptureMovieFileOutput() } | |
| var device = remember { | |
| AVCaptureDevice.devicesWithMediaType(AVMediaTypeVideo).firstOrNull { device -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pip install beautifulsoup4 lxml | |
| # - Can handle createTable, addUniqueConstraint, and addForeignKeyConstraint | |
| # - Every command has to be wrapped in an own changeset to be found by the script | |
| from bs4 import BeautifulSoup | |
| file = open("data.txt", "r") | |
| xml = BeautifulSoup(file, 'xml') | |
| changesets = xml.find_all('changeSet') |