S
H
A
R
E
Showing posts with label Process. Show all posts
Showing posts with label Process. Show all posts

Thursday, April 19, 2012

haarcascade porn and breast detection

I have two haarcascade for nude image detection, first is for breast detection, and for porn (nude) image detection.
Haarcascade for porn image detection, accuarate just 40%-50%, still have many false detection, but you can use for detecting a nude image. created by Indonesian people.
And haarcascade for breast detection, it have 70%-80% accuration. i don't know who made it, but i got it from Hackchina source code search engine.
now you can make your OpenCV to detecting a nude image by using this haarcascades. but you need for create a skin color detection algorithm for make detection more accurate! i will share for skin color detection algorithm in the next moment.

Read More!

Saturday, February 11, 2012

Java Execute Console Process and Get Output

To execute process you can use ProcessBuilder, like this:

ProcessBuilder pb = new ProcessBuilder("tasklist").redirectErrorStream(true);

use redirectErrorStream to make the BufferedReader can read if error message is returned.

Now, get the Process by executing it:
Process p = pb.start();
  
Then make a BufferedReader that can read the console output screen:
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));

You can read the respond of console process by using while loop like this:

while((str = br.readLine()) != null){
    retVal += str;
}

Here is the complete java function:

Read More!

Tuesday, July 05, 2011

Basic Concept of Databindings

Language: VB.net
Add two Textbox in your form, and then add this code when Form Load:

        ' When Textbox1 text changed, then Texbox2 too
        TextBox2.DataBindings.Add(New Binding("text", TextBox1, "text"))

        ' When Textbox2 text changed, then Texbox1 too
        TextBox1.DataBindings.Add(New Binding("text", TextBox2, "text"))


the two Textbox Will Also have same text.

Read More!

Saturday, June 11, 2011

get opened folder location in explorer using vb net

get opened folder location in explorer using vb net
I make it using VS 2010, in 2008 I think same. lets make new Visual Studio Project, Windows Form Application. and import this reference "" look this:

Read More!

Wednesday, June 01, 2011

VBnet Invoke Listbox Threading in Form

Imports System.Threading
Public Class Form1
    Delegate Sub SetText(ByVal tx As String)
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim t As New Thread(AddressOf AddList)
        t.Start()
    End Sub

Read More!

Sunday, May 29, 2011

Monday, May 16, 2011

VBnet Get Process List


'This A ConsoleApplication
Imports System.Diagnostics
Module Module1
    Sub Main()
        Dim proc() As Process = Process.GetProcesses()
        For Each p As Process In proc
            Try
                Console.Write(p.MainModule.FileName)
                If p.MainWindowTitle.Length > 0 Then
                    Console.WriteLine(" - " & p.MainWindowTitle)
                End If
            Catch ex As Exception
            End Try
        Next p
        Console.ReadKey()
    End Sub
End Module



Read More!

CSharp Get Process List

//This A ConsoleApplication
using System;
using System.Diagnostics; //manual using

class Program
{
    static void Main()
    {
        // Get List Of Running process
        Process [] proc = Process.GetProcesses();
        // Get one-by-one of process lists.
        foreach (Process p in proc)
        {
            try
            {
                Console.Write(p.MainModule.FileName.ToString());
                if (p.MainWindowTitle.Length > 0)
                Console.WriteLine(" - " + p.MainWindowTitle.ToString());
                else Console.WriteLine();
            }
            catch (Exception e){}
       }
        Console.ReadKey();
    }

Read More!