react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

🐛 EAN-13 not scanned

Open indapublic opened this issue 5 months ago • 3 comments

What's happening?

Image

Reproduceable Code

const codeScanner = useCodeScanner({
	codeTypes: ["qr", "ean-13"],
	onCodeScanned: (c) => {
		console.log(c);
	},
});

<Camera
	codeScanner={codeScanner}
	device={device}
	isActive={true}
	style={{
		flex: 1,
		width: "100%",
		height: "100%",
	}}
/>

Relevant log output

10-29 12:53:17.013  1947  3624 E ChiX    : [ERROR][TBM    ] chitbmholder.cpp:900 Register() this 0xb4000073c954bc50, m_pTBMHolders.data 0xb400007447576830 cameraId 1 has not assoicated TBM
10-29 12:53:17.047  1947  3625 E CamX    : [ERROR][STATS_AWB] camxcawbioutil.cpp:7635 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.048  1947  3619 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.048  1947  3619 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.048  1947  3619 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.068  1947  3624 E ChiX    : [ERROR][TBM    ] chitbmholder.cpp:900 Register() this 0xb4000073c954bc50, m_pTBMHolders.data 0xb400007447576830 cameraId 1 has not assoicated TBM
10-29 12:53:17.105  1947  3618 E CamX    : [ERROR][STATS_AWB] camxcawbioutil.cpp:7635 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.108  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.109  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.109  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.125  1947  3624 E ChiX    : [ERROR][TBM    ] chitbmholder.cpp:900 Register() this 0xb4000073c954bc50, m_pTBMHolders.data 0xb400007447576830 cameraId 1 has not assoicated TBM
10-29 12:53:17.167  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.168  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.168  1947  3624 E CamX    : [ERROR][STATS_AEC] camxois.cpp:3900 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.168  1947  3625 E CamX    : [ERROR][STATS_AWB] camxcawbioutil.cpp:7635 GetCameraSceneMode() Get camera scene mode fail
10-29 12:53:17.184  1947  3622 E ChiX    : [ERROR][TBM    ] chitbmholder.cpp:900 Register() this 0xb4000073c954bc50, m_pTBMHolders.data 0xb400007447576830 cameraId 1 has not assoicated TBM

Camera Device

{
  "formats": [],
  "sensorOrientation": "landscape-left",
  "hardwareLevel": "full",
  "maxZoom": 8,
  "minZoom": 1,
  "maxExposure": 24,
  "supportsLowLightBoost": false,
  "neutralZoom": 1,
  "physicalDevices": [
    "wide-angle-camera"
  ],
  "supportsFocus": true,
  "supportsRawCapture": false,
  "isMultiCam": false,
  "minFocusDistance": 0,
  "minExposure": -24,
  "name": "0 (BACK) androidx.camera.camera2",
  "hasFlash": true,
  "hasTorch": true,
  "position": "back",
  "id": "0"
}

Device

Honor Magic V3, iPhone 12

VisionCamera Version

4.7.2

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

indapublic avatar Oct 29 '25 03:10 indapublic

Guten Tag, Hans here.

[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy in his free time. To support @mrousavy, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.

maintenance-hans[bot] avatar Oct 29 '25 03:10 maintenance-hans[bot]

Found that this code is recognised as CODE-128. But should be EAN-13 I assume (tried with another Android apps, all recognise it as EAN-13)

indapublic avatar Nov 03 '25 01:11 indapublic

Same issue as for me. @indapublic

sudhanshu-busy avatar Nov 13 '25 12:11 sudhanshu-busy