Re:Show HN: VisionScript, abstract programming language for ...
by chpatrick on Tuesday August 22, 2023 @07:06AM
(#37221043)
Why do you need a new language with new syntax to do this instead of making a Python library?
vision = Vision()
(vision
.load("./folder/")
.search("coffee cup")
.get(1)
.show()
)
I think unless your language semantically does something really different it's almost always a mistake to make a new one. Adding global state and replacing () with [] doesn't seem worth losing compatibility with the rest of the ML/CV ecosystem, and forcing people to learn syntax just for this.
Re:Show HN: VisionScript, abstract programming language for ...
by CyberDildonics on Tuesday August 22, 2023 @10:30AM
(#37223271)
VisionScript goes beyond OpenCV in terms of utilities, providing models for use out of the box.
That's great, but I have to agree with chpatrick that this seems like a cool library but it is unlikely to get used as a stand alone language.
New languages cut off a huge amount of utility. Decades of IO, libraries, tools, built in features, gc refinement etc. go out of the window. I'm not sure what the advantage is. If it is a simple standalone library that has advantages over other things out there it stands a lot more chance of being used.
To classify images, you can use Classify["class 1", "class 2", ...]; to run object detection you can use Detect["object"]; to run segmentation, use Segment["class"]. More abstract methods include Search[], that lets you build a semantic search engine in a few lines of code:
I am aiming to encode best practices from computer vision behind the scenes (I work in the industry) to enable one to build powerful applications intuitively, with few lines of code!