Skip to main content

AI-POWERED DOCS

What do you want to know?

Snapshots & Changelog

Parameter Snapshot

Mỗi phiên bản được xuất bản đều lưu trữ một parameter snapshot: các tham số recipe và test-set được ghi lại theo một schema cố định, có phiên bản, để mỗi phiên bản chứa toàn bộ nội dung có cấu trúc bên trong nó. Mỗi phiên bản cũng có một tệp README trình bày snapshot đó ở dạng dễ đọc.

Một phiên bản có hai tệp snapshot:

  • parameters/recipe/<version>.json — snapshot của recipe
  • parameters/testset/<version>.json — snapshot của test-set

Cả hai đều mang một schema_version mô tả cấu trúc của tệp (hiện tại là 1.1). Các trường sử dụng đường dẫn dấu chấm bên dưới; [] đánh dấu một danh sách, vì vậy blocks[].type_config.labels[].namename của mỗi nhãn của mỗi block.

Recipe snapshot

parameters/recipe/<version>.json

TrườngKiểuÝ nghĩa
schema_versionstringPhiên bản cấu trúc schema của tệp này.
extracted_atstringThời điểm snapshot được tạo.
recipe_namestringTên recipe.
descriptionstring | nullMô tả recipe.
plc_recipe_idinteger | nullID recipe của PLC.
meta_versionintegerPhiên bản metadata của recipe.
database_versionintegerPhiên bản database của recipe.
software_versionstringPhiên bản phần mềm của recipe.
imaging.preview_image.shastringSHA của ảnh preview.
imaging.preview_image.pathstringĐường dẫn của ảnh preview.
imaging.exposureinteger | nullThời gian phơi sáng.
imaging.gainnumber | nullGain của cảm biến.
imaging.brightnessinteger | nullĐộ sáng.
imaging.gammainteger | nullGamma.
imaging.focal_lengthnumber | nullTiêu cự.
imaging.focusnumber | nullFocus.
imaging.focus_distancenumber | nullKhoảng cách focus.
imaging.rotation_modeinteger | nullChế độ xoay ảnh.
imaging.acq_modeinteger | nullChế độ thu nhận ảnh.
imaging.hdr_mode_enabledboolean | nullBật/tắt chế độ HDR.
imaging.led_modeinteger | nullChế độ chiếu sáng LED.
imaging.led_gaininteger | nullGain của LED.
imaging.led_strobe_modeboolean | nullBật/tắt strobe của LED.
imaging.lens_correctboolean | nullBật/tắt hiệu chỉnh méo ống kính.
imaging.photometric_enabledboolean | nullBật/tắt hiệu chỉnh photometric.
imaging.photometric_modeinteger | nullChế độ photometric.
imaging.awb_redinteger | nullKênh đỏ auto white-balance.
imaging.awb_greeninteger | nullKênh xanh lá auto white-balance.
imaging.awb_blueinteger | nullKênh xanh dương auto white-balance.
imaging.awb_opboolean | nullBật auto white-balance.
imaging.calibration_pixels_per_unitnumber | nullTỉ lệ hiệu chuẩn (pixel trên đơn vị).
imaging.calibration_unitstring | nullĐơn vị hiệu chuẩn.
imaging.trigger_debounceinteger | nullDebounce của trigger.
imaging.trigger_delayinteger | nullDelay của trigger.
imaging.rawobjectToàn bộ nguồn imaging chưa phân tích.
blocks[].block_typestringLoại block (alignment, classification, segmentation, measurement, ocr, unsupervised).
blocks[].uuidstringĐịnh danh ổn định của block.
blocks[].namestringTên block.
blocks[].statusstringTrạng thái block.
blocks[].is_enabledbooleanBlock có được chạy hay không.
blocks[].has_modelbooleanCó mô hình đã huấn luyện được gắn hay không.
blocks[].search_area.search_area_idinteger | nullID của search-area.
blocks[].search_area.search_area_bboxlist of number | nullBounding box của search-area.
blocks[].search_area.roi_regions[].bboxlist of numberBounding box của ROI.
blocks[].search_area.roi_regions[].anglenumberGóc xoay của ROI.
blocks[].type_configobjectCấu hình đặc thù theo loại (xem bên dưới).
blocks[].model_ref.shastringSHA của tệp mô hình đã huấn luyện.
blocks[].model_ref.pathstringĐường dẫn tệp mô hình đã huấn luyện.
blocks[].model_ref.file_extensionstringPhần mở rộng của tệp mô hình đã huấn luyện.
aligner_reference_image.shastringSHA của ảnh tham chiếu alignment.
aligner_reference_image.pathstringĐường dẫn ảnh tham chiếu alignment.
aligner_reference_image.full_repo_pathstringĐường dẫn ảnh tham chiếu alignment trong repo.
node_red_flow.basic_modebooleanFlow có đang ở chế độ basic hay không.
node_red_flow.basic_flow_idstring | nullID của flow ở chế độ basic.
node_red_flow.basic_flow_metadataobject | nullMetadata của flow ở chế độ basic.
node_red_flow.nodes[].idstringID của node.
node_red_flow.nodes[].node_typestringLoại node.
node_red_flow.nodes[].namestringTên node.
node_red_flow.nodes[].xinteger | nullVị trí X của node trên canvas.
node_red_flow.nodes[].yinteger | nullVị trí Y của node trên canvas.
node_red_flow.nodes[].wireslist of list of stringCác kết nối đi ra (theo từng output, ID của node đích).
node_red_flow.nodes[].funcstring | nullMã của function-node.
node_red_flow.nodes[].rawobjectToàn bộ nguồn node chưa phân tích.

