Giter Site home page Giter Site logo

ar-cutpaste's People

Contributors

cyrildiagne avatar dependabot[bot] avatar gamcoh avatar hitbittyboy avatar salanki avatar xraymemory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ar-cutpaste's Issues

Network request failed

image
image
i dont know, maybe i used wrong IP. Which IP I have to use instead [basnet_service_ip]?

Parse Empty Image to PS

Hey ! Everything is working fine excepted one thing : the ps script is creating a new empty layer instead of parsing the image and the renaming is not working. Have someone got this issue ?

Cuba out of memory

Hello there,

first of all thanks for this amazing work, i worked so hard to install it because i'm not familiar to python ( still a good way to learn ! ). i believe the app is near to be fonctionnal.. but still have some error at the end.. i will put some screens if someone can help me out.

Basnet when i load it :
basnet_ok

Server when i load it :
server_ok

app when i load it:
app_ok

then i try to use the app , and an error occurs

the app seems to be ok :
app_ok_notOk

but...

basnet :
basnet_notok

and server :
server_notok

i dunno where i can change Cuba memory allowed or something like that.. if you guys have any ideas :), sorry for so many screens but i think it's more clear with it.

empty Image pasted

I use macOS;
I have got the lastest step ,but empty image pasted;
I don't know how to set the ps document settings to match the server/src/ps.py;
or how to get the document offset_x and offset_y from ps to edit the server/src/ps.py;
please help!

Not working in linux

i tried working with this in my Linux (Ubuntu 20.04) with my Android Device .
it was able to cut the image but when tried to paste in a Libreoffice Writer i am getting a error.

aigamer@AIGAMER:~/Desktop/Other Files/ar-cutpaste-master/server/src$ sudo python3.7 main.py --basnet_service_ip="http://192.168.1.13:8080"

  • Serving Flask app "main" (lazy loading)
  • Environment: development
  • Debug mode: on
    INFO:werkzeug: * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
    INFO:werkzeug: * Restarting with stat
    WARNING:werkzeug: * Debugger is active!
    INFO:werkzeug: * Debugger PIN: 202-626-663
    INFO:root: CUT
    INFO:root: > sending to BASNet...
    INFO:werkzeug:192.168.1.13 - - [13/May/2020 18:18:05] "POST / HTTP/1.1" 405 -
    INFO:root: > saving results...
    INFO:root: > opening mask...
    INFO:werkzeug:192.168.1.4 - - [13/May/2020 18:18:05] "POST /cut HTTP/1.1" 500 -
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2463, in call
    return self.wsgi_app(environ, start_response)
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
    File "/usr/local/lib/python3.7/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/local/lib/python3.7/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/home/aigamer/Desktop/Other Files/ar-cutpaste-master/server/src/main.py", line 84, in save
    mask = Image.open('cut_mask.png').convert("L")
    File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2896, in open
    "cannot identify image file %r" % (filename if filename else fp)
    PIL.UnidentifiedImageError: cannot identify image file 'cut_mask.png'
    INFO:root: PASTE
    INFO:root: > loading image...
    INFO:root: > grabbing screenshot...
    INFO:root: > finding projected point...
    INFO:root:659, 481
    INFO:root: > sending to photoshop...
    ERROR:photoshop:Is Photoshop running and configured for remote connection?
    Traceback (most recent call last):
    File "/usr/local/lib/python3.7/dist-packages/photoshop/init.py", line 165, in _reset_connection
    self.socket = socket.create_connection((self.host, self.port))
    File "/usr/lib/python3.7/socket.py", line 728, in create_connection
    raise err
    File "/usr/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused
    INFO:werkzeug:192.168.1.4 - - [13/May/2020 18:18:20] "POST /paste HTTP/1.1" 500 -
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2463, in call
    return self.wsgi_app(environ, start_response)
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
    File "/usr/local/lib/python3.7/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
    File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
    File "/usr/local/lib/python3.7/dist-packages/flask_cors/extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
    File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
    File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functionsrule.endpoint
    File "/home/aigamer/Desktop/Other Files/ar-cutpaste-master/server/src/main.py", line 168, in paste
    err = ps.paste(img_path, name, x, y, password=args.photoshop_password)
    File "/home/aigamer/Desktop/Other Files/ar-cutpaste-master/server/src/ps.py", line 19, in paste
    with PhotoshopConnection(password=password) as conn:
    File "/usr/local/lib/python3.7/dist-packages/photoshop/init.py", line 129, in init
    self._reset_connection()
    File "/usr/local/lib/python3.7/dist-packages/photoshop/init.py", line 165, in _reset_connection
    self.socket = socket.create_connection((self.host, self.port))
    File "/usr/lib/python3.7/socket.py", line 728, in create_connection
    raise err
    File "/usr/lib/python3.7/socket.py", line 716, in create_connection
    sock.connect(sa)
    ConnectionRefusedError: [Errno 111] Connection refused

