An application for capturing frames from videos and extracting colors.
OverviewEnGitHub.mov
Control panel. There are workspaces in the application
To select a workspace, use the tab navigation bar
To change the application settings, click on the gear
To get started with the video, import the files. There are several options for this:
Drag and drop files to the Grab queue tab
Import files via the application menu
After importing the video, you are taken to the capture queue tab
The window consists of a table of imported videos. The first step is to select the export folder. Next, decide on the assortment, you can choose an excerpt or the whole.
Specify the frame capture interval in seconds.
Finally, click the Start button and manage the process.
The resulting frames in the process are saved to disk at the specified path by the user in an automatically created folder with the same name as the video file. The name of the frames is the name of the video file with the timecode suffix. If the barcode saving switch is enabled in the settings, it will be saved in the same directory. At the end, a file explorer will open with the capture results folder.
The resulting color barcode can be viewed by clicking on its field. The file is also saved to the frames folder.
Below are a few barcodes from different movies.
To automatically import captured frames, you can click on the context menu on the video
Individual frames can be imported by dragging and dropping into the "Image Colors" tab:
Or through the application menu:
Functionality to create a color barcode on an image. Going to the second tab with the photo icon, you need to import images by dragging them into the window. A side navigation bar with images will open. Once you select the one you want, you can see a preview of the barcode that was generated automatically. By clicking on a color cell of the barcode, you can manually select a color with an eyedropper and so on with each segment. To save the result, you must click the “Export” button for a single image or the “Export All” button for the entire queue.
The application offers several algorithms to extract colors.
- Area Average. Finds the dominant colors of an image by using using a area average algorithm.
- Dominant Color. Finds the dominant colors of an image by iterating, grouping and sorting pixels using a color difference formula.
- Means Clustering. Finds the dominant colors of an image by using using a k-means clustering algorithm.
It is also possible to exclude white and black colors.
The operation of the application can be configured. The launch of the window for this lies in an intuitive place - in the upper panel of the system by clicking on the name of the program or by command ⌘ + ,.
Or button on toolbar
The settings window is divided into two tabs.
There is a slider to select the compression ratio of JPG images. And the switch for opening the folder with the resulting images at the end of the capture process.
The barcode is needed for different tasks and what it should be should be determined by the user. The average color or colors are determined on each frame, their number can be selected. The resolution of the final image may need to be large or small, so there are margins for the size in pixels. The barcode settings for an image consist of the height of the resulting pattern and the number of middle pattern colors.
Contributions to GrabShot are always welcome. To see what is currently being worked on, you can go to the task manager. To report bugs and feature requests, open an issue. To contribute to the codebase, look at the backlog in the task manager and submit a feature request pull request. Join the development team.
The support by email – [email protected].
This software uses code of FFmpeg licensed under the LGPLv2.1, compiled with a wrapper FFmpegKit.