GrabResult = camera.RetrieveResult( 5000, pylon. Model=load_model( 'models/model1.h5', custom_objects=)Ĭamera.StartGrabbingMax(numberOfImagesToGrab)Ĭonverter.OutputPixelFormat = pylon.PixelType_BGR8packedĬonverter.OutputBitAlignment = pylon.OutputBitAlignment_MsbAligned In addition, the Viewer provides tools for configuring network and USB connectivity. The integrated camera documentation explains how to address the functions of your Basler camera in your application development. ![]() It can be skipped for saving processing # time. It offers a wide range of functions for configuration. if converter.ImageHasDestinationFormat(grabResult): ![]() # Now we can check if conversion is required. Print(converter.IsSupportedOutputFormat(pylon.PixelType_Mono8)) TargetImage = (pylon.PixelType_Mono8, grabResult.GetWidth(), grabResult.GetHeight()) Print( "Waiting for an image to be grabbed.")Ĭamera = pylon.InstantCamera(().CreateFirstDevice()) ![]() # Try to get a grab result for demonstration purposes. converter = pylon.ImageFormatConverter()Ĭonverter.OutputPixelFormat = pylon.PixelType_Mono8 # Create the converter and set parameters. # This is a helper function for showing an image on the screen if Windows is used, # and for printing the first bytes of the image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |