Halcon and Delphi
Halcon and Delphi series, as early as two years to write, but on the one hand, because Halcon is priced up to tens of thousands of euros (not the renminbi) professional software, know not many people,
On the other hand, too many personal chores, have no time to write, this time, the National Day free, in a hurry, open first.
This title was originally intended to be used: "Halcon, OpenCV and Delphi, Python, VB, C + +"
Too miscellaneous, although now popular long title, or simplified.
Do image analysis for more than 10 years, wrote the original OCR character recognition, there was no opencv, all the native code, writing is very painful, and write the assembly almost
But also learned a lot of things, blur, refinement, skeleton, closed 、。。。。。。 , from this point of view, learning to OpenCV, for the foundation is also necessary
Effect can also, basically except QQ too perverted, General forum, CSDN, ICBC, Mobile, blog Park, the old version of Sina Weibo verification code, can be simple and enjoyable violence identification.
These years, mainly for image analysis, font structure of image analysis, AI aspects of the project, industrial aspects, mainly PCB copy board design, this is Protel circuit diagram reverse engineering, necessary.
Image analysis mainly used agg, OpenCV, Cgal, LabVIEW, Vision, Halcon, SCI, pil, and a large wave of GIS built-in high-quality geometric computing library
Programming language early is: C, C + +, these years are: Python, Delphi,
Currently, image analysis is basically just: Delphi+halcon, (machine learning with big data, is Python+sci.xxx+pandas)
Delphi+halcon, this combination, can be said to be image analysis of the divine configuration, whether it is development efficiency, or running is too high, minute seconds to kill C+opencv,c+python, and other various combinations,
In particular, the development efficiency, almost only CV and C + + eleven-tenths, because Halcon built-in is a simplified version of the Pascal scripting programming language, and Halcon control encapsulation, very large, professional, meticulous, basically and the native VCL control almost.
Halcon and OpenCV
Robot, is currently encouraged by the State of science and technology, industrial projects, the current programmer gap is enormous, and the early domestic, and at present, Delphi programmers, may be the world's most, early years, also legends, Shanda prepared to buy Delphi, although not, but definitely not the problem of money.
Robots, the most core of AI and machine vision, AI, Python are already standard
Machine vision, plainly, or image analysis, this piece, Germany's Halcon (Haier Ken, own casually transliteration), is the industry's best program, basically no opponent,
At home, academia is still the main OPENCV, although the CV is free, halcon price of up to tens of thousands of euros, but with its powerful features and productivity efficiency, enterprise area, is basically halcon alone big.
OpenCV is very powerful, but compared to Halcon, regardless of the development efficiency, speed and built-in module functions, is completely amateur.
The reasons for this are manifold:
- :: OpenCV is open source software, unable to ingest the latest patents, business algorithms, at least 5-10 years of technical gap
- :: Many enterprises developed their own algorithms are strictly confidential, halcon a lot of built-in functions, even professionals can not understand the function adopted algorithm, model.
- :: OpenCV emphasis on academic, although the algorithm is simple, but not high efficiency, even the most basic Hough line detection, if the internal source code is not modified two times, the original image is filtered, the results are basically not directly used
- :: OpenCV optimization is not enough, in recent years, although also added GPU, cuda and C language efficient functions, but with the Halcon assembly-level optimization, the gap is still very large
- :: OpenCV is not comprehensive enough, only the most basic image analysis module, lack of professional geometry calculation module, due to the actual project, it is necessary to remember the sci,sympy,cgal and other geometric computing library, greatly increase the development cost and learning cycle
For example, even the simplest contour analysis, OPENCV only the most basic rectangle, garden, ellipse several, and halcon to enrich more;
And again, the morphological built-in model, CV only cross, rect, circle three kinds, and Halcon advance model up to dozens of kinds.
Like the pile of original, OpenCV basically helpless, and Halcon direct second kill:(PS, this blog also missing a few pictures, have time to fill)
Halcon and Delphi
Halcon's built-in language is basically a simplified version of Pascal, but adds a python tuple of tuples data.
Strangely, the domestic halcon development, basically VB, and C + + (CSharp) two modes
First-line, grassroots users with VB, professional scholars, most of the use of C + + (CSharp), and Delphi very few people use.
This aspect, and Delphi itself in recent years, related to the decline, in addition, Delphi call Halcon, each time there will be about 20m of memory leaks, there is also a relationship.
However, Delphi no longer, in the TIOBE2105 programming language rankings, is the only time and C (including C, C + +, OBJC, Occsharp) The industry's second largest native programming language.
(Ps,xe9, Xe10,delphi enhanced the parallel development, but far less than the Python map elegant and convenient, if Delphi can integrate Cuda development, into the GPU, HPC field, is the real Phoenix Nirvana)
and memory leaks, is the crack problem, is C + +, also, with VB because the use of Halcon. NET Encapsulation module, because the net platform built-in GC management, can be resolved, in fact, Delphi can also adopt. NET Module
Delphi, C + +, VB, Python and image processing
VB even for beginners, and in the product development prototype stage, is also a poor image development language.
Beginners, as well as simple product prototyping, I recommend python+opencv,cv3.0 has supported Python3,
Unfortunately, the Delphi CV Library is v2.49 version, otherwise, DELPHI+CV3 is also a good choice, especially in terms of commissioning, efficiency
C + +, anyway, is not an ideal tool for image analysis,
For image analysis, C language class of the bottom line, the difference is not read only C, even if the opencv,90% is also C,
(FontForge developers, so hated C + +, so in the FAQ, the C + + large-segment spit groove)
The starting point of image analysis is 2D, two-dimensional, complex, continuous image sequence, and dynamic image analysis, all must be multidimensional data model.
The C language, the innate lack of built-in arrays, using the * pointer structure, as an array.
* pointer array, for simple one-dimensional data analysis, can barely, but for 2-dimensional, 3-dimensional and higher multidimensional data, very painful.
As you know, image processing eats memory very much, while C's memory management is completely pointer, European, and complex.
For the first-line programmers, using C + + for image processing, the time cost in the C + + programming language is even higher than the image analysis algorithm itself.
As for C + +, the only advantage might be speed.
and C speed advantage, is relative to VB, Python, may have 10-20 times the speed advantage, but for Delphi, is in the strictest contrast, is basically similar.
However, Delphi 10 times times the development efficiency of C, so that programmers, in the software development of the prototype, medium-term, commissioning, delivery, maintenance and other stages, the use of more model algorithms, to optimize, therefore, the actual combat, Delphi+halcon combination, far better than c+halcon,c+ OpenCV
In the past, image processing, Delphi's only short board, is a lack of industrial-grade image Library, CV, Cgal support for Delphi has not been good enough
But the short board this has been halocn to perfect make up.
Important words to say three times, 3x
Delphi+halcon, image analysis Divine configuration, minute seconds kill C+opencv,c+python, and a variety of other combinations
Delphi+halcon, image analysis Divine configuration, minute seconds kill C+opencv,c+python, and a variety of other combinations
Delphi+halcon, image analysis Divine configuration, minute seconds kill C+opencv,c+python, and a variety of other combinations
Halcon and Delphi