Does a homeowners' association have the right to photograph your home, including the inside of your garage, working on your car,
and the valid license plate on your car, without your knowledge of the pictures, and keep them on their data base?
You might want to review the Homeowner’s Association (“HOA”) Rules and Regulations and the Bylaws. Also, if you have not been attending the HOA meetings, you should ask to review the meeting minutes. The development may have had a legitimate need to change policies, practices or procedures. For example, a problem may have arisen with regard to unauthorized parking of vehicles creating a shortage of parking spaces for homeowners or a decision could have been made to develop a database as a measure to increase security by identifying cars that are not registered with the HOA and forming a basis to report suspicious vehicles.
As for the pictures of your home, an HOA normally has regulations with regard to exterior appearances which must be adhered to in order to preserve the character of the development. It may be necessary to take photos of homes on a regular basis (say once a year) in order to verify current conditions and document any unapproved changes.
For help with understanding when your HOA might be overstepping their bounds, refer to the link below.
Though I've never heard of a homeowner's association going to those kinds of lengths, I can't think of any laws they have broken. It would be different if they entered your home without your permission, entered your garage, and took pictures. However, it sounds like they simply took pictures from the street. This is something visible to any passerby, visible to anyone on the street whenever you drive anywhere, and (presumably) no equipment not easily available for purchase was used to take the photographs.
They may have good reasons for having taken the pictures. It is up to you to inquire as to why they are maintaining a database like that.
Please note that this response is based upon the limited information available in the question. In addition, it is not intended to create an attorney/client relationship and is offered only as general information and not as legal advice.