Will this only work in Windows with Photoshop ??
Please help me out.

[Question] Usage

Is this only for Photoshop? Or can I copy from desktop image and edit as text?

screenprint not installing

i am getting below issue(venv) RKMadugulas-MacBook-Pro:server yesbro$ sudo pip install -r requirements.txt
Password:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/Users/yesbro/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: photoshop-connection==0.1.1 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 1)) (0.1.1)
Requirement already satisfied: Flask==1.1.1 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 2)) (1.1.1)
Requirement already satisfied: flask-cors==3.0.8 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 3)) (3.0.8)
Requirement already satisfied: pyscreenshot==1.0 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 4)) (1.0)
Requirement already satisfied: requests==2.23.0 in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 5)) (2.23.0)
Collecting screenpoint==0.1.1
Downloading screenpoint-0.1.1.tar.gz (2.8 kB)
ERROR: Command errored out with exit status 1:
command: '/Volumes/Projects/ionic/Loophole/AR cut Paste/ar-cutpaste-master/server/venv/bin/python' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-ggyDYe/screenpoint/setup.py'"'"'; file='"'"'/private/tmp/pip-install-ggyDYe/screenpoint/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/tmp/pip-pip-egg-info-SUX4tg
cwd: /private/tmp/pip-install-ggyDYe/screenpoint/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/tmp/pip-install-ggyDYe/screenpoint/setup.py", line 6, in
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
while running the requirements.txt file

blank layer issue - Macbook Retina

Hi Hi! I am having the same trouble as some other folks with the 'loading a blank layer into photoshop'. MacbookPro 2017 Retina so i guess SCREEN_PIXEL_DENSITY=2 is good, and i made the dimensions of the photoshop document 2121/1280 but have 0 X Y offset in the document... and it remains as you selected in the ps.py.

The fact that some blank layer is loading is good news. The cut_received.jpg is correct. However, it does not REMAIN on my iphone screen when moving towards the photoshop document like was shown in your twitter post.

Any suggestions? I have tried like 100 times so far

Need Help

Is anyone here who can help me in deployment of the whole module. If can please let me know I am eagerly waiting for the help.
Thank you

Pasting - Syntax Error

Hey,
I'm getting a syntax error as shown below, while pasting the image, seems like everything was going smoothly until the last step which is pasting on PS.
NOTE : pictures received in /server/
NOTE : I don't see the picture when i copy .
EDIT: getting this error when i do and do not pointing the camera to the photoshop document.

Thanks for help !

Logs :

Cut
undefined
> taking image...
update
> resizing...
> sending to /cut...
> converting...
Done in 1.931s
Paste
> taking image...
update
> resizing...
> sending to /paste...
Done in 4.428s

**error pasting:, [SyntaxError: JSON Parse error: Unrecognized token '<']**
- node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8 in console.error
* http://192.168.1.2:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:105013:24 in error
* App.tsx:102:2 in paste
- node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
- node_modules\regenerator-runtime\runtime.js:274:30 in invoke
- node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
- node_modules\regenerator-runtime\runtime.js:135:28 in invoke
- node_modules\regenerator-runtime\runtime.js:147:19 in PromiseImpl.resolve.then$argument_1
- node_modules\promise\setimmediate\core.js:5:0 in noop
- node_modules\promise\setimmediate\core.js:110:1 in <global>
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17 in _callImmediatesPass
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30 in callImmediates
* [native code]:null in callImmediates
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6 in __callImmediates
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6 in __guard$argument_0
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17 in __guard$argument_0
* [native code]:null in flushedQueue
* [native code]:null in invokeCallbackAndReturnFlushedQueue

