Author Topic: HalVisionX Beta  (Read 165706 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6761
    • View Profile
HalVisionX Beta
« Reply #45 on: May 16, 2009, 02:04:57 pm »
"SHIPPING PRICES ??" oohh oohh my heart my heart i'm commin elizabeth do yah hear me i'm coming, im coimin  to join yah !! (fred sanford !!) lol [:D]
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #46 on: May 16, 2009, 02:54:33 pm »
Hey snowman, is yer source code the same version as yer compiled prog?  cos im seeing 1.0.0.6 on src and 1.0.0.9 on prog..is there a switch in visual studio on vista for compiling for XP?  i'll search around and see if i can figure out the deal...maybe it has to do with the way vista access's webcams and such...i am supposing that it does it slightly different from XP.  Hence different driver models for the different OS's.
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #47 on: May 16, 2009, 04:28:59 pm »
hey snowman, i don't have visual studio, but i see that microsoft has express versions for free for download...i'm grabbing the entire visual studio express ISO right now...will this be good enough for code debugging or am i gonna need the full Visual Studio 2008?  I'm grabbing the MSDN express library too...what is your actual IDE?  i wanna be on the same page as you so that we can hammer out this XP bug...if we get this workin, then i'll start crackin on an emotional recognition interface for HAL kinda like the fraunhoffer demo..

http://www.iis.fraunhofer.de/EN/bf/bv/kognitiv/biom/dd.jsp

have you tried this demo yet?  i think i would be a great addition to hal's vision..it can individually tell different faces and different sightings of those faces, as well as many other little tricks.  check it.

 

jasondude7116

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
HalVisionX Beta
« Reply #48 on: May 16, 2009, 04:33:30 pm »
hey snowman- is there any info available for the vision program that would give me an idea of the capabilities of it? (i mean the vision software, not your program)

the vision thing has capabilities that i am interested in, such as the ability for Hal to compare what it is told to vision - in order to look for a truth.  e.g. the more senses the more alive.
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #49 on: May 16, 2009, 04:36:33 pm »
From what i can see, this is the basis of snowmans vision software..

http://sourceforge.net/forum/forum.php?forum_id=922775

but getting halvisionx to run on XP is kinda broken at the moment, where it works fine on Vista...but it is based on EMGuCV...
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #50 on: May 16, 2009, 06:18:14 pm »
just for skites and giggles, i tried halvisionx in XPSP3 Parallels on my mac...needless to say, it wouldnt even install.  i think imma bout to format my system and try witha fresh XP..see if i cant track down the problem...i have been running the same xp install for 5 years straight tho and it is still tiptop.  kind of a shame to kill it now.
 

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
HalVisionX Beta
« Reply #51 on: May 16, 2009, 09:17:44 pm »
I have tried to follow this topic from the begining. The only thought that came to me was that the webcam software might be a 64 bit software and so it would not run on XP's 32 bit code.
Bill [?]
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #52 on: May 16, 2009, 09:46:20 pm »
well, as soon as visual studio pro finished d/l'ing from msdn, i'll recompile in winXP PRO SP3 for 32-bit and see what happens...that was a good call bill. thanks for the protip.
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #53 on: May 16, 2009, 09:54:23 pm »
hey snowman, do i need any special libraries or anything b4 i compile this in windows xp?
 

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
HalVisionX Beta
« Reply #54 on: May 16, 2009, 11:44:00 pm »
Sorry for the delay, rlederer, JasonDude, I had to go to a funeral today. She was a very good and sweet mother to her children and loved everybody. Her name was Bessy Macarty and she will be sorely missed.

*****************

quote:

JasonDude
hey snowman- is there any info available for the vision program that would give me an idea of the capabilities of it? (i mean the vision software, not your program)

the vision thing has capabilities that i am interested in, such as the ability for Hal to compare what it is told to vision - in order to look for a truth. e.g. the more senses the more alive.



Just about anything is possible... I've seen face-recognition software that uses a face database and compares those images to every image it sees through the cam (one pic at a time)... My software uses an XML file to somehow identify a face and then place an image square around it. I know that an image is nothing but a Matrix of points, each given a different color(pixels)... a matrix can be made by creating an array of arrays. If each point can be compared to a point on a databased picture and then the distance between groups of similar (colored or gray) points are compared to within a specific tolerance then I suppose anything could be identified. As long as you had a picture or series of pictures to identify with...


Check out this, it was posted on another thread here. Look up OpenCV on YouTube and go for broke.[:)]

http://www.youtube.com/watch?v=V7UdYzCMKvw&feature=related



*****************

rlederer
 
quote:
Hey snowman, is yer source code the same version as yer compiled prog?

Yes... I just kept compiling and experimenting, but it is the same.. no changes

quote:

cos im seeing 1.0.0.6 on src and 1.0.0.9 on prog..is there a switch in visual studio on vista for compiling for XP?


I thought about that idea... I haven't a clue... I wish there was a switch...

quote:

i'll search around and see if i can figure out the deal...maybe it has to do with the way vista access's webcams and such...i am supposing that it does it slightly different from XP. Hence different driver models for the different OS's.

I think that EmguCV and OpenCV should work the same for both Vista and XP... I could be wrong but EmguCV and OpenCV would not just leave out XP.... I hope not anyway... no guaranties

