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
// Character code of this file is utf-8. | |
// kono fairu no mojiko-do ha utf-8 desu. | |
// このファイルの文字コードはutf-8です。 | |
// 2010/11/29 ツイートの中のURLを自動でリンクにするようにしました。 | |
// 2010/10/13 たくさんコメント追加しました。 | |
twdata =new Array(); | |
var page = 0; | |
var fin = 0; |
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
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>文字登場回数カウンタ</title> | |
<style> | |
body{ | |
background-color:#eee; | |
color:#555; | |
} |
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
// HSVに変換して肌色っぽい領域を抽出する | |
// 顔認識結果は全く使わない | |
void detect(void) | |
{ | |
IplImage *image_src; // 元画像 カラーモデルはBGR | |
IplImage *image_src_hsv; // 元画像をHSV表色系に変換したもの | |
IplImage *image_only_hadairo; // 肌色領域だけを抽出したマスク画像 | |
IplImage *image_dst; // 何らかのフィルタの結果を入れる予定だけど、今は元画像のまま | |
char* file_name = "images/purikura.jpg"; | |
if((image_src = loadImage(file_name, CV_LOAD_IMAGE_ANYCOLOR)) == NULL){ |
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
package fx; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import javafx.application.Platform; | |
import javafx.embed.swing.JFXPanel; | |
import javafx.scene.Group; | |
import javafx.scene.Scene; | |
import javafx.scene.web.WebEngine; |
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
package com.main; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.app.ProgressDialog; | |
import android.content.DialogInterface; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.os.Message; | |
import android.view.View; |
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
package main; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.JScrollPane; | |
import javax.swing.JTextArea; |
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
package main; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.util.Vector; | |
import javax.swing.BoxLayout; | |
import javax.swing.JButton; |
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
package main; | |
import java.awt.Frame; | |
import java.awt.TrayIcon; | |
import java.awt.event.MouseEvent; | |
import java.awt.event.MouseListener; | |
import java.awt.event.WindowEvent; | |
import java.awt.event.WindowListener; | |
/** |