Only cut working, doesnt paste anything

Hi. I managed to get this app working on my iPhone XS and Windows PC. It cuts the image and i can see the output png and jpg files on server. But it doesnt continue on paste command and i cant see it on my phone to paste on photoshop. it just gets stuck on cut and i have to restart the app for a new cut. Also it throws an 'atob' error which i said on another issue post.

Connection SDK library is not using shared scripting engine

This feature was added later because every call into Photoshop was executing a fresh new script engine which also means executing all startup scripts and this causes about 80ms delay per each call. But connection SDK is slower anyway per one call. CEP panel is a bit faster.

You can compare python photoshop protocol with connection made by adobe.
Script type of message has constant 2 and script in shared engine 10. And in python library, this is missing.

https://github.com/kyamagu/photoshop-connection/blob/master/src/photoshop/protocol.py#L17
https://github.com/adobe-photoshop/generator-core/blob/24a2c4e38aef79adb42869f200778ab52de4ef36/lib/photoshop.js#L67

main.py is not running

File "src/main.py", line 43
logging.info(f"pong: {r.status_code} {r.content}" )
^
SyntaxError: invalid syntax

Server | Cut method response parsing | "Image do not match"

It seems, on each image processing request, I'm receiving ValueError: images do not match.
For object detection service I'm using http://u2net-predictor.tenant-compass.global.coreweave.com, which works well as I see (200 status response).

device : iOS
python: 3.7
local sever machine OS : Windows 10

INFO:werkzeug:192.168.0.102 - - [] "?[37mPOST /paste HTTP/1.1?[0m" 200 -
INFO:root: CUT
INFO:root: > sending to BASNet...
INFO:root:200
INFO:root: > saving results...
INFO:root: > opening mask...
INFO:root: > compositing final image...
INFO:werkzeug:192.168.0.102 - - [] "?[1m?[35mPOST /cut HTTP/1.1?[0m" 500 -
Traceback (most recent call last):
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py", line 39, in reraise
    raise value
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask_cors\extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py", line 39, in reraise
    raise value
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Users\Dmytro\Personal\Develop\ar-cutpaste-master\server\src\main.py", line 92, in save
    img = Image.composite(ref, empty, mask)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\Image.py", line 2955, in composite
    image.paste(image1, None, mask)
  File "C:\Users\Dmytro\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\Image.py", line 1494, in paste
    self.im.paste(im, box, mask.im)
ValueError: images do not match
INFO:root: PASTE
INFO:root: > loading image...
INFO:root: > grabbing screenshot...
INFO:root: > finding projected point...
INFO:root:screen not found
INFO:root:Completed in 0.86s

cc @cyrildiagne

error cut_mask.png

I use windows 10.
After following all instructions, after my phone camera capture an image i get this error server side:
image
This is my ps.py file:
image
Where is the mistake?

Thank you

ip setting

how to set the ip?
how to set "phptoshop -- Android APP -- Basnet" ?

Error Pasting & Image Not Copying

When i start the the app
photo action not working and still not capture anything
and in Log, i see

Cut
undefined

taking image...
update
resizing...
sending to /cut...
converting...
Done in 2.313s
Paste
taking image...
update
resizing...
sending to /paste...
Done in 4.212s

when i place it in photoshop, nothing happen
I run with Latest python, windows 10 & android

Screenshot_2020-05-06-15-07-14-80
Screenshot_2020-05-06-15-36-37-71
Screenshot_2020-05-06-15-36-42-90
Screenshot_2020-05-06-15-36-48-32
Screenshot_2020-05-06-15-36-52-32

Unable to resolve module '../../App' from 'node_modules/expo/AppEntry.js

I got stuck on installing the app in my Expo app on my iOS device.
I was able to access the app with the QR Code but once i was in Expo, I had the following error :

