https://www.askpython.com/python/examples/images-into-cartoons
python.exe -m pip install --upgrade pip
pip install opencv-python pip install matplotlib pip install argparse
WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\rplug\AppData\Roaming\Python\Python313\Scripts' which is not on PATH. WARNING: The scripts pip.exe, pip3.13.exe and pip3.exe are installed in 'C:\Users\rplug\AppData\Roaming\Python\Python313\Scripts' which is not on PATH. WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\rplug\AppData\Roaming\Python\Python313\Scripts' which is not on PATH
pip install pyautogui --> cartoon3.py met gui
===== python cartoon.py --help python cartoon.py --filename "C:\Users\rplug\Pictures\Saved Pictures\20220608_134822000_iOS.jpg" python cartoon.py --show 0 --output python cartoon.py --show 1 --output "C:\temp\image_output.jpg"
python cartoon2.py --help
===== python arguments: python script.py arg1 arg2
import sys
script_name = sys.argv[0] # The script name arguments = sys.argv[1:] # All arguments after the script name
print(f"Script Name: {script_name}") print(f"Arguments: {arguments}")
==== python argparse example: python script.py --name John --age 30
import argparse
parser = argparse.ArgumentParser(description="Example script with arguments")
parser.add_argument("--name", type=str, help="Your name") parser.add_argument("--age", type=int, help="Your age")
args = parser.parse_args()
print(f"Name: {args.name}") print(f"Age: {args.age}")
====
python script.py
import click
@click.command() @click.option('--name', prompt='Your name', help='The person's name.') @click.option('--age', prompt='Your age', help='The person's age.') def greet(name, age): click.echo(f"Hello {name}, you are {age} years old!")
if name == 'main': greet()
==== https://pyseek.com/2022/09/face-recognition-login-system-using-python/
=== https://deepai.org/machine-learning-model/text2img
https://deepai.org/dashboard/profile
API-key: 81b9db52-fcc4-4a61-a56c-0ab92d724b28
DeepAI Genereer afbeeldingen op basis van tekst (text-to-image), verschillende stijlen, aanpasbare belichting en kleuren Ja, met een gratis API-sleutel DeepAI Image Generator
pip install requests
blijkt niet gratis
===