semvec/pypi-packages huggingface dataset:
mp42frame 0.0.12
convert a video file or multiple video files in a directory into a series of image frames
Requires Python: >=3.7

# mp42frame.py

This Python script, `mp42frame.py`, is used to convert a video file or multiple video files in a directory into a series of image frames.

## Dependencies

- OpenCV (cv2)
- sys
- os
- glob

## Usage
1. For installation:
    ```
    pip install mp42frame
    ```

2. For a single video file:
    ```
    mp42frame <video_file.mp4>
    ```
    This will create a new directory with the same name as the video file (without the '.mp4' extension) and save the extracted frames as JPEG files in this directory.

3. For multiple video files in a directory:
    ```
    mp42frame <directory_path>
    ```
    This will process all '.mp4' files in the specified directory. For each video file, a new directory will be created with the same name as the video file (without the '.mp4' extension) and the extracted frames will be saved as JPEG files in these directories.

## Note
- The script will exit if no argument is provided.
- The frames are saved as 'frame_n.jpg', where 'n' is the frame number.
- The script will stop if the 'Escape' key is hit during the frame extraction process.
promsoft_weight_calc_interface 0.2.4
An interface for weight_calc service.
Requires Python: >=3.10,<4.0

# promsoft_weight_calc_interface
Interface for weight_calc microservice.

Usage:
```
from promsoft_weight_calc_interface import Entry, ComplEntry

my_entry = Entry(id=10004, cnt=2)
print(f"Entry as dict: {my_entry.dict()}")

my_compl_entry = ComplEntry(items=[Entry(id=10004, cnt=2), Entry(id=10005, cnt=2)], return_sizes_goods=True)
print(f"ComplEntry as dict: {my_compl_entry.dict()}")

```