Unable to resolve module '../../App' from 'node_modules/expo/AppEntry.js

None of these files exist:
*
App(.native|...........)
* App/index(.native|........)

I followed the steps you requested for the install. Can you help me out? I really want to test your project (but i am not familiar with this techno).

Error 'atob' failed: The string to be decoded is not correctly encoded.

I managed to make this prototype work (excellent by the way), but I regularly get errors on some objects: 'atob' failed: The string to be decoded is not correctly encoded. What's amazing is that the generated images (cut_*.jpg) are perfectly readable. Any idea what the problem is? Thanks!

BASnet Error

Hi,

When try to capture from the app on my android tablet, the image gets to BASNet it produces the below.

Can you advise please?

Thanks,
Simeon

NFO:root: > sending to BASNet...
INFO:werkzeug:192.168.1.158 - - [06/May/2020 17:16:53] "POST /cut HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 417, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
# Permission is hereby granted, free of charge, to any person obtaining a copy
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 403, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise
raise value.with_traceback(tb)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
# Permission is hereby granted, free of charge, to any person obtaining a copy
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/src/main.py", line 74, in save
res = requests.post(args.basnet_service_ip, headers=headers, files=files )
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Permission is hereby granted, free of charge, to any person obtaining a copy

File "/Users/simeonbanks/Downloads/ar-cutpaste-master/server/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1344, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 306, in begin
version, status, reason = self._read_status()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 275, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

ImportError: libSM.so.6: cannot open shared object file:

seeing the below error:

(env3) jenkins@odl:/github_projects/ar-cutpaste/server]> python src/main.py --basenet_service="http://" --photoshop_password 123
Traceback (most recent call last):
File "src/main.py", line 8, in
import screenpoint
File "/home/jenkins/github_projects/ar-cutpaste/server/env3/lib/python3.6/site-packages/screenpoint/init.py", line 1, in
from . import screenpoint
File "/home/jenkins/github_projects/ar-cutpaste/server/env3/lib/python3.6/site-packages/screenpoint/screenpoint.py", line 2, in
import cv2
File "/home/jenkins/github_projects/ar-cutpaste/server/env3/lib/python3.6/site-packages/cv2/init.py", line 3, in
from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
(env3) jenkins@odl:
/github_projects/ar-cutpaste/server]>

ConnectionRefusedError: [Errno 61] Connection refused in "python src/main.py --basnet_service_ip="http://172.20.10.2" --photoshop_password 123456"

  • Serving Flask app "main" (lazy loading)
  • Environment: development
  • Debug mode: on
    INFO:werkzeug: * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
    INFO:werkzeug: * Restarting with stat
    WARNING:werkzeug: * Debugger is active!
    INFO:werkzeug: * Debugger PIN: 170-737-847
    INFO:root:ping
    INFO:werkzeug:172.20.10.1 - - [15/May/2020 00:27:53] "GET /ping HTTP/1.1" 500 -
    Traceback (most recent call last):
    File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
    File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
    File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
    ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x118fd34a8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.20.10.2', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x118fd34a8>: Failed to establish a new connection: [Errno 61] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/pratikparmar/opencv_work/ar_cut_paste/ar-cutpaste/server/src/main.py", line 42, in ping
r = requests.get(args.basnet_service_ip, headers={'Host': args.basnet_service_host})
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.20.10.2', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x118fd34a8>: Failed to establish a new connection: [Errno 61] Connection refused'))
INFO:root: CUT
INFO:root: > sending to BASNet...
INFO:werkzeug:172.20.10.1 - - [15/May/2020 00:28:03] "POST /cut HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x11a377be0>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.20.10.2', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x11a377be0>: Failed to establish a new connection: [Errno 61] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/pratikparmar/opencv_work/ar_cut_paste/ar-cutpaste/server/src/main.py", line 74, in save
res = requests.post(args.basnet_service_ip, headers=headers, files=files )
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/Users/pratikparmar/opencv_work/ar_cut_paste/pratik/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.20.10.2', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x11a377be0>: Failed to establish a new connection: [Errno 61] Connection refused'))
INFO:root: PASTE
INFO:root: > loading image...
INFO:root: > grabbing screenshot...
INFO:root: > finding projected point...
INFO:root:1072, 1101
INFO:root: > sending to photoshop...
{'status': 0, 'protocol': 1, 'transaction': 0, 'content_type': <ContentType.SCRIPT: 2>, 'body': b''}
INFO:root:Completed in 2.48s
INFO:werkzeug:172.20.10.1 - - [15/May/2020 00:28:10] "POST /paste HTTP/1.1" 200 -
INFO:werkzeug:172.20.10.2 - - [15/May/2020 00:30:14] "GET / HTTP/1.1" 200 -

