File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 99 (image-height plt-image-height)))
1010(require 2htdp/universe)
1111
12- (stopgrabbing)
13- (sleep 1 )
14-
1512(define pic_img (grabvideo))
16- (define pic (image->racket-image pic_img))
17-
18- (define depth_img (grabdepth))
19- (define depth (image->racket-image depth_img))
13+ (define pic (image->bitmap pic_img))
14+
15+ (define depth_img (grabdepth))
16+ (define depth (image->bitmap depth_img))
2017
21- (define depth+pic_img (grabdepth+video))
18+ (define depth+pic_img (grabdepth+video))
2219
2320(define (status t update_each)
2421 (above (text "Number of Ticks: " 12 "black " )
162159 (set! pic (image->racket-image pic_img))
163160 (set! pointer_pos (grabtopleft))));(img->pointer depth_img))))
164161 (underlay/xy pic (- (car pointer_pos) (/ radius 2 )) (- (cdr pointer_pos) (/ radius 2 )) (circle radius "solid " "yellow " )))
162+
163+
164+ ;;Terminate grabbing using:
165+ ; (stopgrabbing)
Original file line number Diff line number Diff line change 44
55(require rackinect/config)
66
7- (require scheme/foreign )
8- (unsafe! )
7+ (require ffi/unsafe )
8+ (require ffi/cvector )
99
10-
1110;#################Get the captures from libfreenect ###########
1211(define kinect_stop_c
1312 (get-ffi-obj 'kinect_stop_c rackinect-dylib-path
Original file line number Diff line number Diff line change 1010(when (not (directory-exists? local-collects-path))
1111 (system (string-append "mkdir -p " (path->string local-collects-path))))
1212
13- ;; 2. If vigracket -collects dir extist, delete it.
13+ ;; 2. If rackinect -collects dir extist, delete it.
1414(when (directory-exists? local-install-path)
1515 (delete-directory/files local-install-path))
1616
17- ;; 3. copy the installation contents to the local/collects/vigracket directory
17+ ;; 3. copy the installation contents to the local/collects/rackinect directory
1818(copy-directory/files (current-directory) local-install-path)
1919
2020;; 4. Load dll under windows, dylib under MacOS
You can’t perform that action at this time.
0 commit comments