-
ccc
Pyui's are just json files, so you can also just [change file extension from .pyui -> .json] edit them directly [and then change the extension from .json -> .pyui].
-
ccc
@cvp Cool looking output! I am trying to follow along at home but have a few questions:
- What image (of a sudoku puzzle) did you start with?
- How did you constrain the labels to just 0-9?
- Could we have a GitHub repo for this effort? With goals:
- Recognize sudoku digits from a still image
- Recognize sudoku digits from a real-time image
-
ccc
- To build credibility so that when they do put up a post that has a link, folks will click on it.
- To leave a post that they can later Edit to add a link.
-
ccc
import photos pil_image = photos.pick_asset(assets=photos.get_assets()).get_image()
-
ccc
https://github.com/googleapis/google-cloud-python/blob/master/api_core/setup.py#L42 leads us to https://github.com/grpc/grpc which is largely a C codebase so https://pypi.org/project/grpcio will be a problem.
-
ccc
Try to install google-api-core[grpc] first. If that fails the please post the error message here.
-
-
ccc
Spam generated from https://forum.omz-software.com/topic/5302/thoughts-on-pythonista-subreddit
-
ccc
def pil2ui(pil_image): buffer = io.BytesIO() pil_image.save(buffer, format='PNG') return ui.Image.from_data(buffer.getvalue())
is memory leaking buffer which has been proven to crash Pythonista when multiple images are processed. A better approach is to use a context manager to force the .close().
def pil2ui(pil_image): with io.BytesIO() as buffer: pil_image.save(buffer, format='PNG') return ui.Image.from_data(buffer.getvalue())
-
ccc
Indentation is super important in Python. Remove all indentation from your last two lines.
-
ccc
Sounds like you should be using hostname instead of IP address.
-
-
ccc
You almost never need to use dict.keys().
dct = {"12345": 6, "01928": 7} lst = [1, 2, 3, 12, 34, 234] print("\n".join(key for key in dct if all(str(i) in key for i in lst)))
-
ccc
https://github.com/cztomczak/cefpython is 54% C++... It will not work on Pythonista.
-
ccc
I suspect that the script is the impressive https://github.com/cvpe/Pythonista-scripts/blob/master/contacts on map.py and that memory is being allocated but not being released.
-
-