Error Pasting

I can see the images in my server folder, but I have this error:
error pasting:, [SyntaxError: JSON Parse error: Unrecognized token '<']

  • node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8 in console.error
  • node_modules\expo\build\environment\muteWarnings.fx.js:27:24 in error
  • App.tsx:102:2 in paste
  • node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:274:30 in invoke
  • node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
  • node_modules\regenerator-runtime\runtime.js:135:28 in invoke
  • node_modules\regenerator-runtime\runtime.js:147:19 in PromiseImpl.resolve.then$argument_1
  • node_modules\promise\setimmediate\core.js:37:14 in tryCallOne
  • node_modules\promise\setimmediate\core.js:123:25 in setImmediate$argument_0
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17 in _callImmediatesPass
  • node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30 in callImmediates
  • [native code]:null in callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6 in __callImmediates
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6 in __guard$argument_0
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
  • node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17 in __guard$argument_0
  • [native code]:null in flushedQueue
  • [native code]:null in invokeCallbackAndReturnFlushedQueue

console.error: "error pasting:", SyntaxError: JSON Parse error: Unrecognized token '<'

_construct
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules@babel\runtime\helpers\construct.js:19:26
Wrapper
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules@babel\runtime\helpers\wrapNativeSuper.js:26:23
construct
[native code]:0

node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&minify=false&hot=false:29150:274
SyntheticError
node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&minify=false&hot=false:29168:32
reactConsoleErrorHandler
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\Core\ExceptionsManager.js:135:52
__expoConsoleLog
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\expo\build\logs\RemoteConsole.js:80:37
console.error
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\YellowBox\YellowBox.js:63:8
error
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\expo\build\environment\muteWarnings.fx.js:27:24
paste
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\App.tsx:102:2
tryCatch
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\regenerator-runtime\runtime.js:45:44
invoke
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\regenerator-runtime\runtime.js:274:30
tryCatch
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\regenerator-runtime\runtime.js:45:44
invoke
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\regenerator-runtime\runtime.js:135:28
PromiseImpl.resolve.then$argument_1
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\regenerator-runtime\runtime.js:147:19
tryCallOne
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\promise\setimmediate\core.js:37:14
setImmediate$argument_0
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\promise\setimmediate\core.js:123:25
_callTimer
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14
_callImmediatesPass
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:194:17
callImmediates
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\Core\Timers\JSTimers.js:458:30
callImmediates
[native code]:0
__callImmediates
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:407:6
__guard$argument_0
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:143:6
__guard
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10
__guard$argument_0
C:\Users\Jacky Leung\Desktop\ar-cutpaste-master\app\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:142:17
flushedQueue
[native code]:0
invokeCallbackAndReturnFlushedQueue
[native code]:0

Public BASNet Predictor Availability

Hello,

What you have built is super cool. I've set up a publicly available prediction endpoint for the BASNet model. This alleviates the need for people who want to play around with this to find/rent GPUs and run their own model instance. The model is running on an auto-scaling cluster of Tesla V100s, so inference performance should be great.

Simply run the server with --basnet_service_ip http://basnet-predictor.tenant-compass.global.coreweave.com/ and you are good to go.

I intend to keep this online as long as there is interest, so you are welcome to publish it in getting started docs.

Update
A U-2-Net endpoint is also available, use --basnet_service_ip http://u2net-predictor.tenant-compass.global.coreweave.com/. I believe the recommendation is to use this instead.

cannot identify image file 'cut_mask.png'

Hi, first of all thanks for this! It's really awesome.

I'm having some issues when cutting out the image:

"cannot identify image file %r" % (filename if filename else fp)
PIL.UnidentifiedImageError: cannot identify image file 'cut_mask.png'

Python 3.7

I can see three image files:

  • paste_received.png (ok)
  • cut_received.png (ok)
  • cut_mask.png (not valid image)

Any ideas?

Network Request failed

Screenshot 2020-05-08 at 21 54 55

basnet server works fine with postman /curl. But when scan through the app above error occurs after a few minutes. I did try cut method using postman and it works fine.

BlockingIOError: [Errno 11] Resource temporarily unavailable

python src/main.py \

--basnet_service_ip="http://172.0.0.1" \
--basnet_service_host="basnet-http.default.example.com" \
--photoshop_password 123456
  • Serving Flask app "main" (lazy loading)
  • Environment: development
  • Debug mode: on
    INFO:werkzeug: * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
    INFO:werkzeug: * Restarting with stat
    WARNING:werkzeug: * Debugger is active!
    INFO:werkzeug: * Debugger PIN: 337-321-077
    INFO:root:ping
    INFO:root: CUT
    INFO:root: > sending to BASNet...
    INFO:werkzeug:192.168.0.128 - - [07/May/2020 14:34:51] "GET /ping HTTP/1.1" 500 -
    Traceback (most recent call last):
    File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
    File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
    raise err
    File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
    sock.connect(sa)
    BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.6/http/client.py", line 1264, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1310, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1259, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 976, in send
self.connect()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5b1f9d4e80>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.0.0.1', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b1f9d4e80>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/mnt/c/Users/anton/env/venv/src/main.py", line 42, in ping
r = requests.get(args.basnet_service_ip, headers={'Host': args.basnet_service_host})
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.0.0.1', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b1f9d4e80>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))
INFO:werkzeug:192.168.0.128 - - [07/May/2020 14:35:10] "POST /cut HTTP/1.1" 500 -
Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
BlockingIOError: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen
chunked=chunked,
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.6/http/client.py", line 1264, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1310, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1259, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1038, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 976, in send
self.connect()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5b1f9f8d30>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/urllib3/util/retry.py", line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='172.0.0.1', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b1f9f8d30>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/mnt/c/Users/anton/env/venv/src/main.py", line 74, in save
res = requests.post(args.basnet_service_ip, headers=headers, files=files )
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/mnt/c/Users/anton/env/venv/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='172.0.0.1', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b1f9f8d30>: Failed to establish a new connection: [Errno 11] Resource temporarily unavailable',))

The Expo app React JS Exception

Dear @cyrildiagne ,
I have downloaded your project on my Ubuntu laptop version Ubuntu 18.04.4 LTS.
I have been able to do following things successfully

  1. I have started the Basenet web service (on my Local Ubuntu Laptop)
  2. I was able to start your Server(on my Local Ubuntu Laptop) and connect to the Basenet web service successfully
  3. I made the app run and started the Android App (on My Honor Device) , I can see that 200 ok comes both in server and Basenet Web server ensuring the connection is ok.

But on the Android App , there is only dark screen with white dots, I can see following exception in react JS.