Cấu hình block

Các trường dưới blocks[].type_config phụ thuộc vào blocks[].block_type.

TrườngKiểuÝ nghĩa
blocks[].type_config.angle_tolerance_leftnumber | nullalignment — dung sai góc bên trái.
blocks[].type_config.angle_tolerance_rightnumber | nullalignment — dung sai góc bên phải.
blocks[].type_config.confidence_score_thresholdnumber | nullalignment / segmentation / unsupervised — ngưỡng khớp/độ tin cậy.
blocks[].type_config.sensitivitynumber | nullalignment / unsupervised — độ nhạy.
blocks[].type_config.versioninteger | nullalignment — phiên bản cấu hình.
blocks[].type_config.scale_invariantboolean | nullalignment — bật/tắt khớp bất biến theo tỷ lệ.
blocks[].type_config.inference_modestring | nullalignment — chế độ inference.
blocks[].type_config.dl_performance_modeinteger | nullalignment — chế độ hiệu năng deep-learning.
blocks[].type_config.skip_blockboolean | nullalignment — bỏ qua block này.
blocks[].type_config.template_image_id_pathstring | nullalignment — đường dẫn tham chiếu hình ảnh template.
blocks[].type_config.labels[].namestringclassification — tên nhãn.
blocks[].type_config.labels[].confidence_thresholdnumber | nullclassification — ngưỡng độ tin cậy cho từng nhãn.
blocks[].type_config.labels[].is_positiveboolean | nullclassification — nhãn này có được tính là pass hay không.
blocks[].type_config.labels[].inspection_typeinteger | nullclassification — kiểu inspection.
blocks[].type_config.labels[].colorstring | nullclassification — màu hiển thị.
blocks[].type_config.segmentation_typestring | nullsegmentation — kiểu segmentation.
blocks[].type_config.classes[].class_namestringsegmentation — tên class.
blocks[].type_config.classes[].mask_pixel_valueinteger | nullsegmentation — giá trị pixel của mask.
blocks[].type_config.classes[].colorstring | nullsegmentation — màu hiển thị.
blocks[].type_config.classes[].mask_shastring | nullsegmentation — SHA của tệp mask.
blocks[].type_config.classes[].mask_pathstring | nullsegmentation — đường dẫn tệp mask.
blocks[].type_config.measurement_regions[]objectmeasurement — các vùng đo lường.
blocks[].type_config.min_text_areainteger | nullocr — diện tích văn bản tối thiểu.
blocks[].type_config.text_segmentation_thresholdnumber | nullocr — ngưỡng phân đoạn văn bản.
blocks[].type_config.unclip_rationumber | nullocr — tỷ lệ unclip.
blocks[].type_config.unclip_ceilingnumber | nullocr — giới hạn trên của unclip.
blocks[].type_config.unsupervised_typestring | nullunsupervised — kiểu phương pháp.
blocks[].type_config.epochsinteger | nullunsupervised — số epochs huấn luyện.
blocks[].type_config.encoderstring | nullunsupervised — encoder.
blocks[].type_config.learning_ratenumber | nullunsupervised — learning rate.
blocks[].type_config.downsampling_rationumber | nullunsupervised — tỷ lệ downsampling.
blocks[].type_config.tiled_modeboolean | nullunsupervised — bật/tắt chế độ tiled.
blocks[].type_config.min_blob_areanumber | nullunsupervised — diện tích blob tối thiểu.
blocks[].type_config.max_blob_areanumber | nullunsupervised — diện tích blob tối đa.
blocks[].type_config.hyperparametersobjectclassification / segmentation / measurement / ocr / unsupervised — hyperparameters huấn luyện.

