Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 as np | |
class BagOfFeatures: | |
"""This is a class of Bag-of-Features by K-means for OpenCV""" | |
codebookSize=0 | |
classifier=None | |
def __init__(self, codebookSize): | |
self.codebookSize=codebookSize | |
self.classifier=cv2.KNearest() |
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
cv::Mat image=cv::imread("./image.png",-1); | |
cv::Rect rect(startColumn,startRow,image.cols,image.rows); | |
cv::Mat subdst=dst(rect); | |
image.copyTo(subdst); |
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
# License: MIT License | |
__author__="Alfred Increment" | |
import glob | |
import os | |
import datetime | |
dt_now = datetime.datetime.now() | |
dateString=dt_now.strftime('%Y-%m-%d') |
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
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.Windows.Speech; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class STT : MonoBehaviour | |
{ | |
public UnityEngine.UI.Text resultDisplay; |
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
# -*- coding: utf-8 -*- | |
# This code is distributed under the 3-Clause BSD license (New BSD license). | |
# 基本的に作者の名前を書いていただければ、商用利用も可能です。なお、保証はいたしかねます。 | |
__author__ = 'alfredplpl' | |
# This fucntion can use on Unix systems (Mac or Linux) . | |
TIMEOUT_VAL=-1 | |
def waitKey(miliseconds): |
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
# coding: UTF-8 | |
__auhtor__="alfredplpl" | |
#See also: | |
#https://westus.dev.cognitive.microsoft.com/docs/services/5639d931ca73072154c1ce89/operations/56f23eb019845524ec61c4d7 | |
#http://labs.eecs.tottori-u.ac.jp/sd/Member/oyamada/OpenCV/html/py_tutorials/py_gui/py_video_display/py_video_display.html | |
import httplib,cv2,json | |
## constants |
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
No | Part | Correct | Choices | |
---|---|---|---|---|
1 | 1 | 3 | 5 | |
1 | 2 | 2 | 5 | |
1 | 3 | 5 | 5 | |
1 | 4 | 3 | 5 | |
1 | 5 | 5 | 5 | |
2 | 6 | 4 | 5 | |
3 | 7 | 5 | 5 | |
4 | 8 | 1 | 5 | |
5 | 9 | 3 | 5 |
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
No | Part | Correct | Choices | |
---|---|---|---|---|
1 | 1 | 1 | 5 | |
1 | 2 | 3 | 5 | |
1 | 3 | 1 | 5 | |
1 | 4 | 1 | 5 | |
1 | 5 | 5 | 5 | |
2 | 6 | 1 | 5 | |
3 | 7 | 5 | 5 | |
4 | 8 | 2 | 5 | |
5 | 9 | 5 | 5 |