Inspection

Main

class plugins.Thread_inspection.main.Controller(main_application)[source]

Bases: QMainWindow

This Class is for control the widget event to the execute function.

Parameters:
  • () (main_application) – This argument send QWidget from main application.

  • class (which is can access the function and variable from that)

  • class

resized

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

camera_parameter = 'camera_parameters/camera_parameters.json'
connect_event()[source]

Connect every event on user interface like button event, mouse event and etc to the function processing.

open_image()[source]

Open Dialog to search the file image from directory. This function also will read the comment from metadata image.

connect_to_moildev()[source]

Connect to Moildev SDK, need provide camera parameter database and type of camera.

onclick_load_video()[source]

Open Dialog to search video file from Directory. after you select the video file, it will show the prompt to select the type of camera.

select_camera_type()[source]

Select the camera type prompt.

dialog_camera_oke()[source]

The function will execute when you press accept or ok in dialog camera type selection.

onclick_open_camera_button()[source]

Show the window of selection camera source.

open_cam_params_window()[source]

Open the window of camera parameter form, this window you can update, add, and delete the camera parameter from database.

open_camera()[source]

open the camera from the available source in the system, this function provide 2 source namely USB cam and Streaming Cam from Raspberry pi.

running_video(video_source)[source]

Open Video following the source given.

Parameters:

() (video_source) – the source of media, can be camera and video file.

show_normal()[source]

Showing the original image into Label frame in UI.

show_to_window()[source]

Showing the processing result image into the frame UI.

help()[source]

Showing the message box to show help information obout this application.

save_image()[source]

Save image into local directory, it can save original image or result image from panorama or anypoint processing.

addWidget(image)[source]

Add the image widget in the list view of saved image. it can be reopen when you select. :param image (): the image saved.

saved_image_activated()[source]

Function that for connect with the event in list widget to reopen the image.

selectDir()[source]

Select directory to save image. This function create to make it not always ask the directory by open dialog, after directory save not None, it will pass open dialog prompt.

Returns:

None.

reset_mode_view()[source]

Update the properties view when you reset.

go_to_home_application()[source]

This function is for close the main window and show the home application to chose another application

  • self : represent the current user interface

  • self parent : represent the home window to select the application

Returns:

Back to home apps!!

onclick_exit()[source]

Function that connect to exit button to close tha window.

resizeEvent(event)[source]

Resize window event controller. :param event ():

closeEvent(event)[source]

Control the close event by ask the question yes or no. :param event ():

Returns:

class plugins.Thread_inspection.main.Internal_Inspection[source]

Bases: Plugin

The class that represent the plugins application, class name will be read as the name of application.

perform_operation(argument)[source]

The main application will execute this function when click button open.

Parameters:

() (argument) – is the object widget from main application class.

Returns:

Will show the window of application.