loading
 
SetBitmap function
Bob Simmons from Your Country  [13 posts]
19 days
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 Your Country  [13 posts] 19 days
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...??

 Reply  New Post   Forum Index