I am using Microsoft Visual Studio 2008 Professional Edition and it's up-to-date. Running with Microsoft .Net Framework Version 3.5 SP1

My PC has Intel Core Duo 3 GHz processor and 2 Gig of Ram , running on 32bit Windows Vista Ultimate. Just a 200 gig IDE hard drive... I have plenty of extenal hard drives though.. I built it all from individual parts. (now all it lacks is a soul[:)])

The source code (I think) shouldn't have any problems opening in your Visual Basic... All the librarys needed to run it are there.... I hope. I'm using Emgu CV Version 1.5.0.0 and I downloaded it from the http://www.emgu.com/wiki/index.php/Main_Page site.

This is also a good reference site... since EmguCV is based off of OpenCV.
http://opencv.willowgarage.com/wiki/

I can give you some pointers on what I did and why I did it.... I'm not a professional programmer and my work reflects that... I just like to get the job done in as little code as possible...


*****************

Bill819, your comments and attention to this thread are very valuable to me... please help whenever and however you can..[:)]
« Last Edit: May 16, 2009, 11:46:24 pm by snowman »
Live long and prosper or die trying.

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #55 on: May 16, 2009, 11:50:33 pm »
well, the code loaded and built fine...but it wouldn't publish...started moanin about .net 3.5sp1 not being in the microsoft SDKs folder...i'm re downloading .net AGAIN now...but i noticed in the thread about hal not letting .net install correctly...is this true...do i need to kill hal then install .net then reinstall hal?
 

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #56 on: May 16, 2009, 11:52:26 pm »
also, sorry bout yer loss man.  sorry for the world.
 

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
HalVisionX Beta
« Reply #57 on: May 17, 2009, 12:08:40 am »

I'm not certain if it's really true... but I'd take ONE's word for it... He's an IT man!

You can try this just for kicks...

http://www.microsoft.com/downloads/details.aspx?FamilyId=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en
« Last Edit: May 17, 2009, 12:09:37 am by snowman »
Live long and prosper or die trying.

rlederer

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://www.evcomputers.com
HalVisionX Beta
« Reply #58 on: May 17, 2009, 12:52:54 am »
ok, i got it...i had to remove hal, install the FULL .net 3.5sp1 release (230~MB),then reinstall hal.  GEEZ!  and i got halvisionx to publish ,jsut like yours...but still not running..where is yer code to open the webcam at in here...i'm kinda new to VS2008..
 

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
HalVisionX Beta
« Reply #59 on: May 17, 2009, 01:27:17 am »
All this (minus the comments which I just added for you) is in the Form1.vb shown in the Solutions Explorer. Just double click anywhere on the Form1[Designer] to open it's code.


This has to be called when the form loads. I tried calling it within the Timer1 area but it slowed the program down.

quote:
   
Dim objectToDetect As New HaarCascade(".Datahaarcascade_frontalface_alt2.txt")
    Dim Captureit As New Capture()
    Dim CaptureGray As Image(Of Gray, Byte)
    Dim CaptureColor As Image(Of Bgr, Byte)



****************************************************************
 
quote:

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        Timer1.Stop()

        Dim Wid, Hit As Integer


*************************************
'This Captures the individual frames each time the timer fires...

        CaptureGray = Captureit.QueryGrayFrame()
        CaptureColor = Captureit.QueryFrame()

*************************************



        Wid = 75
        Hit = 75

        If RadioButton1.Checked = True Then
            Wid = 65
            Hit = 65
        End If

        If RadioButton2.Checked = True Then
            Wid = 90
            Hit = 90
        End If

        If RadioButton3.Checked = True Then
            Wid = 125
            Hit = 125
        End If

        If RadioButton4.Checked = True Then
            Wid = 200
            Hit = 200
        End If



*************************************

I re-sized the Frames here to allow for different sensitivity levels before it goes into the CaptureGray.DetectHaarCascade (objectToDetect)(0). This holds the an XML (which I renamed to a
.txt file) that actually finds the face.

        CaptureGray = CaptureGray.Resize(Wid, Hit)
        CaptureColor = CaptureColor.Resize(Wid, Hit)


*************************************

 This finds the faces and runs a another thread which sends a response to Hal, the backgroundworker is set to activate only after being called upon by the apearance of a new face but also after a set period of time indicated by the DropDownBox shown on the HalV window.

        For Each face As MCvAvgComp In CaptureGray.DetectHaarCascade(objectToDetect)(0)
            CaptureColor.Draw(face.rect, New Bgr(Color.White), 1)
            If BackgroundWorker1.IsBusy = False Then BackgroundWorker1.RunWorkerAsync()
        Next

*************************************


        If ImageBox1.Width <= 0 Then
            Wid = 200
        Else
            Wid = ImageBox1.Width
        End If


        If ImageBox1.Height <= 0 Then
            Hit = 200
        Else
            Hit = (3 * ImageBox1.Width) / 4
        End If

*************************************

This allows the HalV window to be resized and also keeps it in proportion (3 by 4 box)

        CaptureColor = CaptureColor.Resize(Wid, Hit)

*************************************

        ImageBox1.Image = CaptureColor


        CaptureColor = Nothing
        CaptureGray = Nothing
        Hit = Nothing
        Wid = Nothing

        Timer1.Start()

    End Sub






« Last Edit: May 17, 2009, 02:06:01 am by snowman »
Live long and prosper or die trying.