Ảnh chụp Test-set

parameters/testset/<version>.json

TrườngKiểuÝ nghĩa
schema_versionstringPhiên bản cấu trúc schema của tệp này.
extracted_atstringThời điểm ảnh chụp được thực hiện.
namestringTên test-set.
descriptionstring | nullMô tả test-set.
authorstring | nullTác giả test-set.
image_countintegerSố lượng hình ảnh.
images_with_ground_truthintegerSố lượng hình ảnh có ground truth.
search_area_ids[]stringID vùng tìm kiếm được test set tham chiếu.
per_class_distribution[].class_namestringTên lớp. Được dành riêng; hiện luôn để trống (xem như "phân phối không khả dụng").
per_class_distribution[].countintegerSố lượng hình ảnh cho lớp. Được dành riêng; hiện luôn để trống.
images[].image_idstringID hình ảnh.
images[].ground_truth_fingerprintstring | nullDấu vân của ground truth của hình ảnh.
images[].has_ground_truthbooleanHình ảnh có ground truth hay không.

README

Mỗi phiên bản cũng có một tệp README.md được commit để hiển thị ảnh chụp ở dạng dễ đọc. Các phần của nó bao gồm:

  • Imaging Settings — bảng các tham số chụp ảnh.
  • Aligner Reference Image — hình ảnh tham chiếu căn chỉnh và mã SHA-256 của nó (chỉ khi recipe có).
  • Inspection Blocks — một tiểu mục cho mỗi block, với tiêu đề <name> (<block type>), bao gồm UUID của block, trạng thái và cờ enabled, tiếp theo là một phần đặc thù theo loại — Classification Labels, Segmentation Classes, OCR Parameters, Unsupervised Parameters, Alignment Parameters, hoặc số lượng vùng đo lường.
  • Node-RED Flow — cờ basic-mode, số lượng node và bảng danh sách các node (ID, Type, Name).
  • Test Set — tên, mô tả, tác giả, số lượng hình ảnh, số hình ảnh có ground truth và các vùng tìm kiếm.

Changelog

Khi một phiên bản được xuất bản, ảnh chụp tham số của nó được so sánh với phiên bản trước để tạo ra changelog. Việc so sánh mang tính cấu trúc — theo từng trường trên toàn bộ schema ở trên, với các danh sách (blocks, labels, classes, Node-RED nodes) được đối chiếu theo định danh ổn định thay vì theo vị trí, vì vậy việc sắp xếp lại thứ tự sẽ không bao giờ hiện ra như một thay đổi. Recipe và test set được so sánh độc lập, và changelog được suy ra từ các ảnh chụp đã commit theo yêu cầu, do đó nó luôn khả dụng cho bất kỳ cặp phiên bản nào.

Các thay đổi được nhóm vào cùng các phần như trong ảnh chụp, và một phần chỉ xuất hiện nếu có gì đó bên trong đã thay đổi. Phiên bản không có khác biệt sẽ được ghi chú như vậy, và phiên bản đầu tiên hiển thị toàn bộ nội dung khởi tạo thay vì diff.