carefree0910 / carefree-drawboard Goto Github PK
View Code? Open in Web Editor NEW๐จ Infinite Drawboard in Python
Home Page: https://drawboard-demo.nolibox.com
License: Apache License 2.0
๐จ Infinite Drawboard in Python
Home Page: https://drawboard-demo.nolibox.com
License: Apache License 2.0
Hi~
I'm creating a new plugin to merge the two images based on this nice UI, but I'm having some problems.
My plugin is defined as follows:
class Fusing(IFieldsPlugin):
@property
def settings(self) -> IPluginSettings:
return IPluginSettings(
...
),
)
async def process(self, data: ISocketRequest) -> List[Image.Image]:
url_nodes = self.filter(data.nodeDataList, SingleNodeType.IMAGE)
img_url0 = url_nodes[0].src
img_url1 = url_nodes[1].src
img0 = Image.open(BytesIO(requests.get(img_url0).content))
img1 = Image.open(BytesIO(requests.get(img_url1).content))
...
return img_fused
class ImagesFollowers(IPluginGroup):
@property
def settings(self) -> IPluginSettings:
return IPluginSettings(
...
nodeConstraintRules=NodeConstraintRules(
exactly=[NodeConstraints.IMAGE, NodeConstraints.IMAGE]
),
...
pluginInfo=IPluginGroupInfo(
...
plugins={
"fusing": Fusing,
},
),
)
However, when I selected A and B in the drawboard (B covers A), I only get the full B
and the part A that overlaps B
.
If I expect to get more intuitive results full A, full B, and part B
. Where can I modify the logic here?
This seems to involve React development, but I'm not familiar with it. ๐ตโ๐ซ
Would you please give me some advice, thank you!
Describe the bug
When launching the first time, a message error appears :
import regex as re
ModuleNotFoundError: No module named 'regex'
To Reproduce
Steps to reproduce the behavior:
pip install -e .
, or pip install carefree-drawboard
cfdraw
command line (i.e init, run ...)Solution
Simply install regex
, or add it to setup.py
.
pip install regex
Hi, looks really interesting project.
I follow the installation using conda env and when I run cfdraw run
and I go to http://localhost:5123/
I get a blank white page ;-(
What am I missing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.