Hello, I'm just a beginner in Racket and want to use the opencv bindings. I have this small basic code :
#! /usr/bin/env racket #lang racket/base (require opencv/highgui) ; lecture des deux images et affichage (pour tester) (define imleftname #"./tsukubaleft.jpg") (define im-left (imread imleftname CV_LOAD_IMAGE_COLOR)) (imshow "Display window" im-left) (define key (cvWaitKey 0)) (exit 0) The execution from the shell is ok but when executing it in the DrRacket console I get this error on (imread imleftname CV_LOAD_IMAGE_COLOR) : ptr-ref: contract violation expected: (and/c cpointer? (not/c (lambda (p) (pointer-equal? p #f)))) given: #f argument position: 1st other arguments...: #<ctype> Thanks for your help in advance to understand, Frédéric -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.