majwilson / python-to-javascript

A tool that allows programmers to convert code written in Python into the equivalent code written in Javascript.
MIT License
23 stars 5 forks source link

Use it on itself #2

Open jywarren opened 2 years ago

jywarren commented 2 years ago

I love this idea. I want to convert OpenCV python scripts for use with OpenCV.js, such as this, which is pretty simple:

https://github.com/6o6o/fft-descreen/blob/38777f8bef9ab4ff695cc6c2fa957d34ab70ee44/descreen.py#L1-L54

However, i wonder if it can be run on itself to make a JS version of, say python-to-javascript.js?

Thank you!

majwilson commented 2 years ago

Hey Jeffrey - yeh that idea had occurred to me ;-) It could definitely be done, but there's a lot of code involved so I'll leave that for someone else! But I'd think the converter would do a pretty decent job on those OpenCV scripts. I hope it's useful for you - drop me a line here if you need any assists. Mark