The recent crackdown in Iran over dress codes has been very disappointing from technological perspective. The way moral police tries to control people is very primitive since it requires police to check every individual. The large population of Iran needs the deployment of thousands of police forces with a very high cost. Advancement in the technology in the last few decades can help moral police to do their job much more efficiently and with considerably lower cost. Below, I propose several technology-based devices for this purpose.
1) Gender detector: There are many places where the moral police expects men and women to be segregated from each other. Controlling the segregation automatically would be very useful for the police. One can make a gender detector using a camera and an image processing hardware. The form of a man's body is distinctly different from a woman's body. An image processor can be used to recognize the form of the body. Then, using neural network technique, one can train the computer to recognize the gender based on the form of the body. This device can be used at the gate of different places to prevent unwanted gender from entering. For instance, one of the challenges of the moral police today is to not let girls enter the soccer stadiums. Police can install gender detectors at the gate of the stadiums to catch the girls even those who dress like boys. This device has potential applications in western countries in the washrooms or fitting rooms.
2) Mixed-voice recognition device: Moral police in Iran tries to prevent mixed presence of men and women in many places. Sometimes police would like to find out if the attendants of an event are mixed without necessarily being at that place. For that, we suggest to use the mixed-voice recognition device. One can easily make a voice recognition device to distinguish between the voice of a man from a woman by the difference in the frequency. Our device is able to hear different voices and recognize whether all of the voices belong to one gender or both genders. One of the application of this device is in the university student buses where university regulation requires them to take only students of one gender. An advanced level of this device can count the number of people whose voices are heard to make an alarm when there are only two people with opposite sex talking to each other.
3) Marriage detector: One of the key responsibilities of the moral police in Iran is to make sure that unmarried couples do not hang out together. For that, currently, police has to stop every suspicious couple and ask them to show their marriage certificate or identity cards. This method is very primitive with many difficulties since many married couples do not carry their marriage certificate with themselves all the time. The solution to this problem is to use RFID technology. People are required to have active RFID tags under their skin in which their marriage information (i.e. spouse's name) are recorded. Police can now use RFID readers to match the names of the the individuals who are at a distance less than the proper distance (let's say 35 cm) and verify whether they are married or not. Such a technique is very effective and precise as it can capture a large group of people simultaneously without the need to stop anyone.
4) Dance detector: As dancing is forbidden in Iran, moral police tries to prevent it from happening. Other than homes, in recent years, people dance in public places such as tour buses or in the hiking trails. Police can install specific cameras that are sensitive to dancing. Nowadays, video motion processing techniques are fairly advanced and can be used to analyze the motion of arms and legs. Again using the neural network technique, this device can easily distinguish dancing from normal motion of legs and arms.