Camera Test (API1)
Camera test is prepared to test the performance of front and back cameras. It allows the testing the features like repeated shots, changing modes, and zooming. Test name should only have English Alphabet characters.
API1 is the first camera API that has been developed. It is applicable in all devices.
The main actions are as follows:
- Select Back Camera(API1): Activates back camera during the camera test. Must be used after "Camera Start Preview" action. Time Out value is 3 seconds unless it is changed.
- Select Front Camera(API1): Activates front camera during the camera test. Must be used after "Camera Start Preview" action. Time Out value is 3 seconds unless it is changed.
- Print Camera Features(API1): Prints Camera Info/Features to the Logs. It contains info like resolution, filters or settings. This action must be completed before the "Camera Start Preview" command.
- Set Camera Picture Size(API1): It asks the user for the size of the photo that will be taken. The information must be entered in "1024x768" format. Since Resolution varies with the camera hardware, this resolution info must be selected from "Print Camera Info/ picture-size-values" list.
- Camera Start Preview: Starts Camera Preview. It is necessary for taking pictures.
- Camera Stop preview: Stops Camera Preview. With this command camera preview will not continue working at the background.
- Camera Take Picture: Takes Picture. It must be used after "Camera Start Preview" action.
- Start- Camera VIDEO Recording (API1): Starts shooting video using the selected camera. It should be used after determining the area to save (Saved Area).
- Stop - Camera VIDEO Recording (API1): Stops shooting video using the selected camera. It should be used after the command Start - camera video recording.
- Set Camera Contrast(API1): This action is used to adjust contrast between the colors on the screen. Contrast value should be between 0-10. The default value is taken as 5.
- Set Camera Saturation(API1): Used to define color intensity of the photo. Saturated color should look deep, rich and live. Saturation value should be between 0 - 10. The default value is taken as 5.
- Enable GPS data in the Photo (API1): Adds GPS latitude, longitude, altitude, and timestamp of the photo, to the photo information parameters. It records photo's latitude - longitude or address using the relevant features of the device.
- Disable GPS data in Photo(API1): Removes the addition of GPS latitude, longitude, altitude, and timestamp of the photo, to the photo information parameters.
- Enable Camera TOUCH Focus (API1): Used to focus on any point on the screen.
- Disable Camera TOUCH Focus (API1): Enables focusing automatically.
- Enable Camera FACE Detection (API1): Starts the face detection. It automatically focuses on the faces of the people on the frame. This command should be called after the preview is on.
- Disable Camera FACE Detection(API1): Stops the face detection. This should be called after preview is started.
- Set Camera Flash Mode OFF (API1): Flash will not be fired regardless of the intensity of light.
- Set Camera Flash Mode ON(API1): Flash will always be fired during snapshot. Flash may also be fired during preview depending on the driver features.
- Set Camera Flash Mode AUTO (API1): Flash will be fired automatically depending on the intensity of light. For example, when there is not enough light it will be fired and when light is sufficient it won't.
- Set Camera Flash Mode RED EYE (API1): Flash will be fired in red-eye reduction mode. Before taking the photo, the flash should be shot several times.
- Set Camera Flash Mode TORCH (API1): Constant emission of light during preview, auto-focus and snapshot. This can also be used for video recording.
- Set Camera Antibanding OFF (API1): This option is used to prevent vibration while shooting photos. In the closed position, the camerais affected by vibration during photo shoot.
- Set Camera Antibanding AUTO(API1): Anti banding value is set automatically. Thus photograps are taken more clearly.
- Set Camera Antibanding 50Hz (API1): It sets antibanding value to 50 Hz. This should be used for devices manufactured in Europe and Turkey.
- Set Camera Antibanding 60Hz (API1): It sets antibanding value to 60 Hz. This should be used for devices manufactured in USA and Japan.
- Set Camera White Balance AUTO(API1): Default WB setting. The camera automatically determines the WB depending on the ambient light.
- Set Camera White Balance DAYLIGHT(API1): Used when shooting outdoors with the sun lighting the ambient.
- Set Camera WhiteBalance CLOUDY DAYLIGHT (API1): Used when shooting on cloudy days or in shades. It Will yield warmer images than sunlight.
- Set Camera WhiteBalance FLUORESCENT (API1): Use if photos look too green or when under fluorescent lights.
- Set Camera WhiteBalance WARM FLUORESCENT (API1):Use if photos look too green or when under warm fluorescent lights.
- Set Camera WhiteBalance INCANDESCENT (API1): This type of lighting is gradually being phased out. If you are shooting under incandescent light, your images may be objectionably warm, with orange skin tones and whites that are not white.
- Set Camera WhiteBalance SHADE (API1): Light in the shade is very blue, primarily because the warm light of the sun is not shining on the subject.
- Set Camera WhiteBalance TWILIGHT (API1): Used in twilight times - i.e evening and before sunrise.
- Set Camera Scene Mode AUTO (API1): Analyzes the type of scene and shooting conditions and automatically selects the scene mode.
- Set Camera Scene Mode ACTION(API1): It takes photos of a fast moving subject; fast shutter speeds freeze the action. For best solution, taking photos bright light and pre-focusing recommended.
- Set Camera Scene Mode BARCODE (API1): This mode is used to capture barcode or QR-code.
- Set Camera Scene Mode BEACH (API1): The photograph scene is beach scene. Exposure and white balance are set to help prevent the scene from becoming washed out looking.
- Set Camera Scene Mode CANDLELIGHT (API1): This mode is a variation of Night portrait, but usually without flash in order to preserve the ambiance of light. Captures the naturally warm color of scenes lit by candles.
- Set Camera Scene Mode FIREWORKS (API1): This mode is a variation of night landscape, but with a slower shutter speed to catch the trails of fireworks.
- Set Camera Scene Mode HDR (API1): Capture a scene using high dynamic range imaging techniques - i.e taking several shoots of the same setting and capturing the best outcome by overlapping the shoots.
- Set Camera Scene Mode LANDSCAPE (API1): This mode attempts to get as much of the scene in focus as possible, and will occasionally boost saturation on greens, blues, and reds to render photos that "pop."
- Set Camera Scene Mode NIGHT (API1): This mode is designed for shooting photos in low light, preserving detail in the dark areas without blowing out bright objects, like streetlights.
- Set Camera Scene Mode NIGHT PORTRAIT (API1): Take photos of a subject against a night scene. The built-in flash and red-eye reduction are enabled; shutter-speeds are low. Use of tripod recommended.
- Set Camera Scene Mode PARTY (API1): Take photos in a dim lit room; exposure and shutter speed are automatically adjusted for room brightness. Captures indoor background lighting or candlelight. Hold the camera very steady when using this mode.
- Set Camera Scene Mode PORTRAIT (API1): The goal is usually to render the face(s) in focus against a blurred background.
- Set Camera Scene Mode SNOW (API1): Snow mode might also adjust the white balance to compensate for the fact that reflected snow looks bluish rather than white.
- Set Camera Scene Mode SPORTS (API1): This mode usually attempts to freeze fast-moving subjects.
- Set Camera Scene Mode STEADYPHOTO (API1): This mode usually attempts to freeze stationary subjects.
- Set Camera Scene Mode SUNSET (API1): This mode takes photos of sunsets and sunrises; and helps keep the deep hues in the scene.
- Set Camera Scene Mode THEATRE (API1): This mode is optimized for indoor shooting without flash.
- Camera - SAVE to SDCARD (API1): Saves the pictures in SD Card.
- Camera - SAVE to internal Gallery (API1): Saves the pictures in internal Gallery.
- Set orientation Portrait: Sets the screen rotation to portrtait. All touchscreen devices can be rotated 360 degrees. No parameters required. Default Time Out period is 600 ms unless it is changed.
- Set Orientation Landscape: Sets the screen rotation to landscape with a 90° angle to portrait orientation. This option is generally used while playing games and watching videos. No parameters required. Default Time Out period is 600 ms unless it is changed.
- Wait Extra ... Second(s): Waits extra amount of seconds entered in Parameter (1) before taking the next step of the test.
- Wait Extra ... Minute(s): Waits extra amount of minutes entered in Parameter (1) before taking the next step of the test.
- Show All Actions: This button stands at the bottom of the Action List. It opens a new window where all test actions can be seen together. This option allows us to use all actions in any scenario.
In this test:
- Front camera will be selected,
- Camera Auto Flash will be activated,
- Screen orientation will be set to Portrait,
- Counter will be set to 10,
- Camera preview will be started,
- Camera will be taking a picture (loop starts here),
- Device will be waiting for 5 seconds,
- The counter will be decreased 1 by 1 and will be jumping to step 5, untill it will end (loop ends here)
- Preview will be deactivated.