loading
 
SetBitmap function
Bob Simmons from United States  [17 posts]
6 year
I'm trying to streamline my program (VB.Net) - and want to load a bitmap rather than a file into roboRealm.
LoadImage works fine, but when I replace it with SetBitmap it won't run.. see below

      

            'intReturn = rr.LoadImage("source", strFileName)
            'If intReturn <> -1 Then
            '    Return False
            'End If

            intReturn = rr.SetBitmap("source", CObj(pbImageToInspect.Handle))
            If intReturn <> -1 Then
                Return False
            End If


Also - on a different note - Is it possible to train images (image_matchin, Object_Recognition) using the API/COM?
Bob Simmons from United States  [17 posts] 6 year
I figured out the SetBitmap:

            Dim bm As Bitmap = pbImageToInspect.Image
            Dim bmHandle As IntPtr = bm.GetHbitmap
            intReturn = rr.SetBitmap("source", CObj(bmHandle))
            If intReturn <> -1 Then
                Return False
            End If

Still looking to know if can train images programmatically...??

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index