Posted on July 26th, 2007 by William Yang. Filed in Delphi.
No comments yet. Be the first to comment!
I know ImageButton doesn’t sound very exciting, and you may think what button component Delphi don’t have that aren’t able to handle images on them. Well, my component is different.
It behaves like a button, but it doesn’t draw any button effect (raised, lowered border) for you. Rather it let you choose a graphic file that represent the mouse over, or mouse down or when disabled. Much like an image on a web page, where you can use JavaScript to create a nice mouseover and mousedown effect an image. But this time its in your favourite Delphi application.
Click here to download the component.
Posted on July 20th, 2007 by William Yang. Filed in Face Detection.
No comments yet. Be the first to comment!
I was looking for some directions on how can human faces be detected. I found OpenCV - library of programming functions mainly aimed at real time computer vision. One of the function it offered is face detection by recognising haar like features in the image.
A more detailed document can be found here.
http://opencvlibrary.sourceforge.net/FaceDetection
Posted on July 3rd, 2007 by William Yang. Filed in PHP, PHP Code, Google map, Javascript, Ajax.
No comments yet. Be the first to comment!
I recent found a very good article on How to retrieve geo-cordinates of an UK address from Google AJAX Search API. In this article Tom Anthony explained why google map api doesn’t support UK address geo-coding and how to use Google AJAX Search API to retrieve geo-cordinate of an UK Address. How ever this method is restricted to only one address per request. If there are more than one addresses, you will have a hard time cracking Google’s AJAX Search API. I found its not possible to make more than two requests to GLocalSearch object since Google has made the search process an AJAX call. When the cordinates are returned, there is no way to tell which cordinate is which.
The reason I am searching for a way to retrieve multiple addresses are I am working on an AJAX enabled UK Plumber search site. I will need the cordinates to work how far an address is to the searched postcode.
To meet what I need. I made the following.
I created a “caller page”, which I will dump some Javascript calls to retrieve cordinates from an array of addresses and an IFRAME, that contained a modified Tom’s script, so it not only calls to retrieve the cordinate from GLocalSearch, but also a call to return the cordinates to the caller page. When all addresses are retrieved, they will be displayed on the google MAP.
.