Skip to content

Instantly share code, notes, and snippets.

@RofieSagara
Last active February 25, 2025 10:21
Show Gist options
  • Save RofieSagara/16b2d546e5deefdc2f5c58eabc8fe419 to your computer and use it in GitHub Desktop.
Save RofieSagara/16b2d546e5deefdc2f5c58eabc8fe419 to your computer and use it in GitHub Desktop.

Job Title: Software Developer - iOS (SwiftUI & OpenCV)

Objective:

Create an iOS application that adjusts the color temperature of a JPEG image. The goal is to simulate warmer or cooler temperatures by altering the image’s color tones (towards reddish for warmer and bluish for cooler) while preserving overall image quality.

Requirements:

  • Platform: iOS
  • Technologies: SwiftUI, OpenCV (via Swift bridging)
  • Input Parameters:
    • JPEG Image File Path: Path to the input JPEG image.
    • Output JPEG File Path: Path to save the adjusted output JPEG image.
    • Temperature Adjustment: A value indicating the temperature change (positive for warmer, negative for cooler).
  • Functionality:
    • The app should allow users to load a JPEG image, adjust its color temperature based on the provided temperature adjustment value, and save the resulting image.
    • The app should shift the image's color tones towards warmer (reddish) or cooler (bluish) hues without degrading the image's overall quality.
    • The program should be designed to handle only JPEG images for both input and output.

Evaluation Criteria:

  • Correctness: Accurate temperature adjustment in the image.
  • Error Handling: Graceful handling of errors related to input parameters, file paths, and unsupported formats.
  • Performance: Efficient image processing and responsiveness of the iOS app.
  • Code Readability: Clear, well-structured, and well-documented code.
  • User Interface: Use SwiftUI for the UI, allowing users to easily interact with the app to upload, adjust, and save images.

Deliverables:

  • A working iOS app using SwiftUI and OpenCV that adjusts image temperature based on user input.
  • Instructions for setting up the app and building it locally in Xcode.

Instructions for Submission:

  1. GitHub Repository:

    • Create a new repository on GitHub and upload the project files.
    • Include a README file with the purpose of the project, setup instructions, and any additional relevant information.
  2. Email Submission:

    • Compose an email with the subject "Software Developer - iOS".
    • Address the email to [email protected] and cc [email protected].
    • Create a short video showcasing the app's functionality and the result of adjusting the temperature of an image.
    • Include a link to your GitHub repository in the body of the email, along with a brief explanation about the implementation.

Good Luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment