MinorProject

```

Designing a Halal Food Scanner for Everyday Shopping and International Travel

From an early Figma visual prototype to a functional HTML application capable of scanning real product packaging, this project explored how visual design, artificial intelligence and structured decision support could help users evaluate unfamiliar food products more efficiently.

Figma Prototype HTML Application Multimodal AI API Prompt Engineering
Primary Audience
Muslim international travellers
Secondary Audience
Everyday shoppers who need halal guidance
My Main Contribution
Visual and functional prototype development
01 · Project Overview

Making halal product evaluation more accessible

This project began with a practical problem: identifying whether an unfamiliar packaged food product is suitable for halal-conscious consumers can become difficult when certification marks, ingredients and product information are unclear or presented in an unfamiliar language.

The application was therefore designed for two connected user groups. The first group consists of Muslim international travellers who may encounter unfamiliar certification systems, imported products and language barriers. The second group consists of users who require additional support when checking products during everyday shopping.

02 · Initial Research

Understanding how users make halal decisions

Interviews were used during the early research stage to understand how users currently verify halal status in both travel and everyday shopping situations. The conversations focused on the information people look for first, the certification symbols they trust, the difficulties created by unfamiliar ingredients and the situations in which they remain uncertain.

These findings helped define the application as a decision-support tool rather than a simple logo detector. A useful result needed to explain the available evidence, identify uncertainty and allow users to inspect more detailed information when required.

The central design question was not only “Can the application recognise a halal logo?” but also “How can it support a user when the packaging provides incomplete, unfamiliar or ambiguous information?”

03 · My Role

From interface design to a working application

My main responsibility was the development of the project’s visual and functional prototypes. This work was divided into two major stages: an earlier Figma prototype focused on the interface and user experience, followed by a functional HTML prototype that transformed the concept into an application capable of scanning and analysing real products.

01

Visual Prototype

Designed the interface hierarchy, page layouts, interaction states, result presentation and overall visual language in Figma.

02

Functional Prototype

Developed an HTML-based version with camera access, image input, API communication, AI analysis and dynamically generated result screens.

04 · User Flow

A direct flow from product scanning to understandable evidence

The main user flow was intentionally kept short. Users should be able to begin scanning without navigating through multiple setup screens, while detailed information remains available after the initial result.

1
Open the scanner
The scan action is presented as the primary function of the application.
2
Capture or upload a product image
The user photographs the front, ingredient panel or other relevant packaging information.
3
AI analysis
The system evaluates visible certification marks, ingredients, product identity and available contextual evidence.
4
Receive a clear result
The interface presents the overall status, confidence and the most important supporting evidence.
5
Review detailed evidence
Users can inspect certification information, ingredient concerns, reasoning and relevant standards in greater detail.
05 · Figma Visual Prototype

Establishing the visual language and information hierarchy

The Figma version was completed earlier in the project and was primarily used to develop the application’s visual identity, interaction structure and content hierarchy. It allowed the design to be reviewed before the functional system was implemented.

Particular attention was given to the scan interface, status communication, result details, international halal standards and profile-related screens. The prototype also explored how colour, typography, spacing and status indicators could communicate trust without making the interface feel excessively technical.

Visual design priorities

Clear status hierarchy
The overall result is recognisable before the user reads the detailed explanation.
Evidence-based presentation
Important certification and ingredient information is separated into readable sections.
Mobile-first layout
Primary actions are positioned for fast use during shopping or travel.
Figma Workflow Documentation

Interface development process

The following area can be used to document the transition from early layout exploration to the complete interactive prototype.

06 · Functional HTML Prototype

Transforming the concept into a usable product scanner

The later HTML prototype moved beyond simulated interaction. It was designed as a functional web application that could access a device camera, receive a real product image, communicate with an artificial intelligence service and display the returned analysis inside the interface.

Although the HTML version was based on the earlier Figma design, its interface was intentionally simplified. During functional development, some decorative elements and secondary layers were removed so that the most important actions remained visible and reliable across different mobile screen sizes.

This decision followed the logic of Occam’s Razor: when two interface solutions achieve the same purpose, the less complicated solution is generally easier to understand, implement and maintain. The functional version therefore prioritised scanning, analysis and result comprehension over unnecessary visual complexity.

Functional Prototype Demonstration

Product scanning and AI analysis workflow

Replace the following block with an uploaded demonstration video or an embedded YouTube, Google Drive or Vimeo video  

07 · Prototype Comparison

Different prototypes serving different purposes

Category Figma Visual Prototype HTML Functional Prototype
Primary purpose Visual exploration and interaction planning Real product scanning and AI analysis
Interaction Simulated clickable transitions Functional camera, upload and API workflow
Interface detail More visually detailed and presentation-oriented Simplified for responsive and reliable use
Product analysis Uses designed example results Generates results from actual product images
Main value Validates the design direction Validates technical feasibility and usability
08 · Technical Operation

How the functional prototype analyses a product

The HTML prototype uses a front-end scanning interface connected to a multimodal artificial intelligence API. The overall process can be understood as a structured pipeline rather than a single image-recognition action.

STEP 01

Image input

A product image is captured through the camera or selected from the device.

STEP 02

API request

The image and analysis instructions are packaged into a request and sent to the configured AI endpoint.

STEP 03

Evidence analysis

The model examines visible certification marks, ingredient text, product names and packaging context.

STEP 04

Fallback research

When visible packaging evidence is insufficient, the detected product name can be used for additional online product research where supported.

STEP 05

Structured response

The model returns an organised result containing status, evidence, uncertainty and explanatory details.

STEP 06

Interface rendering

The application converts the response into readable result cards and detailed information sections.

09 · API and Prompt System

Using structured prompts to produce consistent results

The AI API alone does not determine how the application behaves. A structured prompt system defines what evidence should be inspected, how uncertainty should be handled and how the final response should be formatted.

Rather than asking the model a general question such as “Is this halal?”, the application provides a sequence of evaluation instructions. This improves consistency and makes the response easier for the interface to process.

Core prompt responsibilities

A
Identify the product
Determine the most likely product name, brand and visible packaging information.
B
Inspect certification evidence
Look for visible halal marks and distinguish clear certification from decorative or unrelated symbols.
C
Evaluate ingredients and risk indicators
Review visible ingredients and distinguish clear concerns from ingredients that are merely ambiguous.
D
Use product-name research as a fallback
When the front of the package does not provide enough evidence, additional product information can be searched using the detected name.
E
Separate evidence from uncertainty
The system should explain what was confirmed, what was inferred and what information remains unavailable.
F
Return a predictable output format
A structured response allows the front end to place each part of the analysis into the correct result component.
Why the prompt system matters

The prompt acts as a bridge between the religiously sensitive decision context, the technical capabilities of the AI model and the visual requirements of the interface. Without this structure, responses could become inconsistent, overly confident or difficult to display.

10 · Design Development

What changed between design and implementation

Developing both the Figma and HTML versions revealed an important distinction between a visually complete prototype and a technically usable interface. Some layouts that appeared effective in a fixed Figma frame required further adjustment when displayed on phones with different screen proportions.

The functional prototype therefore required responsive spacing, safer button placement, more flexible content containers and clearer control over long AI-generated text. Camera access and loading states also needed to be considered because users could no longer move instantly between simulated screens.

This process demonstrated that functional prototyping is not simply the final reproduction of a visual design. It is also a second design stage in which technical behaviour, variable content and real-device constraints reshape the original interface.

11 · Project Resources

Prototype and development files

The project resources below provide access to the visual design prototype and the files used to develop the functional HTML application.

F
Visual Prototype

Figma Interactive Prototype

Explore the visual interface, navigation flow, result states and major application screens.

View Figma Prototype ↗
</>
Functional Prototype

HTML Project Files

Access the HTML, CSS, JavaScript and related files used to build the functional scanning prototype.

Access Project Files ↗
12 · Conclusion

Connecting user research, interface design and functional AI development

This project progressed from an initial user problem to a visual Figma prototype and finally to a functional HTML application capable of analysing real product packaging. My contribution focused on connecting these stages: translating user needs into interface structures, developing the visual prototype and then adapting the design into a working scanning experience.

The Figma prototype provided the visual direction and information architecture, while the HTML prototype tested how the concept could operate under real technical conditions. The simplified functional interface was not a reduction of the original idea, but a refinement based on usability, responsiveness and the principle of removing elements that did not directly support the main task.

Most importantly, the project showed how an artificial intelligence system can be made more understandable through careful interface design and prompt engineering. Rather than presenting an unexplained automated judgement, the application aims to organise available evidence and help users make a more informed decision. As a prototype, it is intended to support product evaluation and should not be treated as a replacement for official halal certification or qualified religious guidance.


```

评论

热门博文