This file contains 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
#include <gst/gst.h> | |
#include <iostream> | |
#include <memory> | |
#include <ctime> | |
#include <chrono> | |
#include "unistd.h" |
This file contains 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
tcambin serial="20810358" name=source ! video/x-raw,format=GRAY8,width=1920,height=1080,framerate=30/1 ! videoconvert ! appsink name=sink | |
Press Esc to stop | |
No image reveived | |
--- FPS = 14.021855258540066 | |
--- FPS = 14.048198373782677 | |
--- FPS = 14.053658882220258 | |
--- FPS = 14.06174532870176 | |
--- FPS = 14.06463707090887 | |
--- FPS = 14.064004083831776 | |
--- FPS = 14.063271080079687 |
This file contains 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 numpy | |
import gi | |
from collections import namedtuple | |
gi.require_version("Gst", "1.0") | |
gi.require_version("Tcam", "0.1") | |
from gi.repository import Tcam, Gst, GLib, GObject |
This file contains 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 multiprocessing as mp | |
cap = cv2.VideoCapture(0) | |
manager = mp.Manager() # Comment this line to make the code work | |
with mp.Lock(): | |
cap.set(6, cv2.VideoWriter_fourcc(*list('MJPG'))) |
This file contains 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 numpy | |
import gi | |
from collections import namedtuple | |
import cv2 | |
gi.require_version("Gst", "1.0") | |
gi.require_version("Tcam", "0.1") | |
from gi.repository import Tcam, Gst, GLib, GObject |
This file contains 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
(kivy) ➜ kivy git:(master) ✗ make test | |
rm -rf kivy/tests/build | |
python -m nose.core kivy/tests | |
/usr/lib/python3.6/runpy.py:125: RuntimeWarning: 'nose.core' found in sys.modules after import of package 'nose', but prior to execution of 'nose.core'; this may result in unpredictable behaviour | |
warn(RuntimeWarning(msg)) | |
[WARNING] [Config ] Older configuration version detected (19 instead of 20) | |
[WARNING] [Config ] Upgrading configuration in progress. | |
[INFO ] [Logger ] Record log in /home/joel/.kivy/logs/kivy_18-04-03_0.txt | |
[INFO ] [Factory ] 194 symbols loaded | |
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) |
This file contains 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
[INFO ] Logger: Record log in /home/yonatan/.kivy/logs/kivy_18-01-11_8.txt | |
[INFO ] Kivy: v1.10.0 | |
[INFO ] Python: v3.6.3 (default, Oct 6 2017, 08:44:35) | |
[GCC 5.4.0 20160609] | |
[INFO ] Factory: 194 symbols loaded | |
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=None | |
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60 | |
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None | |
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) | |
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60 |
This file contains 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
[INFO ] Logger: Record log in /home/yonatan/.kivy/logs/kivy_18-01-11_5.txt | |
[INFO ] Kivy: v1.10.0 | |
[INFO ] Python: v3.6.3 (default, Oct 6 2017, 08:44:35) | |
[GCC 5.4.0 20160609] | |
[INFO ] Factory: 194 symbols loaded | |
[DEBUG ] Cache: register <kv.lang> with limit=None, timeout=None | |
[DEBUG ] Cache: register <kv.image> with limit=None, timeout=60 | |
[DEBUG ] Cache: register <kv.atlas> with limit=None, timeout=None | |
[INFO ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored) | |
[DEBUG ] Cache: register <kv.texture> with limit=1000, timeout=60 |
This file contains 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
from __future__ import print_function | |
import numpy as np | |
from sklearn.base import TransformerMixin | |
from sklearn.pipeline import Pipeline, FeatureUnion | |
from sklearn.model_selection import GridSearchCV | |
from sklearn.svm import SVC | |
from sklearn.datasets import load_iris | |
from sklearn.decomposition import PCA |