Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoreML Player

Try your CoreML Models on multiple videos and images easily and quickly.


Requirements

macOS 13.0+

Currently supports Object Detection and Classification models that can be used with Vision framework.

Features

  • Control main configuration via CLI
  • Support for USB camera video feed
  • Simple HTTP API to retrieve current detections

CLI Options

-listCameras

List available cameras and exit. Each camera has a Unique ID allowing selecting it with the option -camera.

-listScreens

List available screens and exit. Each screen has a Unique ID allowing selecting it with the option -fullscreen.

-camera id

Use the provided ID to select a camera as the video feed. The camera ID is provided with the option -listCameras. This option cannot be used with the option -video as they are mutually exclusive.

-video pathname

Use the provided video file as the source. The path can be relative or absolute.

-model pathname

Use the provided model file. The path can be relative or absolute. The provided model is a CoreML model. If no model is provided, the internal model yolov3.mlmodel is used.

-fullScreen id

Use the provided ID to select the screen as video output. The video is full screen without any UI component. Note that the video and/or the screen can be portrait or landscape. The video will be displayed with a maximum fitting size while keeping its aspect ratio.

-overlay

Overlay detection boxes, labels, FPS, and the current number of items detected on the video.

-labels labels

Keep only the provided labels. They are provided as a comma-separated list. Overlays will then only display these labels.

-loop

If the mode is -video, loop the video. Has no effect in -camera mode.

-server port

Enable the following HTTP API at the provided port number:

GET /detections

Returns the detections of the current frame (JSON array: boxes, labels, confidence).

Screenshots

videos Video by Brett Sayles from Pexels

images Photo by Patrick Tomasso from Unsplash


For demo purposes and being able to test the functionality quickly, the project includes a sample mlmodel file:

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages