Open dEN5-tech opened 2 years ago
Hi! Any explanation of what you made?
Hi! Any explanation of what you made?
What I wrote speeds up the search for an idi with arraybuffer
, namely in the file decodeNozomi.pyx
is cython, using compile it converts to c++
code and it can be used in the project
Hi! Any explanation of what you made?
What I wrote speeds up the search for an idi with
arraybuffer
, namely in the filedecodeNozomi.pyx
is cython, using compile it converts toc++
code and it can be used in the project
Cool! Feel free to make a pull request.
Also, what's progress.js
for?
Cool! Feel free to make a pull request.
Also, what's
progress.js
for?
This is an indicator of loading, in brief, I send a request once a second interval is obtained the current position of loading and visually displayed in the progress bar.
And you need this to import the libraries
and add text to index.html
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.5.7/Rx.js"></script> <script src="progress.js"></script> ... <progress id="myBar"></progress >
This is where I get the maximum amount of jobs
paste to
server.py
... elif request.target.split('?')[0] == '/load': lst = [] for x in g.jobs: if x.imageWorker.result is not None: lst.append(True) else: lst.append(False) respond(self.socket, json.dumps({ 'len': len(g.jobs), 'pool_max': JOB_POOL_SIZE, 'progress': lst, }).encode()) ...
Cool! Feel free to make a pull request. Also, what's
progress.js
for?This is an indicator of loading, in brief, I send a request once a second interval is obtained the current position of loading and visually displayed in the progress bar. And you need this to import the
libraries
and add text to index.html
<script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.5.7/Rx.js"></script> <script src="progress.js"></script> ... <progress id="myBar"></progress >
This is where I get the maximum amount of
jobs
paste to
server.py
... elif request.target.split('?')[0] == '/load': lst = [] for x in g.jobs: if x.imageWorker.result is not None: lst.append(True) else: lst.append(False) respond(self.socket, json.dumps({ 'len': len(g.jobs), 'pool_max': JOB_POOL_SIZE, 'progress': lst, }).encode()) ...
I see! Now I understand. Feel free to make a commit.
created new
progress.js
fileand add text to index.html
in file
decodeNozomi.pyx
for compile: create
setup.py
file and paste codestart in dir command
python setup.py build_ext --inplace
for use in
nozo.py
fileimport
from decodeNozomi import f as decode_nozomi
and use in codepaste to
server.py