[Unhandled promise rejection: Error: Preview is paused - resume it before taking a picture.]

  • node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:99:50 in fn
  • node_modules/@unimodules/react-native-adapter/build/NativeModulesProxy.js:15:46 in moduleName.methodInfo.name
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:274:30 in invoke
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:135:28 in invoke
  • node_modules/regenerator-runtime/runtime.js:170:17 in PromiseImpl$argument_0
  • node_modules/promise/setimmediate/core.js:45:7 in tryCallTwo
  • node_modules/promise/setimmediate/core.js:200:23 in doResolve
  • node_modules/promise/setimmediate/core.js:66:12 in Promise
  • node_modules/regenerator-runtime/runtime.js:169:31 in PromiseImpl$argument_0
  • node_modules/regenerator-runtime/runtime.js:192:38 in enqueue
  • node_modules/regenerator-runtime/runtime.js:219:8 in exports.async
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:274:30 in invoke
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:135:28 in invoke
  • node_modules/regenerator-runtime/runtime.js:170:17 in PromiseImpl$argument_0
  • node_modules/promise/setimmediate/core.js:45:7 in tryCallTwo
  • node_modules/promise/setimmediate/core.js:200:23 in doResolve
  • node_modules/promise/setimmediate/core.js:66:12 in Promise
  • node_modules/regenerator-runtime/runtime.js:169:31 in PromiseImpl$argument_0
  • node_modules/regenerator-runtime/runtime.js:192:38 in enqueue
  • node_modules/regenerator-runtime/runtime.js:219:8 in exports.async
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:274:30 in invoke
  • node_modules/regenerator-runtime/runtime.js:45:44 in tryCatch
  • node_modules/regenerator-runtime/runtime.js:135:28 in invoke
  • node_modules/regenerator-runtime/runtime.js:170:17 in PromiseImpl$argument_0
  • node_modules/promise/setimmediate/core.js:45:7 in tryCallTwo
  • node_modules/promise/setimmediate/core.js:200:23 in doResolve
  • node_modules/promise/setimmediate/core.js:66:12 in Promise
  • node_modules/regenerator-runtime/runtime.js:169:31 in PromiseImpl$argument_0
  • node_modules/regenerator-runtime/runtime.js:192:38 in enqueue
  • node_modules/regenerator-runtime/runtime.js:219:8 in exports.async
  • App.tsx:135:2 in onPressIn
  • node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js:217:49 in createReactClass$argument_0.touchableHandleActivePressIn
  • [native code]:null in touchableHandleActivePressIn
  • node_modules/react-native/Libraries/Components/Touchable/Touchable.js:894:75 in TouchableMixin._startHighlight
  • [native code]:null in _startHighlight
  • node_modules/react-native/Libraries/Components/Touchable/Touchable.js:858:27 in TouchableMixin._performSideEffectsForTransition
  • [native code]:null in _performSideEffectsForTransition
  • node_modules/react-native/Libraries/Components/Touchable/Touchable.js:779:44 in TouchableMixin._receiveSignal
  • [native code]:null in _receiveSignal
  • node_modules/react-native/Libraries/Components/Touchable/Touchable.js:718:24 in TouchableMixin._handleDelay
  • [native code]:null in _handleDelay
  • node_modules/react-native/Libraries/Components/Touchable/Touchable.js:471:24 in TouchableMixin.touchableHandleResponderGrant
  • [native code]:null in touchableHandleResponderGrant
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:814:48 in executeDirectDispatch
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2274:49 in setResponderAndExtractTransfer
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2404:10 in ResponderEventPlugin.extractEvents
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:1071:8 in extractPluginEvents
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:1091:4 in runExtractedPluginEventsInBatch
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2796:6 in batchedUpdates$argument_0
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:18791:14 in batchedUpdates$1
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2709:30 in batchedUpdates
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2794:17 in batchedUpdates$argument_0
  • node_modules/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js:2870:28 in receiveTouches
  • node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:436:47 in __callFunction
  • node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:111:26 in __guard$argument_0
  • node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:384:10 in __guard
  • node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:110:17 in __guard$argument_0
  • [native code]:null in callFunctionReturnFlushedQueue

Since i have no understanding of ReactJS , would be great to get help to resolve this issue.

Regards
Amit

Better and faster PS scripts

I can help you with these:

  1. get document matrix (position, zoom, rotation)
  2. better and faster way to place layer. No need to open new document tab or select something, ...
  3. get active view bounds properly and fast (your code is not working because reference points nothing)
  4. Photoshop background panel automatically started with PS instead of connection SDK. I am not perfectly sure about this but perhaps it could eliminate the need to match password in PS and mobile app in local network. Or it could have UI to indicate whether phone is connected and maybe allow the connection with one button click.

Are you interested?

License

Interesting project :) Could you please add a license?

App display white dot & black backgroud

Hi:
When open the app on android,the full screen display white dot and black background 。
The npm console out put the error message , see the attachment.
Error

OS:win10 mobile: android Honor python 3.72

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.