Default
- Controller
- Addition
- Window
- Image
- Camera
- Show Result
- Video controller
VideoController
VideoController.connectToButton()
VideoController.videoButtonDisable()
VideoController.videoButtonEnable()
VideoController.videoButtonCamera()
VideoController.reset_time()
VideoController.videoPlayPouse()
VideoController.play_video()
VideoController.pause_video()
VideoController.stop_video()
VideoController.stop_camera()
VideoController.prev_video()
VideoController.skip_video()
VideoController.changeValue()
VideoController.controller()
VideoController.recordVideo()
VideoController.selectDir()
- Windows
- Image
- Anypoint
AnyPoint
AnyPoint.connectToButton()
AnyPoint.control_button_on_anypoint()
AnyPoint.control_button_off_anypoint()
AnyPoint.zoomValue()
AnyPoint.resetAlphaBeta()
AnyPoint.onclickAnypoint()
AnyPoint.anypoint_view()
AnyPoint.showPolygon()
AnyPoint.updateParamAnypoint()
AnyPoint.anypoint_mode_1()
AnyPoint.anypoint_mode_2()
AnyPoint.set_anypoint()
AnyPoint.up()
AnyPoint.left()
AnyPoint.center()
AnyPoint.right()
AnyPoint.down()
- Panorama
Panorama
Panorama.connectToButton()
Panorama.control_button_on_panorama()
Panorama.control_button_of_panorama()
Panorama.set_panorama()
Panorama.panorama_view()
Panorama.recenterImage()
Panorama.positionCoorX()
Panorama.positionCoorY()
Panorama.updatePossCenter()
Panorama.resetCenter()
Panorama.setCoorCenterObject()
Panorama.showOriginalPanorama()
- Anypoint
Main
Controller
- class plugins.default.ui_controller.Controller(MainWindow)[source]
Bases:
QMainWindow
The controller class to control UI MainWindow.
- Parameters:
() (MainWindow) – Its object window from parent application(argument from main apps)
- camera_parameter = 'camera_parameters/camera_parameters.json'
- open_video_file()[source]
Load video file from local directory using file open dialog.
- Returns:
Video.
- cameraOpen()[source]
Open camera following the source given. the source has 2 choice which is usb camera and url camera raspberry pi. we have to running the server on raspberry to use the url camera.
- Returns:
Camera open.
- next_frame_slot()[source]
Control video frame, Its will Lopping the frame following the timer.
- Returns:
None
- init_ori_ratio()[source]
Calculate the initial ratio of the image.
- Returns:
ratio width between image and ui window. ratio_y : ratio height between image and ui window. center : find the center image on window user interface.
- Return type:
ratio_x
- getCenterWindowsOri()[source]
Get the center coordinate on label windows original.
- Returns:
center coordinate
- mouse_event(e)[source]
Specify coordinate from mouse left event to generate anypoint view and recenter image.
- Parameters:
() (e) – Coordinate point return by pyqt core
Returns:
- mouseMovedOriImage(e)[source]
Mouse move event to look in surrounding view in result label image.
- Parameters:
() (e)
Returns:
- mouseMovedResultImage(e)[source]
Mouse move event to look in surrounding view in original label image.
- Parameters:
() (e)
Returns:
- mouse_release_event(e)[source]
Mouse release event right click to show menu. the menu can select is show maximum, show minimum, save image, and show info.
- Parameters:
() (e)
- Returns:
None.
showing the menu image when release right click.
- Parameters:
() (e)
- Returns:
None.
- saveImage()[source]
Save image on local directory. the first time you save image, it will open dialog to select the directory, then the image saved will always stored on directory selected.
- Returns:
None.
- 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.
- help()[source]
showing the message box to show help information obout this application.
- Returns:
None.