<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import cv2
import sys
import os

class IkaInput_CVCapture:
	out_width = 1280
	out_height = 720 
	need_resize = False

	def read(self):
		ret, frame = self.cap.read()

		if not ret:
			return None

		if self.need_resize:
			return cv2.resize(frame, (self.out_width, self.out_height))
		else:<commit_msg>IkaInput_CVCapture: Deinterlace support<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import cv2
import sys
import os

class IkaInput_CVCapture:
	out_width = 1280
	out_height = 720 
	need_resize = False
	need_deinterlace = False

	def read(self):
		ret, frame = self.cap.read()

		if not ret:
			return None

		if self.need_deinterlace:
			for y in range(frame.shape[0])[1::2]:
				frame[y,:] = frame[y - 1, :]
				


		if self.need_resize:
			return cv2.resize(frame, (self.out_width, self.out_height))
		else:
{'fraction_non_alphanumeric': 0.1186623516720604, 'fraction_numerical': 0.028047464940668825, 'mean_word_length': 3.594059405940594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6678714', 'n_tokens_mistral': 397, 'n_tokens_neox': 342, 'n_words': 90}