Skip to main content

LalaTools

LalaTools is a Python package that provides various utilities for image processing and file system management. The current version (0.0.10+) includes the following modules and functions:

Modules

1. digital_image_processing (image_process)

This module provides functions for handling and processing digital images. Here are the functions included in this module:

  • match_image_check: This function compares two images and checks if they match based on a given accuracy criterion. It returns the position and accuracy if the images match.

  • match_with_image_write: Similar to match_image_check, this function also compares two images. If the images match, it generates a 'match.png' image file showing the matching areas.

  • get_capture_image_on_app: This function captures a screenshot of a specified application window.

  • test_screen: This function is used for testing purposes.

  • cv2_to_pil: This function converts an image from OpenCV format to PIL format.

  • pil_to_cv2: This function converts an image from PIL format to OpenCV format.

2. manage_file_system (file_system)

This module provides functions for managing and manipulating file paths. Here are the functions included in this module:

  • del_head: This function removes the head of a given file path.

  • replace_split_mark: This function replaces the path split marks (like '//', '/', '\') in a given file path with a specified mark.

  • get_file_list: This function returns a list of files in a specified directory path.

Installation

The package can be installed using pip:

pip install LalaTools

Usage

Here is an example of how to use the match_image_check function:

from lalatools.digital_image_processing import image_process

# Assume 'image1.jpg' and 'image2.jpg' are images in your local directory
result = image_process.match_image_check('image1.jpg', 'image2.jpg')

print(result)  # prints the position and accuracy if the images match

Contributing

If you would like to contribute to the development of LalaTools, please feel free to make a pull request.

License

LalaTools is licensed under the MIT license.

Release files for LalaTools 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for LalaTools 0.0.11
File Interpreter ABI Platform
LalaTools-0.0.11-py3-none-any.whl Python 3 none any Details

Release files / LalaTools-0.0.11-py3-none-any.whl

Download URL LalaTools-0.0.11-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9413778cea40e10574bc5ef4194bbb3aaab7cd41936e68d462fa1f06a92f0929
BLAKE2b-256 checksum
How to use checksums
15a1e6790501dbf36fbe241879118c0c2de915aa2ade344c51a25bb2beb492b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.11 This release

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page